OH 1.8 Proxy Video Format RTSP to MJPG

Hi all,
after some days of trying to include video in openhab and habdroid i decide to start this topic.
I need to have my rtsp stream coming from a dvr in openhab, so i’ve read lots of documents and people that do that by transcoding stream with vlc.

FIRST IMPORTANT THING, EVERY TRANSCODED STREAM IS WORKING IF I OPEN IT IN VLC!

So :
with OGG
cvlc “rtsp://192.168.0.3:554/user=admin&password=mypass&channel=1&stream=1.sdp?real_stream–rtp-caching=100” --sout=’#transcode{vcodec=theo,vb=512,scale=1,acodec=none}:http{mux=ogg,dst=:8082/camera1}’ --no-sout-rtp-sap :no-sout-standard-sap --sout-keep
sitemap : Video item=camera1 url="http://192.168.0.10:8082/camera1
I have a working stream in web openhab from browser but no video in habdroid

with MJPG
cvlc “rtsp://192.168.0.3:554/user=admin&password=mypass&channel=1&stream=1.sdp?real_stream–rtp-caching=100” --sout=’#transcode{vcodec=MJPG,vb=512,scale=1,acodec=none,venc=x264{aud,profile=high,level=60,keyint=15,bframes=0,ref=1,nocabac}}:duplicate{dst=std{access=livehttp{seglen=10,delsegs=true,numsegs=5,index=/var/www/live/mystream.m3u8,index-url=http://localhost/live/mystream-########.ts},mux=ts{use-key-frames},dst=/var/www/live/mystream-########.ts},dst=std{access=http,mux=ts,dst=:8082/1.mp4}}'
sitemap : Video item=camera1 url=“http://192.168.0.10:8082/1.mp4” encoding="mjpeg"
I have NO working stream neither in web openhab nor in habdroid. What is ### signs in mystream-########.ts ? it need to be replaced with something?

tried also
cvlc “rtsp://192.168.0.3:554/user=admin&password=mypass&channel=1&stream=1.sdp?real_stream–rtp-caching=100” --sout=’#transcode{vcodec=MJPG,vb=512,scale=1,acodec=none}:http{mux=ts,dst=:8082/1.mp4}’

and
cvlc -R rtsp://192.168.0.3:554/user=admin&password=mypass&channel=1&stream=1.sdp?real_stream–rtp-caching=100 --sout ‘"#transcode{vcodec=mjpg,vb=2500,scale=1.0,fps=10,acodec=none}:standard{access=http{mime=multipart/x-mixed-replace; boundary=7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=:8082/1.mp4}’

So finally, what is the best format to have a working video in web UI and in habdroid ? and what is the proper command line to transcode correctly streams ?
thanks

Dario

I’ve been fighting this dragon for weeks with Zonminder. I have little to offer in help except to say that if your are streaming mjpeg you need to provide encoding=“mjpeg” at the end of your sitemap element. There is a little note on the sitemap wiki page that says the auto-encoding detection doesn’t work with mjpeg.

I just did a test on my sitemap with a Raspberry Pi camera being streamed via mjpeg_streamer and it worked.

Video item=T_D_Garage1 icon="video" url="http://<path to stream>" encoding="mjpeg"

Rich, i’ve tried unsuccessfully :

sitemap : Video item=camera1 url=“http://192.168.0.10:8082/1.mp4” encoding=“mjpeg”