According to the FFMPEG docs, the old cropping and padding syntax is no longer supported:

-croptop size -cropbottom size -cropleft size -cropright size

All the crop options have been removed. Use -vf crop=width:height:x:y instead.

-padtop size -padbottom size -padleft size -padright size -padcolor hex_color

All the pad options have been removed. Use -vf pad=width:height:x:y:color instead.

I'm coding a simple wrapper around FFMPEG and I would like to know if there is any straightfoward way to detect if I should use the new -vf syntax or not.

I've installed the latest ffmpeg package (version SVN-r0.5.1-4:0.5.1-1ubuntu1) via aptitude but it still doesn't seem to support the new syntax, so I've no idea what to look for... Any help is appreciated!

link|improve this question

feedback

closed as off topic by Ward, Steven Monday, Scott Pack, Mark Henderson Mar 30 '11 at 1:05

Questions on Server Fault are expected to generally relate to servers, networking, or desktop infrastructure, within the scope defined in the faq.

1 Answer

up vote 2 down vote accepted

This may be sufficient, but I don't know for sure. With ffmpeg 0.6.1, I get

$ ffmpeg -h 2>&1 | grep crop
-croptop size       set top crop band size (in pixels)
-cropbottom size    set bottom crop band size (in pixels)
-cropleft size      set left crop band size (in pixels)
-cropright size     set right crop band size (in pixels)

With ffmpeg git-8cf9a09, I get

$ ffmpeg -h 2>&1 | grep crop
-croptop size       Removed, use the crop filter instead
-cropbottom size    Removed, use the crop filter instead
-cropleft size      Removed, use the crop filter instead
-cropright size     Removed, use the crop filter instead

You may be best served to ask on the ffmpeg-user mailing list.

link|improve this answer
Thank you, that does the trick. – Alix Axel Mar 30 '11 at 3:54
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.