On Sun, 2 Nov 2003, Laurent Pinchart wrote:

> I'm trying to transcode a DVD to SVCD. The usual approach is, I think, to use 
> mplayer or transcode to read from the DVD and output to a named pipe, and cat 
> the pipe to yuvscaler and mpeg2enc.

        Actually, for me, the usual approach is to use 'mplayer' with the
        '-dumpstream' option.   That gives me the complete stream in one
        file.  At that point I can run 'vstrip' if desired to remove
        the unwanted audio streams, and so on.

> This, however, becomes a bit more complicated as the material I'm trying to 
> convert is a DVD dump. I can read it using tccat | mplayer, but transcode 
> doesn't accept directories as input.

        Rather than convert a directory image/copy of the DVD I've found
        it easier to deal with a single 'dump.stream' file.    It's also
        possible to selectively dump chapter ranges (-chapter 5-10) if
        there is a subset that is of interest (perhaps one short subject
        out of 6 on the DVD).

> What is the best way to convert the DVD dump ? I can use tccat | mplayer | 
> yuvscaler | mpeg2enc, but using programs from 3 different projects 
> (transcode, mplayer and mjpegtools) seems a bit complicated to do the simple 
> operation I'm trying to achieve.
> 
> Any help will be greatly appreciated.

        Something like this (I'm doing this from memory since I did not
        retain the script from the last time I did it):

           mplayer dvd://TITLESET [-chapter X-Y] -dumpstream

        then optionally run vstrip if desired to remove extra audio
        streams, and so on.

           mpeg2dec -s -o pgmpipe | pgmtoy4m | y4mscaler -O preset=SVCD |
               mpeg2enc -f 4 ...

        The audio is handled with 'mplayer -dumpaudio' or other method
        of extracting the audio stream from stream.dump (if there's only
        one audio stream it's easy - if there is more than one you'll 
        need to know the stream ID of course).

        The pgmtoy4m program is from the cvs version of mjpegtools and
        is a program specifically written to deal with converting the
        (strange) pgm output of mpeg2dec into y4m.

        That's how I do it ;)

        Cheers,
        Steven Schultz




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to