Security Camera

Will someone please post a sample link on how to add a camera. I have a Reolink 410 with the ip of 192.168.1.25. The login is admin and the pw is XXXXXXX.

thanks,

Joe

Here is an entry for one of my Dahua cameras accessed through an NVR.

#EXTM3U
#EXTINF:-1 channel-id="Study2" channel-number="8002" tvg-name="Study2" tvc-guide-title="Study view" tvc-guide-description="Live view from Study" tvc-stream-vcodec="h264" tvc-stream-acodec="aac" tvc-guide-art="http://192.168.1.23:8000/images/rtsp/Study2.jpg",Study2
rtsp://username:[email protected]:554/cam/realmonitor?channel=2&subtype=1

I'd suggest looking here for your Reolink camera to get the rtsp url - https://www.ispyconnect.com/man.aspx?n=Reolink

1 Like

Thanks

please tell me what I am doing wrong. I get a could not fetch error.

#EXTM3U
#EXTINF:-1 channel-id="South" channel-number="8002" tvg-name="South" tvc-guide-title="South" tvc-guide-description="Live view from South" tvc-stream-vcodec="h264" tvc-stream-acodec="aac" tvc-guide-art="http://192.168.1.25:9000/images/rtsp/South.jpg",South
rtsp://joe:[email protected]/h264Preview_01_main

What is the exact error from the Log

2020/12/12 10:55:11.023803 [ERR] Failed to start stream for ch8002: M3U: Could not fetch playlist: rtsp://joe:[email protected]/h264Preview_01_main: Get "rtsp://joe:@192.168.1.25/h264Preview_01_main": unsupported protocol scheme "rtsp"
2020/12/12 10:55:11.051796 [HLS] Couldn't generate stream playlist for ch8002-dANY-ip192.168.1.23: M3U: Could not fetch playlist: rtsp://joe:[email protected]/h264Preview_01_main: Get "rtsp://joe:
@192.168.1.25/h264Preview_01_main": unsupported protocol scheme "rtsp"
2020/12/12 10:55:11.051896 [HLS] Stopping transcoder session ch8002-dANY-ip192.168.1.23

why is trying to point to .23?

You selected HLS in the M3U setup but this is not an hls stream

2020/12/12 11:04:34.012143 [HLS] Probe failed for live stream after 10.082284743s and 0 bytes
2020/12/12 11:04:34.038428 [HLS] Couldn't generate stream playlist for ch8002-dANY-ip192.168.1.23: Stream stopped
2020/12/12 11:04:34.038530 [HLS] Stopping transcoder session ch8002-dANY-ip192.168.1.23
2020/12/12 11:04:35.102713 [HLS] Probe failed for live stream after 10.085907658s and 0 bytes
2020/12/12 11:04:35.753084 [DVR] Waiting 6h55m24.246930227s until next job 1607817600-7 Eyewitness News at 6
2020/12/12 11:04:36.023423 [HLS] Probe failed for live stream after 10.082088986s and 0 bytes
2020/12/12 11:04:37.105971 [HLS] Probe failed for live stream after 10.097904157s and 0 bytes
2020/12/12 11:04:38.043200 [HLS] Probe failed for live stream after 10.092184036s and 0 bytes
2020/12/12 11:04:39.108273 [HLS] Probe failed for live stream after 10.093235165s and 0 bytes
2020/12/12 11:04:40.059655 [HLS] Probe failed for live stream after 10.097105579s and 0 bytes
2020/12/12 11:04:41.121360 [HLS] Probe failed for live stream after 10.088805847s and 0 bytes
2020/12/12 11:04:42.048984 [HLS] Probe failed for live stream after 10.076619216s and 0 bytes
2020/12/12 11:04:43.126470 [HLS] Probe failed for live stream after 10.087006945s and 0 bytes
2020/12/12 11:04:44.059944 [HLS] Probe failed for live stream after 10.076831644s and 0 bytes
2020/12/12 11:04:44.060006 [TNR] Closed connection to M3U-South for ch8002 South

why is it trying to point to 192.168.1.23?

It's not pointing anywhere. That's the IP you're watching from.

Did you change to MPEGTS in the m3u settings?

yes

Okay please submit diagnostics

ba60da9b-12ad-4ce7-8dc4-db4f59a60f89

Does it work in VLC?

Seems like wrong password issue.

2020/12/12 11:04:23.936102 [HLS] ffmpeg: rtsp-South: [rtsp @ 0x2d2df40] method DESCRIBE failed: 401 Unauthorized
2020/12/12 11:04:23.936189 [HLS] ffmpeg: rtsp-South: rtsp://joe:[email protected]/h264Preview_01_main: Server returned 401 Unauthorized (authorization failed)

It was a pw issue - got it to work thanks

1 Like

I spent quite a while trying to add my Reolink 4K cameras as custom channels. I finally narrowed it down to this at the end of the rtsp address:

Change
h264Preview_01_main
To
h264Preview_01_sub

...and now it works.

The Reolink documentation says that “main” is the “mainstream” and “sub” is the “substream,” which is lower quality. I really had absolutely no idea what I was doing, so I just tried tweaking all kinds of things until I figured this out.

