<div dir="ltr">Is it possible to use custom AVIOContext with RTMP?<div><br></div><div>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.</div><div><br></div><div>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 when decoding.</div><div><br></div><div>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.</div><div><br></div><div>Thanks</div><div>Chen</div></div>