Postby dr.highman » 04 Feb 2009 09:19
sure. But I do not know how to attach this file.
This ac3 file is made like this on FC-9:
ffmpeg -i /usr/share/sounds/login.wav test.ac3
login.wav is 44.1KHz, 2-channels, 16 bit. Or you can get it by
locate login.wav
Then
vlc test.ac3
//sth wrong in sound, on windows, same thing
vlc --codec ffmpeg test.ac3
// [00000452] a52 packetizer: A/52 channels:2 samplerate:44100 bitrate:64000
Segmentation fault
mplayer test.ac3 //works fine
ffplay test.ac3 //works fine
----------------------------------------------------------------------------------------------------------------------
This is output from vlc -vvv test.ac3
VLC media player 0.9.8a Grishenko
[00000001] main libvlc debug: VLC media player - version 0.9.8a Grishenko - (c) 1996-2008 the VideoLAN team
[00000001] main libvlc debug: libvlc was configured with ./configure '--build=i686-pc-linux-gnu' '--host=i686-pc-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-dependency-tracking' '--disable-rpath' '--enable-release' '--with-tuning=no' '--enable-switcher' '--enable-shout' '--enable-live555' '--enable-opencv' '--enable-v4l' '--enable-pvr' '--enable-gnomevfs' '--enable-cddax' '--enable-faad' '--enable-twolame' '--enable-real' '--enable-realrtsp' '--enable-flac' '--enable-tremor' '--enable-speex' '--enable-tarkin' '--enable-theora' '--enable-svg' '--enable-snapshot' '--enable-svgalib' '--enable-xvmc' '--enable-directfb' '--enable-aa' '--enable-caca' '--enable-jack' '--enable-portaudio' '--enable-pulse' '--enable-ncurses' '--enable-xosd' '--enable-fbosd' '--enable-galaktos' '--enable-lirc' '--enable-loader' '--enable-mozilla' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'target_alias=i386-redhat-linux-gnu' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables' 'CXXFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables' 'PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig'
[00000001] main libvlc debug: translation test: code is "C"
[00000001] main libvlc debug: checking builtin modules
[00000001] main libvlc debug: checking plugin modules
[00000001] main libvlc debug: loading plugins cache file /home/highman/.cache/vlc/plugins-04041e.dat
[00000001] main libvlc debug: recursively browsing `/usr/lib/vlc'
[00000001] main libvlc debug: module bank initialized, found 295 modules
[00000001] main libvlc debug: opening config file (/home/highman/.config/vlc/vlcrc)
[00000001] main libvlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU
[00000001] main libvlc debug: looking for memcpy module: 3 candidates
[00000001] main libvlc debug: using memcpy module "memcpymmxext"
[00000393] main interaction debug: thread 3084397456 (Interaction control) created at priority 0 (interface/interaction.c:382)
[00000393] main interaction debug: thread started
[00000395] main input debug: Creating an input for 'Media Library'
[00000395] main input debug: Input is a meta file: disabling unneeded options
[00000395] main input debug: `file/xspf-open:///home/highman/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/highman/.local/share/vlc/ml.xspf'
[00000395] main input debug: creating access 'file' path='/home/highman/.local/share/vlc/ml.xspf'
[00000396] main access debug: looking for access module: 3 candidates
[00000396] access_file access debug: opening file `/home/highman/.local/share/vlc/ml.xspf'
[00000396] main access debug: using access module "access_file"
[00000396] main access debug: TIMER module_Need() : 1.467 ms - Total 1.467 ms / 1 intvls (Avg 1.467 ms)
[00000401] main stream debug: Using AStream*Stream
[00000401] main stream debug: pre-buffering...
[00000401] main stream debug: received first data for our buffer
[00000395] main input debug: creating demux: access='file' demux='xspf-open' path='/home/highman/.local/share/vlc/ml.xspf'
[00000402] main demux debug: looking for demux module: 1 candidate
[00000402] playlist demux debug: using XSPF playlist reader
[00000402] main demux debug: using demux module "playlist"
[00000402] main demux debug: TIMER module_Need() : 0.338 ms - Total 0.338 ms / 1 intvls (Avg 0.338 ms)
[00000395] main input debug: `file/xspf-open:///home/highman/.local/share/vlc/ml.xspf' successfully opened
[00000417] main xml debug: looking for xml module: 2 candidates
[00000417] main xml debug: using xml module "xml"
[00000417] main xml debug: TIMER module_Need() : 0.617 ms - Total 0.617 ms / 1 intvls (Avg 0.617 ms)
[00000402] playlist demux debug: parsed 0 tracks successfully
[00000417] main xml debug: removing module "xml"
[00000395] main input debug: EOF reached
[00000395] main input debug: control type=1
[00000402] main demux debug: removing module "playlist"
[00000396] main access debug: removing module "access_file"
[00000395] main input debug: TIMER input launching for 'Media Library' : 4.447 ms - Total 4.447 ms / 1 intvls (Avg 4.447 ms)
[00000419] main preparser debug: waiting for thread initialization
[00000419] main preparser debug: thread started
[00000419] main preparser debug: thread 3072326544 (preparser) created at priority 0 (playlist/thread.c:79)
[00000420] main fetcher debug: waiting for thread initialization
[00000420] main fetcher debug: thread started
[00000420] main fetcher debug: thread 3061836688 (fetcher) created at priority 0 (playlist/thread.c:108)
[00000394] main playlist debug: waiting for thread initialization
[00000394] main playlist debug: thread started
[00000394] main playlist debug: rebuilding array of current - root Playlist
[00000394] main playlist debug: rebuild done - 0 items, index -1
[00000394] main playlist debug: thread 3051346832 (playlist) created at priority 0 (playlist/thread.c:117)
[00000421] main interface debug: looking for interface module: 1 candidate
[00000421] main interface debug: using interface module "hotkeys"
[00000421] main interface debug: TIMER module_Need() : 0.189 ms - Total 0.189 ms / 1 intvls (Avg 0.189 ms)
[00000421] main interface debug: thread 3040856976 (interface) created at priority 0 (interface/interface.c:168)
[00000421] main interface debug: thread started
[00000423] main interface debug: looking for interface module: 1 candidate
[00000423] main interface debug: using interface module "inhibit"
[00000423] main interface debug: TIMER module_Need() : 2.766 ms - Total 2.766 ms / 1 intvls (Avg 2.766 ms)
[00000423] main interface debug: thread started
[00000423] main interface debug: thread 3030367120 (interface) created at priority 0 (interface/interface.c:168)
[00000425] main interface debug: looking for interface module: 1 candidate
[00000425] main interface debug: using interface module "screensaver"
[00000425] main interface debug: TIMER module_Need() : 0.279 ms - Total 0.279 ms / 1 intvls (Avg 0.279 ms)
[00000425] main interface debug: thread started
[00000425] main interface debug: thread 3019877264 (interface) created at priority 0 (interface/interface.c:168)
[00000394] main playlist debug: adding item `test.ac3' ( test.ac3 )
[00000427] main interface debug: looking for interface module: 23 candidates
[00000427] main interface debug: using interface module "signals"
[00000427] main interface debug: TIMER module_Need() : 0.245 ms - Total 0.245 ms / 1 intvls (Avg 0.245 ms)
[00000427] main interface debug: thread started
[00000427] main interface debug: thread 2998897552 (interface) created at priority 0 (interface/interface.c:168)
[00000001] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[00000429] main interface debug: looking for interface module: 6 candidates
[00000429] main interface debug: using interface module "qt4"
[00000429] main interface debug: TIMER module_Need() : 10.618 ms - Total 10.618 ms / 1 intvls (Avg 10.618 ms)
[00000429] main interface debug: thread 2988407696 (interface) created at priority 0 (interface/interface.c:168)
[00000429] main interface debug: thread started
[00000394] main playlist debug: starting new item
[00000394] main playlist debug: processing request item null node Playlist skip 0
[00000394] main playlist debug: rebuilding array of current - root Playlist
[00000394] main playlist debug: rebuild done - 1 items, index -1
[00000394] main playlist debug: creating new input thread
[00000433] main input debug: Creating an input for 'test.ac3'
[00000433] main input debug: thread started
[00000433] main input debug: waiting for thread initialization
[00000433] main input debug: `test.ac3' gives access `' demux `' path `test.ac3'
[00000433] main input debug: thread 2977917840 (input) created at priority 10 (input/input.c:370)
[00000433] main input debug: creating demux: access='' demux='' path='test.ac3'
[00000434] main demux debug: looking for access_demux module: 3 candidates
[00000434] main demux debug: TIMER module_Need() : 1.103 ms - Total 1.103 ms / 1 intvls (Avg 1.103 ms)
[00000433] main input debug: creating access '' path='test.ac3'
[00000439] main access debug: looking for access module: 8 candidates
[00000439] vcd access debug: trying .cue file: test.cue
[00000439] vcd access debug: could not find .cue file
[00000439] access_file access debug: opening file `test.ac3'
[00000439] main access debug: using access module "access_file"
[00000439] main access debug: TIMER module_Need() : 0.457 ms - Total 0.457 ms / 1 intvls (Avg 0.457 ms)
[00000441] main stream debug: Using AStream*Stream
[00000441] main stream debug: pre-buffering...
[00000441] main stream debug: received first data for our buffer
[00000433] main input debug: creating demux: access='' demux='' path='test.ac3'
[00000442] main demux debug: looking for demux module: 51 candidates
[00000452] main packetizer debug: looking for packetizer module: 18 candidates
[00000452] main packetizer debug: using packetizer module "a52"
[00000452] main packetizer debug: TIMER module_Need() : 2.316 ms - Total 2.316 ms / 1 intvls (Avg 2.316 ms)
[00000433] main input debug: selecting program id=0
[00000442] main demux debug: using demux module "a52sys"
[00000442] main demux debug: TIMER module_Need() : 3.526 ms - Total 3.526 ms / 1 intvls (Avg 3.526 ms)
[00000433] main input debug: looking for a subtitle file in /home/highman/
[00000482] main decoder debug: looking for decoder module: 35 candidates
[00000482] main decoder debug: using decoder module "a52"
[00000482] main decoder debug: TIMER module_Need() : 2.136 ms - Total 2.136 ms / 1 intvls (Avg 2.136 ms)
[00000482] main decoder debug: thread 2952784784 (decoder) created at priority 5 (input/decoder.c:217)
[00000482] main decoder debug: thread started
[00000442] main demux debug: looking for meta reader module: 2 candidates
[00000442] id3tag demux debug: checking for ID3v1/2 and APEv1/2 tags
[00000442] main demux debug: TIMER module_Need() : 1.595 ms - Total 1.595 ms / 1 intvls (Avg 1.595 ms)
[00000433] main input debug: `test.ac3' successfully opened
[00000452] a52 packetizer: A/52 channels:2 samplerate:44100 bitrate:64000
[00000482] a52 decoder: A/52 channels:2 samplerate:44100 bitrate:64000
[00000482] main decoder debug: no aout present, spawning one
[00000494] main audio output debug: looking for audio output module: 6 candidates
[00000494] pulse audio output: No. of Audio Channels: 2
[00000494] pulse audio output debug: Pulse mainloop started
[00000433] main input debug: control type=1
[00000494] pulse audio output debug: Pulse stream connected
[00000494] pulse audio output debug: Pulse initialized successfully
[00000494] pulse audio output debug: Buffer metrics: maxlength=88200, tlength=79376, prebuf=39688, minreq=7936
[00000494] pulse audio output debug: Using sample spec 'float32le 2ch 44100Hz', channel map 'front-left,front-right'.
[00000494] pulse audio output debug: Connected to device alsa_output.pci_8086_284b_sound_card_0_alsa_playback_0 (0, not suspended).
[00000494] main audio output debug: using audio output module "pulse"
[00000494] main audio output debug: TIMER module_Need() : 40.528 ms - Total 40.528 ms / 1 intvls (Avg 40.528 ms)
[00000494] main audio output debug: output 'fl32' 44100 Hz Stereo frame=1 samples/8 bytes
[00000494] main audio output debug: mixer 'fl32' 44100 Hz Stereo frame=1 samples/8 bytes
[00000494] main audio output debug: no need for any filter
[00000494] main audio output debug: looking for audio mixer module: 3 candidates
[00000494] main audio output debug: using audio mixer module "float32_mixer"
[00000494] main audio output debug: TIMER module_Need() : 0.319 ms - Total 0.319 ms / 1 intvls (Avg 0.319 ms)
[00000494] main audio output debug: input 'a52 ' 44100 Hz Stereo frame=1536 samples/278 bytes
[00000494] main audio output debug: filter(s) 'a52 '->'fl32' 44100 Hz->44100 Hz Stereo->Stereo
[00000497] main audio output debug: looking for audio filter module: 24 candidates
No accelerated IMDCT transform found
[00000497] main audio output debug: using audio filter module "a52tofloat32"
[00000497] main audio output debug: TIMER module_Need() : 1.638 ms - Total 1.638 ms / 1 intvls (Avg 1.638 ms)
[00000494] main audio output debug: found a filter for the whole conversion
[00000494] main audio output debug: filter(s) 'fl32'->'fl32' 48510 Hz->44100 Hz Stereo->Stereo
[00000504] main audio output debug: looking for audio filter module: 24 candidates
[00000504] main audio output debug: using audio filter module "bandlimited_resampler"
[00000504] main audio output debug: TIMER module_Need() : 0.252 ms - Total 0.252 ms / 1 intvls (Avg 0.252 ms)
[00000494] main audio output debug: found a filter for the whole conversion
[00000494] main audio output debug: removing module "float32_mixer"
[00000494] main audio output debug: looking for audio mixer module: 3 candidates
[00000494] main audio output debug: using audio mixer module "trivial_mixer"
[00000494] main audio output debug: TIMER module_Need() : 0.190 ms - Total 0.190 ms / 1 intvls (Avg 0.190 ms)
[00000494] pulse audio output debug: Pulse stream started
[00000497] main audio output debug: removing module "a52tofloat32"
[00000504] main audio output debug: removing module "bandlimited_resampler"
[00000494] pulse audio output debug: Pulse Close
[00000494] main audio output debug: removing module "pulse"
[00000494] main audio output debug: removing module "trivial_mixer"
[00000494] main audio output debug: looking for audio output module: 6 candidates
[00000494] pulse audio output: No. of Audio Channels: 2
[00000494] pulse audio output debug: Pulse mainloop started
[00000494] pulse audio output debug: Pulse stream connected
[00000494] pulse audio output debug: Pulse initialized successfully
[00000494] pulse audio output debug: Buffer metrics: maxlength=88200, tlength=79376, prebuf=39688, minreq=7936
[00000494] pulse audio output debug: Using sample spec 'float32le 2ch 44100Hz', channel map 'front-left,front-right'.
[00000494] pulse audio output debug: Connected to device alsa_output.pci_8086_284b_sound_card_0_alsa_playback_0 (0, not suspended).
[00000494] main audio output debug: using audio output module "pulse"
[00000494] main audio output debug: TIMER module_Need() : 3.336 ms - Total 3.336 ms / 1 intvls (Avg 3.336 ms)
[00000494] main audio output debug: output 'fl32' 44100 Hz Stereo frame=1 samples/8 bytes
[00000494] main audio output debug: mixer 'fl32' 44100 Hz Stereo frame=1 samples/8 bytes
[00000494] main audio output debug: no need for any filter
[00000494] main audio output debug: looking for audio mixer module: 3 candidates
[00000494] main audio output debug: using audio mixer module "float32_mixer"
[00000494] main audio output debug: TIMER module_Need() : 0.117 ms - Total 0.117 ms / 1 intvls (Avg 0.117 ms)
[00000494] main audio output debug: input 'a52 ' 44100 Hz Stereo frame=1536 samples/280 bytes
[00000494] main audio output debug: filter(s) 'a52 '->'fl32' 44100 Hz->44100 Hz Stereo->Stereo
[00000508] main audio output debug: looking for audio filter module: 24 candidates
No accelerated IMDCT transform found
[00000508] main audio output debug: using audio filter module "a52tofloat32"
[00000508] main audio output debug: TIMER module_Need() : 0.868 ms - Total 0.868 ms / 1 intvls (Avg 0.868 ms)
[00000494] main audio output debug: found a filter for the whole conversion
[00000494] main audio output debug: filter(s) 'fl32'->'fl32' 48510 Hz->44100 Hz Stereo->Stereo
[00000509] main audio output debug: looking for audio filter module: 24 candidates
[00000509] main audio output debug: using audio filter module "bandlimited_resampler"
[00000509] main audio output debug: TIMER module_Need() : 0.169 ms - Total 0.169 ms / 1 intvls (Avg 0.169 ms)
[00000494] main audio output debug: found a filter for the whole conversion
[00000494] pulse audio output debug: Pulse stream started
[00000494] main audio output debug: removing module "float32_mixer"
[00000494] main audio output debug: looking for audio mixer module: 3 candidates
[00000494] main audio output debug: using audio mixer module "trivial_mixer"
[00000494] main audio output debug: TIMER module_Need() : 0.125 ms - Total 0.125 ms / 1 intvls (Avg 0.125 ms)
[00000508] main audio output debug: removing module "a52tofloat32"
[00000509] main audio output debug: removing module "bandlimited_resampler"
[00000494] pulse audio output debug: Pulse Close
[00000429] qt4 interface debug: Error while initializing qt-specific localization
[00000429] qt4 interface debug: Updating the stream status: 3
[00000494] main audio output debug: removing module "pulse"
[00000494] main audio output debug: removing module "trivial_mixer"
[00000494] main audio output debug: looking for audio output module: 6 candidates
[00000494] pulse audio output: No. of Audio Channels: 2
[00000494] pulse audio output debug: Pulse mainloop started
[00000494] pulse audio output debug: Pulse stream connected
[00000494] pulse audio output debug: Pulse initialized successfully
[00000494] pulse audio output debug: Buffer metrics: maxlength=88200, tlength=79376, prebuf=39688, minreq=7936
[00000494] pulse audio output debug: Using sample spec 'float32le 2ch 44100Hz', channel map 'front-left,front-right'.
[00000494] pulse audio output debug: Connected to device alsa_output.pci_8086_284b_sound_card_0_alsa_playback_0 (0, not suspended).
[00000494] main audio output debug: using audio output module "pulse"
[00000494] main audio output debug: TIMER module_Need() : 2.161 ms - Total 2.161 ms / 1 intvls (Avg 2.161 ms)
[00000494] main audio output debug: output 'fl32' 44100 Hz Stereo frame=1 samples/8 bytes
[00000494] main audio output debug: mixer 'fl32' 44100 Hz Stereo frame=1 samples/8 bytes
[00000494] main audio output debug: no need for any filter
[00000494] main audio output debug: looking for audio mixer module: 3 candidates
[00000494] main audio output debug: using audio mixer module "float32_mixer"
[00000494] main audio output debug: TIMER module_Need() : 0.103 ms - Total 0.103 ms / 1 intvls (Avg 0.103 ms)
[00000494] main audio output debug: input 'a52 ' 44100 Hz Stereo frame=1536 samples/278 bytes
[00000494] main audio output debug: filter(s) 'a52 '->'fl32' 44100 Hz->44100 Hz Stereo->Stereo
[00000510] main audio output debug: looking for audio filter module: 24 candidates
No accelerated IMDCT transform found
Similiar cycle code