On 12/06/15 11:23, Florian Iragne wrote:
> Hi,
> 
> I've a program that uses libav to demux/decode live streams and gives
> the audio buffers to a function that analyzes them.
> 
> When i feed that program with a pseudo live-stream (avconv -re -i my.mp3
> -f mpegts udp://localhost:666), everything is fine. When i omit the -re
> option, the analyze part fails.

> I've checked some debugging info and it seems that there are less
> buffers transmitted to analyze when i'm not using -re option
> 
> I've tried to think about what could explain that, but i'm unable to
> find the answer. Does anybody have an idea?

If you are not using -re you process the streams as fast as possible.

You are filling your local network buffer faster than your consumer can
process it. Either enlarge the network buffers or throttle it using -re.

(I prefer having the kernel do the work using larger network buffers
than have a possibly brittle and surely bufferbloated solution that
require a worker thread filling a buffer queue as fast as possible and
then have the reader cope with the additional complexity)

lu

_______________________________________________
libav-api mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-api

Reply via email to