LibRtmp-Client-for-Android
LibRtmp-Client-for-Android copied to clipboard
Send Metadata
Hello,
I would like to send Metadata per frame through RTMP Muxer along my video frames ! Would you have an idea on how to implement a writeMetadata/ addMetadata function that allows me to send XML or string data ?
Thanks
First define the metata attribute in xiecc_rtmp.c,like this
...
static const AVal av_videoframerate = AVC("framerate");
...
Then modify the length in the rtmp_open_for_write method and write the attributes
...
output = AMF_EncodeInt32(output, outend, 6);
output = AMF_EncodeNamedNumber(output, outend, &av_videoframerate,30);
...