I am trying to wrap my head around demuxing mpegts container packets. I loaded a 30s mpegts which has a h264 encoded video track and an aac encoded audio track.
The end goal is to extract NAL units to feed to a h264 decoder. What is the best way to collect the byte data? I looked through the object dump however the library doesn't report the byte offset.

I am trying to wrap my head around demuxing mpegts container packets. I loaded a 30s mpegts which has a h264 encoded video track and an aac encoded audio track.
The end goal is to extract NAL units to feed to a h264 decoder. What is the best way to collect the byte data? I looked through the object dump however the library doesn't report the byte offset.