[mythtv-users] Re: Transcode to DVD-compatible MPEG-2 without quality loss?

Boleslaw Ciesielski bolek-mythtv at curl.com
Sat Oct 22 14:31:33 EDT 2005


Nicolas Mainil wrote:
>>>I will have to look into this further if it's a simple matter of
>>>remultiplexing.  At this point, I'd be happy to get DVD format MPEG-2
>>>with commercials if I can retain the A/V sync and picture quality.
>>
>>In that case try this:
>>
>>mencoder -of mpeg -mpegopts format=dvd -ovc copy -oac copy -o foo.mpg foo.nuv
> 
> 
> After this step, what do you do with your mpg file before burning it
> on a dvd? Do you use some dvd authoring tool?

I use dvdauthor via the following script. It's a variation of the now 
famous script that used mpeg2desc and mplex floating around this list 
(e.g. http://www.gossamer-threads.com/lists/mythtv/users/68036)

The first argument is the .nuv file, the second argument is the 
resulting .iso file.

Bolek


#!/bin/sh

INFILE=$1
OUTFILE=$2
TMPDIR=DVDTMP.$$
TMPMPG=dvdmpg.$$

mkfifo $TMPMPG

mencoder -quiet -of mpeg -mpegopts format=dvd -ovc copy -oac copy -o 
$TMPMPG $INFILE &

dvdauthor -o $TMPDIR -f $TMPMPG
dvdauthor -o $TMPDIR -T

rm -f $TMPMPG

mkisofs -dvd-video -iso-level 1 -o $OUTFILE $TMPDIR

rm -fr $TMPDIR


More information about the mythtv-users mailing list