Hi, In my application, I want to be able to play just a single audio track from a file which also has loads of high bitrate video. Is there a way to configure an AVFormatContext such that av_read_frame only returns frames for the audio that I'm interested in? Apologies if I'm missing something obvious I'm fairly new to libav. For some container formats like transport stream the underlying code would still have to trawl through all of the packets inspecting them at some level, but with a MOV/MP4 container the code could just seek through to each audio block in turn ignoring the video track altogether. My current code skips past any packets with a stream_index that isn't the one I'm interested in which works fine, but there are 100 times more video than audio packets which makes this inefficient.
Thanks for your help, Dave Craig _______________________________________________ Libav-user mailing list Libav-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/libav-user To unsubscribe, visit link above, or email libav-user-requ...@ffmpeg.org with subject "unsubscribe".