Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send Metadata #97

Open
midgard-as opened this issue Mar 17, 2021 · 1 comment
Open

Send Metadata #97

midgard-as opened this issue Mar 17, 2021 · 1 comment

Comments

@midgard-as
Copy link

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

@luohaohaha
Copy link
Contributor

luohaohaha commented Aug 20, 2021

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);
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants