[SOLVED] Different results streaming from Ubuntu vs. Debian

*nix specific usage questions
bdk907
New Cone
New Cone
Posts: 7
Joined: 10 Mar 2008 22:21
VLC version: 0.9.3
Operating System: ˈlɪnəks
Location: Anchorage, AK

[SOLVED] Different results streaming from Ubuntu vs. Debian

Postby bdk907 » 04 Oct 2008 23:12

Using the VLC apt package on both my Ubuntu (Hardy Heron vlc 0.8.6e) laptop and Debian (Etch vlc 0.8.6a) colo'd headless server

On my laptop when I run in a terminal " vlc -vvv test_vid.mp4 :sout '#transcode{vcodec=DIV3,vb=512,scale=1,acodec=mpga,ab=32,channels=1}:duplicate{dst=std{access=http,mux=ts,dst=:1234}}' ", I get a VLC window that opens up and plays the video and I can open up another instance of VLC and stream via localhost just fine. The problem I'm having is when I run the same command on my Debian server, it appears to be playing on the server but I'm unable to stream from my laptop.

Laptop Message Output (Connecting to my Debian server) -

Code: Select all

main debug: creating new input thread main debug: waiting for thread completion main debug: `http://207.158.x.x:1234' gives access `http' demux `' path `207.158.x.x:1234' main debug: creating demux: access='http' demux='' path='207.158.x.x:1234' main debug: looking for access_demux module: 0 candidates main warning: no access_demux module matched "http" main debug: creating access 'http' path='207.158.x.x:1234' main debug: looking for access2 module: 7 candidates access_http debug: http: server='207.158.x.x' port=1234 file='(null) main debug: net: connecting to 207.158.x.x port 1234 main debug: connection in progress main debug: thread 1135667536 (input) created at priority 0 (input/input.c:265) main debug: connect error (via getsockopt): Connection refused main error: Connection to 207.158.x.x port 1234 failed: Connection refused access_http error: cannot connect to 207.158.x.x:1234 access_http debug: switching to HTTP version 1.0 main debug: net: connecting to 207.158.x.x port 1234 main debug: connection in progress main debug: connect error (via getsockopt): Connection refused main error: Connection to 207.158.x.x port 1234 failed: Connection refused access_http error: cannot connect to 207.158.x.x:1234 main debug: net: connecting to 207.158.x.x port 1234 main debug: connection in progress main debug: connect error (via getsockopt): Connection refused main error: Connection to 207.158.x.x port 1234 failed: Connection refused access_mms error: cannot connect to 207.158.x.x:1234 vcdx warning: Can't get file status for 207.158.x.x:1234: No such file or directory vcdx warning: could not retrieve file info for `207.158.x.x:1234': No such file or directory vcdx warning: can't open nrg image file 207.158.x.x:1234 for reading access_file warning: 207.158.x.x:1234: No such file or directory cdda warning: could not open 207.158.x.x:1234 main warning: no access2 module matching "http" could be loaded main error: no suitable access module for `http://207.158.x.x:1234' main debug: thread 1135667536 joined (input/input.c:412) main: nothing to play

Server debug messages (Running vlc from a terminal window) -

Code: Select all

:~$ vlc -vvv test_vid.mp4 :sout '#transcode{vcodec=DIV3,vb=512,scale=1,acodec=mpga,ab=32,channels=1}:standard{dst=std{access=http,mux=ts,dst=207.158.x.x:1234}}' VLC media player 0.8.6a Janus [00000001] main private debug: checking builtin modules [00000001] main private debug: checking plugin modules [00000001] main private debug: loading plugins cache file /home/x/.vlc/cache/plugins-04041e.dat [00000001] main private debug: recursively browsing `modules' [00000001] main private debug: recursively browsing `/usr/lib/vlc' [00000001] main private debug: recursively browsing `plugins' [00000001] main private debug: module bank initialized, found 202 modules [00000001] main private warning: Unable to get HAL device properties [00000001] main private debug: opening config file /home/x/.vlc/vlcrc [00000001] main private warning: config file /home/x/.vlc/vlcrc does not exist yet [00000001] main private debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU [00000001] main private debug: looking for memcpy module: 1 candidate [00000001] main private debug: using memcpy module "memcpy" [00000265] main playlist debug: waiting for thread completion [00000265] main playlist debug: thread 3078871984 (playlist) created at priority 0 (playlist/playlist.c:184) [00000266] main private debug: waiting for thread completion [00000266] main private debug: thread 3070479280 (preparser) created at priority 0 (playlist/playlist.c:210) [00000267] main interface debug: looking for interface module: 1 candidate [00000267] main interface debug: using interface module "hotkeys" [00000267] main interface debug: thread 3062062000 (interface) created at priority 0 (interface/interface.c:231) [00000269] main interface debug: looking for interface module: 1 candidate [00000269] main interface debug: using interface module "screensaver" [00000269] main interface debug: thread 3053661104 (interface) created at priority 0 (interface/interface.c:231) [00000265] main playlist debug: adding playlist item `#transcode{vcodec=DIV3,vb=512,scale=1,acodec=mpga,ab=32,channels=1}:standard{dst=std{access=http,mux=ts,dst=207.158.x.x:1234}}' ( #transcode{vcodec=DIV3,vb=512,scale=1,acodec=mpga,ab=32,channels=1}:standard{dst=std{access=http,mux=ts,dst=207.158.x.x:1234}} ) [00000265] main playlist debug: adding playlist item `test_vid.mp4' ( test_vid.mp4 ) [00000271] main interface debug: looking for interface module: 2 candidates Remote control interface initialized. Type `help' for help. [00000271] main interface debug: using interface module "rc" [00000271] main interface debug: thread 3045211056 (manager) created at priority 0 (interface/interface.c:216) [00000265] main playlist debug: creating new input thread [00000273] main input debug: waiting for thread completion [00000273] main input debug: creating statistics handler [00000273] main input debug: `test_vid.mp4' gives access `' demux `' path `test_vid.mp4' [00000273] main input debug: creating demux: access='' demux='' path='test_vid.mp4' [00000275] main demuxer debug: looking for access_demux module: 2 candidates [00000273] main input debug: creating access '' path='test_vid.mp4' [00000278] main access debug: looking for access2 module: 5 candidates [00000278] vcd access debug: trying .cue file: Sarah_Palin.cue [00000278] access_file access debug: opening file `test_vid.mp4' [00000278] main access debug: using access2 module "access_file" [00000284] main private debug: pre-buffering... [00000284] main private debug: received first data for our buffer [00000284] main private debug: pre-buffering done 1408981 bytes in 0s - 506425 kbytes/s [00000273] main input debug: creating demux: access='' demux='' path='test_vid.mp4' [00000285] main demuxer debug: looking for demux2 module: 43 candidates [00000284] mp4 private debug: found Box: ftyp size 28 [00000284] mp4 private debug: found Box: moov size 2275193 [00000284] mp4 private debug: found Box: mvhd size 108 [00000284] mp4 private debug: read box: "mvhd" creation 733209d-44h:10m:55s modification 733209d-44h:10m:55s time scale 600 duration 694977d-48h:00m:24s rate 1.000000 volume 1.000000 next track id 3 [00000284] mp4 private debug: found Box: iods size 21 [00000284] mp4 private warning: unknown box type iods (uncompletetly loaded) [00000284] mp4 private debug: found Box: trak size 1625601 [00000284] mp4 private debug: found Box: tkhd size 92 [00000284] mp4 private debug: read box: "tkhd" creation 733209d-44h:10m:55s modification 733209d-44h:11m:17s duration -1666090364d-07h:38m:40s track ID 1 layer 0 volume 1.000000 width 0.000000 height 0.000000 [00000284] mp4 private debug: found Box: mdia size 1625501 [00000284] mp4 private debug: found Box: mdhd size 32 [00000284] mp4 private debug: read box: "mdhd" creation 733209d-44h:10m:55s modification 733209d-44h:10m:59s time scale 44100 duration 696344d-59h:25m:52s language und [00000284] mp4 private debug: found Box: hdlr size 66 [00000284] mp4 private debug: read box: "hdlr" handler type soun name (C) 2007 Google Inc. v06.24.2007. [00000284] mp4 private debug: found Box: minf size 1625395 [00000284] mp4 private debug: found Box: smhd size 16 [00000284] mp4 private debug: read box: "smhd" balance 0.000000 [00000284] mp4 private debug: found Box: dinf size 36 [00000284] mp4 private debug: found Box: dref size 28 [00000284] mp4 private debug: found Box: url size 12 [00000284] mp4 private debug: read box: "url" url: (null) [00000284] mp4 private debug: out of bound child [00000284] mp4 private debug: read box: "dref" entry-count 1 [00000284] mp4 private debug: out of bound child [00000284] mp4 private debug: found Box: stbl size 1625335 [00000284] mp4 private debug: found Box: stsd size 91 [00000284] mp4 private debug: found Box: mp4a size 75 [00000284] mp4 private debug: read box: "soun" mp4 or qt1/2 (rest=39) [00000284] mp4 private debug: found Box: esds size 39 [00000284] mp4 private debug: found esds MPEG4ESDescr (25Bytes) [00000284] mp4 private debug: found esds MP4DecConfigDescr (17Bytes) [00000284] mp4 private debug: found esds MP4DecSpecificDescr (2Bytes) [00000284] mp4 private debug: out of bound child [00000284] mp4 private debug: read box: "soun" in stsd channel 2 sample size 16 sample rate 44100.000000 [00000284] mp4 private debug: out of bound child [00000284] mp4 private debug: read box: "stsd" entry-count 1 [00000284] mp4 private debug: found Box: stts size 24 [00000284] mp4 private debug: read box: "stts" entry-count 1 [00000284] mp4 private debug: found Box: stsc size 842248 [00000284] mp4 private debug: read box: "stsc" entry-count 70186 [00000284] mp4 private debug: found Box: stsz size 461712 [00000284] mp4 private debug: read box: "stsz" sample-size 0 sample-count 115423 [00000284] mp4 private debug: found Box: stco size 321252 [00000284] mp4 private debug: read box: "co64" entry-count 80309 [00000284] mp4 private debug: out of bound child [00000284] mp4 private debug: out of bound child [00000284] mp4 private debug: out of bound child [00000284] mp4 private debug: out of bound child [00000284] mp4 private debug: found Box: trak size 649455 [00000284] mp4 private debug: found Box: tkhd size 92 [00000284] mp4 private debug: read box: "tkhd" creation 733209d-44h:10m:59s modification 733209d-44h:11m:17s duration -1681202286d-20h:25m:36s track ID 2 layer 0 volume 0.000000 width 480.000000 height 360.000000 [00000284] mp4 private debug: found Box: mdia size 649355 [00000284] mp4 private debug: found Box: mdhd size 32 [00000284] mp4 private debug: read box: "mdhd" creation 733209d-44h:10m:59s modification 733209d-44h:11m:17s time scale 30000 duration 695907d-58h:05m:08s language und [00000284] mp4 private debug: found Box: hdlr size 66 [00000284] mp4 private debug: read box: "hdlr" handler type vide name (C) 2007 Google Inc. v06.24.2007. [00000284] mp4 private debug: found Box: minf size 649249 [00000284] mp4 private debug: found Box: vmhd size 20 [00000284] mp4 private debug: read box: "vmhd" graphics-mode 0 opcolor (0, 0, 0) [00000284] mp4 private debug: found Box: dinf size 36 [00000284] mp4 private debug: found Box: dref size 28 [00000284] mp4 private debug: found Box: url size 12 [00000284] mp4 private debug: read box: "url" url: (null) [00000284] mp4 private debug: out of bound child [00000284] mp4 private debug: read box: "dref" entry-count 1 [00000284] mp4 private debug: out of bound child [00000284] mp4 private debug: found Box: stbl size 649185 [00000284] mp4 private debug: found Box: stsd size 161 [00000284] mp4 private debug: found Box: avc1 size 145 [00000284] mp4 private debug: found Box: avcC size 39 [00000284] mp4 private debug: read box: "avcC" version=1 profile=0x42 level=0x15 length size=2 sps=1 pps=1 [00000284] mp4 private debug: - sps[0] length=15 [00000284] mp4 private debug: - pps[0] length=5 [00000284] mp4 private debug: found Box: btrt size 20 [00000284] mp4 private warning: unknown box type btrt (uncompletetly loaded) [00000284] mp4 private debug: out of bound child [00000284] mp4 private debug: read box: "vide" in stsd 480x360 depth 24 [00000284] mp4 private debug: out of bound child [00000284] mp4 private debug: read box: "stsd" entry-count 1 [00000284] mp4 private debug: found Box: stts size 24 [00000284] mp4 private debug: read box: "stts" entry-count 1 [00000284] mp4 private debug: found Box: stss size 6452 [00000284] mp4 private debug: read box: "stss" entry-count 1609 [00000284] mp4 private debug: found Box: stsc size 40 [00000284] mp4 private debug: read box: "stsc" entry-count 2 [00000284] mp4 private debug: found Box: stsz size 321252 [00000284] mp4 private debug: read box: "stsz" sample-size 0 sample-count 80308 [00000284] mp4 private debug: found Box: stco size 321248 [00000284] mp4 private debug: read box: "co64" entry-count 80308 [00000284] mp4 private debug: out of bound child [00000284] mp4 private debug: out of bound child [00000284] mp4 private debug: out of bound child [00000284] mp4 private debug: out of bound child [00000284] mp4 private debug: out of bound child [00000284] mp4 private debug: found Box: mdat size 209913484 [00000284] mp4 private debug: skip box: "mdat" [00000284] mp4 private debug: out of bound child [00000284] mp4 private debug: dumping root Box "root" [00000284] mp4 private debug: | + ftyp size 28 [00000284] mp4 private debug: | + moov size 2275193 [00000284] mp4 private debug: | | + mvhd size 108 [00000284] mp4 private debug: | | + iods size 21 [00000284] mp4 private debug: | | + trak size 1625601 [00000284] mp4 private debug: | | | + tkhd size 92 [00000284] mp4 private debug: | | | + mdia size 1625501 [00000284] mp4 private debug: | | | | + mdhd size 32 [00000284] mp4 private debug: | | | | + hdlr size 66 [00000284] mp4 private debug: | | | | + minf size 1625395 [00000284] mp4 private debug: | | | | | + smhd size 16 [00000284] mp4 private debug: | | | | | + dinf size 36 [00000284] mp4 private debug: | | | | | | + dref size 28 [00000284] mp4 private debug: | | | | | | | + url size 12 [00000284] mp4 private debug: | | | | | + stbl size 1625335 [00000284] mp4 private debug: | | | | | | + stsd size 91 [00000284] mp4 private debug: | | | | | | | + mp4a size 75 [00000284] mp4 private debug: | | | | | | | | + esds size 39 [00000284] mp4 private debug: | | | | | | + stts size 24 [00000284] mp4 private debug: | | | | | | + stsc size 842248 [00000284] mp4 private debug: | | | | | | + stsz size 461712 [00000284] mp4 private debug: | | | | | | + stco size 321252 [00000284] mp4 private debug: | | + trak size 649455 [00000284] mp4 private debug: | | | + tkhd size 92 [00000284] mp4 private debug: | | | + mdia size 649355 [00000284] mp4 private debug: | | | | + mdhd size 32 [00000284] mp4 private debug: | | | | + hdlr size 66 [00000284] mp4 private debug: | | | | + minf size 649249 [00000284] mp4 private debug: | | | | | + vmhd size 20 [00000284] mp4 private debug: | | | | | + dinf size 36 [00000284] mp4 private debug: | | | | | | + dref size 28 [00000284] mp4 private debug: | | | | | | | + url size 12 [00000284] mp4 private debug: | | | | | + stbl size 649185 [00000284] mp4 private debug: | | | | | | + stsd size 161 [00000284] mp4 private debug: | | | | | | | + avc1 size 145 [00000284] mp4 private debug: | | | | | | | | + avcC size 39 [00000284] mp4 private debug: | | | | | | | | + btrt size 20 [00000284] mp4 private debug: | | | | | | + stts size 24 [00000284] mp4 private debug: | | | | | | + stss size 6452 [00000284] mp4 private debug: | | | | | | + stsc size 40 [00000284] mp4 private debug: | | | | | | + stsz size 321252 [00000284] mp4 private debug: | | | | | | + stco size 321248 [00000284] mp4 private debug: | + mdat size 209913484 [00000285] mp4 demuxer debug: unrecognized major file specification (mp42). [00000285] mp4 demuxer debug: find 2 tracks [00000273] main input debug: thread 3036818352 (input) created at priority 0 (input/input.c:266) status change: ( new input: test_vid.mp4 ) status change: ( audio volume: 256 ) status change: ( play state: 1 ) [00000285] mp4 demuxer debug: track[Id 0x1] read 80309 chunk [00000285] mp4 demuxer debug: track[Id 0x1] read 115423 samples length:2680s [00000273] main input debug: selecting program id=0 [00000285] mp4 demuxer debug: adding track[Id 0x1] audio (enable) language undef [00000285] mp4 demuxer debug: track[Id 0x2] read 80308 chunk [00000285] mp4 demuxer debug: track[Id 0x2] read 80308 samples length:2679s [00000285] mp4 demuxer debug: adding track[Id 0x2] video (enable) language undef [00000285] main demuxer debug: using demux2 module "mp4" [00000285] mp4 demuxer warning: DEMUX_GET_FPS unimplemented !! [00000273] main input debug: looking for a subtitle file in /home/x/ [00000287] main decoder debug: looking for decoder module: 23 candidates [00000287] main decoder debug: using decoder module "faad" [00000287] main decoder debug: thread 3003481008 (decoder) created at priority 0 (input/decoder.c:159) [00000291] main decoder debug: looking for decoder module: 23 candidates [00000291] ffmpeg decoder debug: libavcodec initialized (interface 3345152 ) [00000291] ffmpeg decoder debug: postprocessing disabled [00000291] ffmpeg decoder debug: ffmpeg codec (h264) started [00000291] main decoder debug: using decoder module "ffmpeg" [00000291] main decoder debug: thread 2987629488 (decoder) created at priority 0 (input/decoder.c:159) [00000273] main input debug: `test_vid.mp4' successfully opened [00000285] mp4 demuxer debug: track[Id 0x1] does not provide Sync Sample Box (stss) [00000285] mp4 demuxer debug: track[Id 0x2] using Sync Sample Box (stss) [00000285] mp4 demuxer debug: stts gives 0 --> 0 (sample number) [00000287] faad decoder warning: decoded zero sample [00000287] main decoder debug: no aout present, spawning one [00000320] main audio output debug: looking for audio output module: 3 candidates ALSA lib confmisc.c:670:(snd_func_card_driver) cannot find card '0' ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device ALSA lib confmisc.c:391:(snd_func_concat) error evaluating strings ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_concat returned error: No such device ALSA lib confmisc.c:1070:(snd_func_refer) error evaluating name ALSA lib conf.c:3500:(_snd_config_evaluate) function snd_func_refer returned error: No such device ALSA lib conf.c:3968:(snd_config_expand) Evaluate error: No such device ALSA lib pcm.c:2143:(snd_pcm_open_noupdate) Unknown PCM default [00000320] alsa audio output debug: failed to find a useable alsa configuration [00000320] oss audio output error: cannot open audio device (/dev/dsp) [00000320] main audio output debug: using audio output module "dummy" [00000320] main audio output debug: output 'fl32' 44100 Hz Stereo frame=1 samples/8 bytes [00000320] main audio output debug: mixer 'fl32' 44100 Hz Stereo frame=1 samples/8 bytes [00000320] main audio output debug: no need for any filter [00000320] main audio output debug: looking for audio mixer module: 3 candidates [00000320] main audio output debug: using audio mixer module "trivial_mixer" [00000320] main audio output debug: input 'fl32' 44100 Hz Stereo frame=1 samples/8 bytes [00000320] main audio output debug: filter(s) 'fl32'->'fl32' 48510 Hz->44100 Hz Stereo->Stereo [00000332] main private debug: looking for audio filter module: 24 candidates [00000332] main private debug: using audio filter module "bandlimited_resampler" [00000320] main audio output debug: found a filter for the whole conversion [00000291] main decoder debug: no usable vout present, spawning one [00000340] main video output debug: window size: 480x360 [00000340] main video output debug: looking for video output module: 1 candidate [00000340] main video output debug: using video output module "dummy" [00000340] main video output debug: waiting for thread completion [00000340] main video output debug: got 8 direct buffer(s) [00000340] main video output debug: picture in 480x360 (0,0,480x360), chroma I420, ar 4:3, sar 1:1 [00000340] main video output debug: picture user 480x360 (0,0,480x360), chroma I420, ar 4:3, sar 1:1 [00000340] main video output debug: picture out 480x360 (0,0,480x360), chroma I420, ar 4:3, sar 1:1 [00000340] main video output debug: direct render, mapping render pictures 0-6 to system pictures 1-7 [00000340] main video output debug: thread 2978720688 (video output) created at priority 0 (video_output/video_output.c:421) [00000341] main private debug: Registering subpicture channel, ID: 2 [00000341] main private debug: Registering subpicture channel, ID: 3 [00000341] main private debug: Registering subpicture channel, ID: 4 [00000341] main private debug: Registering subpicture channel, ID: 5 status status change: ( new input: test_vid.mp4 ) status change: ( audio volume: 256 ) status change: ( play state: 1 ) status: returned 0 (no error)
From a 'netstat -at' on my Debian server I can see all my other services running but nothing listening on tcp 1234. Could this be the problem? - On my Ubuntu laptop a 'netstat -at' shows tcp listening on 1234 when I setup the stream locally.

