←  [EN] Third-Party Development

Forums

»

Rtsp Convert to Channel

bumperbee's Photo bumperbee 22 Aug 2018

Hi Everyone, could someone please tell me how can I convert a rtsp address to a channel for viewing?

I had tried using M3u bouquet converter but it didn’t work.

Thanks very much

 

Quote

Pr2's Photo Pr2 22 Aug 2018

Hi,

 

If you link is:

 

rtsp://5.196.138.6:1935/live/nrjbelgique_360p

 

You need to create this into your userbouquet file:

 

#SERVICE 4097:0:1:0:0:0:0:0:0:0:rtsp%3a//5.196.138.6%3a1935/live/nrjbelgique_360p:NRJ Hits Belgique
#DESCRIPTION NRJ Hits Belgique
 
So exactly in the same way as any IPTV link, you must replace all : with %3a
 
Pr2
Quote

Rick Hunter's Photo Rick Hunter 22 Aug 2018

You can also look at the Hanssat Settingslists.. There are multiple Stream bouquets. Open then with a text editor on your computer to look for the syntax. 

Quote

bumperbee's Photo bumperbee 22 Aug 2018

Hi Pr2 & Rick Hunter, thanks very much for the advice.

If the address is, “ rtsp://admin:123456@192.168.1.75:10554/tcp/av0_1 “ (user name: admin, password: 123456), then am I right to say the result is as follows?

 

#SERVICE 4097:0:1:0:0:0:0:0:0:0:rtsp%3a//admin%3a123456@192.168.1.75%3a10554/tcp/av0_1:Corridor Cam

#DESCRIPTION Corridor Cam

 

I tried the above but no image appear.

Please tell me what has I not done correctly?

Thanks & Best Regards

Quote

Pr2's Photo Pr2 23 Aug 2018

Yes I didn't find errors in your conversion.

But it is possible that rtsp stream that needs authentication is not supported by #SERVICE 4097 player.
 
There is a plugin available to handle IP Camera:

opkg update
opkg install enigma2-plugin-extensions-webcamviewer

Perhaps give it a try.

 

Pr2

Quote

bumperbee's Photo bumperbee 23 Aug 2018

Thanks very much Master Pr2

Quote

ColinB's Photo ColinB 4 Mar 2019

Hi All,

 

I just bought a Cloud based IP camera, without realising that it's realy a way for the seller to sell your cloud storage. It was only £20 delivered. (ebay).

 

So did some searching and found opensource http://www.ispyconnect.com

 

The user guide is realy detailed and the software is over the top, but I couldn't my head around it.

 

 

So here's my problem. I would like to the software or something similar to connect to my IP-Cam (WiFi/LAN). 

 

Then ultimately access it as a channel on my Xtrend et8000 and/or other stb's on my LAN (my PC never sleeps).

 

 

So far I can access it via VLC on "rtsp://admin:admin@192.168.0.9/ch0_0.h264" and it streams great. They have a little widget that creates this based on camera make and ip address.

They call the IP-Cam "Eyeplus: EYEPLUS_DEV" It has a Device ID "AJWL1809301018ETAxxxxxxxxxxxxxx". And a valid MAC for either LAN or WiFi.

 

Could anyone either point me to a Forum for IP-Camera's or point me in the right direction.

 

Thanks in advance Colin

Quote

athoik's Photo athoik 4 Mar 2019

Hi,


Assuming that you have ffmpeg installed (opkg install ffmpeg) what does the following return?

ffprobe rtsp://admin:admin@192.168.0.9/ch0_0.h264
Quote

ColinB's Photo ColinB 4 Mar 2019

Hi,


Assuming that you have ffmpeg installed (opkg install ffmpeg) what does the following return?
 

ffprobe rtsp://admin:admin@192.168.0.9/ch0_0.h264

 

@athoik, thanks for your learned reply.

 

I've put it away for tonight. Was doing the setup on the floor before install.

 

I will give it a try in the morning.

 

Thanks Colin

Quote

ColinB's Photo ColinB 5 Mar 2019

Failed first time then I removed a password and now:

 

[rtsp @ 0x445550] method DESCRIBE failed: 401 Unauthorized
rtsp://admin:admin@192.168.0.9/ch0_0.h264: Server returned 401 Unauthorized (authorization failed)
root@et8000:~# ffprobe rtsp://admin:@192.168.0.9/ch0_0.h264
ffprobe version 3.4.2 Copyright © 2007-2018 the FFmpeg developers
  built with gcc 6.3.0 (GCC)
  configuration: --disable-stripping --enable-pic --enable-shared --enable-pthreads --disable-libxcb --disable-libxcb-sh
