Error During Video Encoding

edited April 2012 in Bugs and Errors
Hello damian

I have a serious problem ..

videos suddenly started giving Error During Video Encoding
The video thumbnail is invalid. The id of the video is: 400

please help me,
after 255 videos sent to cumulusclip

suddenly got this error

Comments



  • ### Converter Called...
    Values passed to encoder:
    Array
    (
    [0] => /home/narutofu/public_html/megafusion.net/cc-core/system/encode.php
    [1] => --video=400
    )

    Validating requested video...
    Establishing variables...
    Verifying raw video exists...
    Verifying raw video was valid size...

    Preparing for: FLV Encoding...
    FLV Encoding Command: /usr/local/bin/ffmpeg -i /home/narutofu/public_html/megafusion.net/cc-content/uploads/temp/R6LmxvAzrg37nnzZuuxE.mp4 -s 640x398 -vb 800k -ac 2 -ab 64k -ar 22050 -f flv /home/narutofu/public_html/megafusion.net/cc-content/uploads/flv/R6LmxvAzrg37nnzZuuxE.flv >> /home/narutofu/public_html/megafusion.net/cc-core/logs/R6LmxvAzrg37nnzZuuxE.log 2>&1
    Verifying FLV video was created...

    Retrieving video duration...
    Duration command results:
    Array
    (
    [0] => Duration: 00:19:11.35, start: 0.000000, bitrate: 569 kb/s
    )

    Duration in Seconds: 1151
    Thumb Position: 576

    Preparing to create video thumbnail...
    Thumbnail Creation Command: /usr/local/bin/ffmpeg -i /home/narutofu/public_html/megafusion.net/cc-content/uploads/flv/R6LmxvAzrg37nnzZuuxE.flv -ss 576 -s 640x398 -t 1 -r 1 -f mjpeg /home/narutofu/public_html/megafusion.net/cc-content/uploads/thumbs/R6LmxvAzrg37nnzZuuxE.jpg >> /home/narutofu/public_html/megafusion.net/cc-core/logs/R6LmxvAzrg37nnzZuuxE.log 2>&1
    Verifying valid thumbnail was created...
    The video thumbnail is invalid. The id of the video is: 400
  • ======================================================
    FLV ENCODING


    FLV Encoding Command: /usr/local/bin/ffmpeg -i /home/narutofu/public_html/megafusion.net/cc-content/uploads/temp/R6LmxvAzrg37nnzZuuxE.mp4 -s 640x398 -vb 800k -ac 2 -ab 64k -ar 22050 -f flv /home/narutofu/public_html/megafusion.net/cc-content/uploads/flv/R6LmxvAzrg37nnzZuuxE.flv >> /home/narutofu/public_html/megafusion.net/cc-core/logs/R6LmxvAzrg37nnzZuuxE.log 2>&1FLV Encoding Output:


    /usr/local/bin/ffmpeg: line 4: /var/log/ffmpeg.log: Permission denied
    FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers
    built on Sep 24 2011 05:29:48 with gcc 4.1.2 20080704 (Red Hat 4.1.2-51)
    configuration: --prefix=/usr/local/src/ffmpeg --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --enable-avfilter --enable-libdirac --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-gpl --enable-nonfree --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab --enable-libxvid --disable-mmx --enable-libvorbis --enable-libtheora --enable-avcore --enable-avdevice --enable-avcodec --enable-avformat
    libavutil 50.36. 0 / 50.36. 0
    libavcore 0.16. 1 / 0.16. 1
    libavcodec 52.108. 0 / 52.108. 0
    libavformat 52.93. 0 / 52.93. 0
    libavdevice 52. 2. 3 / 52. 2. 3
    libavfilter 1.74. 0 / 1.74. 0
    libswscale 0.12. 0 / 0.12. 0
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/narutofu/public_html/megafusion.net/cc-content/uploads/temp/R6LmxvAzrg37nnzZuuxE.mp4':
    Metadata:
    major_brand : isom
    minor_version : 512
    compatible_brands: isomiso2avc1mp41
    creation_time : 1970-01-01 00:00:00
    encoder : Lavf52.94.0
    Duration: 00:19:11.35, start: 0.000000, bitrate: 569 kb/s
    Stream #0.0(und): Video: h264, yuv420p, 700x404 [PAR 1:1 DAR 175:101], 501 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc
    Metadata:
    creation_time : 1970-01-01 00:00:00
    Stream #0.1(und): Audio: aac, 22050 Hz, stereo, s16, 63 kb/s
    Metadata:
    creation_time : 1970-01-01 00:00:00
    [buffer @ 0x1f32ac50] w:700 h:404 pixfmt:yuv420p
    [scale @ 0x1f32afb0] w:700 h:404 fmt:yuv420p -> w:640 h:398 fmt:yuv420p flags:0x4
    Output #0, flv, to '/home/narutofu/public_html/megafusion.net/cc-content/uploads/flv/R6LmxvAzrg37nnzZuuxE.flv':
    Metadata:
    major_brand : isom
    minor_version : 512
    compatible_brands: isomiso2avc1mp41
    creation_time : 1970-01-01 00:00:00
    encoder : Lavf52.93.0
    Stream #0.0(und): Video: flv, yuv420p, 640x398 [PAR 139:129 DAR 44480:25671], q=2-31, 800 kb/s, 1k tbn, 29.97 tbc
    Metadata:
    creation_time : 1970-01-01 00:00:00
    Stream #0.1(und): Audio: libmp3lame, 22050 Hz, stereo, s16, 64 kb/s
    Metadata:
    creation_time : 1970-01-01 00:00:00
    Stream mapping:
    Stream #0.0 -> #0.0
    Stream #0.1 -> #0.1
    Press [q] to stop encoding
    frame= 12 fps= 0 q=2.0 size= 16kB time=0.16 bitrate= 810.3kbits/s
    frame= 26 fps= 26 q=7.9 size= 137kB time=0.60 bitrate=1867.8kbits/s

    frame= 2389 fps= 33 q=4.1 size= 8877kB time=79.52 bitrate= 914.5kbits/s
    frame= 2410 fps= 33 q=5.0 size= 8928kB time=80.20 bitrate= 912.0kbits/s
    frame= 2430 fps= 33 q=6.4 size= 9019kB time=80.85 bitrate= 913.9kbits/s




    THUMB CREATION
    ==================================================================

    Thumb Creation Command: /usr/local/bin/ffmpeg -i /home/narutofu/public_html/megafusion.net/cc-content/uploads/flv/R6LmxvAzrg37nnzZuuxE.flv -ss 576 -s 640x398 -t 1 -r 1 -f mjpeg /home/narutofu/public_html/megafusion.net/cc-content/uploads/thumbs/R6LmxvAzrg37nnzZuuxE.jpg >> /home/narutofu/public_html/megafusion.net/cc-core/logs/R6LmxvAzrg37nnzZuuxE.log 2>&1

    Thumb Creation Output:


    /usr/local/bin/ffmpeg: line 4: /var/log/ffmpeg.log: Permission denied
    FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers
    built on Sep 24 2011 05:29:48 with gcc 4.1.2 20080704 (Red Hat 4.1.2-51)
    configuration: --prefix=/usr/local/src/ffmpeg --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --enable-avfilter --enable-libdirac --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-gpl --enable-nonfree --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab --enable-libxvid --disable-mmx --enable-libvorbis --enable-libtheora --enable-avcore --enable-avdevice --enable-avcodec --enable-avformat
    libavutil 50.36. 0 / 50.36. 0
    libavcore 0.16. 1 / 0.16. 1
    libavcodec 52.108. 0 / 52.108. 0
    libavformat 52.93. 0 / 52.93. 0
    libavdevice 52. 2. 3 / 52. 2. 3
    libavfilter 1.74. 0 / 1.74. 0
    libswscale 0.12. 0 / 0.12. 0
    [flv @ 0x1fed19a0] 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/narutofu/public_html/megafusion.net/cc-content/uploads/flv/R6LmxvAzrg37nnzZuuxE.flv':
    Metadata:
    duration : 0
    width : 640
    height : 398
    videodatarate : 781
    framerate : 30
    videocodecid : 2
    audiodatarate : 62
    audiosamplerate : 22050
    audiosamplesize : 16
    stereo : true
    audiocodecid : 2
    major_brand : isom
    minor_version : 512
    compatible_brands: isomiso2avc1mp41
    creation_time : 1970-01-01 00:00:00
    encoder : Lavf52.93.0
    filesize : 0
    Duration: 00:01:21.29, start: 0.000000, bitrate: 864 kb/s
    Stream #0.0: Video: flv, yuv420p, 640x398, 800 kb/s, 29.92 tbr, 1k tbn, 1k tbc
    Stream #0.1: Audio: mp3, 22050 Hz, 2 channels, s16, 64 kb/s
    [buffer @ 0x1fed8b20] w:640 h:398 pixfmt:yuv420p
    [ffsink @ 0x1fed8dc0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out'
    [scale @ 0x1fed90c0] w:640 h:398 fmt:yuv420p -> w:640 h:398 fmt:yuvj420p flags:0x4
    Output #0, mjpeg, to '/home/narutofu/public_html/megafusion.net/cc-content/uploads/thumbs/R6LmxvAzrg37nnzZuuxE.jpg':
    Metadata:
    duration : 0
    width : 640
    height : 398
    videodatarate : 781
    framerate : 30
    videocodecid : 2
    audiodatarate : 62
    audiosamplerate : 22050
    audiosamplesize : 16
    stereo : true
    audiocodecid : 2
    major_brand : isom
    minor_version : 512
    compatible_brands: isomiso2avc1mp41
    creation_time : 1970-01-01 00:00:00
    filesize : 0
    encoder : Lavf52.93.0
    Stream #0.0: Video: mjpeg, yuvj420p, 640x398, q=2-31, 200 kb/s, 90k tbn, 1 tbc
    Stream mapping:
    Stream #0.0 -> #0.0
    Press [q] to stop encoding
    [buffer @ 0x1fed8b20] Buffering several frames is not supported. Please consume all available frames before adding a new one.
    frame= 0 fps= 0 q=0.0 size= 0kB time=10000000000.00 bitrate= 0.0kbits/s
    frame= 0 fps= 0 q=0.0 size= 0kB time=10000000000.00 bitrate= 0.0kbits/s

    Last message repeated 2434 times
    frame= 0 fps= 0 q=0.0 Lsize= 0kB time=10000000000.00 bitrate= 0.0kbits/s
    video:0kB audio:0kB global headers:0kB muxing overhead nan%
  • Something doesn't seem right. I don't see the mobile encoding in your logs. Have you modified any files?

    Do all videos end up breaking like this?
  • Damian

    I took the option to encode mobile,

    takes too long to encode flv and mobile
    I am interested only in flv.

    was working perfectly, the script had cumulusclip encoding 255 videos

    after 255 video encoding script presented this error.

    any video sent at the time of encoding of Video Encoding Error During The video thumbnail is invalid. The id of the video is: 395


    shortly thereafter, I took the test with the full encode.php flv and mobile

    also had the same problem.
    The final Mobile file was not created. The id of the video is: 396
This discussion has been closed.