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
when decoding.

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.

Thanks
Chen
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to