Skip to content

mencoder HD to DVD

How I currently use mencoder to encode my High Def capture TV show to DVD(mpeg2)

The general format is
mencoder -profile xx,hq tv.mpg -edl tv.edl -hr-edl-seek -o tv.vob

so far I’ve converted two types of captured video

(update 9/29/2008)
for converting film based 24fps telecined material
720p (Fox-Fringe)
xx=720ptst,ac3_6

1080i (CBS-NCIS)
xx=1080itst


720p (Fox-Bones)
xx=720p2dvd,ac3_6

1080i (NBC-Earl, Chuck, CBS-2.5Men)
xx=1080i2dvd

Note: I must reencode audio(ac3_6) for 720p content for good sync(yuck)

The Process

  1. Generate an edl with edlout.sh tv.mpg, using “i” key during playback to mark comercials
  2. Verify/refine script edlout.sh tv.mpg, edit tv.edl editor
  3. use tv.edl, tv.mpg to generate tv.vob using below script

for x in Bones*.mpg ; do rm -f “${x/mpg/vob}” ;mencoder -profile 720p2dvd,ac3_6 “$x” -edl “${x/mpg/edl}” -hr-edl-seek -o “${x/mpg/vob}” ; done

The following profiles are stored in ~/.mplayer/mencoder.conf


Updated 9/29/2008

[720ptst]
profile-desc=" VIDEO 720p for DVD, 24fps telecine (filmdint)"
# Assumes input was telecined 24fps film
#
ovc=lavc=1
noautoexpand=1
vf=filmdint=io=59940:23976,scale=720:480

lavcopts=vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800
:vbitrate=5000:keyint=15:vstrict=0:autoaspect=1
fps=60000/1001
ofps=24000/1001
of=mpeg=1
mpegopts=format=dvd:tsaf=1:interleaving2=1:telecine=1

[1080itst]
profile-desc=" VIDEO 1080i for DVD, 24fps telecine (filmdint)"
# Assumes input was telecined 24fps film
#
noautoexpand=1
ovc=lavc=1
# scale first to eliminate green bar at top of video
vf=scale=720:480:1:0,filmdint=io=29970:23976

lavcopts=vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800
:vbitrate=5000:keyint=15:vstrict=0:autoaspect=1
fps=30000/1001
ofps=24000/1001
of=mpeg=1
mpegopts=format=dvd:tsaf=1:interleaving2=1:telecine=1


[720p2dvd]
profile-desc="VIDEO 720p to DVD , framestep,autoaspect"
# Mpeg2 5000bps
ovc=lavc=1
of=mpeg=1
mpegopts=format=dvd
vf=framestep=2,scale=720:480
lavcopts=vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800
:vbitrate=5000:keyint=15:vstrict=0:autoaspect=1
ofps=30000/1001
noautoexpand=1

[1080i2dvd]
profile-desc="VIDEO 1080i to DVD mpeg, autoaspect,ildct,ilme"
# For converting HD OTA 1080i broadcasts (NBC, CBS, PBS) to DVD suitable 5000Kbps MPEG2.
# Assumes? 16:9 il content, and audio is copied or converted as required
ovc=lavc=1
of=mpeg=1
mpegopts=format=dvd
lavcopts=ildct=1:ilme=1
vf=scale=720:480,harddup=1
lavcopts=vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800
:vbitrate=5000:keyint=15:vstrict=0:autoaspect=1
noautoexpand=1

[hq]
profile-desc=" QUALITY sets mbd=2, trell"
lavcopts=vqmax=20:mbd=2:trell=1:dc=10:vqmin=1

[ac3_6]
profile-desc=" AUDIO Ac3, 384kbps, 48Khz, 6 channels"
# Audio Ac3 2 channel 192k 48KHz
oac=lavc=1
channels=6
af=channels=6:6:0:0:4:1:1:2:2:3:3:4:5:5:volnorm=1:0.8
lavcopts=acodec=ac3:abitrate=384

No comments yet

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: