Alfonso,

Thanks for your input (and the software!). The problem turned out to be in my version 
of getopt. It didn't like optind being set back to 0 for your second call to it. 
getopt returned a -1 and never processed the rest of the command line parameters, 
thus, the ouput frame rate remained the same as the input.

I changed the line "optind = 0;" to "optind = 1;" and everything worked fine. 
Thankfully we don't need 0 here as it just indexes the program name "yuvfps". Maybe 
you (or whoever is currently developing it) should use 1 instead of 0 (in order to 
deal with dumb versions of getopt)? Or, then again, maybe Apple should just get its 
act together and not choke on 0...

Cheers,
Ryan
  
On Saturday, February 28, 2004, at 03:01PM, Alfonso <[EMAIL PROTECTED]> wrote:

>Ryan
>
>Have you checked the frame rate of your input stream ?. You can see it with
>
>tail -n 1 <stream.yuv
>
>I remember somebody in this list discovering and overflow bug in the 
>calculations for the framerate that required changes to the code. I 
>don't know if they have been done... I wrote the first version of yuvfps 
>to help me in converting the videos I make with my digital camera, so 
>I've never run into this problem.
>
>As I  remember the changes required were very small, involving only 
>changing the data types of a few declarations.
>
>
>
>
>-------------------------------------------------------
>SF.Net is sponsored by: Speed Start Your Linux Apps Now.
>Build and deploy apps & Web services for Linux with
>a free DVD software kit from IBM. Click Now!
>http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
>_______________________________________________
>Mjpeg-users mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/mjpeg-users
>
>


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to