On Sat, 28 Aug 2004 [EMAIL PROTECTED] wrote: > [In July I asked how to skip the first frame in a yuv stream, because mplayer > was putting a green frame at the beginning. I apologize to Steven Shultz and > Selva Nair for not having answered earlier to their helpful messages.] > > > On Wed, 14 Jul 2004, Steven M. Schultz wrote: > > I thought that problem had been fixed in MPlayer quite a while ago. > > Are you running the latest CVS version or an older version of MPlayer? > > Thanks! I've upgraded my version of mplayer and I don't see those green frames > anymore. > > > On the same day Selva Nair wrote: > > Here is a utility that I use to trim yuv4mpeg streams. Link it with > > -lmjpegutils and try "y4mcut -h" for usage. > > This is a nice program, thank you! It works quite well. > Note: I had to changes some double quotes to single quotes for the file to > compile: > case "v" -> case 'v' > etc...
That was an old program I wrote, never rebuilt in a long time -- I probably "polished it up" and posted without testing -- sorry about that. Having said that, I have no idea from where that double quote crept in, I have case 'v' in my copy ! > otherwise gcc would print "y4mcut.c:64: error: case label does not reduce to an > integer constant". > > Also, I got the following errors: > y4mcut.c:98: error: structure has no member named `width' > y4mcut.c:99: error: structure has no member named `height' There has been several changes in YUV4MPEG API and direct accessing of stream_info structure is now not supported. > > I just changed "int Y4MPRIVATIZE(width);" and "int Y4MPRIVATIZE(height);" to > "int width;" and "int height;" in the struct _y4m_stream_info (in yuv4mpeg.h) > and it compiled, but I wonder why this dirty change was necessary... was it a > problem with my gcc version? (I use gcc 3.3.4) Oh no, y4mcut should be updated by replacing istream.width and istream.height by y4m_si_get_width(istream) and y4m_get_si_height(istream), respectively. Selva ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users