Friday, June 24, 2011

convert MKV to DVD

I wanted to convert a mkv file to dvd and stumbled up on 2 nice methods on Linux.

with ffmpeg:
$ ffmpeg -i my_video.avi -target dvd -aspect 16:9 -sameq my_dvd_video.mpg

with Mencoder:
$ mencoder -channels 6 -ovc lavc -oac lavc -of mpeg -mpegopts format=dvd:tsaf -srate 48000 -lavcopts vcodec=mpeg2video:vpass=1:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=4000:keyint=12:trell:mbd=2:precmp=2:subcmp=2:cmp=2:dia=-10:predia=-10:cbp:mv0:vqmin=1:lmin=1:dc=10:vstrict=0:threads=2:aspect=16/9:acodec=ac3:abitrate=448 -ofps 25 -speed 25025/24000  -vf scale=720:576 -o


Create the DVD structure:
$ mkdir dvd
$ dvdauthor --title -f my_dvd_video.mpg -o dvd
$ dvdauthor -T -o dvd