[Libav-user] How to redirect FFMPEG output to a socket

Denis info at denisgottardello.it
Wed May 2 21:48:35 CEST 2012

In data mercoledì 02 maggio 2012 21:23:44, Wagner Patriota ha scritto:
> Hello,
> I wanna make an application that outputs the content of FFMPEG to a
> socket... it that easy? where should I look for it?
> Maybe ffserver has something to do with what I want, but for sure I want
> something simpler...
> I have my server open, a "socket handle", everything ready... only waiting
> for write the file content... any hints where I can begin?
> Thank you.

It's possible but is not so easy. In the last year I have posted a lot of 
questions about this but nobody has reply to me. I not know why, perhaps 
because I'm from Italy and my english is not correct or because is not a 
tipical question.
In order to grab all from ffmpeg you have two ways:
1) Using callbacks "avio_alloc_context"
2) Using "avio_open_dyn_buf" and "avio_close_dyn_buf"

After that you must know that not all format are streamable.

I don't know if these are the right ways but works for me. I have wrote a 
surveillance software with ffmpeg.

Skype: mrdebug
Videosurveillance and home automation! 

More information about the Libav-user mailing list