On 02/09/2010 02:49 PM, Benjamin Larsson wrote:
-1) the sample format;
This should be in the avcodeccontext.
Yes, meanwhile I've found it but didn't want to disturb the list with a
"I've got it!" kind of message...
-2) to which MPEG standard does the stream/frame corresponds to
(MPEG1, MPEG2 or MPEG2.5);
This I don't think is anywhere.
MP3 frame header contains this information, that's why I supposed the at
least the mp3 decoder itself can utilize it. Of course, this is not the
same as exporting this information to a common structure.
-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.
The problem is that I must not decode the frame, just use libavformat to
retrieve from a stream. Regardless of this, I assume that the decode
unit gets some useful information out of the frame headers. I'll have a
look at mp3 decoder private context.
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.
Latter sounds a little bit bigger task to me than I can currently do.
Some kind of hack is about to be done.
Thanks for the response!
Bye,
--
Selmeci, Tamas
http://www.open-st.eu
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user