Stream FLAC independent of input?

About encoding, codec settings, muxers and filter usage
auxym
New Cone
New Cone
Posts: 6
Joined: 28 Apr 2012 23:21

Stream FLAC independent of input?

Postby auxym » 21 May 2012 04:07

Hello, I am using VLC to stream music on my home network, via http. My music library contains music in many formats (flac, mp3, aac, vorbis). In order to avoid quality losses in transcoding, I would like the stream output to either be the original file, or transcoded to lossless (flac).

I first tried to send the original audio, no transcoding, with OGG muxing. It works for MP3, Vorbis, and FLAC, but AAC (M4A) is not supported.

I then tried the following sout, to transcode the input as FLAC muxed in OGG. It seems to work for every input format... except flac, for which I get the output listed below.

Any ideas how I could achieve what I want to do?

Code: Select all

#transcode{vcodec=none,acodec=flac,ab=128,channels=2,samplerate=44100}:http{mux=ogg,dst=:11175/stream1}

Code: Select all

main debug: processing request item: Streaming, node: Playlist, skip: 0 main debug: resyncing on Streaming main debug: Streaming is at 10 main debug: starting playback of the new playlist item main debug: creating new input thread main debug: Creating an input for 'Streaming' main debug: reusing sout main debug: you probably want to use gather stream_out main debug: using timeshift granularity of 50 MiB, in path 'E:\Users\ALCIBI~1\AppData\Local\Temp' main debug: `file:///E:/Users/Alcibiade/Downloads/Arcade%20Fire%20-%20Neon%20Bible%20%282007%29%20%5Bflac%5D/01%20-%20Black%20Mirror.flac' gives access `file' demux `' path `/E:/Users/Alcibiade/Downloads/Arcade%20Fire%20-%20Neon%20Bible%20%282007%29%20%5Bflac%5D/01%20-%20Black%20Mirror.flac' main debug: creating demux: access='file' demux='' location='/E:/Users/Alcibiade/Downloads/Arcade%20Fire%20-%20Neon%20Bible%20%282007%29%20%5Bflac%5D/01%20-%20Black%20Mirror.flac' file='E:\Users\Alcibiade\Downloads\Arcade Fire - Neon Bible (2007) [flac]\01 - Black Mirror.flac' main debug: looking for access_demux module: 3 candidates main debug: no access_demux module matching "file" could be loaded main debug: TIMER module_need() : 0.422 ms - Total 0.422 ms / 1 intvls (Avg 0.422 ms) main debug: creating access 'file' location='/E:/Users/Alcibiade/Downloads/Arcade%20Fire%20-%20Neon%20Bible%20%282007%29%20%5Bflac%5D/01%20-%20Black%20Mirror.flac', path='E:\Users\Alcibiade\Downloads\Arcade Fire - Neon Bible (2007) [flac]\01 - Black Mirror.flac' main debug: looking for access module: 3 candidates filesystem debug: opening file `E:\Users\Alcibiade\Downloads\Arcade Fire - Neon Bible (2007) [flac]\01 - Black Mirror.flac' main debug: using access module "filesystem" main debug: TIMER module_need() : 0.233 ms - Total 0.233 ms / 1 intvls (Avg 0.233 ms) main debug: Using stream method for AStream* main debug: starting pre-buffering main debug: received first data after 0 ms main debug: pre-buffering done 1024 bytes in 0s - 21276 KiB/s main debug: looking for stream_filter module: 4 candidates main debug: no stream_filter module matching "any" could be loaded main debug: TIMER module_need() : 0.138 ms - Total 0.138 ms / 1 intvls (Avg 0.138 ms) main debug: looking for stream_filter module: 1 candidate main debug: using stream_filter module "stream_filter_record" main debug: TIMER module_need() : 0.126 ms - Total 0.126 ms / 1 intvls (Avg 0.126 ms) main debug: creating demux: access='file' demux='' location='/E:/Users/Alcibiade/Downloads/Arcade%20Fire%20-%20Neon%20Bible%20%282007%29%20%5Bflac%5D/01%20-%20Black%20Mirror.flac' file='E:\Users\Alcibiade\Downloads\Arcade Fire - Neon Bible (2007) [flac]\01 - Black Mirror.flac' main debug: looking for demux module: 55 candidates main debug: looking for packetizer module: 21 candidates main debug: using packetizer module "packetizer_flac" main debug: TIMER module_need() : 0.129 ms - Total 0.129 ms / 1 intvls (Avg 0.129 ms) main debug: using demux module "flacsys" main debug: TIMER module_need() : 0.364 ms - Total 0.364 ms / 1 intvls (Avg 0.364 ms) main debug: looking for a subtitle file in E:\Users\Alcibiade\Downloads\Arcade Fire - Neon Bible (2007) [flac] main debug: starting in async mode main debug: looking for meta reader module: 2 candidates lua debug: Trying Lua scripts in E:\Users\Alcibiade\AppData\Roaming\vlc\lua\meta\reader lua debug: Trying Lua scripts in C:\Program Files (x86)\VideoLAN\VLC\lua\meta\reader lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\reader\filename.luac qt4 debug: IM: Setting an input main debug: no meta reader module matching "any" could be loaded main debug: TIMER module_need() : 1.465 ms - Total 1.465 ms / 1 intvls (Avg 1.465 ms) main debug: `file:///E:/Users/Alcibiade/Downloads/Arcade%20Fire%20-%20Neon%20Bible%20%282007%29%20%5Bflac%5D/01%20-%20Black%20Mirror.flac' successfully opened main debug: selecting program id=0 main debug: looking for packetizer module: 21 candidates main debug: using packetizer module "packetizer_flac" main debug: TIMER module_need() : 0.157 ms - Total 0.157 ms / 1 intvls (Avg 0.157 ms) main debug: Buffering 0% main debug: switching to sync mode main debug: Buffering 34% main debug: Buffering 69% main debug: Stream buffering done (313 ms in 0 ms) main debug: adding a new sout input (sout_input:02c518e8) stream_out_transcode debug: creating audio transcoding from fcc=`flac' to fcc=`flac' main debug: looking for decoder module: 31 candidates main debug: using decoder module "flac" main debug: TIMER module_need() : 0.258 ms - Total 0.258 ms / 1 intvls (Avg 0.258 ms) main debug: looking for encoder module: 13 candidates flac error: FLAC__stream_encoder_init_stream() failed avcodec debug: libavcodec already initialized avcodec error: cannot open encoder main debug: no encoder module matching "any" could be loaded main debug: TIMER module_need() : 5.676 ms - Total 5.676 ms / 1 intvls (Avg 5.676 ms) stream_out_transcode error: cannot find audio encoder (module:any fourcc:flac). Take a look few lines earlier to see possible reason. main debug: removing module "flac" stream_out_transcode error: cannot create audio chain main error: cannot create packetizer output (flac) main debug: Decoder buffering done in 6 ms

Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: Rolob and 14 guests