R – how to read a http video stream with libavcodec (ffmpeg)

ffmpegiphonevideovideo streaming

I'm trying to read a real-time http video stream (I've set one up using VLC and my webcam) using libavcodec from ffmpeg. so far I've been able to read an mpeg file fine but when I pass a url instead of the file name it hangs (I assume it's waiting for the end of the file).

anyone have experience/ideas on how to do this? I'm also open to alternatives if people have other suggestions.

the end goal is to do live video-streaming on the iphone. apple's http live streaming has too much lag for what I need but that's for another post 🙂

any help is greatly appreciated!

Best Answer

if you aren't using apple's way, you can't.

Related Topic