Sound fragments after seeking
|Reported by:||Ole||Owned by:|
|Blocking:||Reproduced by developer:||yes|
|Analyzed by developer:||yes|
While trying to use FFmpeg libs as a developer I found the following:
When decoding sound from some compressed audio formats and doing a seek, the first decoded packet after seeking is buggy.
I had this with some mp4 files with aac audio codec and some wmv files with wma audio codec.
Looks like some leftovers from internal buffers - but I am using 'avcodec_flush_buffers'!
That of course leads to nasty sound noise/clicks.
See attached sourcecode.
Basically it shows the first few bytes of the first decoded sound packet then seeks back and shows the first packets decoding again.
If you use it with some wmv or mp4 file with sound you should see see effect that both outputs at 0 are different but should be equal.
Just make sure the sound is not only silence at the first 10 packets.
Or am I missing some other flush...whatever function here?
I am developing under windows using the actual ffmpeg git version.
Confirmed for 32 and 64 bit version, self compiled and downloaded autobuilds.
Change History (19)
comment:7 by , 10 years ago
|Component:||undetermined → avcodec|
|Version:||unspecified → git-master|