Actually, issue is the same (OBS on secondary monitor will use double GPU resources), so reported here.Nevermind, downgrading to 26.0.2 fixed the issue.
Actually, issue is the same (OBS on secondary monitor will use double GPU resources), so reported here.Nevermind, downgrading to 26.0.2 fixed the issue.
uridecodebin uri=rtsp://{user}:{pass}@{ip address}/cam/realmonitor?channel=1&subtype=0 ! queue ! video.
Found a reference to GStreamer on a VLC bugreport, tried it today. RTSP camera latency went from 1140ms (with built-in Media source) through 400ms (with VLC Video Source) to 60ms!!!!!!!!!! with GStreamer Source!!!! Just came here to spread the good news!
Project:
obs-gstreamer
An OBS Studio source plugin to feed GStreamer launch pipelines into OBS Studio. This plugin has interesting use cases but may be difficult to understand and is clunky use if you are not familiar with GStreamer. Experimental prebuilt 64 Bit...obsproject.com
My steps:
Copy obs-gstreamer.dll from https://github.com/fzwoch/obs-gstreamer/releases/download/v0.1.0/obs-gstreamer.zip (\windows) to PathToOpenBroadcasterSoftware\obs-plugins\64bit\
Get https://gstreamer.freedesktop.org/d...0/mingw/gstreamer-1.0-mingw-x86_64-1.18.0.msi and install. Put PathTo\gstreamer\1.0\mingw_x86_64\bin\ into PATH (or copy libglib-2.0-0.dll, libgobject-2.0-0.dll, libgstapp-1.0-0.dll, libgstaudio-1.0-0.dll, libgstreamer-1.0-0.dll, libgstvideo-1.0-0.dll to PathToOpenBroadcasterSoftware\bin\64bit\, based on https://github.com/fzwoch/obs-gstreamer/issues/13#issuecomment-711106142 but this I have not tried yet...)
Start OBS and add GStreamer Source. We use HikVision IP cameras, my Pipeline looks like this:
Important to uncheck Sync appsinks to clock, and to my surprise the feed in OBS is lower latency than the feed in Internet Explorer.Code:uridecodebin uri=rtsp://username:password@ipaddress/Streaming/Channels/1 name=bin ! queue ! video.
Live test on Sunday.
After further testing, I found that Agent DVR drops frames. So it might not be an ideal situationA possible solution to try
1) Install Agent DVR from https://www.ispyconnect.com/
2) Add IP Cameras in Agent DVR (browser based UI at "localhost:8090")
3) Add/Create a View for each IP camera
4) Use the following url in the Browser source in OBS: "http://localhost:8090/?start=Live&viewIndex=0"
for the scene in View 0 of Agent DVR
5) Add additional Browser Sources for each extra view/camera
I have found this to give negligible lag in the video, and works with more IP Cameras than the Media Source type in OBS
I am requesting for a new OBS source type specifically for IP Cameras at
https://obsproject.com/forum/threads/features-request-of-obs-studio.52130/
Please give your support there so that this feature can be added to OBS as soon as possible
I managed to get it working by putting the complete url within double quotes.I'm trying to get my Dahua rtsp feed into OBS with gstreamer but so far I haven't been able to figure out the correct pipeline. Anybody can provide an example code that works with Dahua?
The following works fine in VLC, but cannot make it work with gstreamer.
rtsp://USERNAME:PW@IP:PORT/cam/realmonitor?channel=1&subtype=2
Can you post what the full pipeline was that you got working using the double quotes? I tried that but still not working. Thank youI managed to get it working by putting the complete url within double quotes.
I managed to get it working by putting the complete url within double quotes.
I also have a dahua camera, but cannot get the rtspsrc pipeline working. If I use the following pipeline in the gstreamer plugin, it works:
uridecodebin uri=rtspt://admin:<password>@<ipaddress>/cam/realmonitor?channel=1&subtype=0 name=bin ! queue ! video.
The following pipeline does not work:
rtspsrc location=rtspt://admin:<password>@<ipaddress>/cam/realmonitor?channel=1&subtype=0 latency=100 ! rtph264depay ! h264parse ! nvh264dec ! videoconvert ! video.
If I use gst-launch-1.0 command line tool with both pipelines, BOTH fail with the same messages.
I'm pretty sure it is the & (ampersand) which causes the issue, but I've tried to escape it in all possible ways and combinations I could find on the net, all without success. I've tried single- and double quotes around rtspt://admin:<password>@<ipaddress>/cam/realmonitor?channel=1&subtype=0
I've tried %26, "%26", '%26', \&, ^& "&", '&', "\&", '\&', "^&", '^&', &&, '&&', "&&", \&& and various combinations thereof including single- and double quotes around rtspt://admin:<password>@<ipaddress>/cam/realmonitor?channel=1&subtype=0
I just always get either one of the following 2 "error messages" reported by gst-launch-1.0
Message 1:
WARNING: erroneous pipeline: No sink-element named "(NULL)" - omitting link
Message 2:
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Pipeline is PREROLLED ...
Prerolled, waiting for progress to finish...
Progress: (connect) Connecting to rtspt://admin:<password>@<ipaddress>/cam/realmonitor?channel=1
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Not found
Additional debug info:
../gst/rtsp/gstrtspsrc.c(6621): gst_rtspsrc_send (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Not Found (404)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
'"subtype=0"' is not recognized as an internal or external command,
operable program or batch file.
Any suggestions?
Thank you
gst-launch-1.0.exe rtspsrc location="rtspt://admin:<password>@<ipaddress>/cam/realmonitor?channel=1&subtype=0" latency=100 ! rtph264depay ! h264parse ! nvh264dec ! videoconvert ! fakevideosink
gst-discoverer-1.0.exe "rtsp://admin:<password>@<ip-address>:554/h264Preview_01_main"
Analyzing rtsp://admin:<password>@<ip-address>:554/h264Preview_01_main
Done discovering rtsp://admin:<password>@<ip-address>:554/h264Preview_01_main
Properties:
Duration: 99:99:99.999999999
Seekable: no
Live: yes
container: application/rtsp
unknown: application/x-rtp
video: H.264 (Baseline Profile)
Stream ID: <long hex string>/video:0:0:RTP:AVP:96
Width: 2560
Height: 1440
Depth: 24
Frame rate: 0/1
Pixel aspect ratio: 1/1
Interlaced: false
Bitrate: 0
Max bitrate: 0
unknown: application/x-rtp
audio: MPEG-4 AAC
Stream ID: <long hex string>/audio:0:0:RTP:AVP:97
Language: <unknown>
Channels: 1 (unknown layout)
Sample rate: 16000
Depth: 32
Bitrate: 0
Max bitrate: 0
audio: A-Law
instead of audio: MPEG-4 AAC
, so it needed different audio decoding than my RLC-520.rtspsrc location=rtsp://admin:<password>@<ip-address>:554/h264Preview_01_main latency=120 name=bin ! rtpjitterbuffer latency=0 ! rtph264depay ! h264parse ! d3d11h264dec ! video. bin. ! queue ! rtpmp4gdepay ! aacparse ! avdec_aac ! audio.
rtspsrc location=rtsp://<ip-address>:554/user=admin&password=<password>&channel=1&stream=0.sdp?real_stream latency=120 name=bin ! rtpjitterbuffer latency=0 ! rtph264depay ! h264parse ! d3d11h264dec ! video. bin. ! queue ! rtppcmadepay ! alawdec ! audio.
I need my IP camera RTSP stream to display in real time in preview, but I have like 3 sec latency. Although I don't have this problem while using vMix.
Is there any possible way to fix it?
log: https://obsproject.com/logs/WRPte077xbXOpGm_
thanksGstreamer works great for me. Not even a noticable delay comparing with the media source method. Been trying with multiple dahua camera models and works perfectly. Thanks Stephanvs.
I'm using Dahua (Imou) Ranger Camera with this gstreamer pipeline for video output.
Code:uridecodebin uri=rtsp://{user}:{pass}@{ip address}/cam/realmonitor?channel=1&subtype=0 ! queue ! video.
https://www.androhile.club/the-godfather-1-indir-full-pc-turkce/
However, i'm having trouble having the built-in mic of my camera to output audio on obs. Any suggested pipeline for that matter?
uridecodebin uri=rtsp://usernane:password@ipaddress:554/Streaming/Channels/101/?transportmode=unicast.sdp name=bin ! queue ! video. bin. ! queue ! audio.