> I'd say that mplayer with the mjpegtools is a combination that works.
> I've tested it with some shorter streams on my equipment at home that
> can play back PAL and NTSC, and they worked well. 

Here's the latest sequence that I tried:

# get dvd title into .vob file
mplayer dvd://2 -dumpstream -dumpfile orig.vob
# audio - extract raw ac3 stream
mplayer -dumpaudio -dumpfile audio.ac3 orig.vob
# video - de-interlace, change frame-rate, scale, encode
mkfifo stream.yuv
mplayer -vo yuv4mpeg -nosound -noframedrop orig.vob
yuvdenoise -F <stream.yuv | \
  yuvfps -r 30000:1001 | \
  yuvscaler -O SIZE_720x480 | \
  mpeg2enc -f 9 -q 7 -b 5000 -n n -o enc.m2v
# combine audio and video
mplex -f 8 -o final.vob audio.ac3 enc.m2v
# create dvd iso
mkdir out
dvdauthor -o out final.vob
dvdauthor -T -o out
chmod -f 500 out/AUDIO_TS
chmod -f 500 out/VIDEO_TS
chmod -f 400 out/VIDEO_TS/*.*
mkisofs -udf -dvd-video -o final.iso out
# clean up
rm stream.yuv
chmod -R u+rw out
rm -rf out

> That is a combination that never works "-q 1 -b 5000"
> In the" Creating MPEG2 Videos" is a subsection: "Which values should be
> used for VBR Encoding" that tells you why it wont work. -q 7 alone
> should work well.

The original stream was 5000 so that's why I used that value. Using -q 7
left me with a file that is less the half the size of the original. Can
I simply try lower values of -q to see if I get a larger file size and
thus (presumably) higher quality?

> 
> To mulitplex the streams you can also use mplex from the mjpegtools. 

Yes, I'm now using mplex now.

> DVD can be interlaced :)

I saw another post from Steven Shultz saying that all DVDs are
interlaced. I did not re-interlace my stream and it worked fine in my
DVD player.

> If you want to change the framerate of a stream, I'd say that you
> deinterlce it, if it is interlaced in the first step. 

That's seems to have fixed the jerky-ness - it's now very smooth.

> 
> BTW: 24000:1001 is also a valid NTSC framerate you could choose. 

If I used this rate, would my DVD player have to do a 3:2 pulldown?
Reading up on my DVD player, it's the only progressive scan player out
there without a 3:2 pulldown. It's a Pioneer DV-434.

Also, www.dvdrhelp.com says that my dvd player supports divx. Does this
mean I can encode the stream as divx and it will (may?) work in my dvd
player? divx is supposed to provide better compression, from what I've
read - but there's a number of 'flavors' out there.

> 
> I've done a compariosn. How the filesize changes depending on the
> framerate you set, and how you use the tools. You find that in the
> mjpeg-users mailinglist archive:
> https://sourceforge.net/mailarchive/forum.php?forum_id=2356

I will check this out.

The final result was a smooth flowing image (on my DVD player) with a
bit less quality than the original - it's a bit blotchy in certain
scenes. The original Dolby Digital (2 channel) sound was preserved.

> The mail was sent on the: Wed, 26 Feb 2003.
> 
> auf hoffentlich bald,
> 
> Berni the Chaos of Woodquarter

Many thanks for your comments and suggestions.

> 
> Email: [EMAIL PROTECTED]
> www: http://www.lysator.liu.se/~gz/bernhard

-- 
Greg Kilfoyle <[EMAIL PROTECTED]>



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to