|
2012-12-22
, 17:48
|
Posts: 1,048 |
Thanked: 1,127 times |
Joined on Jan 2010
@ Amsterdam
|
#2
|
|
2012-12-22
, 20:18
|
|
Posts: 1,348 |
Thanked: 1,863 times |
Joined on Jan 2009
@ fr/35/rennes
|
#3
|
The Following User Says Thank You to www.rzr.online.fr For This Useful Post: | ||
|
2012-12-22
, 23:36
|
Posts: 230 |
Thanked: 302 times |
Joined on Oct 2009
@ Helsinki, Suomi (Finland)
|
#4
|
why not suggest a patent free output format ? like ogv theora or webm ? but will those codec be hardware accelerated ?
--
http://rzr.online.fr/q/codec
|
2012-12-23
, 06:44
|
Moderator |
Posts: 6,215 |
Thanked: 6,400 times |
Joined on Nov 2011
|
#5
|
~ $ X=input.mp4 ; movgrab -o "$X" -f mp4:1280x720 "http://www.youtube.com/watch?v=xxxxxxx" ; ffmpeg -i $X -s 1280x720 -r 25 -g 25 -vcodec libx264 -vb 1024k -vprofile baseline -acodec ac3 -ab 192k -ac 6 output.mp4 ; rm -rf $X
|
2012-12-25
, 18:41
|
Posts: 230 |
Thanked: 302 times |
Joined on Oct 2009
@ Helsinki, Suomi (Finland)
|
#6
|
The Following User Says Thank You to ladoga For This Useful Post: | ||
|
2012-12-26
, 03:58
|
Moderator |
Posts: 6,215 |
Thanked: 6,400 times |
Joined on Nov 2011
|
#7
|
Seems like burning srt subtitles into movies using ffmpeg is possible: http://ffmpeg.org/trac/ffmpeg/wiki/H...%20the%20video
Though with v.1.0.1 trying "-vf subtitles=whatever.srt" spits out "No such filter: 'subtitles'" in bold red
ffmpeg -i input.avi -vf subtitles=/path/to/.srt/file output.avi
The Following User Says Thank You to thedead1440 For This Useful Post: | ||
|
2012-12-26
, 10:04
|
Posts: 230 |
Thanked: 302 times |
Joined on Oct 2009
@ Helsinki, Suomi (Finland)
|
#8
|
or GNOME Mplayer
The Following User Says Thank You to ladoga For This Useful Post: | ||
|
2013-01-01
, 15:05
|
Posts: 231 |
Thanked: 143 times |
Joined on Feb 2012
@ Tallinn, Estonia
|
#9
|
|
2013-01-01
, 16:41
|
Posts: 78 |
Thanked: 28 times |
Joined on Apr 2012
@ Curitiba-PR . Brasil
|
#10
|
Seems like burning srt subtitles into movies using ffmpeg is possible: http://ffmpeg.org/trac/ffmpeg/wiki/H...%20the%20video
Though with v.1.0.1 trying "-vf subtitles=whatever.srt" spits out "No such filter: 'subtitles'" in bold red
Encoding/Transcoding
For x264 baseline profile and 6 channel ac3 audio (ca. 700MB/h):
One method to rip a DVD is to concatenate VOB files and pipe the output to ffmpeg:
If you want to remove black borders when ripping a DVD you can play a VOB file using "mplayer -vf cropdetect" and simply copy & paste the crop filter string from its output (for example -vf crop=704:432:10:72) into your ffmpeg command.
Sometimes DVDs have several audio tracks for different languages and by default ffmpeg rips only the first one. If you need to select another audio track you can do that by using -map flags. For more information see: http://howto-pages.org/ffmpeg/#map
Legend
Flags in use (as of ffmpeg v.1.0.1):
-i = input file *
-s = video resolution
-r = frame rate **
-g = I-frame interval (frames) ***
-vcodec = video codec
-vb = video bit rate
-vprofile = video profile ****
-acodec = audio codec
-ab = audio bit rate
-ac = audio channels
* Most video formats/containers will work as input.
** Practical framerate limits for smooth playback are 30fps@854x480 and 25fps@1280x720. [thanks thedead1440]
*** More frequent I-frames improve error correction and seek performance at cost of filesize. (The Nokia Developer Wiki recommends one I-frame/s.)
**** -vpre in older versions, you can also try -profile
Any improvements/corrections/alternative methods are more than welcome.
Last edited by ladoga; 2012-12-25 at 21:11.