Log in

View Full Version : HDV -> DVD and saving interlacing


cord-factor
25th April 2010, 13:03
Hello again :)

I just got a new job. There is the some HDV video (1440x1080@50i, MPEG2, 16:9). I need to convert it to the DVD format. And it is important to save interlace. However, HDV has 'top field first' field order, and the final DVD must have 'bottom field first'.
I use mencoder for this, here is the command:

mencoder -oac copy -ovc lavc -of mpeg -mpegopts format=dvd:tsaf -vf phase=a,tfields=0,scale=720:288,tinterlace=0,harddup -lavcopts \
vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=9000:keyint=12:vstrict=0:aspect=16/9 \
-ofps 25 oper-room-1.m2t -o movie02.mpg

About video filters. First, I change field order (phase=a), next - separate fields to frames (half height and double fps - tfields=0), then resize picture to 720x288 (scale=720:288), and merge the fields back to frame (full height and normal fps - tinterlace=0). harddup filter is needful for mpeg video, so it is also added to the end of chain.

Well, the result is good, except one thing - scan type flag. In the final video it is 'progressive'. How can I change it to 'interlaced' (and set 'scan order' to 'Bottom Field First')?
And how to set 'audio delay 20ms'? (it's because phase=a filter delays video for one field, 20ms)

:thanks:

cord-factor
26th April 2010, 19:57
Found :)
The command must be:
mencoder -oac copy -ovc lavc -of mpeg -mpegopts format=dvd:tsaf -vf phase=a,tfields=0,scale=720:288,tinterlace=0,harddup -lavcopts \
vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=9000:keyint=12:vstrict=0:aspect=16/9:alt:top=0 \
-ofps 25 oper-room-1.m2t -o movie02.mpg