Transcoding FLAC -> Vorbis results in invalid file

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

Transcoding FLAC -> Vorbis results in invalid file

Postby auxym » 11 Jun 2012 18:13

I am using VLC 2.0.1 (on windows) and trying to transcode FLAC files to Vorbis. The intention is HTTP streaming, but the result is the same no matter the destination, even a file output. Here is my sout, for example a file output:

Code: Select all

:sout=#transcode{vcodec=none,acodec=vorb,ab=128,channels=2,samplerate=44100}:file{dst=E:\\temp\\graze.ogg} :sout-keep
In my audio encoder settings, for Vorbis, the quality is set to 4. The resulting output file is about 30 kb and appears to contain only headers, no audio data. I get a similar result using mp3 output.

However, if the input file is WAV (instead of flac), then everything appears to work as expected. So this appears to be an issue with the flac decoder? Here is my messages log on debug verbosity, there does not appear to be any error logged:

Code: Select all

main debug: processing request item: Graze, node: Playlist, skip: 0 main debug: resyncing on Graze main debug: Graze is at 0 main debug: starting playback of the new playlist item main debug: creating new input thread main debug: Creating an input for 'Graze' 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/Animal%20Collective%20-%20Fall%20Be%20Kind%20%282009%29%20%5BFLAC%5D/01%20-%20Graze.flac' gives access `file' demux `' path `/E:/Users/Alcibiade/Downloads/Animal%20Collective%20-%20Fall%20Be%20Kind%20%282009%29%20%5BFLAC%5D/01%20-%20Graze.flac' main debug: creating demux: access='file' demux='' location='/E:/Users/Alcibiade/Downloads/Animal%20Collective%20-%20Fall%20Be%20Kind%20%282009%29%20%5BFLAC%5D/01%20-%20Graze.flac' file='E:\Users\Alcibiade\Downloads\Animal Collective - Fall Be Kind (2009) [FLAC]\01 - Graze.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.398 ms - Total 0.398 ms / 1 intvls (Avg 0.398 ms) main debug: creating access 'file' location='/E:/Users/Alcibiade/Downloads/Animal%20Collective%20-%20Fall%20Be%20Kind%20%282009%29%20%5BFLAC%5D/01%20-%20Graze.flac', path='E:\Users\Alcibiade\Downloads\Animal Collective - Fall Be Kind (2009) [FLAC]\01 - Graze.flac' main debug: looking for access module: 3 candidates filesystem debug: opening file `E:\Users\Alcibiade\Downloads\Animal Collective - Fall Be Kind (2009) [FLAC]\01 - Graze.flac' main debug: using access module "filesystem" main debug: TIMER module_need() : 0.226 ms - Total 0.226 ms / 1 intvls (Avg 0.226 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 - 19607 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.127 ms - Total 0.127 ms / 1 intvls (Avg 0.127 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.115 ms - Total 0.115 ms / 1 intvls (Avg 0.115 ms) main debug: creating demux: access='file' demux='' location='/E:/Users/Alcibiade/Downloads/Animal%20Collective%20-%20Fall%20Be%20Kind%20%282009%29%20%5BFLAC%5D/01%20-%20Graze.flac' file='E:\Users\Alcibiade\Downloads\Animal Collective - Fall Be Kind (2009) [FLAC]\01 - Graze.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.121 ms - Total 0.121 ms / 1 intvls (Avg 0.121 ms) main debug: using demux module "flacsys" main debug: TIMER module_need() : 0.370 ms - Total 0.370 ms / 1 intvls (Avg 0.370 ms) main debug: looking for a subtitle file in E:\Users\Alcibiade\Downloads\Animal Collective - Fall Be Kind (2009) [FLAC] main debug: starting in sync mode main debug: looking for meta reader module: 2 candidates main debug: using meta reader module "taglib" main debug: TIMER module_need() : 0.723 ms - Total 0.723 ms / 1 intvls (Avg 0.723 ms) main debug: removing module "taglib" main debug: `file:///E:/Users/Alcibiade/Downloads/Animal%20Collective%20-%20Fall%20Be%20Kind%20%282009%29%20%5BFLAC%5D/01%20-%20Graze.flac' successfully opened qt4 debug: IM: Setting an input 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.126 ms - Total 0.126 ms / 1 intvls (Avg 0.126 ms) main debug: Buffering 0% main debug: switching to async mode main debug: Buffering 30% main debug: adding a new sout input (sout_input:05164c30) stream_out_transcode debug: creating audio transcoding from fcc=`flac' to fcc=`vorb' main debug: looking for decoder module: 31 candidates main debug: using decoder module "flac" main debug: TIMER module_need() : 0.243 ms - Total 0.243 ms / 1 intvls (Avg 0.243 ms) main debug: Buffering 61% main debug: looking for encoder module: 13 candidates main debug: Buffering 92% main debug: Stream buffering done (371 ms in 1 ms) main debug: using encoder module "vorbis" main debug: TIMER module_need() : 26.699 ms - Total 26.699 ms / 1 intvls (Avg 26.699 ms) main debug: adding a new input mux_ogg debug: adding input mux_ogg debug: vorbis stream main debug: Decoder buffering done in 25 ms flac debug: decode STREAMINFO flac debug: channels:2 samplerate:44100 bitspersamples:16 flac debug: STREAMINFO decoded mux_ogg debug: writing footer mux_ogg debug: writing header mux_ogg debug: creating header for vorb main debug: EOF reached main debug: waiting decoder fifos to empty main debug: finished input main debug: removing module "packetizer_flac" main debug: killing decoder fourcc `flac', 0 PES in FIFO main debug: removing a sout input (sout_input:05164c30) main debug: TIMER encoding audio frame : 0.005 ms - Total 16.683 ms / 3469 intvls (Avg 0.005 ms) main debug: removing module "flac" main debug: removing module "vorbis" mux_ogg debug: removing input main warning: no more input streams for this mux main debug: removing module "flacsys" main debug: removing module "packetizer_flac" main debug: removing module "stream_filter_record" main debug: removing module "filesystem" main debug: Program doesn't contain anymore ES main debug: dead input main debug: changing item without a request (current 0/1) main debug: nothing to play qt4 debug: IM: Deleting the input main debug: TIMER input launching for 'Graze' : 3.685 ms - Total 3.685 ms / 1 intvls (Avg 3.685 ms)

bat999
Cone that earned his stripes
Cone that earned his stripes
Posts: 200
Joined: 19 Dec 2007 02:35

Re: Transcoding FLAC -> Vorbis results in invalid file

Postby bat999 » 12 Jun 2012 02:47

Hi
Maybet it's this bug ---> https://trac.videolan.org/vlc/ticket/6400

auxym
New Cone
New Cone
Posts: 6
Joined: 28 Apr 2012 23:21

Re: Transcoding FLAC -> Vorbis results in invalid file

Postby auxym » 12 Jun 2012 15:48

Thanks for the answer, it does appear to be this bug. The trac page specifies the linux platform, but I'm also getting it on windows.

Also, I tried the latest git release of 2.1.0 (20120611) and am getting the same bug.

Hoping to see it fixed in the official release of 2.1.0, I guess.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 8 guests