1 Like

I'm currently trying to add my doorbell camera (LaView branded), but running into issues. The rtsp url below is working fine within VLC. Anyone has any advice?

Stream format - MPEG-TS

#EXTM3U

#EXTINF:-1 channel-id="DBCAM" channel-number="1.1" tvg-name="Doorbell" tvc-guide-title="Doorbell" tvc-guide-description="Live doorbell camera feed",Doorbell
rtsp://admin:[email protected]:554/Streaming/Channels/101

Logs:
2021/01/26 21:28:22.831731 [TNR] Sharing existing connection to M3U-SecurityCameras for ch1.1 Doorbell (clients=10, len=0)
2021/01/26 21:28:22.835730 [HLS] Starting transcoder for channel 1.1 from 192.168.1.1 (encoder=remux, resolution=, deinterlacer=, bitrate=0)
2021/01/26 21:28:22.991731 [HLS] ffmpeg: ch1.1-dANY-ip192.168.1.1-remux: pipe:: could not find codec parameters
2021/01/26 21:28:23.050784 [HLS] Couldn't generate stream playlist for ch1.1-dANY-ip192.168.1.1: Stream stopped

This seems to indicate tuner sharing has gone off the rails.

Can you click Support > Submit Diagnostics

Submitted: ed0b601b-a812-4d95-a025-b7ae0ea6b33d

Seeing this further up in the logs:
2021/01/26 21:52:29.459499 [HLS] ffmpeg: rtsp-DBCAM: [rtsp @ 00000000025d2740] Missing PPS in sprop-parameter-sets, ignoring
2021/01/26 21:52:32.907982 [HLS] ffmpeg: rtsp-DBCAM: [rtsp @ 00000000025d2740] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
2021/01/26 21:52:32.907982 [HLS] ffmpeg: rtsp-DBCAM: Consider increasing the value for the 'analyzeduration' and 'probesize' options

EDIT 1/27/2021:
Figured out the issue. Windows was blocking ffmpeg. I was able to explicitly grant access for the user account and all is good now.
This is a fantastic feature. Thanks for all of your work!

2 Likes

Does anyone have any advice on the issue I am having trying to connect to my Laview camera (LV-PB3040WC). I can connect just fine using VLC.

See the log below,

2021/11/04 21:12:20.058986 [TNR] Opened connection to M3U-Driveway for ch1.1 Doorbell
2021/11/04 21:12:20.088827 [HLS] ffmpeg: rtsp-DBCAM: [rtsp @ 0x60ed580] method DESCRIBE failed: 401 Unauthorized
2021/11/04 21:12:20.088963 [HLS] ffmpeg: rtsp-DBCAM: rtsp://user:[email protected]:554//Streaming/Channels/1: Server returned 401 Unauthorized (authorization failed)
2021/11/04 21:12:20.089983 [ERR] Error during stream M3U-Driveway ch1.1 Doorbell: exit status 1
2021/11/04 21:12:20.090134 [TNR] Closed connection to M3U-Driveway for ch1.1 Doorbell

I am able to get the live feed sometimes, but its very scrambled when it does work.

Tried a few different camera settings, but it only seems to work when turn the resolution way down. This camera is hardwired so the connection should be good.

image

2021/11/04 22:09:48.987059 [HLS] ffmpeg: rtsp-DBCAM: av_interleaved_write_frame(): Broken pipe
2021/11/04 22:09:48.987165 [HLS] ffmpeg: rtsp-DBCAM: Error writing trailer of pipe:: Broken pipe
2021/11/04 22:10:18.021422 [TNR] Opened connection to M3U-Driveway for ch1.1 Driveway
2021/11/04 22:10:23.336568 [HLS] ffmpeg: rtsp-DBCAM: [mpegts @ 0x612f800] Non-monotonous DTS in output stream 0:0; previous: 35940, current: 5940; changing to 35941. This may result in incorrect timestamps in the output file.
2021/11/04 22:10:23.336698 [HLS] ffmpeg: rtsp-DBCAM: [mpegts @ 0x612f800] Non-monotonous DTS in output stream 0:0; previous: 35941, current: 11970; changing to 35942. This may result in incorrect timestamps in the output file.
2021/11/04 22:10:23.336867 [HLS] ffmpeg: rtsp-DBCAM: [mpegts @ 0x612f800] Non-monotonous DTS in output stream 0:0; previous: 35942, current: 18000; changing to 35943. This may result in incorrect timestamps in the output file.
2021/11/04 22:10:23.336994 [HLS] ffmpeg: rtsp-DBCAM: [mpegts @ 0x612f800] Non-monotonous DTS in output stream 0:0; previous: 35943, current: 23940; changing to 35944. This may result in incorrect timestamps in the output file.
2021/11/04 22:10:23.337053 [HLS] ffmpeg: rtsp-DBCAM: [mpegts @ 0x612f800] Non-monotonous DTS in output stream 0:0; previous: 35944, current: 29970; changing to 35945. This may result in incorrect timestamps in the output file.