[Libav-user] Packet extra side data is not received
Mohamed Fouad
md.fouad at gmail.com
Thu Apr 9 00:47:40 EEST 2020
I'm trying to send extra data attached to each packet
In the encoding side , this is the code segment:
.....
int size = 35;
char * value = "xxx1,2,3,4,5,6,.7,8.8,9.9,10.12345,";
av_packet_add_side_data(&pkt, AV_PKT_DATA_NEW_EXTRADATA,(uint8_t*)
value, size);
av_write_frame(m_mux_ctx, &pkt);
...
in the decoding side :
....
uint8_t *side_data = NULL;
int side_data_size = 0;
side_data = av_packet_get_side_data(&packet,AV_PKT_DATA_NEW_EXTRADATA,&side_data_size);
if (side_data && side_data_size >= 10)
std::cout<< "side_data size="<<side_data_size <<"\n";
....
Input #0, matroska,webm, from 'tcp://192.168.100.86:8090':
Metadata:
ENCODER : Lavf58.20.100
Duration: N/A, bitrate: N/A
Stream #0:0: Video: h264, none, 640x480, 1k tbn (default)
Metadata:
ENCODER : omxcv f64c048 2019-08-12 18:00:42 +1000
SETTINGS : Created at Wed Apr 8 22:25:41 2020
: Bitrate: 4000 Kbps
Codec h264 ID 27 bit_rate 27
But i'm not receiving any side data?
Is there any missing option , or setting ?
I'm still new at discovering libav , thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20200409/9f17b95c/attachment.html>
More information about the Libav-user
mailing list