Distortion with MPA4 (AAC) in h264 files
Posted: 23 Dec 2005 17:29
Hi,
I have a problem playing movies mp4/h264 files with AAC sound with the linux vlc player. The audio of the files sounds horrible and has many distortion.
At first I want to write down, what I already tried and what works:
The video can be played using the windows vlc-0.8.4 player, both sound and video are 100%. I also tried the ubuntu 0.8.4 vlc client which playes the file without a picture, but the sound is ok.
On my machine I, use gentoo, I have emerged vlc with the following USE flags:
When playing the file I get the following messages
I also tried the latest svn version with the --enable-faad without any luck.
I thought the problem could be the faad2 library, but playing the file with the mplayer works quite well and this player is linked against the same faad lib as vlc.
Does anyone has an idea?
Greetings
P.S. If you need some more information, logs or maybe a sample file please ask[/code]
I have a problem playing movies mp4/h264 files with AAC sound with the linux vlc player. The audio of the files sounds horrible and has many distortion.
At first I want to write down, what I already tried and what works:
The video can be played using the windows vlc-0.8.4 player, both sound and video are 100%. I also tried the ubuntu 0.8.4 vlc client which playes the file without a picture, but the sound is ok.
On my machine I, use gentoo, I have emerged vlc with the following USE flags:
Code: Select all
[ebuild R ] media-video/vlc-0.8.4a USE="-3dfx +X +a52 +aac -aalib +alsa +arts -avahi +bidi +cdda -corba -daap -debug +dts -dvb +dvd +esd -fbcon +ffmpeg +flac +freetype -ggi +gnutls +hal +httpd -joystick -libcaca -lirc +live +matroska -mod +mp3 +mpeg +ncurses +nls -nsplugin +ogg +opengl +oss +png -real +samba +screen +sdl +shout -skins -speex +stream -svg +svga +theora +v4l +vcd +vlm +vorbis +win32codecs +wxwindows +xml2 -xosd +xv" 0 kB
Code: Select all
main debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU
main debug: looking for memcpy module: 3 candidates
main debug: using memcpy module "memcpymmxext"
main debug: waiting for thread completion
main debug: thread 16386 (playlist) created at priority 0 (src/playlist/playlist.c:183)
main debug: waiting for thread completion
main debug: thread 32771 (preparser) created at priority 0 (src/playlist/playlist.c:205)
main debug: looking for interface module: 1 candidate
main debug: using interface module "hotkeys"
main debug: interface initialized
main debug: thread 49156 (interface) created at priority 0 (src/interface/interface.c:211)
main debug: looking for interface module: 4 candidates
main debug: using interface module "screensaver"
main debug: interface initialized
main debug: thread 65541 (interface) created at priority 0 (src/interface/interface.c:211)
main debug: adding playlist item `/home/chaot/tmp/batman_qt_1m_520_ba.mp4' ( /home/chaot/tmp/batman_qt_1m_520_ba.mp4 )
main debug: looking for interface module: 3 candidates
main debug: using interface module "wxwidgets"
main debug: interface initialized
main debug: thread 81926 (manager) created at priority 0 (src/interface/interface.c:196)
wxwidgets debug: Using last windows config '(-1,0,0,2800,1050)(2,1935,68,410,560)(3,1400,635,360,360)'
wxwidgets debug: id=2 p=(1935,68) s=(410,560)
wxwidgets debug: id=3 p=(1400,635) s=(360,360)
main debug: nothing requested, starting
main debug: creating new input thread
main debug: waiting for thread completion
main debug: thread 98311 (input) created at priority 0 (src/input/input.c:230)
main debug: `/home/chaot/tmp/batman_qt_1m_520_ba.mp4' gives access `' demux `' path `/home/chaot/tmp/batman_qt_1m_520_ba.mp4'
main debug: creating demux: access='' demux='' path='/home/chaot/tmp/batman_qt_1m_520_ba.mp4'
main debug: looking for access_demux module: 2 candidates
main debug: creating access '' path='/home/chaot/tmp/batman_qt_1m_520_ba.mp4'
main debug: looking for access2 module: 6 candidates
vcd debug: trying .cue file: /home/chaot/tmp/batman_qt_1m_520_ba.cue
access_file debug: opening file `/home/chaot/tmp/batman_qt_1m_520_ba.mp4'
main debug: using access2 module "access_file"
main debug: pre buffering
main debug: received first data for our buffer
main debug: prebuffering done 1408981 bytes in 0s - 490013 kbytes/s
main debug: creating demux: access='' demux='' path='/home/chaot/tmp/batman_qt_1m_520_ba.mp4'
main debug: looking for demux2 module: 37 candidates
mp4 debug: found Box: ftyp size 24
mp4 debug: found Box: moov size 110252
mp4 debug: found Box: mvhd size 108
mp4 debug: read box: "mvhd" creation 732151d-36h:10m:12s modification 732151d-36h:10m:16s time scale 600 duration 694977d-48h:00m:01s rate 1.000000 volume 1.000000 next track id 5
mp4 debug: found Box: trak size 36301
mp4 debug: found Box: tkhd size 92
mp4 debug: read box: "tkhd" creation 732151d-36h:10m:09s modification 732151d-36h:10m:16s duration 9941087d-15h:37m:36s track ID 1 layer 0 volume 1.000000 width 0.000000 height 0.000000
mp4 debug: found Box: edts size 36
mp4 debug: found Box: elst size 28
mp4 debug: read box: "elst" entry-count 0
mp4 debug: found Box: mdia size 36165
mp4 debug: found Box: mdhd size 32
mp4 debug: read box: "mdhd" creation 732151d-36h:10m:12s modification 732151d-36h:10m:12s time scale 44100 duration 695050d-15h:49m:20s language eng
mp4 debug: found Box: hdlr size 58
mp4 debug: read box: "hdlr" hanler type soun name Apple Ton Mediensteuerung
mp4 debug: found Box: minf size 36067
mp4 debug: found Box: smhd size 16
mp4 debug: read box: "smhd" balance 0.000000
mp4 debug: found Box: dinf size 36
mp4 debug: found Box: dref size 28
mp4 debug: found Box: url size 12
mp4 debug: read box: "url" url: (null)
mp4 debug: read box: "dref" entry-count 1
mp4 debug: found Box: stbl size 36007
mp4 debug: found Box: stsd size 103
mp4 debug: found Box: mp4a size 87
mp4 debug: read box: "soun" mp4 or qt1/2 (rest=51)
mp4 debug: found Box: esds size 51
mp4 debug: found esds MPEG4ESDescr (34Bytes)
mp4 debug: found esds MP4DecConfigDescr (20Bytes)
mp4 debug: found esds MP4DecSpecificDescr (2Bytes)
mp4 debug: read box: "soun" in stsd channel 2 sample size 16 sample rate 44100.000000
mp4 debug: read box: "stsd" entry-count 1
mp4 debug: found Box: stts size 24
mp4 debug: read box: "stts" entry-count 1
mp4 debug: found Box: stsc size 8236
mp4 debug: read box: "stsc" entry-count 685
mp4 debug: found Box: stsz size 24880
mp4 debug: read box: "stsz" sample-size 0 sample-count 6215
mp4 debug: found Box: stco size 2756
mp4 debug: read box: "co64" entry-count 685
mp4 debug: found Box: trak size 27592
mp4 debug: found Box: tkhd size 92
mp4 debug: read box: "tkhd" creation 732151d-36h:10m:09s modification 732151d-36h:10m:16s duration 9941087d-15h:37m:36s track ID 2 layer 0 volume 0.000000 width 720.000000 height 576.000000
mp4 debug: found Box: edts size 36
mp4 debug: found Box: elst size 28
mp4 debug: read box: "elst" entry-count 0
mp4 debug: found Box: mdia size 27456
mp4 debug: found Box: mdhd size 32
mp4 debug: read box: "mdhd" creation 732151d-36h:10m:12s modification 732151d-36h:10m:16s time scale 600 duration 694978d-12h:03m:20s language eng
mp4 debug: found Box: hdlr size 60
mp4 debug: read box: "hdlr" hanler type vide name Apple Video Mediensteuerung
mp4 debug: found Box: minf size 27356
mp4 debug: found Box: vmhd size 20
mp4 debug: read box: "vmhd" graphics-mode 0 opcolor (0, 0, 0)
mp4 debug: found Box: dinf size 36
mp4 debug: found Box: dref size 28
mp4 debug: found Box: url size 12
mp4 debug: read box: "url" url: (null)
mp4 debug: read box: "dref" entry-count 1
mp4 debug: found Box: stbl size 27292
mp4 debug: found Box: stsd size 148
mp4 debug: found Box: avc1 size 132
mp4 debug: found Box: avcC size 46
mp4 debug: read box: "avcC" version=1 profile=0x42 level=0x1e length size=4 sps=1 pps=1
mp4 debug: - sps[0] length=23
mp4 debug: - pps[0] length=4
mp4 debug: read box: "vide" in stsd 720x576 depth 24
mp4 debug: read box: "stsd" entry-count 1
mp4 debug: found Box: stts size 24
mp4 debug: read box: "stts" entry-count 1
mp4 debug: found Box: stss size 596
mp4 debug: read box: "stss" entry-count 145
mp4 debug: found Box: sdtp size 3476
mp4 warning: unknown box type sdtp (uncompletetly loaded)
mp4 debug: found Box: stsc size 6844
mp4 debug: read box: "stsc" entry-count 569
mp4 debug: found Box: stsz size 13876
mp4 debug: read box: "stsz" sample-size 0 sample-count 3464
mp4 debug: found Box: stco size 2320
mp4 debug: read box: "co64" entry-count 576
mp4 debug: found Box: trak size 24729
mp4 debug: found Box: tkhd size 92
mp4 debug: read box: "tkhd" creation 732151d-36h:10m:09s modification 732151d-36h:10m:16s duration 9941087d-15h:37m:36s track ID 3 layer 0 volume 0.000000 width 0.000000 height 0.000000
mp4 debug: found Box: edts size 36
mp4 debug: found Box: elst size 28
mp4 debug: read box: "elst" entry-count 0
mp4 debug: found Box: tref size 20
mp4 debug: found Box: hint size 12
mp4 warning: unknown box type hint (uncompletetly loaded)
mp4 debug: found Box: mdia size 23991
mp4 debug: found Box: mdhd size 32
mp4 debug: read box: "mdhd" creation 732151d-36h:10m:12s modification 732151d-36h:10m:12s time scale 90000 duration 695127d-55h:45m:00s language eng
mp4 debug: found Box: hdlr size 51
mp4 debug: read box: "hdlr" hanler type hint name hint media handler
mp4 debug: found Box: minf size 23900
mp4 debug: found Box: hmhd size 28
mp4 debug: read box: "hmhd" maxPDU-size 0 avgPDU-size 0 max-bitrate 0 avg-bitrate 0
mp4 debug: found Box: dinf size 36
mp4 debug: found Box: dref size 28
mp4 debug: found Box: url size 12
mp4 debug: read box: "url" url: (null)
mp4 debug: read box: "dref" entry-count 1
mp4 debug: found Box: stbl size 23828
mp4 debug: found Box: stsd size 52
mp4 debug: found Box: rtp size 36
mp4 warning: unknown handler type in stsd (uncompletetly loaded)
mp4 debug: read box: "stsd" entry-count 1
mp4 debug: found Box: stts size 32
mp4 debug: read box: "stts" entry-count 2
mp4 debug: found Box: stss size 596
mp4 debug: read box: "stss" entry-count 145
mp4 debug: found Box: stsc size 6940
mp4 debug: read box: "stsc" entry-count 577
mp4 debug: found Box: stsz size 13876
mp4 debug: read box: "stsz" sample-size 0 sample-count 3464
mp4 debug: found Box: stco size 2324
mp4 debug: read box: "co64" entry-count 577
mp4 debug: found Box: udta size 582
mp4 debug: found Box: name size 26
mp4 debug: found Box: hnti size 305
mp4 debug: found Box: sdp size 297
mp4 warning: unknown box type sdp (uncompletetly loaded)
mp4 debug: found Box: hinf size 243
mp4 warning: unknown box type hinf (uncompletetly loaded)
mp4 debug: found Box: trak size 21321
mp4 debug: found Box: tkhd size 92
mp4 debug: read box: "tkhd" creation 732151d-36h:10m:11s modification 732151d-36h:10m:16s duration 9941087d-15h:37m:36s track ID 4 layer 0 volume 0.000000 width 0.000000 height 0.000000
mp4 debug: found Box: edts size 36
mp4 debug: found Box: elst size 28
mp4 debug: read box: "elst" entry-count 0
mp4 debug: found Box: tref size 20
mp4 debug: found Box: hint size 12
mp4 warning: unknown box type hint (uncompletetly loaded)
mp4 debug: found Box: mdia size 20627
mp4 debug: found Box: mdhd size 32
mp4 debug: read box: "mdhd" creation 732151d-36h:10m:12s modification 732151d-36h:10m:12s time scale 44100 duration 695050d-15h:49m:20s language eng
mp4 debug: found Box: hdlr size 51
mp4 debug: read box: "hdlr" hanler type hint name hint media handler
mp4 debug: found Box: minf size 20536
mp4 debug: found Box: hmhd size 28
mp4 debug: read box: "hmhd" maxPDU-size 0 avgPDU-size 0 max-bitrate 0 avg-bitrate 0
mp4 debug: found Box: dinf size 36
mp4 debug: found Box: dref size 28
mp4 debug: found Box: url size 12
mp4 debug: read box: "url" url: (null)
mp4 debug: read box: "dref" entry-count 1
mp4 debug: found Box: stbl size 20464
mp4 debug: found Box: stsd size 52
mp4 debug: found Box: rtp size 36
mp4 warning: unknown handler type in stsd (uncompletetly loaded)
mp4 debug: read box: "stsd" entry-count 1
mp4 debug: found Box: stts size 3664
mp4 debug: read box: "stts" entry-count 456
mp4 debug: found Box: stsc size 6496
mp4 debug: read box: "stsc" entry-count 540
mp4 debug: found Box: stsz size 7920
mp4 debug: read box: "stsz" sample-size 0 sample-count 1975
mp4 debug: found Box: stco size 2324
mp4 debug: read box: "co64" entry-count 577
mp4 debug: found Box: udta size 538
mp4 debug: found Box: name size 24
mp4 debug: found Box: hnti size 252
mp4 debug: found Box: sdp size 244
mp4 warning: unknown box type sdp (uncompletetly loaded)
mp4 debug: found Box: hinf size 254
mp4 warning: unknown box type hinf (uncompletetly loaded)
mp4 debug: found Box: udta size 193
mp4 debug: found Box: cprt size 67
mp4 debug: read box: "cprt" language eng notice 2005 Warner Brothers Pictures. All rights Reserved.
mp4 debug: found Box: hinv size 13
mp4 warning: unknown box type hinv (uncompletetly loaded)
mp4 debug: found Box: hnti size 105
mp4 debug: found Box: rtp size 97
mp4 warning: unknown box type rtp (uncompletetly loaded)
mp4 debug: found Box: free size 8
mp4 debug: skip box: "free"
mp4 debug: found Box: free size 8
mp4 debug: skip box: "free"
mp4 debug: found Box: mdat size 30157316
mp4 debug: skip box: "mdat"
mp4 debug: dumping root Box "root"
mp4 debug: | + ftyp size 24
mp4 debug: | + moov size 110252
mp4 debug: | | + mvhd size 108
mp4 debug: | | + trak size 36301
mp4 debug: | | | + tkhd size 92
mp4 debug: | | | + edts size 36
mp4 debug: | | | | + elst size 28
mp4 debug: | | | + mdia size 36165
mp4 debug: | | | | + mdhd size 32
mp4 debug: | | | | + hdlr size 58
mp4 debug: | | | | + minf size 36067
mp4 debug: | | | | | + smhd size 16
mp4 debug: | | | | | + dinf size 36
mp4 debug: | | | | | | + dref size 28
mp4 debug: | | | | | | | + url size 12
mp4 debug: | | | | | + stbl size 36007
mp4 debug: | | | | | | + stsd size 103
mp4 debug: | | | | | | | + mp4a size 87
mp4 debug: | | | | | | | | + esds size 51
mp4 debug: | | | | | | + stts size 24
mp4 debug: | | | | | | + stsc size 8236
mp4 debug: | | | | | | + stsz size 24880
mp4 debug: | | | | | | + stco size 2756
mp4 debug: | | + trak size 27592
mp4 debug: | | | + tkhd size 92
mp4 debug: | | | + edts size 36
mp4 debug: | | | | + elst size 28
mp4 debug: | | | + mdia size 27456
mp4 debug: | | | | + mdhd size 32
mp4 debug: | | | | + hdlr size 60
mp4 debug: | | | | + minf size 27356
mp4 debug: | | | | | + vmhd size 20
message warning: message queue overflowed
x11 debug: x11 image size 720x576 (0,0,720x576)
main debug: Registering subpicture channel, ID: 2
main debug: Registering subpicture channel, ID: 3
main debug: Registering subpicture channel, ID: 4
main debug: Registering subpicture channel, ID: 5
main warning: late picture skipped (6412)
mp4 warning: track[0x2] will be disabled (eof?)
ffmpeg debug: ffmpeg codec (h264) stopped
main debug: unlocking module "ffmpeg"
main debug: thread 131081 joined (src/input/decoder.c:191)
main debug: killing decoder fourcc `avc1', 3 PES in FIFO
main debug: control type=0
main debug: control: stopping input
main debug: closing input
mp4 debug: freeing all memory
main debug: unlocking module "mp4"
main debug: unlocking module "access_file"
main debug: unlocking module "faad"
main debug: thread 114696 joined (src/input/decoder.c:191)
main debug: killing decoder fourcc `mp4a', 0 PES in FIFO
main debug: unlocking module "bandlimited_resampler"
main debug: thread 163851 joined (alsa.c:714)
main debug: unlocking module "alsa"
main debug: unlocking module "trivial_mixer"
main debug: thread 98311 joined (src/input/input.c:386)
main debug: garbage collector destroying 1 vout
main debug: unlocking module "i420_rgb_mmx"
main debug: unlocking module "x11"
main debug: thread 147466 joined (src/video_output/video_output.c:456)
I thought the problem could be the faad2 library, but playing the file with the mplayer works quite well and this player is linked against the same faad lib as vlc.
Does anyone has an idea?
Greetings
P.S. If you need some more information, logs or maybe a sample file please ask[/code]