Question - What is the format in which audio / video ES data is stored in 
(AVPacket*) pkt->data? I am trying to demux and decode AV data from a MP4 file 
using libavformat and libavcodec.

More details
        1. Using the sample application demuxing.c 
(http://www.ffmpeg.org/doxygen/trunk/demuxing_8c_source.html) I tried demuxing 
and decoding a MP4 file containing H.264 video and AAC audio. 
        2. While the sample application worked fine, I wasn't able to interpret 
the content in the pkt.data buffer (line #66 in the above file). Since the 
video was H.264 I was hoping to see familiar "nal_unit_type" but I don't think 
I saw that for the stream I was trying to decode. If I remember the data 
correctly the first 4 bytes in the pkt.data buffer were "0x00 0x00 0x02 0x72"
I haven't spent much time figuring this out yet but searching on the Internet / 
forum didn't help. I intend to dig deeper tomorrow, but just wanted to check if 
indeed ES was being passed in the pkt.data buffers in a special way.

Appreciate any points that you can provide.


Best regards
Arvind
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to