Is there a straightforward way to demux? + audio
Posted: Wed May 15, 2013 12:14 pm
Hi all,
Hopefully someone can help me. I've recently been playing around with the broadcom libraries and have successfully managed to create my own bare-minimum AVC decoding example, based on the "hello_video" one. I now have a better understanding of how the ilclient library works and would love to try tackling demuxing with it. As a starting point I thought it'd be a good challenge to just demux a file that contains an AVC video stream and hand the demuxed video data to my existing decoding example.
The problem is, documentation is minimal, and I've not been able to find any straightforward examples online. I've noticed that many people seem to be using libav to perform tasks such as demux, but as far as I'm aware, we should be able to do this with the broadcom libraries (please correct me if I'm wrong).
I've already looked at the source for omxplayer, but it's far too complex and uncommented to be of much help to me. Does anyone know of a dead-basic example of demuxing with the BCM libraries? Alternatively, could you point me in the right direction to learn more about the subject? I'm pretty stumped right now, but I feel that if simple ~200-300 line examples can be made for video decoding, demuxing shouldn't be much worse (or should it?) Also, if there's a simple audio decoding example someone can provide (the built-in one only plays a sine wave, rather than decoding audio from a file), that'd be very helpful.
I'll be grateful for any help you can offer. Thanks
Hopefully someone can help me. I've recently been playing around with the broadcom libraries and have successfully managed to create my own bare-minimum AVC decoding example, based on the "hello_video" one. I now have a better understanding of how the ilclient library works and would love to try tackling demuxing with it. As a starting point I thought it'd be a good challenge to just demux a file that contains an AVC video stream and hand the demuxed video data to my existing decoding example.
The problem is, documentation is minimal, and I've not been able to find any straightforward examples online. I've noticed that many people seem to be using libav to perform tasks such as demux, but as far as I'm aware, we should be able to do this with the broadcom libraries (please correct me if I'm wrong).
I've already looked at the source for omxplayer, but it's far too complex and uncommented to be of much help to me. Does anyone know of a dead-basic example of demuxing with the BCM libraries? Alternatively, could you point me in the right direction to learn more about the subject? I'm pretty stumped right now, but I feel that if simple ~200-300 line examples can be made for video decoding, demuxing shouldn't be much worse (or should it?) Also, if there's a simple audio decoding example someone can provide (the built-in one only plays a sine wave, rather than decoding audio from a file), that'd be very helpful.
I'll be grateful for any help you can offer. Thanks