Video does not show up after uploading

edited September 2012 in Bugs and Errors
When I try to upload a Video it works perfect but after some waiting (1 hour) it does not show up anywhere.

Here is the convertor.log.



### Converter Called...
Values passed to encoder:
Array
(
[0] => /var/www_sub/video/cc-core/system/encode.php
[1] => --video=1
)

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

Preparing for: FLV Encoding...
FLV Encoding Command: /usr/bin/ffmpeg -i /var/www_sub/video/cc-content/uploads/temp/vCBKdwRiI27ciKpY8Nn9.mp4 -s 640x480 -vb 800k -ac 2 -ab 96k -ar 44100 -f flv /var/www_sub/video/cc-content/uploads/flv/vCBKdwRiI27ciKpY8Nn9.flv >> /var/www_sub/video/cc-core/logs/vCBKdwRiI27ciKpY8Nn9.log 2>&1
Verifying FLV video was created...

Preparing for: Mobile Encoding...
Mobile Encoding Command: /usr/bin/ffmpeg -i /var/www_sub/video/cc-content/uploads/temp/vCBKdwRiI27ciKpY8Nn9.mp4 -s 480x360 -vb 600k -ac 2 -ab 96k -ar 44100 -f mp4 /var/www_sub/video/cc-content/uploads/mobile/vCBKdwRiI27ciKpY8Nn9_temp.mp4 >> /var/www_sub/video/cc-core/logs/vCBKdwRiI27ciKpY8Nn9.log 2>&1
Verifying temp Mobile file was created...
The temp Mobile file was not created. The id of the video is: 1


### Converter Called...
Values passed to encoder:
Array
(
[0] => /var/www_sub/video/cc-core/system/encode.php
[1] => --video=2
)

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

Preparing for: FLV Encoding...
FLV Encoding Command: /usr/bin/ffmpeg -i /var/www_sub/video/cc-content/uploads/temp/acHMXJjrMKoBGhXJmzhf.mp4 -s 640x480 -vb 800k -ac 2 -ab 96k -ar 44100 -f flv /var/www_sub/video/cc-content/uploads/flv/acHMXJjrMKoBGhXJmzhf.flv >> /var/www_sub/video/cc-core/logs/acHMXJjrMKoBGhXJmzhf.log 2>&1
Verifying FLV video was created...

Preparing for: Mobile Encoding...
Mobile Encoding Command: /usr/bin/ffmpeg -i /var/www_sub/video/cc-content/uploads/temp/acHMXJjrMKoBGhXJmzhf.mp4 -s 480x360 -vb 600k -ac 2 -ab 96k -ar 44100 -f mp4 /var/www_sub/video/cc-content/uploads/mobile/acHMXJjrMKoBGhXJmzhf_temp.mp4 >> /var/www_sub/video/cc-core/logs/acHMXJjrMKoBGhXJmzhf.log 2>&1
Verifying temp Mobile file was created...
The temp Mobile file was not created. The id of the video is: 2

Ahava

