On Tuesday 26 August 2003 08:22, Ronald Bultje wrote:
> Hey Martin,
>
> On Tue, 2003-08-26 at 01:33, Martin Samuelsson wrote:
> > With 1.6.0, I could give jpeg2yuv an absolute filename, and get the
> > expected output. With 1.6.1.90, it will go into a tight loop. Is there
> > any change I've overlooked?
>
> -n 1, I suppose?

I'm not sure I understand what you mean. :)

Some output:

If I run the new jpeg2yuv I get this:

[EMAIL PROTECTED] sam]$ jpeg2yuv -v 2 -n 1 -f 25 -I p -j snap-000000.jpg 
>frame.yuv
   INFO: [jpeg2yuv] Wp1

   INFO: [jpeg2yuv] Parsing char v

   INFO: [jpeg2yuv] Parsing char n

   INFO: [jpeg2yuv] Parsing char f

   INFO: [jpeg2yuv] Parsing char I

   INFO: [jpeg2yuv] Parsing char j

   INFO: [jpeg2yuv] Parsing & checking input files.
--DEBUG: [jpeg2yuv] Analyzing snap-000000.jpg to get the right pic params
   INFO: [jpeg2yuv] YUV colorspace detected.

   INFO: [jpeg2yuv] Starting decompression
   INFO: [jpeg2yuv] Image dimensions are 320x240
   INFO: [jpeg2yuv] Movie frame rate is:  25.000000 frames/second
   INFO: [jpeg2yuv] Non-interlaced/progressive frames.
   INFO: [jpeg2yuv] Frame size:  320 x 240
   INFO: [jpeg2yuv] Number of Loops 0
   INFO: [jpeg2yuv] Now generating YUV4MPEG stream.
--DEBUG: [jpeg2yuv] Preparing frame
   INFO: [jpeg2yuv] Processing non-interlaced/interleaved snap-000000.jpg, 
size 8001l.
   INFO: [jpeg2yuv] Rescaling color values.
--DEBUG: [jpeg2yuv] Frame decoded, now writing to output stream.
--DEBUG: [jpeg2yuv] Preparing frame
   INFO: [jpeg2yuv] Processing non-interlaced/interleaved snap-000000.jpg, 
size 8001l.
   INFO: [jpeg2yuv] Rescaling color values.
--DEBUG: [jpeg2yuv] Frame decoded, now writing to output stream.

...and those last four lines will repeat eternally, while jpeg2yuv happily 
writes an ever increasing file.

With the old jpeg2yuv, I get this:

[EMAIL PROTECTED] sam]$ 160jpeg2yuv -v 2 -n 1 -f 25 -I p -j snap-000000.jpg 
>frame.yuv
   INFO: [160jpeg2yuv] Parsing & checking input files.
--DEBUG: [160jpeg2yuv] Analyzing snap-000000.jpg to get the right pic params
   INFO: [160jpeg2yuv] Image dimensions are 320x240
   INFO: [160jpeg2yuv] Movie frame rate is:  25.000000 frames/second
   INFO: [160jpeg2yuv] Non-interlaced/progressive frames.
   INFO: [160jpeg2yuv] Frame size:  320 x 240
   INFO: [160jpeg2yuv] Now generating YUV4MPEG stream.
--DEBUG: [160jpeg2yuv] Preparing frame
   INFO: [160jpeg2yuv] Processing non-interlaced/interleaved snap-000000.jpg, 
size 8001l.
--DEBUG: [160jpeg2yuv] Frame decoded, now writing to output stream.

And then it exits, with one yuv frame in the resulting file.

With -n 0:

[EMAIL PROTECTED] sam]$ jpeg2yuv -v 2 -n 0 -f 25 -I p -j snap-000000.jpg 
>frame.yuv
   INFO: [jpeg2yuv] Wp1

   INFO: [jpeg2yuv] Parsing char v

   INFO: [jpeg2yuv] Parsing char n

   INFO: [jpeg2yuv] Parsing char f

   INFO: [jpeg2yuv] Parsing char I

   INFO: [jpeg2yuv] Parsing char j

   INFO: [jpeg2yuv] Parsing & checking input files.
--DEBUG: [jpeg2yuv] Analyzing snap-000000.jpg to get the right pic params
   INFO: [jpeg2yuv] YUV colorspace detected.

   INFO: [jpeg2yuv] Starting decompression
   INFO: [jpeg2yuv] Image dimensions are 320x240
   INFO: [jpeg2yuv] Movie frame rate is:  25.000000 frames/second
   INFO: [jpeg2yuv] Non-interlaced/progressive frames.
   INFO: [jpeg2yuv] Frame size:  320 x 240
   INFO: [jpeg2yuv] Number of Loops 0
   INFO: [jpeg2yuv] Now generating YUV4MPEG stream.

Here, it hangs in a tight loop, producing no output. It feels like there's 
been a change in an exit condition somewhere, as:

[EMAIL PROTECTED] sam]$ 160jpeg2yuv -v 2 -n 0 -f 25 -I p -j snap-000000.jpg 
>frame.yuv
   INFO: [160jpeg2yuv] Parsing & checking input files.
--DEBUG: [160jpeg2yuv] Analyzing snap-000000.jpg to get the right pic params
   INFO: [160jpeg2yuv] Image dimensions are 320x240
   INFO: [160jpeg2yuv] Movie frame rate is:  25.000000 frames/second
   INFO: [160jpeg2yuv] Non-interlaced/progressive frames.
   INFO: [160jpeg2yuv] Frame size:  320 x 240
   INFO: [160jpeg2yuv] Now generating YUV4MPEG stream.

will write 0 bytes of output, and then exit.

With -n set to -1, both versions will write that single frame to the output 
file forever.

/Sam



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to