I added a log option in iptables and verified that I'm reaching the server and connecting to port 1234.

Ultimately I'd like to replace a Windows ASF/WMV streaming server with VLC but having difficult time just streaming a video. Is there a switch I need to run the command line VLC with that will prevent it looking for an audio card and an X interface?

Any and all assistance would be greatly appreciated.

Thanks!

-Sean
Last edited by bdk907 on 05 Oct 2008 00:49, edited 1 time in total.

xtophe
Big Cone-huna
Big Cone-huna
Posts: 1209
Joined: 24 Nov 2003 10:12
Location: Bristol, England

Re: Different results streaming from Ubuntu vs. Debian.

Postby xtophe » 05 Oct 2008 00:02

you miss an = between :sout and '#transcode.....'
Xtophe

bdk907
New Cone
New Cone
Posts: 7
Joined: 10 Mar 2008 22:21
VLC version: 0.9.3
Operating System: ˈlɪnəks
Location: Anchorage, AK

Re: Different results streaming from Ubuntu vs. Debian.

Postby bdk907 » 05 Oct 2008 00:48

And that worked, thanks!

I had copied what VLC was giving me in the MRL while also looking at the VLC Doc streaming page. On 'Streaming How-To' page, they use '--sout' vs. what I was trying to use by way of the MRL ':sout' which now after I go back and rebuild an MRL I see that they did include the '=' and now I know know where I went wrong and lost the equal sign.

Thanks again xtophe!

-Sean


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 18 guests