You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Streaming started, but there is about a 5-second (or more) delay when the client receives it via WebRTC. However, when I stream from a USB webcam, everything works fine with sub-second delay using WebRTC, with this command:
My local network is stable, and the internet connection is also good.
Can you guess what the problem might be?
After testing many methods, I'm considering a new solution that might help: streaming using the internal capabilities of the camera.
As you can see, your RTMP URL format is rtmp://a.b.c.d/live/livestreamX, but the camera's URL format looks like this: rtmp://xxx.xxx.xxx/appName. How can I match your format to the camera's format?
EnglishNativeThis issue is conveyed exclusively in English.
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I started your Docker container on my server (on the internet) using the following command:
docker run --restart=always -it -p 1935:1935 -p 1985:1985 -p 8080:8080
-p 8000:8000/udp -p 10080:10080/udp /ossrs/srs:5
In my local network, I started streaming from an IP camera at http://www.anjvision.com/ to the server using this command:
sudo ffmpeg -re
-i rtsp://192.168.123.123/stream0
-framerate 15
-c:v libx264
-c:a aac
-fflags nobuffer
-rtmp_buffer 0
-rtmp_live live
-f flv
-filter:v "scale=640:480,drawtext=text='%{localtime\:%H\\\:%M\\\:%S}':fontcolor=white:fontsize=24:x=w-tw-10:y=10:box=1:[email protected]:boxborderw=5"
rtmp://a.b.c.d/live/livestream2
Streaming started, but there is about a 5-second (or more) delay when the client receives it via WebRTC. However, when I stream from a USB webcam, everything works fine with sub-second delay using WebRTC, with this command:
sudo ffmpeg -re
-i /dev/video0
-framerate 20
-f v4l2
-fflags nobuffer
-c:v libx264
-preset ultrafast
-tune zerolatency
-flush_packets 1
-rtmp_buffer 0
-rtmp_live live
-filter:v "scale=640:480,drawtext=text='%{localtime\:%H\\\:%M\\\:%S}':fontcolor=white:fontsize=24:x=w-tw-10:y=10:box=1:[email protected]:boxborderw=5"
-f flv
rtmp://a.b.c.d/live/livestream2
My local network is stable, and the internet connection is also good.
Can you guess what the problem might be?
After testing many methods, I'm considering a new solution that might help: streaming using the internal capabilities of the camera.
As you can see, your RTMP URL format is rtmp://a.b.c.d/live/livestreamX, but the camera's URL format looks like this: rtmp://xxx.xxx.xxx/appName. How can I match your format to the camera's format?
Thanks for your great project!
Beta Was this translation helpful? Give feedback.
All reactions