If I open the GUI and click on the record button, I can record in stereo (default) with no volume problems and no special setup. I can't find the VLC log file to see what options are being used by the GUI as arguments (I don't know if logging is a feature that needs to be explicitly started or not). I've searched in the VLC installation area and in my %appdata%/vlc area and don't see anything that looks like a log file.
I'm a novice at VLC command line scripting so please be kind. I'm not even sure I need the #transcode portion of the VLC command (I've tried some things without it and they abort the VLC instance) as it looks like the stream is in an mp3 format already (based on how I misinterpret the verbose comments). I've tried going through the documentation; but the VLC documentation is worse than the Xerox Sigma 9 mainframe manuals and deals mostly with video, not audio issues (not surprised on that point as this is primarily a video product).
The following is the windows batch file I'm using as a test setup. At the moment the URL_IN value is hard coded for testing purposes only. My thanks to george4tape for including his command in a related ticket about the transcoding being broken. I used his work as a starting point for my attempts.
Code: Select all
REM george4tape from ticket 7692 at https://trac.videolan.org/vlc/ticket/7692
REM Use with scheduler to record programs automatically.
REM Pass the URL to record into this script as the first argument.
REM
SET URL_IN="http://war.str3am.com:7180/live"
REM SET URL_IN=%1
REM 33 Minutes = 60*33 = 1980 seconds
SET REC_SEC="30"
SET MONTH=%DATE:~7,2%
SET MONTH=%MONTH: =0%
SET DAY=%DATE:~4,2%
SET DAY=%DAY: =0%
SET LOGTIME=%TIME: =0%
SET LOGTIME=%LOGTIME:~0,8%
SET LOGTIME=%LOGTIME::=_%
SET DATE_TIME=%DATE:~-4%_%MONTH%_%DAY%_%LOGTIME%
SET DEST="C:\Documents and Settings\Brian S. Wilson\My Documents\%DATE_TIME%.mp3"
"C:\Program Files\VideoLAN\VLC\vlc.exe" -vvv -I dummy --volume=1023 --http-caching 5000 --stop-time=%REC_SEC% --sout=#transcode{acodec=mp3,ab=128,channels=2,samplerate=44100}:std{access=file,mux=raw,dst=%DEST%} %URL_IN% vlc://quit
:std{access=file,mux=raw,dst=%DEST%}
to
:std{access=file,mux=dummy,dst=%DEST%}
and
:std{access=file,mux=es,dst=%DEST%}
with no success on the mono/stereo or the volume issues.
Here are the verbose messages I get in the output screen. This is from a run with the "raw" mux specified. There are a few more lines output when the session closes, but I can't capture them as the screen closes too quickly. Any help would be appreciated.
Code: Select all
[00e64450] dummy interface: VLC media player - 2.0.3 Twoflower
[00e64450] dummy interface: Copyright c 1996-2012 VLC authors and VideoLAN
[00e64450] dummy interface:
Warning: if you cannot access the GUI anymore, open a command-line window, go to the directory where you installed VLC and run "vlc
-I qt"
[00e64450] dummy interface: using the dummy interface module...
[00e64450] main interface debug: using interface module "dummy"
[00e64450] main interface debug: TIMER module_need() : 12.443 ms - Total 12.443 ms / 1 intvls (Avg 12.443 ms)
[00e02698] main playlist debug: processing request item: null, node: Playlist, skip: 0
[00e02698] main playlist debug: starting playback of the new playlist item
[00e02698] main playlist debug: resyncing on http://war.str3am.com:7180/live
[00e02698] main playlist debug: http://war.str3am.com:7180/live is at 0
[00e02698] main playlist debug: creating new input thread
[00e58ae0] main input debug: Creating an input for 'http://war.str3am.com:7180/live'
[00e541f8] main stream output debug: using sout chain=`transcode{acodec=mp3,ab=128,channels=2,samplerate=44100}:std{access=file,mux=
raw,dst=C:\Documents and Settings\Brian S. Wilson\My Documents\2012_11_11_12_16_26.mp3}'
[00e541f8] main stream output debug: stream=`std'
[00dc0de8] main stream out debug: looking for sout stream module: 1 candidate
[00dc0de8] main stream out debug: set config option: sout-standard-access to file
[00dc0de8] main stream out debug: set config option: sout-standard-mux to raw
[00dc0de8] main stream out debug: set config option: sout-standard-dst to C:\Documents and Settings\Brian S. Wilson\My Documents\2012_11_11_12_16_26.mp3
[00dc0830] main access out debug: looking for sout access module: 1 candidate
[00dc0830] access_output_file access out debug: file access output opened (C:\Documents and Settings\Brian S. Wilson\My Documents\2012_11_11_12_16_26.mp3)
[00dc0830] main access out debug: using sout access module "access_output_file"
[00dc0830] main access out debug: TIMER module_need() : 100.713 ms - Total 100.713 ms / 1 intvls (Avg 100.713 ms)
[00dc0ab8] main mux debug: looking for sout mux module: 1 candidate
[00dc0ab8] mux_dummy mux debug: Dummy/Raw muxer opened
[00dc0ab8] mux_dummy mux: Open
[00dc0ab8] main mux debug: using sout mux module "mux_dummy"
[00dc0ab8] main mux debug: TIMER module_need() : 1.758 ms - Total 1.758 ms / 1 intvls (Avg 1.758 ms)
[00e541f8] main stream output debug: muxer support adding stream at any time
[00e541f8] main stream output debug: muxer prefers to wait for all ES before starting to mux
[00dc0de8] stream_out_standard stream out debug: using `file/raw://C:\Documents and Settings\Brian S. Wilson\My Documents\2012_11_11_12_16_26.mp3'
[00dc0de8] main stream out debug: using sout stream module "stream_out_standard"
[00dc0de8] main stream out debug: TIMER module_need() : 105.899 ms - Total 105.899 ms / 1 intvls (Avg 105.899 ms)
[00e541f8] main stream output debug: stream=`transcode'
[00e68278] main stream out debug: looking for sout stream module: 1 candidate
[00e68278] main stream out debug: set config option: sout-transcode-acodec to mp3
[00e68278] main stream out debug: set config option: sout-transcode-ab to 128
[00e68278] main stream out debug: set config option: sout-transcode-channels to 2
[00e68278] main stream out debug: set config option: sout-transcode-samplerate to 44100
[00e68278] stream_out_transcode stream out debug: codec audio=mp3 44100Hz 2 channels 128Kb/s
[00e68278] main stream out debug: using sout stream module "stream_out_transcode"
[00e68278] main stream out debug: TIMER module_need() : 2.828 ms - Total 2.828 ms / 1 intvls (Avg 2.828 ms)
[00e58ae0] main input debug: using timeshift granularity of 50 MiB, in path 'C:\DOCUME~1\BRIANS~1.WIL\LOCALS~1\Temp'
[00e58ae0] main input debug: `http://war.str3am.com:7180/live' gives access `http' demux `' path `war.str3am.com:7180/live'
[00e58ae0] main input debug: creating demux: access='http' demux='' location='war.str3am.com:7180/live' file='\\war.str3am.com:7180\
live'
[00e5c068] main demux debug: looking for access_demux module: 0 candidates
[00e5c068] main demux debug: no access_demux module matched "http"
[00e5c068] main demux debug: TIMER module_need() : 0.511 ms - Total 0.511 ms / 1 intvls (Avg 0.511 ms)
[00e58ae0] main input debug: creating access 'http' location='war.str3am.com:7180/live', path='\\war.str3am.com:7180\live'
[00e544a0] main access debug: looking for access module: 2 candidates
[00e544a0] access_http access debug: http: server='war.str3am.com' port=7180 file='/live'
[00e544a0] main access debug: net: connecting to war.str3am.com port 7180
[00e544a0] main access debug: connection succeeded (socket = 1412)
[00e544a0] access_http access debug: protocol 'HTTP' answer code 206
[00e544a0] access_http access debug: Content-Type: audio/mpeg
[00e544a0] access_http access debug: Meta-Info: icy-br: 32
[00e544a0] access_http access debug: Meta-Info: icy-description: 3ABN Radio's unique lifestyle format includes talk, information, mu
sic and inspiration.
[00e544a0] access_http access debug: Icy-Genre: Other/Mixed
[00e544a0] access_http access debug: Icy-Name: 3ABN Radio-English
[00e544a0] access_http access debug: Meta-Info: icy-pub: 1
[00e544a0] access_http access debug: Meta-Info: icy-url: www.3abnradio.org
[00e544a0] access_http access debug: Server: Icecast 2.3.2
[00e544a0] access_http access debug: Icy-MetaInt: 16000
[00e544a0] access_http access warning: ICY metaint=16000
[00e544a0] access_http access: Raw-audio server found, mp3 demuxer selected
[00e544a0] access_http access debug: auto re-connect enabled
[00e544a0] main access debug: using access module "access_http"
[00e544a0] main access debug: TIMER module_need() : 1036.753 ms - Total 1036.753 ms / 1 intvls (Avg 1036.753 ms)
[00dc3dc0] main stream debug: Using stream method for AStream*
[00dc3dc0] main stream debug: starting pre-buffering
[00dc3dc0] main stream debug: received first data after 428 ms
[00dc3dc0] main stream debug: pre-buffering done 1024 bytes in 0s - 2 KiB/s
[00e63590] main stream debug: looking for stream_filter module: 4 candidates
[00e63590] main stream debug: no stream_filter module matching "any" could be loaded
[00e63590] main stream debug: TIMER module_need() : 0.660 ms - Total 0.660 ms / 1 intvls (Avg 0.660 ms)
[00e63590] main stream debug: looking for stream_filter module: 1 candidate
[00e63590] main stream debug: using stream_filter module "stream_filter_record"
[00e63590] main stream debug: TIMER module_need() : 0.708 ms - Total 0.708 ms / 1 intvls (Avg 0.708 ms)
[00e58ae0] main input debug: creating demux: access='http' demux='mp3' location='war.str3am.com:7180/live' file='\\war.str3am.com:71
80\live'
[00e5c068] main demux debug: looking for demux module: 1 candidate
[00e5c068] es demux debug: detected format mpga
[00e62be0] main demux packetizer debug: looking for packetizer module: 21 candidates
[00e62be0] main demux packetizer debug: using packetizer module "mpeg_audio"
[00e62be0] main demux packetizer debug: TIMER module_need() : 727.995 ms - Total 727.995 ms / 1 intvls (Avg 727.995 ms)
[00e62be0] mpeg_audio demux packetizer debug: MPGA channels:1 samplerate:22050 bitrate:32
[00e58ae0] main input debug: selecting program id=0
[00e5c068] main demux debug: using demux module "es"
[00e5c068] main demux debug: TIMER module_need() : 837.241 ms - Total 837.241 ms / 1 intvls (Avg 837.241 ms)
[00dc3198] main decoder debug: looking for packetizer module: 21 candidates
[00dc3198] main decoder debug: using packetizer module "mpeg_audio"
[00dc3198] main decoder debug: TIMER module_need() : 0.728 ms - Total 0.728 ms / 1 intvls (Avg 0.728 ms)
[00e58ae0] main input debug: starting in sync mode
[00dc2778] main demux meta debug: looking for meta reader module: 2 candidates
[00dc2778] lua demux meta debug: Trying Lua scripts in C:\Documents and Settings\Brian S. Wilson\Application Data\vlc\lua\meta\reade
r
[00dc2778] lua demux meta debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\reader
[00dc2778] lua demux meta debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\reader\filename.luac
[00dc2778] main demux meta debug: no meta reader module matching "any" could be loaded
[00dc2778] main demux meta debug: TIMER module_need() : 11.551 ms - Total 11.551 ms / 1 intvls (Avg 11.551 ms)
[00e58ae0] main input debug: `http://war.str3am.com:7180/live' successfully opened
[00e58ae0] main input debug: Buffering 0%
[00e58ae0] main input debug: switching to async mode
[00e58ae0] main input debug: Buffering 2%
[00dc3198] mpeg_audio decoder debug: MPGA channels:1 samplerate:22050 bitrate:32
[00e541f8] main stream output debug: adding a new sout input (sout_input:00e686d8)
[00e68278] stream_out_transcode stream out debug: creating audio transcoding from fcc=`mpga' to fcc=`mp3 '
[00e6efe0] main generic debug: looking for decoder module: 31 candidates
[00e6efe0] main generic debug: using decoder module "mpeg_audio"
[00e6efe0] main generic debug: TIMER module_need() : 303.827 ms - Total 303.827 ms / 1 intvls (Avg 303.827 ms)
[00e65750] main encoder debug: looking for encoder module: 13 candidates
[00e65750] avcodec encoder debug: libavcodec initialized (interface 0x361100)
[libmp3lame @ 00dd3c80] channel_layout not specified
[00e65750] avcodec encoder debug: found encoder MPEG I/II Layer 3
[00e65750] main encoder debug: using encoder module "avcodec"
[00e65750] main encoder debug: TIMER module_need() : 410.154 ms - Total 410.154 ms / 1 intvls (Avg 410.154 ms)
[00e68278] stream_out_transcode stream out debug: Looking for filter (mpga->s32l, channels 1->1, rate 22050->44100)
[00e6dcd8] main filter debug: looking for audio filter module: 14 candidates
[00e6dcd8] mpgatofixed32 filter debug: mpga->f32l, bits per sample: 32
[00e6dcd8] main filter debug: using audio filter module "mpgatofixed32"
[00e6dcd8] main filter debug: TIMER module_need() : 198.840 ms - Total 198.840 ms / 1 intvls (Avg 198.840 ms)
[00e68278] main stream out debug: Filter 'mpgatofixed32' (00e6dcd8) appended to chain
[00e75b10] main filter debug: looking for audio filter module: 14 candidates
[00e75b10] main filter debug: using audio filter module "samplerate"
[00e75b10] main filter debug: TIMER module_need() : 2.229 ms - Total 2.229 ms / 1 intvls (Avg 2.229 ms)
[00e68278] main stream out debug: Filter 'SRC resampler' (00e75b10) appended to chain
[039928b0] main filter debug: looking for audio filter module: 14 candidates
[039928b0] audio_format filter debug: f32l->s32l, bits per sample: 32->32
[039928b0] main filter debug: using audio filter module "audio_format"
[039928b0] main filter debug: TIMER module_need() : 506.400 ms - Total 506.400 ms / 1 intvls (Avg 506.400 ms)
[00e68278] main stream out debug: Filter 'audio_format' (039928b0) appended to chain
[00e68278] stream_out_transcode stream out debug: Got complete audio filter chain
[00dc0ab8] main mux debug: adding a new input
[00dc0ab8] mux_dummy mux debug: adding input
[00e58ae0] main input debug: Buffering 5%
[00e58ae0] main input debug: Buffering 7%
[00e58ae0] main input debug: Buffering 10%
[00e58ae0] main input debug: Buffering 13%
[00e58ae0] main input debug: Buffering 15%
[00e58ae0] main input debug: Buffering 18%
[00e58ae0] main input debug: Buffering 20%
[00e58ae0] main input debug: Buffering 23%
[00e58ae0] main input debug: Buffering 26%
[00e58ae0] main input debug: Buffering 28%
[00e58ae0] main input debug: Buffering 31%
[00e58ae0] main input debug: Buffering 33%
[00e58ae0] main input debug: Buffering 36%
[00e58ae0] main input debug: Buffering 39%
[00e58ae0] main input debug: Buffering 41%
[00e58ae0] main input debug: Buffering 44%
[00e58ae0] main input debug: Buffering 47%
[00e58ae0] main input debug: Buffering 49%
[00e58ae0] main input debug: Buffering 52%
[00e58ae0] main input debug: Buffering 54%
[00e58ae0] main input debug: Buffering 57%
[00e58ae0] main input debug: Buffering 60%
[00e58ae0] main input debug: Buffering 62%
[00e58ae0] main input debug: Buffering 65%
[00e58ae0] main input debug: Buffering 67%
[00e58ae0] main input debug: Buffering 70%
[00e58ae0] main input debug: Buffering 73%
[00e58ae0] main input debug: Buffering 75%
[00e58ae0] main input debug: Buffering 78%
[00e58ae0] main input debug: Buffering 80%
[00e58ae0] main input debug: Buffering 83%
[00e58ae0] main input debug: Buffering 86%
[00e58ae0] main input debug: Buffering 88%
[00e58ae0] main input debug: Buffering 91%
[00e58ae0] main input debug: Buffering 94%
[00e58ae0] main input debug: Buffering 96%
[00e58ae0] main input debug: Buffering 99%
[00e58ae0] main input debug: Stream buffering done (1018 ms in 1461 ms)
[00e58ae0] main input debug: Decoder buffering done in 0 ms
[00e6efe0] mpeg_audio generic debug: MPGA channels:1 samplerate:22050 bitrate:32
[00e6dcd8] mpgatofixed32 filter debug: libmad error: bad main_data_begin pointer
[00e544a0] access_http access debug: New Title=