I've got a DV sequence I've been trying to get encoded to DVD for a week
now, and I just can't get it to go.  Here's the script that I use:

  #! /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 -B 384 -f 8 -q 5 -b 9800 \
     -r 16 -4 4 -2 4 -N -I 1 -o "${1%.smil}.m2v" -v 1

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

This script has worked great for converting to DVD on a couple
dozen captures I've done recently.  I sometimes get a segfault during the
encode, but if I just run it again, it goes through.

However, this most recent sequence just will not go.  I've been trying for
a week.  Out of 10 smil files (edit lists from Kino), 7 of them went right
through to mpeg.  Three of them refuse to encode -- mpeg2enc segfaults
every time.

I did the smil2yuv and denoise passes to actual files, so I have a big 13G
YUV file that I'm running mpeg2enc against.  I've tried reducing or
eliminating every option shown in that command line (different "q"
settings, bitrates, -N or not, etc), but it always segfaults.

And the most maddening part is that it isn't consistent.  Sometimes it
will encode 800 frames, sometimes 12000, or anywhere in between.  But
never the whole file (25000 frames).  yuvplay will play the file just
fine, and it looks fine visually.

I've tried shutting down everything, unloading modules, doing it after a
fresh boot, etc., but nothing so far has helped.  I've updated all the
tools used to the latest CVS versions.  Still no go.

Does anyone have any ideas on how to track this down?  The one thing I
*haven't* done yet that I suppose would be a good idea is run it inside
GDB, so at least I could see *where* it's segfaulting.  (Will go try
that...)

If it matters : Gigabyte GA7DXR motherboard, Athlon XP2100+, 512M RAM,
ATA100 drives (tried three different drives on two different controllers,
all ATA100).

--
  Robert Kesterson
  [EMAIL PROTECTED]



-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to