Tamas Selmeci wrote:
Hi all!
There's a stream opened, libavformat reports it is an MP3 stream,
that's perfect. What I additionally would like to know:
-1) the sample format;
This should be in the avcodeccontext.
-2) to which MPEG standard does the stream/frame corresponds to
(MPEG1, MPEG2 or MPEG2.5);
This I don't think is anywhere.
My questions:
-1) do I have to perform an av_read_frame to get this information?
The info you can get you need to init the codec with some frames of data.
-2) can I get this data somehow from a substructure of AVFormatContext
or from AVPacket after reading a packet from the stream?
Only possible to find in the private codec context.
Thanks in advance!
Bye,
We lack a real proper private codec metadata interface in FFmpeg. So you
either do a hack to export the info you need or submit an implementation
for a codec metadata interface.
MvH
Benjamin Larsson
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user