Hi! I just installed ffmpeg but it seems that -vpre is deprecated? Which version of ffmpeg do I need to have this module working?

Comments

Assigned:Unassigned» Jorrit
Status:Active» Postponed (maintainer needs more info)

Are you sure that you are using version 6.x-5.0? In that case, you can customize the FFmpeg command line in your preset settings yourself and replace vpre with the successor of that option.

Personally, I use the following command lines for MP4/H.264 for FFmpeg 0.10:

!cmd_path -strict experimental -y -i !videofile -pass 1 -s !widthx!height -b 500k -threads 0 -vcodec libx264 -preset medium -an !convertfile
!cmd_path -strict experimental -y -i !videofile -pass 2 -s !widthx!height -b 500k -threads 0 -vcodec libx264 -preset medium -strict experimental -acodec aac -ab 128k !convertfile

First of all, thank you so much for your reply!! Yes, version 6.x-5.0.
I know that this is not the right place to ask but I spent all day trying to do it right :( Any help would be really appreaciated.

I run debian squeeze and installed ffmpeg with apt-get install ffmpeg. Trying to get this working I first installed ffmpeg 0.7 and then downgraded to 0.5, but no luck. Will your commands work with 0.9?

Now the question is, is it possible to install 0.10 with apt-get or do I have to compile it on the server? Do I need to install anything else? Any suggestions?

Could you post the error messages you receive in your Drupal log when you try to transcode a file? If you want, I can take a look at the settings on your site. I need administrator access to your site for that. If you're willing to give me that, please send me a message via my profile page.

Wow! Amazing, thank you so much for this! I have managed to install the latest ffmpeg and with your commands in #1 it works perfectly!

One more question about the other presets:

Error executing command for rendering preset HTML5 WebM, command #1:
/usr/local/bin/ffmpeg -strict experimental -y -i '/var/www/sites/default/files/original/clock_avi9_0.avi' -pass 1 -s 180x120 -b 500k -threads 0 -vcodec libvpx -keyint_min 0 -g 250 -skip_threshold 0 -qmin 1 -qmax 51 -f webm -vf "pad:180:120:0:0:000000" -an -y NUL 2>&1
Output:
ffmpeg version git-2012-05-09-2c83265 Copyright (c) 2000-2012 the FFmpeg developers
  built on May  9 2012 12:04:00 with gcc 4.4.5
  configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-version3
  libavutil      51. 50.100 / 51. 50.100
  libavcodec     54. 21.100 / 54. 21.100
  libavformat    54.  4.100 / 54.  4.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 72.105 /  2. 72.105
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 11.100 /  0. 11.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, avi, from '/var/www/sites/default/files/original/clock_avi9_0.avi':
  Metadata:
    encoder         : Lavf52.31.0
  Duration: 00:00:12.00, start: 0.000000, bitrate: 427 kb/s
    Stream #0:0: Video: mpeg4 (Simple Profile) (FMP4 / 0x34504D46), yuv420p, 480x320 [SAR 1:1 DAR 3:2], 20 tbr, 20 tbn, 20 tbc
    Stream #0:1: Audio: mp2 (P[0][0][0] / 0x0050), 44100 Hz, stereo, s16, 64 kb/s
Please use -b:a or -b:v, -b is ambiguous
[buffer @ 0x2b4bf20] w:480 h:320 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:flags=2
No such filter: 'pad:180:120:0:0:000000'
Error opening filters!

If it is not too much to ask, could you please help me with the commands once more??

What is the webm command line that you entered in the preset configuration?

I used the default one that comes with the module (preset HTML5 WebM (extension: webm)):

Command 1:
!cmd_path -strict experimental -y -i !videofile -pass 1 -s !widthx!height -b 500k -threads 0 -vcodec libvpx -keyint_min 0 -g 250 -skip_threshold 0 -qmin 1 -qmax 51 -f webm -vf "pad:!paddingwidth:!paddingheight:!paddingleft:!paddingtop:000000" -an -y NUL

Command 2:
!cmd_path -strict experimental -y -i !videofile -pass 2 -s !widthx!height -b 500k -threads 0 -vcodec libvpx -keyint_min 0 -g 250 -skip_threshold 0 -qmin 1 -qmax 51 -f webm -vf "pad:!paddingwidth:!paddingheight:!paddingleft:!paddingtop:000000" -acodec libvorbis -ac 2 -y !convertfile

Same for iPhone MOV (extension: mov):
Command 1:
!cmd_path -strict experimental -y -i !videofile -s !widthx!height -f mp4 -vcodec mpeg4 -maxrate 1000k -b 700k -qmin 3 -qmax 5 -bufsize 4096k -g 300 -acodec aac -ab 192k -vf "pad:!paddingwidth:!paddingheight:!paddingleft:!paddingtop:000000" !convertfile

Please try the following:

Command 1:
!cmd_path -strict experimental -y -i !videofile -pass 1 -s !widthx!height -b 500k -threads 0 -vcodec libvpx -keyint_min 0 -g 250 -skip_threshold 0 -qmin 1 -qmax 51 -f webm -vf "pad=!paddingwidth:!paddingheight:!paddingleft:!paddingtop:000000" -an -y NUL

Command 2:
!cmd_path -strict experimental -y -i !videofile -pass 2 -s !widthx!height -b 500k -threads 0 -vcodec libvpx -keyint_min 0 -g 250 -skip_threshold 0 -qmin 1 -qmax 51 -f webm -vf "pad=!paddingwidth:!paddingheight:!paddingleft:!paddingtop:000000" -acodec libvorbis -ac 2 -y !convertfile

Same for iPhone MOV (extension: mov):
Command 1:
!cmd_path -strict experimental -y -i !videofile -s !widthx!height -f mp4 -vcodec mpeg4 -maxrate 1000k -b 700k -qmin 3 -qmax 5 -bufsize 4096k -g 300 -acodec aac -ab 192k -vf "pad=!paddingwidth:!paddingheight:!paddingleft:!paddingtop:000000" !convertfile

The fix is to replace pad: with pad=.

Magic!!! I can't thank you enough!! :D

Status:Postponed (maintainer needs more info)» Closed (fixed)