Author Topic: Very large files 00:00 timecode.  (Read 1021 times)

EduCatOR

  • Jr. Member
  • **
  • Posts: 109
Very large files 00:00 timecode.
« on: September 08, 2010, 12:01:14 PM »
So basically the situation is that large uploads convert and get posted to the site fine, however the thumbnail always ends up being black, and the time code says 00:00. It's really 1 hour and 47 minutes long, so I'm guess this could be what messes it up. Figured I would ask though.

Anyone ever come across this problem?

Take care

frankie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5949
  • PHPmotion Developer
Re: Very large files 00:00 timecode.
« Reply #1 on: September 08, 2010, 03:18:30 PM »
what does the convertor log show

EduCatOR

  • Jr. Member
  • **
  • Posts: 109
Re: Very large files 00:00 timecode.
« Reply #2 on: September 09, 2010, 01:56:45 PM »
This is what it says, not real sure what to make out of it:

Code: [Select]
PHPmotion Convertor.php debug
CLI for convertor OK
Wed - Sep 08, 2010 @ 03:36 AM
================================================================================
PHPmotion Step 1 Converting
/usr/local/bin/ffmpeg -i /home/discgolf/public_html/uploads/avi/PXNQ20AoJokZclNGShzQ.avi -ab 64 -ar 44100 -b 2000k -r 29.97 -nr 1000 -g 500 -s 640x360 -qmax 20 /home/discgolf/public_html/uploads/PXNQ20AoJokZclNGShzQ.flv
Wed - Sep 08, 2010 @ 03:36 AM
Command was executed. See rest of log for output details
=================================================================
PHPmotion STEP 2 & 3
OUTPUT - FLVTOOL2 - check - Video Duration = 0

================================================================================
/usr/bin/flvtool2 -UP /home/discgolf/public_html/uploads/PXNQ20AoJokZclNGShzQ.flv | grep duration

PHPmotion Debug - STEP 4
/usr/local/bin/ffmpeg -i /home/discgolf/public_html/uploads/PXNQ20AoJokZclNGShzQ.flv -ss 00:00:00 -t 00:00:01 -s 120x90 -r 1 -f mjpeg /home/discgolf/public_html/uploads/thumbs/PXNQ20AoJokZclNGShzQ.jpg
Command was executed.See rest of log for output details
FFmpeg version 0.5.2, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration:
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 1 / 52.20. 1
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  built on Sep  7 2010 19:24:08, gcc: 4.1.2 20080704 (Red Hat 4.1.2-48)

Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 29.92 (359/12)
Input #0, flv, from '/home/discgolf/public_html/uploads/PXNQ20AoJokZclNGShzQ.flv':
  Duration: 02:22:50.90, start: 0.000000, bitrate: 2000 kb/s
    Stream #0.0: Video: flv, yuv420p, 640x360, 2000 kb/s, 29.92 tbr, 1k tbn, 1k tbc
    Stream #0.1: Audio: adpcm_swf, 44100 Hz, stereo, s16
[imgconvert @ 0xfb5cba0]PIX_FMT_YUV420P will be used as an intermediate format for rescaling
Output #0, mjpeg, to '/home/discgolf/public_html/uploads/thumbs/PXNQ20AoJokZclNGShzQ.jpg':
    Stream #0.0: Video: mjpeg, yuvj420p, 120x90, q=2-31, 200 kb/s, 90k tbn, 1 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
frame=    1 fps=  0 q=2.9 Lsize=       1kB time=1.00 bitrate=   5.9kbits/s
video:1kB audio:0kB global headers:0kB muxing overhead 0.000000%
FFmpeg version 0.5.2, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration:
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 1 / 52.20. 1
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  built on Sep  7 2010 19:24:08, gcc: 4.1.2 20080704 (Red Hat 4.1.2-48)

Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 29.92 (359/12)
Input #0, flv, from '/home/discgolf/public_html/uploads/PXNQ20AoJokZclNGShzQ.flv':
  Duration: 02:22:50.90, start: 0.000000, bitrate: 2000 kb/s
    Stream #0.0: Video: flv, yuv420p, 640x360, 2000 kb/s, 29.92 tbr, 1k tbn, 1k tbc
    Stream #0.1: Audio: adpcm_swf, 44100 Hz, stereo, s16
