[FFmpeg-user] Custom AVIOContext with RTMP
chen.fisher at gmail.com
Mon Mar 28 14:13:45 CEST 2016
Is it possible to use custom AVIOContext with RTMP?
I've implemented my own AVIOContext with read and write functions by I get
an error form ffmpeg when trying to stream to that aviocontext saying it
couldn't read the RTMP handshake response.
I saw that my 'write' function was never called so I think I misunderstood
its purpose; it's probably there for when using it to encode a stream, not
What I'm trying to do is to create a server that accepts tcp socket
connections and use it as the input stream to ffmpeg to decode. RTMP
protocol uses a handshake so that socket is both read from and written to.
That's why AVIOContext with read function is not enough.
More information about the ffmpeg-user