Hi,
I have been trying to read an SLS-AAC file ( in mp4 conatiner) using FFmpeg..
I am using av_open_input file() to open the file and to
get the stream information I use av_find_stream_info().
I could get that FFmpeg is able to get there are two streams
in the file as expected.
But my problem is
1) how to get that the second stream is the SLS layer.
2) how do i get the SLS information from the file.
I have tried to parse the AudioSpecificConfig() from the extradata available in
the CodecContext structure.I have an interesting observation.
1) The extradata information for the first stream gives me proper result like
correct ObjectIndexType(value =2) as it is AAc-LC,gives correct sampling
frequency index,
channel configuration (value 2).
But for the 2nd stream,
2) I get a value 31,for the ObjectIndexType, wrong sample frequency index(not
same as the Lc
- I expected the same - i may be wrong here),wrong channel configuration (4, I
expected 2).
I have checked the binary value and my parsing logic seems to be correct.
I would request any help regarding this.
Is it that FFmpeg is not able to demux SLS-AAC file?My asumption is there
demuxing does not depend on the underlying codec but depend on the container
in this case mp4,hence should not be an issue.
Thanks in advance for any help regarding this.
Best Regards
Raja
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user