[FFmpeg-devel] H263 encode with rtp_payload_size=1300: observe packets of size 10KBytes

Michael Niedermayer michaelni
Fri Sep 21 00:59:18 CEST 2007


On Thu, Sep 20, 2007 at 03:35:45PM -0400, Mojtaba Hosseini wrote:
> Hello,
>   I'm using ffmpeg (svn version 10255) library to encode MPEG4 and H263 in my program. 
> I'm setting the codec context rtp_payload_size=1300 Bytes and this works beautifully
> with MPEG4 (That is, the callback function is called with 'packets' of size very close
> to 1300 Bytes. I have not confirmed the existence of resync markers but the stream does
> decode properly on the decode side). 
> When encoding H263 however, the rtp callback is called with packets of size much larger
> than 1300Bytes (for example, 10KBytes). Is this to be expected? Or is this a bug in h263
> encoder?
>    Any help is appreciated (even if it is simply: "no. it should work the same as mpeg4"
> so I can go and look at why it isn't so). Thanks

limitation of the h.263 standard, you cant do anything about it except using
a lower bitrate or resolution
or use h.263+


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Concerning the gods, I have no means of knowing whether they exist or not
or of what sort they may be, because of the obscurity of the subject, and
the brevity of human life -- Protagoras
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070921/15fd81b2/attachment.pgp>

More information about the ffmpeg-devel mailing list