[Libav-user] About fetching RTMP metadata with ffmpeg

Mert Gedik gedikmert89 at gmail.com
Tue Jul 22 11:24:08 CEST 2014

Hello everybody,

I need to show metadata information that attached by the Flash media server
in RTMP streams, but according the reference in below, this information
comes with the data key frames, does this mean I need to find this data in
AVPacket structure ?

I've found AV_PKT_DATA_METADATA_UPDATE flag in AVPacket but there isn't any
information in internet about what this value is for and how to use this

Please help If you have any experience or have any info about this



Flash Media Server can add data messages to the beginning of a live video
stream. This metadata can contain information about the video, such as
title, copyright information, duration of the video, or creation date.
Metadata can also contain advertising information or current statistics
like sports scores. Any client connecting to the server, even if they
connect late, receives the metadata when the live video is played.

The metadata you add is in the form of *data keyframes*. Each data keyframe
can contain multiple data properties, such as a title, height, and width.
Note: Because DVR applications use recorded streams, you do not need to use
data keyframes to push metadata to the client. In DVR applications (and in
all recorded video applications) the onMetaData() method is called at the
beginning of the stream and during events such as seek and pause.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20140722/1bb1420e/attachment.html>

More information about the Libav-user mailing list