I hope someone can help me understand the strange behaviour I'm seeing when trying to transcode internet audio streams from the BBC.
The following command line is successful on my FC5 system, with vlc 0.9.8a.
Code: Select all
vlc -vvv http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx --no-sout-video --sout "#transcode{acodec=mp3}:std{access=udp,mux=ts,dst=239.16.2.10:1234}"
Code: Select all
vlc --verbose=2 --ttl 1 --vlm-conf /root/lou/Channels.vlm
Code: Select all
new channel1 broadcast enabled
setup channel1 input http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx
setup channel1 output #transcode{acodec=mp3}:std{access=udp,mux=ts,dst=239.16.2.10:1234}
setup channel1 option sout-all
setup channel1 option sout-keep
control channel1 play
The other thing that might be of interest is that if I change my vlm file to point to the stream listed in the asx file it works fine, this is what's making think there may be a slight playlist handling problem.
I've attached relevant debug output from the both the successful and unsuccessful attempts below.
I should explain that I would really like to use a vlm file as a downstream application of mine requires one and I don't want to have to rewrite that particular app!
With best regards,
Lou
VLC output from successful command line:
Code: Select all
#vlc -vvv http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx --no-sout-video --sout "#transcode{acodec=mp3}:std{access=udp,mux=ts,dst=239.16.2.10:1234}"
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 '--enable-run-as-root' '--enable-release' '--enable-optimize-memory' '--enable-dvb' '--enable-dv' '--enable-utf8' '--enable-mostly-builtins' '--enable-screen' '--enable-png' '--enable-pvr' '--enable-dvbpsi' '--enable-ffmpeg' '--enable-telnet' '--enable-a52' '--enable-httpd' '--enable-ogg' '--enable-h264' '--enable-freetype' '--enable-real' '--enable-realrtsp' '--disable-v4l2' '--disable-mad' '--disable-wxwindows' '--disable-skins2' '--disable-x11' '--disable-xvideo' '--disable-glx' '--disable-smb' '--disable-dvdnav' '--disable-libcdio' '--disable-libcddb' '--disable-cdda' '--disable-vcd' '--disable-mkv' '--disable-mod' '--disable-dca' '--disable-vorbis' '--disable-speex' '--disable-cmml' '--disable-opengl' '--disable-fribidi' '--disable-libxml2' '--disable-hal' '--disable-dbus' '--disable-dbus-control' '--disable-telepathy' '--disable-swscale' '--disable-fb' '--disable-oss' '--disable-alsa' '--disable-visual' '--disable-daap' '--disable-joystick' '--disable-sdl' '--with-dvbpsi-tree=/opt/libdvbpsi-20050420' '--disable-dvd' 'CFLAGS=-DOPTIMIZE_MEMORY=1 -O3 ' 'PKG_CONFIG_PATH=ffmpeg-0.5/libavdevice:ffmpeg-0.5/libpostproc:ffmpeg-0.5/libavcodec:ffmpeg-0.5/libavutil:ffmpeg-0.5/libavformat'
<SNIP>
[00000350] main stream debug: pre-buffering...
[00000350] main stream debug: received first data for our buffer
[00000335] main input debug: creating demux: access='http' demux='' path='www.bbc.co.uk/radio/listen/live/r1.asx'
[00000351] main demux debug: looking for demux module: 46 candidates
[00000351] playlist demux debug: found valid ASX playlist
[00000351] main demux debug: using demux module "playlist"
[00000351] main demux debug: TIMER module_Need() : 2.733 ms - Total 2.733 ms / 1 intvls (Avg 2.733 ms)
[00000335] main input debug: starting in async mode
[00000335] main input debug: `http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx' successfully opened
[00000351] playlist demux debug: param name strlen: 8
[00000351] playlist demux debug: param name: HTMLView
[00000351] playlist demux debug: param name strlen: 3
[00000351] playlist demux debug: param name: GEO
[00000300] main playlist debug: deleting item `http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx'
[00000300] main playlist debug: no fetch required for 1 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000300] main playlist debug: rebuilding array of current - root Playlist
[00000300] main playlist debug: rebuild done - 1 items, index -1
[00000335] main input debug: EOF reached
[00000335] main input debug: control type=1
[00000300] main playlist debug: finished input
[00000348] main access debug: waitpipe: object killed
[00000300] main playlist debug: dying input
[00000300] main playlist debug: no fetch required for 2 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000300] main playlist debug: no fetch required for 3 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000300] main playlist debug: no fetch required for 4 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000300] main playlist debug: no fetch required for 5 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000300] main playlist debug: no fetch required for 6 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000300] main playlist debug: no fetch required for 7 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000300] main playlist debug: no fetch required for 8 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000300] main playlist debug: no fetch required for 9 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000300] main playlist debug: no fetch required for 10 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000300] main playlist debug: no fetch required for 11 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000300] main playlist debug: no fetch required for 12 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000300] main playlist debug: no fetch required for 13 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000300] main playlist debug: no fetch required for 14 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000300] main playlist debug: no fetch required for 15 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000300] main playlist debug: no fetch required for 16 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000300] main playlist debug: no fetch required for 17 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000300] main playlist debug: no fetch required for 18 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000300] main playlist debug: no fetch required for 19 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000300] main playlist debug: no fetch required for 20 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000300] main playlist debug: no fetch required for 21 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000300] main playlist debug: no fetch required for 22 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000300] main playlist debug: no fetch required for 23 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000300] main playlist debug: no fetch required for 24 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000300] main playlist debug: no fetch required for 25 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000300] main playlist debug: no fetch required for 26 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000300] main playlist debug: dying input
[00000300] main playlist debug: no fetch required for 27 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000300] main playlist debug: no fetch required for 28 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000300] main playlist debug: no fetch required for 29 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000300] main playlist debug: no fetch required for 30 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000300] main playlist debug: no fetch required for 31 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000300] main playlist debug: no fetch required for 32 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000300] main playlist debug: no fetch required for 33 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000300] main playlist debug: no fetch required for 34 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000300] main playlist debug: no fetch required for 35 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000300] main playlist debug: no fetch required for 36 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx (art currently (null))
[00000351] main demux debug: removing module "playlist"
[00000300] main playlist debug: dying input
[00000348] main access debug: removing module "access_http"
[00000335] main input debug: thread ended
[00000300] main playlist debug: dead input
[00000335] main input debug: thread 3005209504 joined (playlist/engine.c:244)
[00000335] main input debug: TIMER input launching for 'http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx' : 723.077 ms - Total 723.077 ms / 1 intvls (Avg 723.077 ms)
[00000337] main stream out debug: destroying chain... (name=transcode)
[00000340] main stream out debug: destroying chain... (name=std)
[00000345] main mux debug: removing module "mux_ts"
[00000344] main generic debug: thread ended
[00000344] main generic debug: thread 2996816800 joined (udp.c:294)
[00000342] access_output_udp access out debug: UDP access output closed
[00000342] main access out debug: removing module "access_output_udp"
[00000340] main stream out debug: removing module "stream_out_standard"
[00000340] main stream out debug: destroying chain done
[00000337] main stream out debug: removing module "stream_out_transcode"
[00000337] main stream out debug: destroying chain done
[00000300] main playlist debug: starting new item
[00000300] main playlist debug: changing item without a request (current -1/1)
[00000300] main playlist debug: rebuilding array of current - root Playlist
[00000300] main playlist debug: rebuild done - 36 items, index -1
[00000300] main playlist debug: using item 0
[00000300] main playlist debug: creating new input thread
[00000371] main input debug: Creating an input for '1 http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx'
[00000371] main input debug: waiting for thread initialization
[00000371] main input debug: thread started
[00000371] main input debug: thread 2996816800 (input) created at priority 10 (input/input.c:370)
[00000372] main stream output debug: stream=`transcode'
[00000373] main stream out debug: looking for sout stream module: 1 candidate
[00000372] main stream output debug: stream=`std'
[00000375] main stream out debug: looking for sout stream module: 1 candidate
[00000375] main stream out debug: set config option: sout-standard-access to udp
[00000375] main stream out debug: set config option: sout-standard-mux to ts
[00000375] main stream out debug: set config option: sout-standard-dst to 239.16.2.10:1234
[00000375] stream_out_standard stream out debug: creating `udp/ts://239.16.2.10:1234'
[00000375] stream_out_standard stream out debug: extension is 10:1234
[00000375] stream_out_standard stream out debug: extension -> mux=(null)
[00000375] stream_out_standard stream out debug: using `udp/ts://239.16.2.10:1234'
[00000376] main access out debug: looking for sout access module: 1 candidate
[00000376] main access out debug: net: connecting to [239.16.2.10]:1234
[00000376] access_output_udp access out debug: source: 192.168.243.18 port 33886
[00000376] access_output_udp access out debug: destination: 239.16.2.10 port 1234
[00000377] main generic debug: thread started
[00000377] main generic debug: thread 3005209504 (sout write thread) created at priority 20 (udp.c:255)
[00000376] main access out debug: using sout access module "access_output_udp"
[00000376] main access out debug: TIMER module_Need() : 0.938 ms - Total 0.938 ms / 1 intvls (Avg 0.938 ms)
[00000375] stream_out_standard stream out debug: access opened
[00000378] main mux debug: looking for sout mux module: 1 candidate
[00000378] mux_ts mux debug: shaping=200000 pcr=70000 dts_delay=400000
[00000378] main mux debug: using sout mux module "mux_ts"
[00000378] main mux debug: TIMER module_Need() : 2.555 ms - Total 2.555 ms / 1 intvls (Avg 2.555 ms)
[00000372] main stream output debug: muxer support adding stream at any time
[00000375] stream_out_standard stream out debug: mux opened
[00000375] main stream out debug: using sout stream module "stream_out_standard"
[00000375] main stream out debug: TIMER module_Need() : 5.398 ms - Total 5.398 ms / 1 intvls (Avg 5.398 ms)
[00000373] main stream out debug: set config option: sout-transcode-acodec to mp3
[00000373] stream_out_transcode stream out debug: codec audio=mp3 0Hz 0 channels 0Kb/s
[00000373] main stream out debug: using sout stream module "stream_out_transcode"
[00000373] main stream out debug: TIMER module_Need() : 8.559 ms - Total 8.559 ms / 1 intvls (Avg 8.559 ms)
[00000371] main input debug: `mms://wmlive-acl.bbc.co.uk/wms/bbc_ami/radio1/radio1_bb_live_eq1_sl0?BBC-UID=04f9ce7774db76f3449f212381c59688f34e7f7920e022513268d004a40de2b4&SSO2-UID=' gives access `mms' demux `' path `wmlive-acl.bbc.co.uk/wms/bbc_ami/radio1/radio1_bb_live_eq1_sl0?BBC-UID=04f9ce7774db76f3449f212381c59688f34e7f7920e022513268d004a40de2b4&SSO2-UID='
[00000371] main input debug: creating demux: access='mms' demux='' path='wmlive-acl.bbc.co.uk/wms/bbc_ami/radio1/radio1_bb_live_eq1_sl0?BBC-UID=04f9ce7774db76f3449f212381c59688f34e7f7920e022513268d004a40de2b4&SSO2-UID='
[00000379] main demux debug: looking for access_demux module: 0 candidates
[00000379] main demux warning: no access_demux module matched "mms"
[00000379] main demux debug: TIMER module_Need() : 0.086 ms - Total 0.086 ms / 1 intvls (Avg 0.086 ms)
[00000371] main input debug: creating access 'mms' path='wmlive-acl.bbc.co.uk/wms/bbc_ami/radio1/radio1_bb_live_eq1_sl0?BBC-UID=04f9ce7774db76f3449f212381c59688f34e7f7920e022513268d004a40de2b4&SSO2-UID='
[00000380] main access debug: looking for access module: 1 candidate
[00000380] access_mms access debug: waiting for connection...
[00000380] main access debug: net: connecting to wmlive-acl.bbc.co.uk port 1755
[00000380] main access debug: connection: Operation now in progress
[00000380] main access debug: connection succeeded (socket = 8)
[00000380] access_mms access debug: connection(tcp) with "wmlive-acl.bbc.co.uk:1755" successful
[00000380] access_mms access debug: generated guid: babac001-5361-2cda-f7470291de14a08f
[00000380] access_mms access debug: recv command start_sequence:0x4a000001 command_id:0xb00bface length:128 len8:16 sequence 0x00000000 len8_II:14 dir_comm:0x00040001
[00000380] access_mms access debug: 0x01 --> server_version:"9.01.01.5000" tool_version:"" update_player_url:"" encryption_type:"NTLM"
[00000380] access_mms access debug: recv command start_sequence:0x4a000001 command_id:0xb00bface length:80 len8:10 sequence 0x00000001 len8_II:8 dir_comm:0x00040002
[00000380] access_mms access debug: recv command start_sequence:0x4a000001 command_id:0xb00bface length:136 len8:17 sequence 0x00000002 len8_II:15 dir_comm:0x00040006
[00000380] access_mms access debug: media file name/path accepted
[00000380] access_mms access debug: answer 0x06 flags:0x02000000 media_length:0s packet_length:4127l packet_count:0 max_bit_rate:96677 header_size:5209
[00000380] access_mms access debug: reading header
[00000380] access_mms access debug: recv command start_sequence:0x4a000001 command_id:0xb00bface length:40 len8:5 sequence 0x00000003 len8_II:3 dir_comm:0x00040011
[00000380] access_mms access debug: header incomplete (4119/5209), reading more
[00000380] access_mms access debug: header complete(5209)
[00000380] access_mms access: selecting stream[0x1] audio (94 kb/s)
[00000380] access_mms access debug: recv command start_sequence:0x4a000001 command_id:0xb00bface length:32 len8:4 sequence 0x00000004 len8_II:2 dir_comm:0x00040021
[00000380] access_mms access: connection successful
[00000380] access_mms access debug: connected to wmlive-acl.bbc.co.uk:1755
[00000380] access_mms access debug: recv command start_sequence:0x4a000001 command_id:0xb00bface length:56 len8:7 sequence 0x00000005 len8_II:5 dir_comm:0x00040005
[00000380] access_mms access debug: streaming started
Code: Select all
#bbc1.sh
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 '--enable-run-as-root' '--enable-release' '--enable-optimize-memory' '--enable-dvb' '--enable-dv' '--enable-utf8' '--enable-mostly-builtins' '--enable-screen' '--enable-png' '--enable-pvr' '--enable-dvbpsi' '--enable-ffmpeg' '--enable-telnet' '--enable-a52' '--enable-httpd' '--enable-ogg' '--enable-h264' '--enable-freetype' '--enable-real' '--enable-realrtsp' '--disable-v4l2' '--disable-mad' '--disable-wxwindows' '--disable-skins2' '--disable-x11' '--disable-xvideo' '--disable-glx' '--disable-smb' '--disable-dvdnav' '--disable-libcdio' '--disable-libcddb' '--disable-cdda' '--disable-vcd' '--disable-mkv' '--disable-mod' '--disable-dca' '--disable-vorbis' '--disable-speex' '--disable-cmml' '--disable-opengl' '--disable-fribidi' '--disable-libxml2' '--disable-hal' '--disable-dbus' '--disable-dbus-control' '--disable-telepathy' '--disable-swscale' '--disable-fb' '--disable-oss' '--disable-alsa' '--disable-visual' '--disable-daap' '--disable-joystick' '--disable-sdl' '--with-dvbpsi-tree=/opt/libdvbpsi-20050420' '--disable-dvd' 'CFLAGS=-DOPTIMIZE_MEMORY=1 -O3 ' 'PKG_CONFIG_PATH=ffmpeg-0.5/libavdevice:ffmpeg-0.5/libpostproc:ffmpeg-0.5/libavcodec:ffmpeg-0.5/libavutil:ffmpeg-0.5/libavformat'
<SNIP>
[00000355] [Media: channel1] main stream debug: pre-buffering...
[00000355] [Media: channel1] main stream debug: received first data for our buffer
[00000330] [Media: channel1] main input debug: creating demux: access='http' demux='' path='www.bbc.co.uk/radio/listen/live/r1.asx'
[00000356] [Media: channel1] main demux debug: looking for demux module: 46 candidates
[00000356] [Media: channel1] playlist demux debug: found valid ASX playlist
[00000356] [Media: channel1] main demux debug: using demux module "playlist"
[00000356] [Media: channel1] main demux debug: TIMER module_Need() : 2.741 ms - Total 2.741 ms / 1 intvls (Avg 2.741 ms)
[00000330] [Media: channel1] main input debug: starting in async mode
[00000330] [Media: channel1] main input debug: `http://www.bbc.co.uk/radio1/wm_asx/aod/radio1_hi.asx' successfully opened
[00000356] [Media: channel1] playlist demux debug: param name strlen: 8
[00000356] [Media: channel1] playlist demux debug: param name: HTMLView
[00000356] [Media: channel1] playlist demux debug: param name strlen: 3
[00000356] [Media: channel1] playlist demux debug: param name: GEO
[00000330] [Media: channel1] main input debug: EOF reached
[00000330] [Media: channel1] main input debug: control type=1
[00000349] [Media: channel1] main access debug: waitpipe: object killed
[00000356] [Media: channel1] main demux debug: removing module "playlist"
[00000349] [Media: channel1] main access debug: removing module "access_http"
[00000330] [Media: channel1] main input debug: thread ended
[00000330] [Media: channel1] main input debug: thread 3038768032 joined (input/vlm.c:776)
[00000330] [Media: channel1] main input debug: TIMER input launching for '(null)' : 825.691 ms - Total 825.691 ms / 1 intvls (Avg 825.691 ms)
[00000332] main stream out debug: destroying chain... (name=transcode)
[00000337] main stream out debug: destroying chain... (name=std)
[00000346] main mux debug: removing module "mux_ts"
[00000343] main generic debug: thread ended
[00000343] main generic debug: thread 3013589920 joined (udp.c:294)
[00000341] access_output_udp access out debug: UDP access output closed
[00000341] main access out debug: removing module "access_output_udp"
[00000337] main stream out debug: removing module "stream_out_standard"
[00000337] main stream out debug: destroying chain done
[00000332] main stream out debug: removing module "stream_out_transcode"
[00000332] main stream out debug: destroying chain done
[00000350] signals interface error: Caught Interrupt signal, exiting...
[00000350] main interface debug: thread ended
[00000001] main libvlc debug: removing all interfaces
[00000353] main interface debug: waitpipe: object killed
[00000353] main interface debug: socket 0 polling interrupted
status change: ( stop state: 0 )
status change: ( quit )