Audio filter2 creation fails on transcoding
As pointed out in: http://forum.videolan.org/viewtopic.php?f=14&t=50605
VLC can play certain audio streams without issues, but when trying to transcode those same stream, output is wrong (white noise + main error: Failed to create audio filter2).
Tested with Win32 VLC 0.9.2 and 0.9.3 (26th September nightly build).
Sample stream: http://82.94.204.71:8025/
Log:
qt4 debug: MRL passed to the Sout: http://82.94.204.71:8025/
qt4 debug: Sout mrl :sout=#transcode{acodec=s16l,ab=128,channels=2}:duplicate{dst=std{access=file,mux=wav,dst=C:\softa\vlc-0.9.3\testaus.wav}}
main debug: adding item `Streaming' ( http://82.94.204.71:8025/ )
main debug: rebuilding array of current - root Playlist
main debug: rebuild done - 2 items, index 0
main debug: starting new item
main debug: processing request item Streaming node null skip 0
main debug: resyncing on Streaming
main debug: Streaming is at 1
main debug: creating new input thread
main debug: Creating an input for 'Streaming'
main debug: waiting for thread initialization
main debug: thread started
main debug: thread 6160 (input) created at priority 1 (input/input.c:370)
main debug: stream=`transcode'
main debug: looking for sout stream module: 1 candidate
main debug: stream=`duplicate'
main debug: looking for sout stream module: 1 candidate
stream_out_duplicate debug: creating 'duplicate'
stream_out_duplicate debug: * adding `std{access=file,mux=wav,dst=C:\softa\vlc-0.9.3\testaus.wav}'
main debug: stream=`std'
main debug: looking for sout stream module: 1 candidate
main debug: set config option: sout-standard-access to file
main debug: set config option: sout-standard-mux to wav
main debug: set config option: sout-standard-dst to C:\softa\vlc-0.9.3\testaus.wav
stream_out_standard debug: creating `file/wav://C:\softa\vlc-0.9.3\testaus.wav'
stream_out_standard debug: extension is wav
stream_out_standard debug: extension -> mux=wav
stream_out_standard debug: using `file/wav://C:\softa\vlc-0.9.3\testaus.wav'
main debug: looking for sout access module: 1 candidate
access_output_file debug: file access output opened (C:\softa\vlc-0.9.3\testaus.wav)
main debug: using sout access module "access_output_file"
main debug: TIMER module_Need() : 3.000 ms - Total 3.000 ms / 1 intvls (Avg 3.000 ms)
stream_out_standard debug: access opened
main debug: looking for sout mux module: 1 candidate
main debug: using sout mux module "mux_wav"
main debug: TIMER module_Need() : 2.000 ms - Total 2.000 ms / 1 intvls (Avg 2.000 ms)
stream_out_standard debug: mux opened
main debug: using sout stream module "stream_out_standard"
main debug: TIMER module_Need() : 16.000 ms - Total 16.000 ms / 1 intvls (Avg 16.000 ms)
main debug: using sout stream module "stream_out_duplicate"
main debug: TIMER module_Need() : 17.000 ms - Total 17.000 ms / 1 intvls (Avg 17.000 ms)
main debug: set config option: sout-transcode-acodec to s16l
main debug: set config option: sout-transcode-ab to 128
main debug: set config option: sout-transcode-channels to 2
stream_out_transcode debug: codec audio=s16l 0Hz 2 channels 128Kb/s
main debug: using sout stream module "stream_out_transcode"
main debug: TIMER module_Need() : 34.000 ms - Total 34.000 ms / 1 intvls (Avg 34.000 ms)
main debug: `http://82.94.204.71:8025/' gives access `http' demux `' path `82.94.204.71:8025/'
main debug: creating demux: access='http' demux='' path='82.94.204.71:8025/'
main debug: looking for access_demux module: 0 candidates
main warning: no access_demux module matched "http"
main debug: TIMER module_Need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: creating access 'http' path='82.94.204.71:8025/'
main debug: looking for access module: 2 candidates
access_http debug: http: server='82.94.204.71' port=8025 file='/
main debug: net: connecting to 82.94.204.71 port 8025
main debug: connection: Resource temporarily unavailable
qt4 debug: Updating the stream status: 3
main debug: connection succeeded (socket = 5460)
access_http debug: protocol 'ICY' answer code 200
access_http debug: Icy-Notice: <BR>This stream requires <a href="http://www.winamp.com/">Winamp</a><BR>
access_http debug: Icy-Notice: SHOUTcast Distributed Network Audio Server/Linux v1.9.8<BR>
access_http debug: Icy-Name: RTV Parkstad
access_http debug: Icy-Genre: Top40 Rock Pop Hollands
access_http debug: Meta-Info: icy-url: www.radioparkstad.fm
access_http debug: Content-Type: audio/aacp
access_http debug: Meta-Info: icy-pub: 1
access_http debug: Icy-MetaInt: 8192
access_http warning: ICY metaint=8192
access_http debug: Meta-Info: icy-br: 32
access_http info: Raw-audio server found, m4a demuxer selected
access_http debug: auto re-connect enabled
main debug: using access module "access_http"
main debug: TIMER module_Need() : 167.000 ms - Total 167.000 ms / 1 intvls (Avg 167.000 ms)
main debug: Using AStream*Stream
main debug: pre-buffering...
main debug: received first data for our buffer
qt4 debug: New Event: type 1103
qt4 debug: Updating the stream status: 2
main debug: pre-buffering done 7145 bytes in 0s - 51 kbytes/s
main debug: creating demux: access='http' demux='m4a' path='82.94.204.71:8025/'
main debug: looking for demux module: 1 candidate
main debug: looking for packetizer module: 18 candidates
packetizer_mpeg4audio debug: running MPEG4 audio packetizer
packetizer_mpeg4audio debug: no decoder specific info, must be an ADTS or LOAS stream
main debug: using packetizer module "packetizer_mpeg4audio"
main debug: TIMER module_Need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: using demux module "m4a"
main debug: TIMER module_Need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: looking for a subtitle file in c:\softa\vlc-0.9.3\
main debug: starting in sync mode
main debug: looking for meta reader module: 2 candidates
id3tag debug: checking for ID3v1/2 and APEv1/2 tags
main debug: TIMER module_Need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: `http://82.94.204.71:8025/' successfully opened
packetizer_mpeg4audio debug: detected ADTS format
packetizer_mpeg4audio info: AAC channels: 1 samplerate: 22050
qt4 debug: New Event: type 1103
main debug: selecting program id=0
qt4 debug: Updating the stream status: 3
main debug: looking for packetizer module: 18 candidates
packetizer_mpeg4audio debug: running MPEG4 audio packetizer
packetizer_mpeg4audio debug: AAC 22050Hz 1024 samples/frame
main debug: using packetizer module "packetizer_mpeg4audio"
main debug: TIMER module_Need() : 2.000 ms - Total 2.000 ms / 1 intvls (Avg 2.000 ms)
main debug: stream out mode -> no decoder thread
main debug: adding a new sout input (sout_input:06FDAA70)
stream_out_transcode debug: creating audio transcoding from fcc=`mp4a' to fcc=`s16l'
main debug: looking for decoder module: 34 candidates
main debug: using decoder module "faad"
main debug: TIMER module_Need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: looking for encoder module: 11 candidates
qt4 debug: New Event: type 1108
araw debug: samplerate:22050Hz channels:1 bits/sample:16
main debug: using encoder module "araw"
main debug: TIMER module_Need() : 3.000 ms - Total 3.000 ms / 1 intvls (Avg 3.000 ms)
main debug: looking for audio filter2 module: 8 candidates
main debug: TIMER module_Need() : 3.000 ms - Total 3.000 ms / 1 intvls (Avg 3.000 ms)
main error: Failed to create audio filter2
stream_out_duplicate debug: duplicated a new stream codec=s16l (es=0 group=0)
main debug: adding a new input
mux_wav debug: adding 1 input channels, 22050Hz
stream_out_duplicate debug: - added for output 0
faad warning: decoded zero sample
main debug: switching to async mode
main debug: control type=1
access_http debug: New Title=
mux_wav debug: writing header data
main debug: incoming request - stopping current input
main debug: waitpipe: object killed
main debug: socket 5460 polling interrupted
main debug: dying input
main debug: dying input
main debug: control type=0
main debug: control: stopping input
main debug: removing module "packetizer_mpeg4audio"
main debug: removing module "m4a"
main debug: removing module "access_http"
main debug: removing module "packetizer_mpeg4audio"
main debug: killing decoder fourcc `mp4a', 0 PES in FIFO
main debug: removing a sout input (sout_input:06FDAA70)
main debug: TIMER encoding audio frame : 0.000 ms - Total 15.000 ms / 1850 intvls (Avg 0.008 ms)
main debug: removing module "faad"
main debug: removing module "araw"
mux_wav debug: removing input
mux_wav debug: writing header data
qt4 debug: Updating the stream status: 8
main warning: no more input streams for this mux
main debug: thread ended
main debug: dead input
main debug: thread times: real 0m22.997000s, kernel 0m0.156001s, user 0m1.809611s
main debug: thread 6160 joined (playlist/engine.c:244)
main debug: Destroying the input for 'RTV Parkstad'
main debug: TIMER input launching for 'Streaming' : 350.000 ms - Total 350.000 ms / 1 intvls (Avg 350.000 ms)
main debug: destroying chain... (name=transcode)
main debug: destroying chain... (name=duplicate)
stream_out_duplicate debug: closing a duplication
main debug: destroying chain... (name=std)
main debug: removing module "mux_wav"
access_output_file debug: file access output closed
main debug: removing module "access_output_file"
main debug: removing module "stream_out_standard"
main debug: destroying chain done
main debug: removing module "stream_out_duplicate"
main debug: destroying chain done
main debug: removing module "stream_out_transcode"
main debug: destroying chain done