First of all, I hope you'll understand my poor english skill. I'll do my best to write question about it.
I'm currently developing some application. That application will captures desktop and encodes to MP4 video and send mp4 video data/chunks to another clients (all this process should run in memory not file). so another client should can play mp4 video/data/chunks that received from server.
so I used avio = avio_open(...) and reassigned write function as like avio->write_packet = some_function. but this way seems not "generate" mp4 file/chunk correctly. and It seems the original write_packet callback having actual logic that write packet to a file. but I don't want to write to a file. so I was thinking about it for a week but I did't getting any of idea about it.
so my question is: How can I intercept "encoded" video data that should processed by avio->write_packet?