<html>
<head>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-15">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
I am trying to transcode a H.264 Stream (via RTSP) from my IP Cam to
a MJPEG Stream (via HTTP), so that I can easily<br>
view the stream in many Browsers / Devices without the need of
PlugIns, Apps and so on...<br>
<br>
Now I have several problems...<br>
<br>
When I run (under windows):<br>
<b><br>
</b><b><tt>vlc rtsp://192.168.10.254:8554/proxyStream-1
:sout=#transcode{vcodec=MJPG,vb=800,scale=1}:duplicate{dst=std{access=http{mime=multipart/x-mixed-replace;boundary=--7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=:8080/mjpeg}}</tt></b><b><i><br>
</i></b><br>
<br>
I can view the MJPEG stream in my browser like expected<br>
<br>
Issuing the same command under linux (ubuntu 13, Kernel
3.8.0-19-generic) throws the following errors and outputs therefor
no stream...:<br>
<br>
<small><tt>custodia@vigilia:~$ <big><b>cvlc -vvv
rtsp://192.168.10.254:8554/proxyStream-1
:sout=#transcode{vcodec=MJPG,vb=800,scale=1}:duplicate{dst=std{access=http{mime</b><b><br>
</b><b>=multipart/x-mixed-replace;boundary=--7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=:8080/mjpeg}}<br>
<br>
</b></big>VLC media player 2.0.6 Twoflower (revision
2.0.6-0-gbe9623c)<br>
[0x95958f0] main libvlc debug: VLC media player - 2.0.6
Twoflower<br>
[0x95958f0] main libvlc debug: Copyright © 1996-2013 VLC authors
and VideoLAN<br>
[0x95958f0] main libvlc debug: revision 2.0.6-0-gbe9623c<br>
[0x95958f0] main libvlc debug: configured with ./configure
'--enable-static' '--build=i686-linux-gnu' 'CFLAGS=-g -O2
-fstack-protector --param=ssp-bu<br>
ffer-size=4 -Wformat -Werror=format-security'
'CPPFLAGS=-D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2
-fstack-protector --param=ssp-buffer-size=4 -Wformat -We<br>
rror=format-security' 'LDFLAGS=-Wl,-Bsymbolic-functions
-Wl,-z,relro' '--config-cache' '--disable-maintainer-mode'
'--disable-silent-rules' '--disable<br>
-update-check' '--enable-fast-install' '--prefix=/usr'
'--docdir=/usr/share/doc/vlc-nox' '--sysconfdir=/etc'
'--with-binary-version=1' '--enable-a52'<br>
'--enable-aa' '--enable-bluray' '--enable-bonjour'
'--enable-caca' '--enable-dbus' '--enable-dca' '--enable-dirac'
'--enable-directfb' '--enable-dvbps<br>
i' '--enable-dvdnav' '--enable-faad' '--enable-flac'
'--enable-fluidsynth' '--enable-freetype' '--enable-fribidi'
'--enable-gnutls' '--enable-jack' '-<br>
-enable-kate' '--enable-libass' '--enable-libmpeg2'
'--enable-libproxy' '--enable-libxml2' '--enable-lirc'
'--enable-live555' '--enable-mad' '--enable<br>
-mkv' '--enable-mod' '--enable-mpc' '--enable-mtp'
'--enable-mux_ogg' '--enable-ncurses' '--enable-notify'
'--enable-ogg' '--enable-opus' '--enable-os<br>
s' '--enable-pulse' '--enable-qt4' '--enable-realrtsp'
'--enable-samplerate' '--enable-schroedinger' '--enable-sdl'
'--enable-sftp' '--enable-shout' '<br>
--enable-skins2' '--enable-smb' '--enable-speex' '--enable-svg'
'--enable-taglib' '--enable-theora' '--enable-twolame'
'--enable-upnp' '--enable-vcd'<br>
'--enable-vcdx' '--enable-vorbis' '--enable-x264'
'--enable-zvbi'
'--with-kde-solid=/usr/share/kde4/apps/solid/actions/'
'--disable-dxva2' '--disable-<br>
gnomevfs' '--disable-goom' '--disable-portaudio'
'--disable-projectm' '--disable-sqlite' '--disable-telx'
'--enable-alsa' '--enable-atmo' '--enable-dc<br>
1394' '--enable-dv' '--enable-fbosd' '--enable-libva'
'--enable-linsys' '--enable-omxil' '--enable-pvr'
'--enable-udev' '--enable-v4l2' '--enable-crys<br>
talhd' '--enable-mmx' '--enable-sse' '--disable-neon'
'--disable-altivec' 'build_alias=i686-linux-gnu'<br>
[0x95958f0] main libvlc debug: searching plug-in modules<br>
[0x95958f0] main libvlc debug: loading plugins cache file
/usr/lib/vlc/plugins/plugins.dat<br>
[0x95958f0] main libvlc debug: recursively browsing
`/usr/lib/vlc/plugins'<br>
[0x95958f0] main libvlc debug: saving plugins cache
/usr/lib/vlc/plugins/plugins.dat<br>
[0x95958f0] main libvlc debug: plug-ins loaded: 422 modules<br>
[0x95958f0] main libvlc debug: opening config file
(/home/custodia/.config/vlc/vlcrc)<br>
[0x95958f0] main libvlc debug: translation test: code is "de"<br>
[0x95958f0] main libvlc debug: CPU has capabilities MMX MMXEXT
SSE SSE2 SSE3 SSSE3 FPU<br>
[0x95958f0] main libvlc debug: looking for memcpy module: 4
candidates<br>
[0x95958f0] main libvlc debug: using memcpy module
"memcpymmxext"<br>
[0x9727668] main input debug: Creating an input for
'Medienbibliothek'<br>
[0x9727668] main input debug: Input is a meta file: disabling
unneeded options<br>
[0x9727668] main input debug: using timeshift granularity of 50
MiB, in path '/tmp'<br>
[0x9727668] main input debug:
`file/xspf-open:///home/custodia/.local/share/vlc/ml.xspf' gives
access `file' demux `xspf-open' path `/home/custodia/.l<br>
ocal/share/vlc/ml.xspf'<br>
[0x9727668] main input debug: creating demux: access='file'
demux='xspf-open'
location='/home/custodia/.local/share/vlc/ml.xspf'
file='/home/custodia/<br>
.local/share/vlc/ml.xspf'<br>
[0x95b6018] main demux debug: looking for access_demux module: 3
candidates<br>
[0x95b6018] main demux debug: no access_demux module matching
"file" could be loaded<br>
[0x95b6018] main demux debug: TIMER module_need() : 1.988 ms -
Total 1.988 ms / 1 intvls (Avg 1.988 ms)<br>
[0x9727668] main input debug: creating access 'file'
location='/home/custodia/.local/share/vlc/ml.xspf',
path='/home/custodia/.local/share/vlc/ml.xspf<br>
'<br>
[0x962eca0] main access debug: looking for access module: 2
candidates<br>
[0x962eca0] filesystem access debug: opening file
`/home/custodia/.local/share/vlc/ml.xspf'<br>
[0x962eca0] main access debug: using access module "filesystem"<br>
[0x962eca0] main access debug: TIMER module_need() : 1.058 ms -
Total 1.058 ms / 1 intvls (Avg 1.058 ms)<br>
[0x962fc10] main stream debug: Using stream method for AStream*<br>
[0x962fc10] main stream debug: starting pre-buffering<br>
[0x962fc10] main stream debug: received first data after 0 ms<br>
[0x962fc10] main stream debug: pre-buffering done 299 bytes in
0s - 2147 KiB/s<br>
[0x962f470] main stream debug: looking for stream_filter module:
7 candidates<br>
[0x962f470] main stream debug: no stream_filter module matching
"any" could be loaded<br>
[0x962f470] main stream debug: TIMER module_need() : 1.954 ms -
Total 1.954 ms / 1 intvls (Avg 1.954 ms)<br>
[0x962f470] main stream debug: looking for stream_filter module:
1 candidate<br>
[0x962f470] main stream debug: using stream_filter module
"stream_filter_record"<br>
[0x962f470] main stream debug: TIMER module_need() : 0.666 ms -
Total 0.666 ms / 1 intvls (Avg 0.666 ms)<br>
[0x9727668] main input debug: creating demux: access='file'
demux='xspf-open'
location='/home/custodia/.local/share/vlc/ml.xspf'
file='/home/custodia/<br>
.local/share/vlc/ml.xspf'<br>
[0x962fcd0] main demux debug: looking for demux module: 1
candidate<br>
[0x962fcd0] playlist demux debug: using XSPF playlist reader<br>
[0x962fcd0] main demux debug: using demux module "playlist"<br>
[0x962fcd0] main demux debug: TIMER module_need() : 0.871 ms -
Total 0.871 ms / 1 intvls (Avg 0.871 ms)<br>
[0x96321f8] main demux meta debug: looking for meta reader
module: 2 candidates<br>
[0x96321f8] lua demux meta debug: Trying Lua scripts in
/home/custodia/.local/share/vlc/lua/meta/reader<br>
[0x96321f8] lua demux meta debug: Trying Lua scripts in
/usr/lib/vlc/lua/meta/reader<br>
[0x96321f8] lua demux meta debug: Trying Lua playlist script
/usr/lib/vlc/lua/meta/reader/filename.luac<br>
[0x96321f8] lua demux meta debug: Trying Lua scripts in
/usr/share/vlc/lua/meta/reader<br>
[0x96321f8] main demux meta debug: no meta reader module
matching "any" could be loaded<br>
[0x96321f8] main demux meta debug: TIMER module_need() : 4.667
ms - Total 4.667 ms / 1 intvls (Avg 4.667 ms)<br>
[0x9727668] main input debug:
`file/xspf-open:///home/custodia/.local/share/vlc/ml.xspf'
successfully opened<br>
[0x9624be8] main xml reader debug: looking for xml reader
module: 1 candidate<br>
[0x9624be8] main xml reader debug: using xml reader module "xml"<br>
[0x9624be8] main xml reader debug: TIMER module_need() : 1.740
ms - Total 1.740 ms / 1 intvls (Avg 1.740 ms)<br>
[0x962fcd0] playlist demux debug: parsed 0 tracks successfully<br>
[0x9727668] main input debug: EOF reached<br>
[0x962fcd0] main demux debug: removing module "playlist"<br>
[0x962f470] main stream debug: removing module
"stream_filter_record"<br>
[0x962eca0] main access debug: removing module "filesystem"<br>
[0x9727668] main input debug: TIMER input launching for
'Medienbibliothek' : 13.841 ms - Total 13.841 ms / 1 intvls (Avg
13.841 ms)<br>
[0x9623e88] main interface debug: looking for interface module:
1 candidate<br>
[0x9623e88] main interface debug: using interface module
"hotkeys"<br>
[0x9623e88] main interface debug: TIMER module_need() : 0.759 ms
- Total 0.759 ms / 1 intvls (Avg 0.759 ms)<br>
[0x95a96d8] main interface debug: looking for interface module:
1 candidate<br>
[0x95a96d8] inhibit interface error: Failed to connect to the
D-Bus session daemon: Unable to autolaunch a dbus-daemon without
a $DISPLAY for X11<br>
[0x95a96d8] main interface debug: no interface module matching
"inhibit,none" could be loaded<br>
[0x95a96d8] main interface debug: TIMER module_need() : 0.919 ms
- Total 0.919 ms / 1 intvls (Avg 0.919 ms)<br>
[0x95a96d8] main interface error: no suitable interface module<br>
[0x9729150] main playlist debug: playlist threads correctly
activated<br>
[0x9729150] main playlist debug: rebuilding array of current -
root Wiedergabeliste<br>
[0x9729150] main playlist debug: rebuild done - 0 items, index
-1<br>
[0x9729150] main playlist debug: adding item
`rtsp://192.168.10.254:8554/proxyStream-1' (
rtsp://192.168.10.254:8554/proxyStream-1 )<br>
[0x9729150] main playlist debug: no fetch required for (null)
(art currently (null))<br>
[0x9728510] main interface debug: looking for interface module:
1 candidate<br>
[0x9728510] main interface debug: no interface module matching
"globalhotkeys,none" could be loaded<br>
[0x9728510] main interface debug: TIMER module_need() : 1.202 ms
- Total 1.202 ms / 1 intvls (Avg 1.202 ms)<br>
[0x9728510] main interface error: no suitable interface module<br>
[0x95958f0] main libvlc error: interface "globalhotkeys,none"
initialization failed<br>
[0x9728510] main interface debug: looking for interface module:
1 candidate<br>
[0x9728510] dummy interface: using the dummy interface module...<br>
[0x9728510] main interface debug: using interface module "dummy"<br>
[0x9728510] main interface debug: TIMER module_need() : 0.999 ms
- Total 0.999 ms / 1 intvls (Avg 0.999 ms)<br>
[0x9729150] main playlist debug: processing request item: null,
node: Wiedergabeliste, skip: 0<br>
[0x9729150] main playlist debug: rebuilding array of current -
root Wiedergabeliste<br>
[0x9729150] main playlist debug: rebuild done - 1 items, index
-1<br>
[0x9729150] main playlist debug: starting playback of the new
playlist item<br>
[0x9729150] main playlist debug: resyncing on
rtsp://192.168.10.254:8554/proxyStream-1<br>
[0x9729150] main playlist debug:
rtsp://192.168.10.254:8554/proxyStream-1 is at 0<br>
[0x9729150] main playlist debug: creating new input thread<br>
[0xb53005f0] main input debug: Creating an input for
'rtsp://192.168.10.254:8554/proxyStream-1'<br>
[0xb5100880] main stream output debug: using sout
chain=`transcodescale=1:duplicate{dst=std{access=http{mime=multipart/x-mixed-replace'<br>
[0xb5100880] main stream output debug: stream=`duplicate'<br>
[0xb5100b10] main stream out debug: looking for sout stream
module: 1 candidate<br>
[0xb5100b10] stream_out_duplicate stream out debug: creating
'duplicate'<br>
[0xb5100b10] stream_out_duplicate stream out debug: * adding
`std{access=http{mime=multipart/x-mixed-replace'<br>
[0xb5100880] main stream output debug: stream=`std'<br>
[0xb5101128] main stream out debug: looking for sout stream
module: 1 candidate<br>
[0xb5101128] main stream out debug: set config option:
sout-standard-access to http{mime=multipart/x-mixed-replace<br>
[0xb5101128] stream_out_standard stream out error: no mux
specified or found by extension<br>
[0xb5101128] main stream out debug: no sout stream module
matching "std" could be loaded<br>
[0xb5101128] main stream out debug: TIMER module_need() : 1.270
ms - Total 1.270 ms / 1 intvls (Avg 1.270 ms)<br>
[0xb5101128] main stream out debug: destroying chain...
(name=(null))<br>
[0xb5101128] main stream out debug: destroying chain done<br>
[0xb5100b10] stream_out_duplicate stream out error: no
destination given<br>
[0xb5100b10] main stream out debug: no sout stream module
matching "duplicate" could be loaded<br>
[0xb5100b10] main stream out debug: TIMER module_need() : 3.054
ms - Total 3.054 ms / 1 intvls (Avg 3.054 ms)<br>
[0xb5100b10] main stream out debug: destroying chain...
(name=(null))<br>
[0xb5100b10] main stream out debug: destroying chain done<br>
[0xb5100880] main stream output error: stream chain failed for
`transcodescale=1:duplicate{dst=std{access=http{mime=multipart/x-mixed-replace'<br>
[0xb53005f0] main input error: cannot start stream output
instance, aborting<br>
[0x9729150] main playlist debug: finished input<br>
[0x9729150] main playlist debug: dead input<br>
[0xb53005f0] main input debug: TIMER input launching for
'rtsp://192.168.10.254:8554/proxyStream-1' : 4.873 ms - Total
4.873 ms / 1 intvls (Avg 4.873<br>
ms)<br>
[0x9729150] main playlist debug: changing item without a request
(current 0/1)<br>
[0x9729150] main playlist debug: nothing to play<br>
</tt></small><br>
What am I missing?<br>
<br>
Next Question....:<br>
the rtsp URL from my IP Cam contains ampersands and question mark to
supply parameters... unfortunately vlc seems to have problems, when
the url contains <br>
such characters... the only way to get this working (under linux...
windows gui has no problems) was to use live555 as a proxy... I
tried wrapping in double quote, single quotes etc....<br>
nothing helped... the "original url" for the h.264 stream of the
camera is:<br>
<br>
rtsp://user:password@ip-addr:554/cam/realtimemonitor?channel=1&subtype=0<br>
<br>
thank you for reading and maybe giving the solution(s).<br>
<br>
regards,<br>
yves<br>
<br>
<br>
</body>
</html>