Output #0, mjpeg, to '/home/discgolf/public_html/uploads/player_thumbs/PXNQ20AoJokZclNGShzQ.jpg':
    Stream #0.0: Video: mjpeg, yuvj420p, 640x360, q=2-31, 200 kb/s, 90k tbn, 1 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
frame=    1 fps=  0 q=3.9 Lsize=       4kB time=1.00 bitrate=  34.1kbits/s
video:4kB audio:0kB global headers:0kB muxing overhead 0.000000%

frankie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5949
  • PHPmotion Developer
Re: Very large files 00:00 timecode.
« Reply #3 on: September 09, 2010, 03:31:22 PM »
whats the site url

EduCatOR

  • Jr. Member
  • **
  • Posts: 109
Re: Very large files 00:00 timecode.
« Reply #4 on: September 22, 2010, 09:18:34 PM »
Just wanted to follow up with this a bit. From what I notice, this happens to some files that have a time code that extends past 00:00. (four places) Not sure if this is on my end or not. With these same videos I seem to have problems with pseudo-streaming as well.

frankie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5949
  • PHPmotion Developer
Re: Very large files 00:00 timecode.
« Reply #5 on: September 23, 2010, 09:02:24 AM »

it happens because the the video length was not found;

/usr/bin/flvtool2 -UP /home/discgolf/public_html/uploads/PXNQ20AoJokZclNGShzQ.flv | grep duration

OUTPUT - FLVTOOL2 - check - Video Duration = 0

so i would guess it is a non supported codec, probly h264 and since
you have not updated the convertor you do not get a conversion error.




Just wanted to follow up with this a bit. From what I notice, this happens to some files that have a time code that extends past 00:00. (four places) Not sure if this is on my end or not. With these same videos I seem to have problems with pseudo-streaming as well.

EduCatOR

  • Jr. Member
  • **
  • Posts: 109
Re: Very large files 00:00 timecode.
« Reply #6 on: September 23, 2010, 12:50:02 PM »
I take it I would have to have a convertor update in order to support h264? Thanks for your help frankie...

frankie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5949
  • PHPmotion Developer
Re: Very large files 00:00 timecode.
« Reply #7 on: September 23, 2010, 01:02:38 PM »
actually the server needs a different setup, ffmpeg

who is this host?

EduCatOR

  • Jr. Member
  • **
  • Posts: 109
Re: Very large files 00:00 timecode.
« Reply #8 on: September 24, 2010, 01:24:51 AM »
 Would you like his e-mail?? I can also forward any information to him.
« Last Edit: September 25, 2010, 04:08:49 AM by EduCatOR »

frankie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5949
  • PHPmotion Developer
Re: Very large files 00:00 timecode.
« Reply #9 on: September 24, 2010, 02:53:16 PM »
have him update ffmpeg

EduCatOR

  • Jr. Member
  • **
  • Posts: 109
Re: Very large files 00:00 timecode.
« Reply #10 on: September 25, 2010, 12:43:56 PM »
Well, we updated ffmpeg to the latest (0.6 I believe) and I'm still getting the same thing. I just don't understand it, not sure where to go from here. This is what I got from the convertor.php log:

Code: [Select]
PHPmotion Convertor.php debug
CLI for convertor OK
Sat - Sep 25, 2010 @ 11:59 AM
================================================================================
PHPmotion Step 1 Converting
/usr/local/bin/ffmpeg -i /home/discgolf/public_html/uploads/avi/VuYDlihiNQT1hBn5WPcp.avi -ab 64 -ar 44100 -b 2000k -r 29.97 -nr 1000 -g 500 -s 640x360 -qmax 20 /home/discgolf/public_html/uploads/VuYDlihiNQT1hBn5WPcp.flv
Sat - Sep 25, 2010 @ 11:59 AM
Command was executed. See rest of log for output details
=================================================================
PHPmotion STEP 2 & 3
OUTPUT - FLVTOOL2 - check - Video Duration = 0

================================================================================
/usr/bin/flvtool2 -UP /home/discgolf/public_html/uploads/VuYDlihiNQT1hBn5WPcp.flv | grep duration

