Attaching raw data to a video frame

For the developers that use FFmpeg in their software.
Post Reply
Posts: 1
Joined: Sun Nov 24, 2019 12:08 pm

Attaching raw data to a video frame

Post by EyalDa » Sun Nov 24, 2019 1:17 pm


I'm writing a system that generates a video stream and sends it over rtmp.
For each frame, I have a video frame as well as some binary, raw data that's associated with the frame. This data contains data that's specific to my application and has to be sent as well as the video frame.

I'm looking for a way to attach this binary data to each video frame so that the client can separate them and use the video frame and the binary data.

i.e I have a function that gets a video frame and a void* raw data and it needs to mux them and send them together over RTMP.

Can anyone help? What's the best way to add the layer of binary data?


Posts: 3
Joined: Mon Oct 27, 2014 10:30 pm

Re: Attaching raw data to a video frame

Post by eltedro » Sat Nov 30, 2019 3:07 pm

Have you considered adding a data stream to what you're muxing?

See this post for an example: ... 4#59110534

Post Reply