HydrogenAudio

Lossy Audio Compression => AAC => AAC - General => Topic started by: kevin.wang on 2014-05-07 14:51:21

Title: Sound will be and big and small with faad?
Post by: kevin.wang on 2014-05-07 14:51:21

I have a adts stream, decode with faad, the sound will be and big and small. But with ffmpeg, it works well.

ffmpeg.wav (http://pan.baidu.com/share/link?shareid=4116155627&uk=1645087048)
out.wav (http://pan.baidu.com/share/link?shareid=4122244418&uk=1645087048)
adts.aac (http://pan.baidu.com/share/link?shareid=4124966851&uk=1645087048)

out.wav is decoded by faad, and ffmpeg.wav with ffmpeg. In out.wav, from the 20 second to the 22 second, and from the 40 second to the 41 second, these two periods is suddenly becoming to very big.  There's no any error when decoding.

Who can help to check?


Title: Sound will be and big and small with faad?
Post by: lithopsian on 2014-05-08 00:10:33
Volume does jump for me too, but also jumps when playing through libavcodec (the ffmpeg library) in VLC.  There seems to be something wrong with the AAC file.
Title: Sound will be and big and small with faad?
Post by: kevin.wang on 2014-05-08 07:03:40
Did you tried the ffmpeg from ffmpeg official website?  That's OK for me.



Volume does jump for me too, but also jumps when playing through libavcodec (the ffmpeg library) in VLC.  There seems to be something wrong with the AAC file.

Title: Sound will be and big and small with faad?
Post by: lithopsian on 2014-05-08 11:58:43
Did you tried the ffmpeg from ffmpeg official website?  That's OK for me.

No, but I assume it works since it works for you.  It may simply be a newer version of the ffmpeg library than I have that handles something weird in the file.  Or a Windows vs Linux issue since I'm on Linux.
Title: Sound will be and big and small with faad?
Post by: bat_guano on 2014-05-08 16:02:17
I have a adts stream, decode with faad, the sound will be and big and small. But with ffmpeg, it works well.
...Who can help to check?


Hi
I think it is faad decoder that has difficulty with this adts file.

It plays OK for me with MPlayer and FFplay (which use libavcodec)
MPlayer SVN-r37183
ffplay version 2.2.git-eeb4835

Volume jumps up with VLC because it uses faad, but can be overcome by forcing avcodec, then it plays OK for me with VLC.
VLC media player 2.1.5 Rincewind (revision 97c355d)
Code: [Select]
cvlc adts.aac --codec avcodec

Windows command is probably:-
Code: [Select]
vlc adts.aac --codec avcodec -I dummy