anyone got any command line args they can share?
share your ffmpeg recipes
Collapse
X
-
I gave up on it and started using pandastream.com.
No idea how many hours I've spent tweaking encoding options. Could never seem to get it quite right..DivaTraffic - Traffic for Models -
worked like a charm for me recently when i really needed it
i used this to create DVD compatible videos from source videos where no encoding program could read the audio track:
ffmpeg -i test.m2ts -acodec mp2 -ab 224k -ar 48000 -vcodec mpeg2video -b:v 8000k -g 15 -r 25 -s 720x576 -sn test.mpg
spent nearly half of saturday to figure it out but the possibilities are endlessLast edited by MaDalton; 11-18-2011, 08:50 AM.Comment
-
Encoding for web + mobile, streaming + downloading: mp4 format, 640px width, 720kbps video, 96kbps audio.
This is nice because it gives excellent quality while also working fine on mobile devices, even first-generation iPhone and iPod Touch.
Using the x264 presets it is easy!
Two passes:
ffmpeg -i INPUT -an -pass 1 -s 640xH -vcodec libx264 -profile baseline -preset slow -vpre ipod640 -b 720k -aspect W:H -threads 0 -f ipod -y /dev/null
ffmpeg -i INPUT -acodec libfaac -ar 48000 -ac 2 -ab 96k -async 1 -pass 2 -s 640xH -vcodec libx264 -profile baseline -preset slow -vpre ipod640 -b 720k -aspect W:H -threads 0 -f ipod -metadata "title=TITLE" OUTPUT-1.mp4
You need to specify H in the -s parameter based on the size of the source video (e.g. H=360 for 16:9 aspect ratio). And of course you need to specify W:H for the -aspect parameter.
Finally, you need to adjust the moov atom for streaming:
qt-faststart OUTPUT-1.mp4 OUTPUT.mp4Comment
-
Is there any script for "use the same options as this other video"? Say you have a video that works well on a phone and you want to encode another one with the same codecs, package format, etc.For historical display only. This information is not current:
support@bettercgi.com ICQ 7208627
Strongbox - The next generation in site security
Throttlebox - The next generation in bandwidth control
Clonebox - Backup and disaster recovery on steroidsComment
-
wouldn't you just view the video and read it's properties.
besides you are reading the output not the input so if you want your video to have the same output chances are the input is different , and thus the method would also be different.hatisblack at yahoo.comComment
-
Comment
-
do you only encode 1 video for both mobile and web, or two?Encoding for web + mobile, streaming + downloading: mp4 format, 640px width, 720kbps video, 96kbps audio.
This is nice because it gives excellent quality while also working fine on mobile devices, even first-generation iPhone and iPod Touch.
Using the x264 presets it is easy!
Two passes:
ffmpeg -i INPUT -an -pass 1 -s 640xH -vcodec libx264 -profile baseline -preset slow -vpre ipod640 -b 720k -aspect W:H -threads 0 -f ipod -y /dev/null
ffmpeg -i INPUT -acodec libfaac -ar 48000 -ac 2 -ab 96k -async 1 -pass 2 -s 640xH -vcodec libx264 -profile baseline -preset slow -vpre ipod640 -b 720k -aspect W:H -threads 0 -f ipod -metadata "title=TITLE" OUTPUT-1.mp4
You need to specify H in the -s parameter based on the size of the source video (e.g. H=360 for 16:9 aspect ratio). And of course you need to specify W:H for the -aspect parameter.
Finally, you need to adjust the moov atom for streaming:
qt-faststart OUTPUT-1.mp4 OUTPUT.mp4Comment
-
For historical display only. This information is not current:
support@bettercgi.com ICQ 7208627
Strongbox - The next generation in site security
Throttlebox - The next generation in bandwidth control
Clonebox - Backup and disaster recovery on steroidsComment
-
I've like to look at a video YOU and made figure out what presets YOU used so I can use the ones. Obviously that applies only to parameters like codecs which can be determined from the output.
Example:
Assume you have an old phone or DVR which will record and play files in a specific format (size, codec, packaging, etc.). I want to convert another video to be playable on the device. I used the same codec and package type, but parameter is different so it can't play my file. I'd like to use one of it's own native files as a reference, saying "convert this foreign file to have the same format as this native file."For historical display only. This information is not current:
support@bettercgi.com ICQ 7208627
Strongbox - The next generation in site security
Throttlebox - The next generation in bandwidth control
Clonebox - Backup and disaster recovery on steroidsComment
-
Comment
-
-
Comment
-
Here you go. Takes all videos in current folder and makes flash
for i in *.wmv; do ffmpeg -i "$i" -f flv -ar 22050 -ab 56 -r 25 -b 650k -s 320x240 `basename $i .wmv`.flv; done
then you make screen prints out of all flv files
for i in *.flv; do ffmpeg -i "$i" -an -ss 00:00:03 -an -r 1 -vframes 10 -s 160x120 -y `basename $i .flv`-%d.jpg; done
You welcome.


Comment
-
wont the 320x240 be a bit small for desktop?Here you go. Takes all videos in current folder and makes flash
for i in *.wmv; do ffmpeg -i "$i" -f flv -ar 22050 -ab 56 -r 25 -b 650k -s 320x240 `basename $i .wmv`.flv; done
then you make screen prints out of all flv files
for i in *.flv; do ffmpeg -i "$i" -an -ss 00:00:03 -an -r 1 -vframes 10 -s 160x120 -y `basename $i .flv`-%d.jpg; done
You welcome.
Comment
-
Comment
-



Comment