![]() |
share your ffmpeg recipes
anyone got any command line args they can share?
:thumbsup |
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.. |
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 endless |
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.mp4 |
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.
|
Quote:
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. |
Fuck, all I know how to do is grab a few frames from a video.
ffmpeg -i $input -an -ss 00:00:01 -r 1 -vframes 1 -f mjpeg -y $output |
Quote:
|
Quote:
|
Quote:
|
Quote:
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." |
Quote:
|
Quote:
|
ffmpeg can blow me.
Quote:
|
'!cmd_path -y -i !videofile -f flv -crf 24 -vcodec libx264 -vpre slow -threads 0 -acodec libfaac -ar 44100 -ab 192 -s !widthx!height -qscale 1 !convertfile'
|
if you have SoftLayer as your dedicated hoster they have a set of server banks and api's that you can use to process all you movies for free.
|
Quote:
Most phones are on a 16:9 ratio?! |
Quote:
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. :2 cents: |
Quote:
|
Quote:
|
Quote:
|
Best thread of the month as far as I am concerned.
|
I can make ffmpeg suck cocks
|
All times are GMT -7. The time now is 11:39 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123