Comments

  • You need to turn 'Log Encoding' on in your admin panel and review all the generated logs for any errors and clues as to why your videos are not converting. FFMPEG will usually tell you exactly why.
  • Here is the full Log file:





    ==================================================================
    FLV ENCODING
    ==================================================================

    FLV Encoding Command: /usr/bin/ffmpeg -i /var/www_sub/video/cc-content/uploads/temp/acHMXJjrMKoBGhXJmzhf.mp4 -s 640x480 -vb 800k -ac 2 -ab 96k -ar 44100 -f flv /var/www_sub/video/cc-content/uploads/flv/acHMXJjrMKoBGhXJmzhf.flv >> /var/www_sub/video/cc-core/logs/acHMXJjrMKoBGhXJmzhf.log 2>&1FLV Encoding Output:


    FFmpeg version SVN-r0.5.9-4:0.5.9-1, Copyright (c) 2000-2009 Fabrice Bellard, et al.
    configuration: --extra-version=4:0.5.9-1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libdirac --enable-libgsm --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libfaad --enable-libdc1394 --enable-shared --disable-static
    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
    libavfilter 0. 4. 0 / 0. 4. 0
    libswscale 0. 7. 1 / 0. 7. 1
    libpostproc 51. 2. 0 / 51. 2. 0
    built on Jun 10 2012 08:33:06, gcc: 4.4.5

    Seems stream 1 codec frame rate differs from container frame rate: 59.94 (60000/1001) -> 29.97 (30000/1001)
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/var/www_sub/video/cc-content/uploads/temp/acHMXJjrMKoBGhXJmzhf.mp4':
    Duration: 00:00:06.23, start: 0.000000, bitrate: 12167 kb/s
    Stream #0.0(eng): Audio: aac, 48000 Hz, stereo, s16
    Stream #0.1(eng): Video: h264, yuv420p, 1920x1080, 29.97 tbr, 29.97 tbn, 59.94 tbc
    Output #0, flv, to '/var/www_sub/video/cc-content/uploads/flv/acHMXJjrMKoBGhXJmzhf.flv':
    Stream #0.0(eng): Video: flv, yuv420p, 640x480, q=2-31, 800 kb/s, 90k tbn, 29.97 tbc
    Stream #0.1(eng): Audio: adpcm_swf, 44100 Hz, stereo, s16, 96 kb/s
    Stream mapping:
    Stream #0.1 -> #0.0
    Stream #0.0 -> #0.1
    Press [q] to stop encoding
    frame= 15 fps= 0 q=19.0 size= 212kB time=0.28 bitrate=6222.7kbits/s
    frame= 16 fps= 5 q=20.0 size= 212kB time=0.28 bitrate=6222.7kbits/s
    frame= 32 fps= 9 q=12.5 size= 333kB time=0.97 bitrate=2797.8kbits/s
    frame= 47 fps= 12 q=20.6 size= 390kB time=1.30 bitrate=2455.3kbits/s
    frame= 62 fps= 14 q=25.1 size= 476kB time=1.95 bitrate=2000.7kbits/s
    frame= 77 fps= 15 q=31.0 size= 537kB time=2.32 bitrate=1892.9kbits/s
    frame= 92 fps= 17 q=31.0 size= 654kB time=2.97 bitrate=1801.6kbits/s
    frame= 99 fps= 14 q=31.0 size= 665kB time=3.02 bitrate=1803.8kbits/s
    frame= 114 fps= 15 q=31.0 size= 800kB time=3.67 bitrate=1786.0kbits/s
    frame= 130 fps= 16 q=31.0 size= 926kB time=4.32 bitrate=1755.8kbits/s
    frame= 148 fps= 17 q=31.0 size= 970kB time=4.64 bitrate=1710.4kbits/s
    frame= 167 fps= 18 q=31.0 size= 1073kB time=5.29 bitrate=1660.3kbits/s
    frame= 184 fps= 19 q=31.0 size= 1185kB time=5.99 bitrate=1620.8kbits/s
    frame= 187 fps= 19 q=31.0 Lsize= 1224kB time=6.18 bitrate=1623.2kbits/s
    video:952kB audio:267kB global headers:0kB muxing overhead 0.434014%




    ==================================================================
    MOBILE ENCODING
    ==================================================================

    Mobile Encoding Command: /usr/bin/ffmpeg -i /var/www_sub/video/cc-content/uploads/temp/acHMXJjrMKoBGhXJmzhf.mp4 -s 480x360 -vb 600k -ac 2 -ab 96k -ar 44100 -f mp4 /var/www_sub/video/cc-content/uploads/mobile/acHMXJjrMKoBGhXJmzhf_temp.mp4 >> /var/www_sub/video/cc-core/logs/acHMXJjrMKoBGhXJmzhf.log 2>&1
    Mobile Encoding Output:


    FFmpeg version SVN-r0.5.9-4:0.5.9-1, Copyright (c) 2000-2009 Fabrice Bellard, et al.
    configuration: --extra-version=4:0.5.9-1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libdirac --enable-libgsm --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libfaad --enable-libdc1394 --enable-shared --disable-static
    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
    libavfilter 0. 4. 0 / 0. 4. 0
    libswscale 0. 7. 1 / 0. 7. 1
    libpostproc 51. 2. 0 / 51. 2. 0
    built on Jun 10 2012 08:33:06, gcc: 4.4.5

    Seems stream 1 codec frame rate differs from container frame rate: 59.94 (60000/1001) -> 29.97 (30000/1001)
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/var/www_sub/video/cc-content/uploads/temp/acHMXJjrMKoBGhXJmzhf.mp4':
    Duration: 00:00:06.23, start: 0.000000, bitrate: 12167 kb/s
    Stream #0.0(eng): Audio: aac, 48000 Hz, stereo, s16
    Stream #0.1(eng): Video: h264, yuv420p, 1920x1080, 29.97 tbr, 29.97 tbn, 59.94 tbc
    Output #0, mp4, to '/var/www_sub/video/cc-content/uploads/mobile/acHMXJjrMKoBGhXJmzhf_temp.mp4':
    Stream #0.0(eng): Video: mpeg4, yuv420p, 480x360, q=2-31, 600 kb/s, 90k tbn, 29.97 tbc
    Stream #0.1(eng): Audio: 0x0000, 44100 Hz, stereo, s16, 96 kb/s
    Stream mapping:
    Stream #0.1 -> #0.0
    Stream #0.0 -> #0.1
    Unsupported codec for output stream #0.1
  • Your problem is in plain sight, look at the last line of what you provided:

    "Unsupported codec for output stream #0.1"

    It appears your host doesn't support the 'mpeg4' codec for mp4's. You need to work with your host to get this fixed, OR change the the mobile encoding command to use another codec, i.e. x264.

    A quick Google search for x264 encoding with FFMPEG will provide you with the FFMPEG command necessary. When you have it, simply drop it in your 'Mobile Encoding' setting of your admin panel.
This discussion has been closed.