[Libav-user] Best way to decode from network URI?

Colin Leroy-Mira colin at colino.net
Wed Aug 7 15:24:23 EEST 2024


Hello,

I'm using libav* to decode videos from arbitrary network URIs and send them to a remote client in a very different format. 

As I want the remote client to start working as soon as possible, and also to avoid storing data locally, it's a better solution that first downloading the URL locally, then using libav* with the local file.

However, when my decoder runs on slow hardware (for example a Raspberry Pi 3), some video hosting servers (Invidious instances, for example) kill the http connection after a delay (100 seconds in my case). 

I could not find a way in the documentation to have libav* either retry, or use a local cache, or anything like that. Is there a possibility I overlooked?

Many thanks in advance!

-- 
Colin


More information about the Libav-user mailing list