ffmpeg -vf in slackware
hi all my slackware friends,
I want to change my video resolution so that I could play it at my DVD player that only support smaller vid, so I tried with 'ffmpeg -vf' in slackware but apparently I got Unrecognized option '-vf' Code:
ffmpeg -i ToriAmos-SilentAllTheseYear.mp4 -vf scale 640:480 test.mp4 Do I need to recompile ? or is there other way I could rescale with ffmpeg using other option ? P.S: I know Mencoder could do this easily, but I tend to focus and concentrate on using ffmpeg to do the job. Thanks :) |
Use:
Code:
ffmpeg -i ToriAmos-SilentAllTheseYear.mp4 -vf scale=640:480 test.mp4 If you want try avidemux, it is a GUI frontend. |
Spooky... was only listening to that yesterday (Little Earthquakes CD)
You could also try the '-target dvd' option if that is what you're sizing it for. |
hi H_TexMex_H,
I tried, still can not, it gives the same error : Code:
ffmpeg -i ToriAmos-SilentAllTheseYear.mp4 -acodec copy -vcodec copy -vf scale=640:480 test.mp4 @Gazl:This song is so nice, glad that we have the same taste, ha. Any input is most welcome :) |
I would try what GazL suggested: the "-target dvd" option saves you a lot of hassle
Code:
ffmpeg -i ToriAmos-SilentAllTheseYear.mp4 -target dvd test.mpg |
You are using a too old version of ffmpeg I think.
Try the latest release for which I have a SlackBuild script (I see your version of ffmpeg was compiled with my SlackBuild too): http://taper.alienbase.nl/mirrors/pe...builds/ffmpeg/ It supports a whole bunch of filters now (run "ffmpeg -filters" to get a list). I could successfully scale a video using ffmpeg 0.8.2: Code:
ffmpeg -i originalmovie.avi -vf 'scale=320:-1' outputfile.mp4 |
Hi Bob,
Thanks for pointing that out, it works ! I didn't realize there is a new version from you, so I in fact was compiling from the older version from 13.1. Yeah, the latest version of ffmpeg is superb, I will be exciting trying a lot of nice features from them then. One thing I would like to know that, I did put in Code:
--enable-libvorbis \ And just curious that, for all the codec needed in this while compiling, can they being stored in some place in the disk so that it could be shared with xine, vlc, or mplayer as well ? As I found out we need to have collecting them separately for different player while compiling, so is there already some way to store them centralize at some library folder and shared together among all the players ? As it's really redundant needing to find the codec differently for different players and sometime one can play certain file format while the other can't play another. I just scared I'm using some outdated way to build my mplayer, xine..etc. So if anybody already have some way to download once all the codec and shared with other players on the fly, I will be grateful to know that, thanks. (Please forgive me if this question sound silly as I basically don't know much about how all the player works with the codec thingy) |
I never had issues with encoding to vorbis and xvid so I have no idea if that would require "--enable-libvorbis --enable-libxvid". Basically ffmpeg has its own internal vorbis and xvid implementation so it does not have to rely on these external libraries. But you may prove me wrong if you can give me an URL which shows that these additional options are needed (in which case I would add them to my script of course).
In the meantime, ffmpeg does show encoding support for vorbis as well as xvid (xvid is a variant of mpeg4): Code:
$ ffmpeg -codecs 2>/dev/null | egrep -i "(vorbis|mpeg4)" Code:
ffmpeg -vcodec mpeg4 -vtag xvid The ffmpeg package installs shared libraries into your computer which can be used by other programs. However, programs like xine, mplayer and others each have their own copy of an ffmpeg version that the developers thought was most compatible to their own code, so it will not always be easy to compile these media players against a system-ffmpeg (but it is possible!). Eric |
All times are GMT -5. The time now is 08:21 AM. |