PHPmotion Debug - STEP 4
/usr/local/bin/ffmpeg -i /home/discgolf/public_html/uploads/VuYDlihiNQT1hBn5WPcp.flv -ss 00:00:00 -t 00:00:01 -s 120x90 -r 1 -f mjpeg /home/discgolf/public_html/uploads/thumbs/VuYDlihiNQT1hBn5WPcp.jpg
Command was executed.See rest of log for output details
FFmpeg version 0.6, Copyright (c) 2000-2010 the FFmpeg developers
  built on Sep 25 2010 10:41:30 with gcc 4.1.2 20080704 (Red Hat 4.1.2-48)
  configuration:
  libavutil     50.15. 1 / 50.15. 1
  libavcodec    52.72. 2 / 52.72. 2
  libavformat   52.64. 2 / 52.64. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0.11. 0 /  0.11. 0
[flv @ 0xf71e420]max_analyze_duration reached
[flv @ 0xf71e420]Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 29.92 (359/12)
Input #0, flv, from '/home/discgolf/public_html/uploads/VuYDlihiNQT1hBn5WPcp.flv':
  Metadata:
    duration        : 3373
    width           : 640
    height          : 360
    videodatarate   : 1953
    framerate       : 30
    videocodecid    : 2
    audiodatarate   : 0
    audiosamplerate : 44100
    audiosamplesize : 16
    stereo          : true
    audiocodecid    : 1
    filesize        : 919043536
  Duration: 00:56:13.06, start: 0.000000, bitrate: 2000 kb/s
    Stream #0.0: Video: flv, yuv420p, 640x360, 2000 kb/s, 29.92 tbr, 1k tbn, 1k tbc
    Stream #0.1: Audio: adpcm_swf, 44100 Hz, 2 channels, s16, 0 kb/s
Output #0, mjpeg, to '/home/discgolf/public_html/uploads/thumbs/VuYDlihiNQT1hBn5WPcp.jpg':
  Metadata:
    encoder         : Lavf52.64.2
    Stream #0.0: Video: mjpeg, yuvj420p, 120x90, q=2-31, 200 kb/s, 90k tbn, 1 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
frame=    3 fps=  0 q=1.6 Lsize=       3kB time=3.00 bitrate=   8.8kbits/s dup=0 drop=21
video:3kB audio:0kB global headers:0kB muxing overhead 0.000000%
FFmpeg version 0.6, Copyright (c) 2000-2010 the FFmpeg developers
  built on Sep 25 2010 10:41:30 with gcc 4.1.2 20080704 (Red Hat 4.1.2-48)
  configuration:
  libavutil     50.15. 1 / 50.15. 1
  libavcodec    52.72. 2 / 52.72. 2
  libavformat   52.64. 2 / 52.64. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0.11. 0 /  0.11. 0
[flv @ 0x6c93420]max_analyze_duration reached
[flv @ 0x6c93420]Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 29.92 (359/12)
Input #0, flv, from '/home/discgolf/public_html/uploads/VuYDlihiNQT1hBn5WPcp.flv':
  Metadata:
    duration        : 3373
    width           : 640
    height          : 360
    videodatarate   : 1953
    framerate       : 30
    videocodecid    : 2
    audiodatarate   : 0
    audiosamplerate : 44100
    audiosamplesize : 16
    stereo          : true
    audiocodecid    : 1
    filesize        : 919043536
  Duration: 00:56:13.06, start: 0.000000, bitrate: 2000 kb/s
    Stream #0.0: Video: flv, yuv420p, 640x360, 2000 kb/s, 29.92 tbr, 1k tbn, 1k tbc
    Stream #0.1: Audio: adpcm_swf, 44100 Hz, 2 channels, s16, 0 kb/s
Output #0, mjpeg, to '/home/discgolf/public_html/uploads/player_thumbs/VuYDlihiNQT1hBn5WPcp.jpg':
  Metadata:
    encoder         : Lavf52.64.2
    Stream #0.0: Video: mjpeg, yuvj420p, 640x360, q=2-31, 200 kb/s, 90k tbn, 1 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
frame=    3 fps=  0 q=1.6 Lsize=      23kB time=3.00 bitrate=  61.7kbits/s dup=0 drop=21
video:23kB audio:0kB global headers:0kB muxing overhead 0.000000%

I noticed this:
Code: [Select]
Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 29.92 (359/12)
I've been reading that I can add "-r ntsc" to the ffmpeg command line to stop this, maybe this is the problem? Would I add this to the convertor.php file?

