zaterdag 27 september 2014

ffmpeg video conversion & audio converion


usage:

ffmpeg -i  input.xxx  output.xxx





How to make a movie out of a bunch of jpg or png or tiff.


ffmpeg -y  -r 5 -i "image_%04d_today.jpg" output.m4v
ffmpeg -y  -i "frame/frame-%06d.tiff"  -c:a AAC   "test7.mp4"

//used for processing.org programs on mac os x in QuickTime Player
ffmpeg -y  -i "frame/frame-%06d.tiff"  -c:v libx264 -c:a aac -s 800x800  -vf scale=800:-2,format=yuv420p "test8.mp4"


-r 5  5 frames per second (normally 25)
-s  special frame format

How to make a calculation  .
1 day = 86400 sec

You would like to make a film of 10 sec in one day.
For 10 secondes you need 10 x 25 frames. So that means 250 jpg's.
86400 / 250 is  345 


So once in the 345 sec a picture has to be taken.



Install ffmpeg


download from : http://ffmpegmac.net
or

brew install ffmpeg --with-faac --with-lame --with-xvid --with-theora --with-libvorbis --with-libvpx --with-rtmpdump --with-ffplay --with-speex --with-opus --enable-openssl --with-openssl

copy to /usr/local/bin


video conversion

ffmpeg -i input_file.mp4 -acodec copy -vcodec copy -f mov output_file.mov
ffmpeg -i input.vob -c:v copy -c:a copy output.mpg

ffmpeg -i input.vob -c:v libx264 -c:a aac -strict experimental output.mp4

x264 or XviD to an MKV or MP4

VOB  to mp4
ffmpeg -i concat:VTS_01_0.VOB\|VTS_01_1.VOB\|VTS_01_2.VOB outfile.mp4

ffmpeg -i SOURCE.vob -vn -ar 44100 -ac 2 -ab 192 -f mp3 export.mp3
ffmpeg -i input.vob  -codec:a libmp3lame -b:a 320k -ss 00:03:50 -t 101 output5.mp3


"ffmpeg -i -vol -acodec " ffmpeg -i input.vob vn -ar 44100 -ac 2 -ab 192 -f mp3 -ss 00:03:50 -t 101 output6.mp3

ffmpeg -i  -vol  -acodec   
ffmpeg -i -vol -acodec





ffmpeg google on "ffmpeg download" 

download and install ffmpeg 

voeg samen wmv to avi google on 

ffmpeg -i "films\Motion001.wmv" -vcodec copy test6.avi


Geen opmerkingen:

Een reactie posten