[FFmpeg-devel] Number of bytes read at a time

Michael Niedermayer michaelni
Thu Jul 12 23:53:22 CEST 2007


On Wed, Jul 11, 2007 at 05:04:45PM -0400, Jon Dufresne wrote:
> Hello,
> In my program I created a custom protocol for ffmpeg that reads
> streaming data off a custom piece of hardware in the form of an mpeg2
> transport stream.
> I've noticed that every time ffmpeg reads the device it requests 32768
> (0x8000) bytes of data. Usually this is read in 10-12ms, but I have
> witnessed occasional times where it takes 30-40ms. Since this is more
> than 33 ms this is longer than the time of one frame (29.97 fps).
> Is there a way that I can reduce the number of bytes read at once? Is
> there some parameter to set in the Protocol struct or the FormatContext?
> I think if it read fewer bytes at a time then I would be more successful
> at getting a frame in time.

URLContext.max_packet_size maybe


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No human being will ever know the Truth, for even if they happen to say it
by chance, they would not even known they had done so. -- Xenophanes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070712/5956779d/attachment.pgp>

More information about the ffmpeg-devel mailing list