[solved] vlc through ssh

*nix specific usage questions
hislitermos
Blank Cone
Blank Cone
Posts: 35
Joined: 17 Aug 2013 14:54

[solved] vlc through ssh

Postby hislitermos » 18 Sep 2013 09:46

Hello,
I would like to convert an http video stream into rtsp by typing ssh.
I created a folder "vlc" under home directory and typed below code in ssh.
I am not root in ssh but below code gives error.

Code: Select all

vlc -vvv mms://89.201.164.181/stv :sout=#transcode{vcodec=h264,vb=1024,fps=25,scale=1,width=720,height=576,acodec=mpga,ab=128,channels=2,samplerate=44100}:rtp{dst=127.0.0.1,port=5004,sdp=file:///home:\vlc\vlc.sdp,mux=ts,ttl=1} :sout-all :sout-keep
Here is the output in ssh panel:
[0x1c6c138] main libvlc debug: searching plug-in modules
[0x1c6c138] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins.dat
[0x1c6c138] main libvlc debug: recursively browsing `/usr/lib/vlc/plugins'
[0x1c6c138] main libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins.dat
[0x1c6c138] main libvlc debug: plug-ins loaded: 420 modules
[0x1c6c138] main libvlc debug: opening config file (/home/ermos/.config/vlc/vlcrc)
[0x1c6c138] main libvlc debug: translation test: code is "C"
[0x1c6c138] main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 FPU
[0x1c6c138] main libvlc debug: looking for memcpy module: 4 candidates
[0x1c6c138] main libvlc debug: using memcpy module "memcpymmxext"
[0x1d341d8] main input debug: Creating an input for 'Media Library'
[0x1d341d8] main input debug: Input is a meta file: disabling unneeded options
[0x1d341d8] main input debug: using timeshift granularity of 50 MiB, in path '/tmp'
[0x1d341d8] main input debug: `file/xspf-open:///home/ermos/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/ermos/.local/share/vlc/ml.xspf'
[0x1d341d8] main input debug: creating demux: access='file' demux='xspf-open' location='/home/ermos/.local/share/vlc/ml.xspf' file='/home/ermos/.local/share/vlc/ml.xspf'
[0x1c9be18] main demux debug: looking for access_demux module: 3 candidates
[0x1c9be18] main demux debug: no access_demux module matching "file" could be loaded
[0x1c9be18] main demux debug: TIMER module_need() : 0.314 ms - Total 0.314 ms / 1 intvls (Avg 0.314 ms)
[0x1d341d8] main input debug: creating access 'file' location='/home/ermos/.local/share/vlc/ml.xspf', path='/home/ermos/.local/share/vlc/ml.xspf'
[0x1d37458] main access debug: looking for access module: 2 candidates
[0x1d37458] filesystem access debug: opening file `/home/ermos/.local/share/vlc/ml.xspf'
[0x1d37458] main access debug: using access module "filesystem"
[0x1d37458] main access debug: TIMER module_need() : 0.115 ms - Total 0.115 ms / 1 intvls (Avg 0.115 ms)
[0x1d375a8] main stream debug: Using stream method for AStream*
[0x1d375a8] main stream debug: starting pre-buffering
[0x1d375a8] main stream debug: received first data after 0 ms
[0x1d375a8] main stream debug: pre-buffering done 296 bytes in 0s - 48177 KiB/s
[0x1d37808] main stream debug: looking for stream_filter module: 7 candidates
[0x1d37808] main stream debug: no stream_filter module matching "any" could be loaded
[0x1d37808] main stream debug: TIMER module_need() : 0.334 ms - Total 0.334 ms / 1 intvls (Avg 0.334 ms)
[0x1d37808] main stream debug: looking for stream_filter module: 1 candidate
[0x1d37808] main stream debug: using stream_filter module "stream_filter_record"
[0x1d37808] main stream debug: TIMER module_need() : 0.054 ms - Total 0.054 ms / 1 intvls (Avg 0.054 ms)
[0x1d341d8] main input debug: creating demux: access='file' demux='xspf-open' location='/home/ermos/.local/share/vlc/ml.xspf' file='/home/ermos/.local/share/vlc/ml.xspf'
[0x1d3ac88] main demux debug: looking for demux module: 1 candidate
[0x1d3ac88] playlist demux debug: using XSPF playlist reader
[0x1d3ac88] main demux debug: using demux module "playlist"
[0x1d3ac88] main demux debug: TIMER module_need() : 0.084 ms - Total 0.084 ms / 1 intvls (Avg 0.084 ms)
[0x1d3b478] main demux meta debug: looking for meta reader module: 2 candidates
[0x1d3b478] lua demux meta debug: Trying Lua scripts in /home/ermos/.local/share/vlc/lua/meta/reader
[0x1d3b478] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader
[0x1d3b478] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac
[0x1d3b478] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
[0x1d3b478] main demux meta debug: no meta reader module matching "any" could be loaded
[0x1d3b478] main demux meta debug: TIMER module_need() : 0.876 ms - Total 0.876 ms / 1 intvls (Avg 0.876 ms)
[0x1d341d8] main input debug: `file/xspf-open:///home/ermos/.local/share/vlc/ml.xspf' successfully opened
[0x1d48db8] main xml reader debug: looking for xml reader module: 1 candidate
[0x1d48db8] main xml reader debug: using xml reader module "xml"
[0x1d48db8] main xml reader debug: TIMER module_need() : 0.272 ms - Total 0.272 ms / 1 intvls (Avg 0.272 ms)
[0x1d3ac88] playlist demux debug: parsed 0 tracks successfully
[0x1d341d8] main input debug: EOF reached
[0x1d3ac88] main demux debug: removing module "playlist"
[0x1d37808] main stream debug: removing module "stream_filter_record"
[0x1d37458] main access debug: removing module "filesystem"
[0x1d341d8] main input debug: TIMER input launching for 'Media Library' : 1.968 ms - Total 1.968 ms / 1 intvls (Avg 1.968 ms)
[0x1c9b888] main interface debug: looking for interface module: 1 candidate
[0x1c9b888] main interface debug: using interface module "hotkeys"
[0x1c9b888] main interface debug: TIMER module_need() : 0.073 ms - Total 0.073 ms / 1 intvls (Avg 0.073 ms)
[0x1d3ac88] main interface debug: looking for interface module: 1 candidate
[0x1d3ac88] inhibit interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
[0x1d3ac88] main interface debug: no interface module matching "inhibit,none" could be loaded
[0x1d3ac88] main interface debug: TIMER module_need() : 0.090 ms - Total 0.090 ms / 1 intvls (Avg 0.090 ms)
[0x1d3ac88] main interface error: no suitable interface module
[0x1c7fa58] main playlist debug: playlist threads correctly activated
[0x1c7fa58] main playlist debug: adding item `mms://89.201.164.181/stv' ( mms://89.201.164.181/stv )
[0x1c82c28] main interface debug: looking for interface module: 1 candidate
[0x1c82c28] main interface debug: no interface module matching "globalhotkeys,none" could be loaded
[0x1c82c28] main interface debug: TIMER module_need() : 0.118 ms - Total 0.118 ms / 1 intvls (Avg 0.118 ms)
[0x1c82c28] main interface error: no suitable interface module
[0x1c6c138] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x1c6c138] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0x1c82c28] main interface debug: looking for interface module: 6 candidates
[0x1c82c28] qt4 interface error: Could not connect to X server
[0x1c82c28] skins2 interface debug: Cannot open X display
[0x1c82c28] skins2 interface error: cannot initialize OSFactory
[0x1c82c28] [cli] lua interface debug: Found lua interface script: /usr/lib/vlc/lua/intf/cli.luac
[0x1c82c28] [cli] main interface debug: using interface module "lua"
[0x1c82c28] [cli] main interface debug: TIMER module_need() : 0.595 ms - Total 0.595 ms / 1 intvls (Avg 0.595 ms)
[0x1c7fa58] main playlist debug: no fetch required for (null) (art currently (null))
[0x1c82c28] [cli] lua interface: Listening on host "*console".
VLC media player 2.0.3 Twoflower
Command Line Interface initialized. Type `help' for help.
> [0x1c7fa58] main playlist debug: rebuilding array of current - root Playlist
[0x1c7fa58] main playlist debug: rebuild done - 1 items, index -1
[0x1c7fa58] main playlist debug: processing request item: null, node: Playlist, skip: 0
[0x1c7fa58] main playlist debug: starting playback of the new playlist item
[0x1c7fa58] main playlist debug: resyncing on mms://89.201.164.181/stv
[0x1c7fa58] main playlist debug: mms://89.201.164.181/stv is at 0
[0x1c7fa58] main playlist debug: creating new input thread
[0x1ccd188] main input debug: Creating an input for 'mms://89.201.164.181/stv'
[0x1cd2998] main stream output debug: using sout chain=`transcodesamplerate=44100:rtpttl=1'
[0x1cd2998] main stream output debug: stream=`rtpttl=1'
[0x1cd2c88] main stream out debug: looking for sout stream module: 0 candidates
[0x1cd2c88] main stream out debug: no sout stream module matched "rtpttl=1"
[0x1cd2c88] main stream out debug: TIMER module_need() : 0.025 ms - Total 0.025 ms / 1 intvls (Avg 0.025 ms)
[0x1cd2c88] main stream out debug: destroying chain... (name=(null))
[0x1cd2c88] main stream out debug: destroying chain done
[0x1cd2998] main stream output error: stream chain failed for `transcodesamplerate=44100:rtpttl=1'
[0x1c7fa58] main playlist debug: finished input
[0x1ccd188] main input error: cannot start stream output instance, aborting
[0x1c7fa58] main playlist debug: dead input
[0x1ccd188] main input debug: TIMER input launching for 'mms://89.201.164.181/stv' : 0.166 ms - Total 0.166 ms / 1 intvls (Avg 0.166 ms)
[0x1c7fa58] main playlist debug: changing item without a request (current 0/1)
[0x1c7fa58] main playlist debug: nothing to play

Do you have any idea about those errors?


Thanks in advance
Ermos
Last edited by hislitermos on 18 Sep 2013 13:29, edited 1 time in total.

hislitermos
Blank Cone
Blank Cone
Posts: 35
Joined: 17 Aug 2013 14:54

Re: vlc through ssh

Postby hislitermos » 18 Sep 2013 13:18

when I change the command as shown below, it worked:

Code: Select all

vlc -vvv mms://89.201.164.181/stv :sout='#transcode{vcodec=h264,vb=1024,fps=25,scale=1,width=720,height=576,acodec=mpga,ab=128,channels=2,samplerate=44100}:rtp{dst=127.0.0.1,port=5004,sdp=file:///home/ermos/vlc/vlc.sdp,mux=ts,ttl=1}' :sout-all :sout-keep
Regards
Ermos


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

Who is online

Users browsing this forum: No registered users and 14 guests