Closed patrickhulce closed 8 months ago
Hello, @patrickhulce I just checked the RTSP compatibility test.
Enter the dir:
cd samples/rtsp_cam_compatibility_test
Set .env
to:
URI=rtsp://hello.savant.video:8554/city-traffic
Edit compose, add port for RTSP (554):
ports:
- "888:888" # HLS
- "554:554"
Run:
docker compose -f docker-compose.x86.yml up
Open in FFplay: ffplay rtsp://localhost:554/stream
Must display the video. Works in my environment.
@patrickhulce checked HLS (888) too:
If it does not work for you, please share what environment you are using.
Correct log must display the information for both containers:
broadcaster-1 | 2024/02/12 17:22:02 INF [HLS] [muxer stream] is converting into HLS, 1 track (H264)
broadcaster-1 | Output test: Processed 1000 frames, 30.06 FPS.
receiver-1 | Processed 1000 frames, 24.03 FPS.
broadcaster-1 | Input test: Processed 1000 frames, 25.27 FPS.
broadcaster-1 | Output test: Processed 1000 frames, 30.00 FPS.
receiver-1 | Processed 1000 frames, 24.78 FPS.
broadcaster-1 | Input test: Processed 1000 frames, 24.78 FPS.
broadcaster-1 | Output test: Processed 1000 frames, 30.00 FPS.
I do not see your receiver (RTSP adapter) playing something. It's likely either an RTSP stream compatibility problem or some other unknown reason.
If you want us to test your particular stream, you need to contact me on Discord and share the URI. We will check, and if there is a bug, we will fix the adapter if possible.
Understood thanks for the reply! Yes your stream is playing just fine in this environment.
My question is what steps can I take to debug why my RTSP input stream is not working even though it is fine in ffmpeg when savant is not involved. Compared to your example I'm missing logs for input test: Processed 1000 frames
and receiver-1 | Setting pipeline to PLAYING ...
but everything before that looks the same without any error messages.
you need to contact me on Discord and share the URI. We will check, and if there is a bug, we will fix the adapter if possible.
Thanks I'll join the Discord :)
@patrickhulce, contact me and share the stream in private; we can check it.
Hi again :) I'm having trouble debugging an RTSP cam source using the existing documentation. Anything obvious I'm missing? What can I try next to pinpoint the issue?
Steps
What I Expected No obvious errors in the logs and the
:888/stream
displays the camera video.What Actually Happens No obvious errors in the logs but the
:888/stream
displays the stub image only.Additional Context I've followed the guides at https://docs.savant-ai.io/v0.2.7/recipes/0_rtsp_cam_compatibility.html without any obvious issues. Both ping show no loss and ffplay work flawlessly. Additionally, within the docker container
ffmpeg -i rtsp://<URI> -frames:v 1 output.jpg
pulls images / video with no problems. I've tried both theffmpeg.sh
andrtsp.sh
source adapters without many changes.Logs
``` receiver-1 | Setting pipeline to PAUSED ... receiver-1 | INFO insight::savant::ffmpeg_src::ffmpeg_src+ffmpegsrc0 > Creating FFMpegSource. receiver-1 | [2024-02-12T16:52:37Z INFO ffmpeg_input] Setting log level to Debug receiver-1 | Pipeline is PREROLLING ... receiver-1 | [tcp @ 0x7f3108003280] No default whitelist set receiver-1 | [tcp @ 0x7f3108003280] Original list of addresses: receiver-1 | [tcp @ 0x7f3108003280] Address IP port PORT receiver-1 | [tcp @ 0x7f3108003280] Interleaved list of addresses: receiver-1 | [tcp @ 0x7f3108003280] Address IP port PORT receiver-1 | [tcp @ 0x7f3108003280] Starting connection attempt to IP port PORT receiver-1 | [tcp @ 0x7f3108003280] Successfully connected to IP port PORT broadcaster-1 | INFO insight::savant::gstreamer::runner > Starting pipeline `Docker Config
```yaml version: "3.3" services: receiver: image: ghcr.io/insight-platform/savant-adapters-gstreamer:latest restart: unless-stopped volumes: - zmq_sockets:/tmp/zmq-sockets - ./assets/test_data:/stub_imgs environment: - ZMQ_ENDPOINT=pub+bind:ipc:///tmp/zmq-sockets/input-video.ipc - FFMPEG_LOGLEVEL=debug # Unused since switch away from ffmpeg.sh - FFMPEG_PARAMS=rtsp_transport=tcp # Unused since switch away from ffmpeg.sh - RTSP_URI=rtsp://