m --disable-libxcb-xfixes --disable-libxcb-shape --enable-nonfree --cross-prefix=mipsel-oe-linux- --ld='mipsel-oe-linux-
gcc -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/openpli/oe/release-7.0/build/tmp/work/mips32el-oe-linux/ffmpeg/3
.4.2-r0/recipe-sysroot' --cc='mipsel-oe-linux-gcc -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/openpli/oe/release
-7.0/build/tmp/work/mips32el-oe-linux/ffmpeg/3.4.2-r0/recipe-sysroot' --cxx='mipsel-oe-linux-g++ -mel -mabi=32 -mhard-fl
oat -march=mips32 --sysroot=/openpli/oe/release-7.0/build/tmp/work/mips32el-oe-linux/ffmpeg/3.4.2-r0/recipe-sysroot' --a
rch=mipsel --target-os=linux --enable-cross-compile --extra-cflags=' -O2 -pipe -g -feliminate-unused-debug-types -fdebug
-prefix-map=/openpli/oe/release-7.0/build/tmp/work/mips32el-oe-linux/ffmpeg/3.4.2-r0=/usr/src/debug/ffmpeg/3.4.2-r0 -fde
bug-prefix-map=/openpli/oe/release-7.0/build/tmp/work/mips32el-oe-linux/ffmpeg/3.4.2-r0/recipe-sysroot-native= -fdebug-p
refix-map=/openpli/oe/release-7.0/build/tmp/work/mips32el-oe-linux/ffmpeg/3.4.2-r0/recipe-sysroot= -mel -mabi=32 -mhard-
float -march=mips32 --sysroot=/openpli/oe/release-7.0/build/tmp/work/mips32el-oe-linux/ffmpeg/3.4.2-r0/recipe-sysroot' -
-extra-ldflags='-Wl,-O1 -Wl,--as-needed' --sysroot=/openpli/oe/release-7.0/build/tmp/work/mips32el-oe-linux/ffmpeg/3.4.2
-r0/recipe-sysroot --enable-hardcoded-tables --disable-static --disable-runtime-cpudetect --enable-ffprobe --disable-alt
ivec --disable-amd3dnow --disable-amd3dnowext --disable-mmx --disable-mmxext --disable-sse --disable-sse2 --disable-sse3
 --disable-ssse3 --disable-sse4 --disable-sse42 --disable-avx --disable-xop --disable-fma3 --disable-fma4 --disable-avx2
 --enable-inline-asm --enable-asm --disable-x86asm --disable-fast-unaligned --enable-muxers --enable-encoders --enable-d
ecoders --enable-demuxers --enable-parsers --enable-bsfs --enable-protocols --enable-indevs --enable-outdevs --enable-fi
lters --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --enable-mipsfpu --disa
ble-vfp --disable-neon --disable-mipsdsp --disable-mipsdspr2 --disable-debug --pkg-config=pkg-config --enable-zlib --ext
ra-cflags=' -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/openpli/oe/release-7.0/build/tmp/work/mips32
el-oe-linux/ffmpeg/3.4.2-r0=/usr/src/debug/ffmpeg/3.4.2-r0 -fdebug-prefix-map=/openpli/oe/release-7.0/build/tmp/work/mip
s32el-oe-linux/ffmpeg/3.4.2-r0/recipe-sysroot-native= -fdebug-prefix-map=/openpli/oe/release-7.0/build/tmp/work/mips32el
-oe-linux/ffmpeg/3.4.2-r0/recipe-sysroot= -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/openpli/oe/release-7.0/bui
ld/tmp/work/mips32el-oe-linux/ffmpeg/3.4.2-r0/recipe-sysroot -ffunction-sections -fdata-sections -fno-aggressive-loop-op
timizations' --extra-ldflags='-Wl,-O1 -Wl,--as-needed,--gc-sections -Wl,--print-gc-sections,-lrt' --prefix=/usr --libdir
=/usr/lib --shlibdir=/usr/lib --datadir=/usr/share/ffmpeg --disable-mipsdsp --disable-mipsdspr2 --cpu=generic --pkg-conf
ig=pkg-config --enable-avcodec --enable-avdevice --enable-avfilter --enable-avformat --enable-avresample --enable-bzlib
--enable-gpl --disable-libgsm --disable-indev=jack --enable-libbluray --enable-protocol=bluray --enable-libfreetype --en
able-librtmp --enable-libvorbis --enable-lzma --enable-libmp3lame --enable-openssl --enable-postproc --disable-sdl2 --di
sable-libspeex --enable-swresample --enable-swscale --enable-libtheora --disable-vaapi --disable-vdpau --enable-libvpx -
-enable-libx264 --disable-outdev=xv
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
Input #0, rtsp, from 'rtsp://admin:@192.168.0.9/ch0_0.h264':
  Metadata:
    title           : h264.mp4
    comment         : TAS-Tech Live Cast
  Duration: N/A, start: 0.595800, bitrate: N/A
    Stream #0:0: Video: h264 (Main), yuv420p(progressive), 1920x1080, 11.92 fps, 25 tbr, 90k tbn, 23.75 tbc
