Hi All
I am new to FFMPEG and videos module
I setup FFMPEG and Video module but it is showing following error

Please help!!
Thanks
Shubham

Error executing command for rendering preset HTML5 MP4, command #1:
/usr/bin/ffmpeg -strict experimental -y -i '/var/www/vhosts/mywebsite.com/httpdocs/sites/default/files/videos/original/video_test_5.mp4' -pass 1 -s 320x240 -b 500k -threads 0 -vcodec h264 -vfilter "pad=320:240:0:0:000000" -vpre slow_firstpass -an '/var/www/vhosts/mywebsite.com/httpdocs/sites/default/files/videos/converted/video_test_5.mp4' 2>&1
Output:
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libogg --enable-libgsm --enable-dc1394 --disable-debug --enable-shared --prefix=/usr
  libavutil version: 1d.49.3.0
  libavcodec version: 1d.51.38.0
  libavformat version: 1d.51.10.0
  built on Mar 31 2011 18:57:54, gcc: 4.2.4 (Ubuntu 4.2.4-1ubuntu3)

Seems stream 1 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 15.00 (15/1)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/var/www/vhosts/mywebsite.com/httpdocs/sites/default/files/videos/original/video_test_5.mp4':
  Duration: 00:00:16.2, start: 0.000000, bitrate: 719 kb/s
  Stream #0.0(eng): Audio: mp4a / 0x6134706D, 44100 Hz, stereo
  Stream #0.1(eng): Video: mpeg4, yuv420p, 320x240, 15.00 fps(r)
/usr/bin/ffmpeg: unrecognized option '-vfilter'

Comments

heshanlk’s picture

Shubham, yep it is bit tricky to work on FFMPEG installation, in this case you should go to presets and try adjusting frame rate values to a lower value.

imadalin’s picture

This is not a Video module issue.

You need to test with different versions of ffmpeg until you find the right one. For a recent project I've tested 7 different versions precompiled and I've ended up by compiling it myself one version that I've found suitable (recent, 2.x, is multithreated so on our dedicated box we've cut about 16 times the time needed for transcoding a video).

The only precompiled version we found to pass almost all of our tests was http://dl.dropboxusercontent.com/u/24633983/ffmpeg/index.html.

We chose to compile because of the contract we had for the project.

Recommendation: use multithreaded only if the server is dedicated to that project (while transcoding is done the server becomes almost unresponsive for those few seconds it takes, we had about 8-9minutes of videos per minute results on E5 CPU's). If the server must remain responsive, then choose latest 0.x.

shubham1310’s picture

Status: Active » Closed (fixed)