Project

General

Profile

Help with piping rtsp-link from Ubiquiti ip-cam

Added by Ernie Bert over 1 year ago

Hi,
I'm glad to be a TVheadend user. Streaming TV- and Radio channels 24/7 is pure fun. ;-)
But now I want to stream also 2 Ubiquiti ip-cams beeing connected to their own unifi video server
This server offers rtsp-links without username and password. (as well as rtmp and rtmps-links)
An example for a link is rtsp://192.168.174.70:7447/59494e5314817740a7ac1410_0
unifi video server and tvh-server are on the same machine, so security doesn't matter.

The links do work well with vlc. Here is some video information out of vlc:
H264-MPEG4 AVC (part10)(h264),1920x1080,refresh rate 15,4:2:0 YUV full scale
MPEG AAC Audio (mp4a) 22050 Hz,32 bits per sample

I did some attemps with pipe, but none of them worked. Here's my latest one:

2021-07-15 16:03:57.480 mpegts: pipe:///usr/bin/ffmpeg -i rtsp://192.168.174.70:7447/59494e5314817740a7ac1410_0 -vcodec copy -acodec copy -f mpegts pipe:1 - tuning on IPTV #1

2021-07-15 16:03:57.487 subscription: 0075: "scan" subscribing to mux "pipe:///usr/bin/ffmpeg -i rtsp://192.168.174.70:7447/59494e5314817740a7ac1410_0 -vcodec copy -acodec copy -f mpegts pipe:1", weight: 6, adapter: "IPTV #1", network: "ipcam", service: "Raw PID Subscription" 

2021-07-15 16:03:57.488 spawn: Executing "/usr/bin/ffmpeg" 

2021-07-15 16:03:57.494 iptv: stdin pipe 109 unexpectedly closed: No data

2021-07-15 16:04:12.480 mpegts: pipe:///usr/bin/ffmpeg -i rtsp://192.168.174.70:7447/59494e5314817740a7ac1410_0 -vcodec copy -acodec copy -f mpegts pipe:1 - scan no data, failed

2021-07-15 16:04:12.480 subscription: 0075: "scan" unsubscribing

vlc also likes 127.0.0.1 or localhost, for tvh it makes no difference to local ip.

Thanks for help.

Regards, Ernie Bert


Replies (2)

RE: Help with piping rtsp-link from Ubiquiti ip-cam - Added by clint jones over 1 year ago

pipe:///usr/bin/ffmpeg -loglevel fatal -i rtsp://root:/axis-media/media.amp -vcodec copy -acodec copy -f mpegts -mpegts_service_type 0x01 pipe:1

this works on an axis camera and works well

It is very close to some you are trying perhaps add the password portion to the url?

clint

    (1-2/2)