Thank you frankie for your time.

EduCatOR

  • Jr. Member
  • **
  • Posts: 109
Re: Very large files 00:00 timecode.
« Reply #11 on: September 25, 2010, 12:56:01 PM »
I believe most of these files that are not working are either Xvid or DivX...

:edit: I still think it has to do with the length of the files. The shorter ones still seem to work fine. Size does not seem to be an issue I don't think.
« Last Edit: September 25, 2010, 01:06:02 PM by EduCatOR »

frankie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5949
  • PHPmotion Developer
Re: Very large files 00:00 timecode.
« Reply #12 on: September 25, 2010, 03:53:52 PM »
there is nothing i can suggest since you will not run the new convertor file

EduCatOR

  • Jr. Member
  • **
  • Posts: 109
Re: Very large files 00:00 timecode.
« Reply #13 on: September 25, 2010, 04:52:51 PM »
I added the newer convertor so I'll just cross my fingers and hope that it works...

EduCatOR

  • Jr. Member
  • **
  • Posts: 109
Re: Very large files 00:00 timecode.
« Reply #14 on: September 25, 2010, 07:13:25 PM »
Ok so with the newer convertor.php the large files don't show up at all. Here's what I got in the convertor log:

Code: [Select]
Converting (EznZdDnmIUCt3rqinKY0.avi) started - Sat - Sep 25, 2010 @ 05:55 PM



---------------------------------------------------------------------

/usr/local/bin/ffmpeg -i /home/discgolf/public_html/uploads/avi/EznZdDnmIUCt3rqinKY0.avi -ab 64 -ar 44100 -b 2000k -r 29.97 -nr 1000 -g 500 -s 640x360 -qmax 20 /home/discgolf/public_html/uploads/EznZdDnmIUCt3rqinKY0.flv
FFmpeg version 0.6, Copyright (c) 2000-2010 the FFmpeg developers
  built on Sep 25 2010 10:41:30 with gcc 4.1.2 20080704 (Red Hat 4.1.2-48)
  configuration:
  libavutil     50.15. 1 / 50.15. 1
  libavcodec    52.72. 2 / 52.72. 2
  libavformat   52.64. 2 / 52.64. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0.11. 0 /  0.11. 0
[mp3 @ 0x1bb971e0]Header missing
Input #0, avi, from '/home/discgolf/public_html/uploads/avi/EznZdDnmIUCt3rqinKY0.avi':
  Duration: 00:56:13.16, start: 0.000000, bitrate: 2482 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 640x480 [PAR 1:1 DAR 4:3], 23.98 tbr, 23.98 tbn, 23.98 tbc
    Stream #0.1: Audio: mp3, 44100 Hz, 2 channels, s16, 128 kb/s
WARNING: The bitrate parameter is set too low. It takes bits/s as argument, not kbits/s
Output #0, flv, to '/home/discgolf/public_html/uploads/EznZdDnmIUCt3rqinKY0.flv':
  Metadata:
    encoder         : Lavf52.64.2
    Stream #0.0: Video: flv, yuv420p, 640x360 [PAR 3:4 DAR 4:3], q=2-20, 2000 kb/s, 1k tbn, 29.97 tbc
    Stream #0.1: Audio: adpcm_swf, 44100 Hz, 2 channels, s16, 0 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
[mp3 @ 0x1bb971e0]Header missing
Error while decoding stream #0.1
frame=  107 fps=  0 q=2.0 size=     314kB time=4.32 bitrate= 595.4kbits/s    
frame=  168 fps=165 q=2.0 size=    1068kB time=6.83 bitrate=1281.5kbits/s    
frame=  218 fps=144 q=2.0 size=    1696kB time=8.96 bitrate=1550.4kbits/s    
frame=  269 fps=133 q=2.0 size=    2354kB time=11.10 bitrate=1737.6kbits/s    

*This goes on for some time*

frame=80768 fps=104 q=2.0 size=  897442kB time=3371.82 bitrate=2180.4kbits/s    
[mp3 @ 0x1bb971e0]incomplete frame
Error while decoding stream #0.1
frame=80772 fps=104 q=1.6 Lsize=  897503kB time=3372.11 bitrate=2180.3kbits/s
video:749486kB audio:145621kB global headers:0kB muxing overhead 0.267817%