[FFmpeg-devel] Number of bytes read at a time
Thu Jul 12 23:53:22 CEST 2007
On Wed, Jul 11, 2007 at 05:04:45PM -0400, Jon Dufresne wrote:
> 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.
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
Size: 189 bytes
Desc: not available
More information about the ffmpeg-devel