[Libav-user] av_packet_get_side_data() not working

rohit khali khali.rohit at gmail.com
Tue Jun 23 15:44:56 EEST 2020


Thanks !
Sorry, my bad ! Let's start with this beginning to understand what am
I trying to acheive here.

I am working on an application  which will decode only I
frames(HEVC,AVC,MPEG2) however will do that parsing for each frame (I/P/B).

Parsing means, along with metadata I also need to get access to encoded
user data containing CC/AFD/etc (if present). Basically anything present as
part of
enum AVPacketSideDataType
<https://ffmpeg.org/doxygen/3.4/group__lavc__packet.html#ga9a80bfcacc586b483a973272800edb97>
mentioned
in
https://ffmpeg.org/doxygen/3.4/group__lavc__packet.html#ga9a80bfcacc586b483a973272800edb97

Later, I'll decode this user-data "ONLY" externally for P/B frames.

Let's focus on H264 for now. My input H264 stream has EI608/EIA-708 in the
sei-> user data section. And I have parsed a complete frame using
av_parser_parse2().
Shall I not expect pkt->side_data_elems to be updated even though I know CC
data is there for sure?
I was expecting that after using av_packet_get_side_data() for type
*AV_PKT_DATA_A53_CC* , I will get access to encoded CC data.
Is something wrong with my understanding of side data here?

Regards,
Rohit Khali
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20200623/e6eba590/attachment.html>


More information about the Libav-user mailing list