OK, riddle me this.


I have a script that I use for converting a smil file (of edited DV) to DVD-compatible mpeg. The script looks like this:

----------------start script----------------
#! /bin/sh

mkfifo stream.yuv
mkfifo video.yuv

smil2yuv -a "${1%.smil}.mp2" "$1" >stream.yuv &

cat stream.yuv | yuvdenoise -S 0 -b 4,4,696,468 | y4mshift -n 8 >video.yuv &

cat video.yuv | dd obs=1M | mpeg2enc -E -10 -K kvcd -S 400 -B 384 -f 8 -q 5 -b $2 -r 16 -4 4 -2 4 -N 1.0 -I 1 -o "${1%.smil}.m2v" -v 1

mplex -f 8 -o "${1%.smil}_%02d.mpeg" "${1%.smil}.mp2" "${1%.smil}.m2v"

rm -f "${1%.smil}.mp2" "${1%.smil}.m2v"
----------------end script------------------

I am using the latest CVS version of the mjpegtools.

Now here's the confusion. If I use it like this:

smil2dvdbits Capture1.smil 5400

on roughly two hours worth of video, I get about 4.2 gigs of mpeg data out, which is just about right to fill a DVD-R.

However, today I had a shorter clip to work with, and discovered something that seems strange. If I do this:

smil2dvdbits Capture1.smil 8000

On the same 2-hour clip, it comes out at about 2.5 gigs. Huh? How is that possible? The average bitrate drops *way* down (from roughly 5400 to about 2500), but the peak rate is near the 8000 I set.

This makes no sense to me. How is specifying a higher bitrate able to produce a smaller file? In each case so far, a *much* smaller file (roughly half)!

Don't misunderstand, I'm thrilled if this is expected behaviour -- I'm just concerned that something is horribly wrong somewhere. Any thoughts?

--
  Robert Kesterson
  [EMAIL PROTECTED]


------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to