Closed jahab closed 9 months ago
How long are the video(s) you're testing with?
I ask because things start to kick off around 2023/10/03 06:18:00
and the server itself notifies at 2023/10/03 06:36:28 INF [RTSP] [session 132bbc39] destroyed: session timed out
.
Before digging any deeper can you try a longer clip to account for processing time you're expecting or tell ffmpeg
to loop.
@mateothegreat The video I am using is 15 minutes long. The server starts at 2023/10/03 06:36:04
and starts to receive stream at 2023/10/03 06:36:18
i'm having this problem when restreaming an IP camera
the error on my side starts getting really frequent (every 2-5 seconds) when I'm restreaming more than 5 cameras. could that be a bottleneck on the mediamtx side? I'm currently using an azure VM as server
@tgcandido I am exactly under the same setup as yours. I am also running the mediamtx server on an azure VM. I have tried to stream with other encoders / videos/ streams as well but I get the same issue. For now I have started using version 1.01 to avoid the error.
i will try that version. thank you @jahab
Hi, I have same problem with ip camera. Anyone have solution ? thanks
Hello, it seems that the machine that is hosting the server is unable to receive UDP packets from the machine that is hosting FFmpeg; after exactly 10 seconds, a timeout occurs:
2023/10/03 06:36:18 INF [RTSP] [session 132bbc39] is publishing to path 'playback', 2 tracks (H265, MPEG-4 Audio)
---
2023/10/03 06:36:28 INF [RTSP] [session 132bbc39] destroyed: session timed out
Check that any firewall / NAT in between allows UDP packets.
I've tested publishing from FFmpeg to MediaMTX v1.1.1, and if there's no firewall in between, everything works correctly. This is the command i used:
ffmpeg -re -f lavfi -i testsrc=size=1920x1080:rate=30 -pix_fmt yuv420p -r 15 -c:v libx265 -preset fast -b:v 1000k -f rtsp rtsp://localhost:8554/playback
Other issues that happen with a frequency different that 10 seconds are unrelated from the original post. If those issues are still present in the latest version, open a dedicated issue.
This issue is being locked automatically because it has been closed for more than 6 months. Please open a new issue in case you encounter a similar problem.
Which version are you using?
v1.1.1
Which operating system are you using?
Describe the issue
On the version 1.1.1 whenever I am trying to stream a video to the rtsp server through this command
After streaming for 8 - 10 seconds, I get this error
I tried the same again without any encoding with this command. I get the same error.
When I tried the same with version 1.0.1, the stream publishes to server smoothly without any error
Describe how to replicate the issue
start the server
publish a video with
ffmpeg -re -i 2023-08-09_17-17-49#2.mkv -r 15 -c:v libx265 -preset fast -b:v 1000k -f rtsp rtsp://192.168.10.17:8554/playback
orffmpeg -re -i 2023-08-09_17-17-49#2.mkv -c copy -f rtsp rtsp://192.168.10.17:8555/playback
read with
Server Logs
Client Logs
Did you attach the server logs?
yes
Did you attach a network dump?
no