root@et8000:~# ffprobe rtsp://admin:@192.168.0.9/ch0_0.h264

Quote

ColinB's Photo ColinB 5 Mar 2019

Just to let you know. I got the iSpy software seeing the camera, just by removing the password.

 

Sill wanting to pursue making it visable to my stb's

 

cheers Colin

Quote

ColinB's Photo ColinB 9 Mar 2019

This is the VLC stream that works for my IP-Cam

 

rtsp://admin:admin@192.168.0.9/ch0_0.h264

 

Could anyone help change it to a service Ref: ?

Quote

oxejatte's Photo oxejatte 9 Mar 2019

You could try :

#SERVICE 4097:0:1:0:0:0:0:0:0:0:rtsp%3a//admin%3aadmin@192.168.0.9/ch0_0.h264:NameOfYourStream
#DESCRIPTION NameOfYourStream
Quote

ColinB's Photo ColinB 9 Mar 2019

 

You could try :

#SERVICE 4097:0:1:0:0:0:0:0:0:0:rtsp%3a//admin%3aadmin@192.168.0.9/ch0_0.h264:NameOfYourStream
#DESCRIPTION NameOfYourStream

 

@oxejatte Thank you so much worked perfect first-time. In my case I removed the password.

 

Attached File  4097_0_1_0_0_0_0_0_0_0_20190309114119.jpg   80.85KB   7 downloads

 

Unfortunately I've ran into another issue. which in my case also happens with the "WebcamStreamer" plugin.

 

The camera either lock's up, or is shutdown (the camera has no power lights). Requiring the Camera to be manually rebooted.

 

Also it is no longer available to telnet, vlc or the iSpy software I'm using.

 

 

Anyway this thread was about Rtsp to Channel which is what I've confirmed.

 

Many thanks

Quote

athoik's Photo athoik 9 Mar 2019

Stream #0:0: Video: h264 (Main), yuv420p(progressive), 1920x1080, 11.92 fps, 25 tbr, 90k tbn, 23.75 tbc

11.92 fps is not so common, something like 25 should be better for receiver.
Quote

ColinB's Photo ColinB 9 Mar 2019

Stream #0:0: Video: h264 (Main), yuv420p(progressive), 1920x1080, 11.92 fps, 25 tbr, 90k tbn, 23.75 tbc

11.92 fps is not so common, something like 25 should be better for receiver.

 

@athoik, thanks for your interest, but you have me lost there. I can say that using VLC compared to the iSpy (opensource) software the difference is noticable.

 

Attached File  iSpy-VLC-Comparison-01.PNG   910.97KB   2 downloads

 

At the moment I have NO direct access to the camera internal software. It responds to telnet with normal user login, 3 attempt timeout. So I am waiting to see if supplier will give password.

 

 

 

Today, FYI:

 

root@et8000:~# ffprobe rtsp://admin:@192.168.0.9/ch0_0.h264...

 

...Input #0, rtsp, from 'rtsp://admin:@192.168.0.9/ch0_0.h264':
  Metadata:
    title           : h264.mp4
    comment         : TAS-Tech Live Cast
  Duration: N/A, start: 0.475800, bitrate: N/A
    Stream #0:0: Video: h264 (Main), yuv420p(progressive), 1920x1080, 11.92 fps, 25 tbr, 90k tbn, 23.75 tbc
root@et8000:~#

Quote

athoik's Photo athoik 9 Mar 2019

The ffmpeg reports 11.92 frames per second.

Usually the videos that a receiver is able to play is 25fps, 50fps, 60fps.

So if the camera has option for 25pfs it might work on your receiver.
Quote

ColinB's Photo ColinB 9 Mar 2019

The ffmpeg reports 11.92 frames per second.

Usually the videos that a receiver is able to play is 25fps, 50fps, 60fps.

So if the camera has option for 25pfs it might work on your receiver.

 

Post#14

 

I can access it via VLC on "rtsp://admin:admin@192.168.0.9/ch0_0.h264" and it streams great. Stop and start VLC has no problem. In fact VLC seems to have the best picture/resolution.

 

On my et8000 using as a channel: #SERVICE 4097:0:1:0:0:0:0:0:0:0:rtsp%3a//admin%3@192.168.0.9/ch0_0.h264 also works one time, but when I close the stream it locks or power off the camera. I then need to reboot the camera at the power switch.

Quote

ColinB's Photo ColinB 9 Mar 2019

in my case also happens with the "WebcamStreamer" plugin.

Quote

Trial's Photo Trial 10 Mar 2019

Hi,

look if there is a firmware update for your camera. I have no problems with my Foscams.

 

ciao

Quote