[Live-devel] Frame Size for I,P,B Frames

Ryan Wong ryan.wong at gmail.com
Fri Mar 17 02:15:15 PST 2006


I printed out the variable curFrameSize() and obtained 14. It seems
like I,B and P frames are all returning 14 for curFrameSize(). I doubt
this is the right frame size as the sizes should be different for each
frame type.

Please kindly guide me. I am not sure how to obtain the frame size. Thanks.

Ryan


Ross Finlayson finlayson at live555.com
Thu Mar 16 07:57:59 PST 2006

    * Previous message: [Live-devel] Frame Size for I,P,B Frames
    * Next message: [Live-devel] Can't receive data if use TCP
    * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

> >> i would like to find out the frame size for I,B & P frames for the
>video I am transmitting.

You could do this in the code of whatever 'framer' object you are
feeding into your "MPEG1or2VideoRTPSink".

If your input MPEG source consists of discrete frames (e.g., coming
from an encoder), then you can just use a "MPEG1or2VideoStreamDiscreteFramer".

If, however, your video source is an unstructured byte stream (e.g.,
from a file, or 'stdin'), then you must use a
"MPEG1or2AudioStreamFramer" (which is more complicated, because it
has to parse a byte stream).

In either case, the code for your "*Framer" object will tell you the
size of frame, and what type it is.  You're going to have to figure
this out for yourself, though...


	Ross Finlayson
	Live Networks, Inc. (LIVE555.COM)
	<http://www.live555.com/>

    * Previous message: [Live-devel] Frame Size for I,P,B Frames
    * Next message: [Live-devel] Can't receive data if use TCP
    * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

More information about the live-devel mailing list



More information about the live-devel mailing list