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
MediaMTX is unable to pull stream from nginx-rtmp, while FFmpeg reads it correctly.
When pulling from a different instance of nginx-rtmp (not on localhost and with different config), other, unrelated error occurs (unsupported video codec) which I'll report later.
Describe how to replicate the issue
start nginx-rtmp on a non-standard port e.g. with Docker: docker run -d -p 1936:1935 --name nginx-rtmp tiangolo/nginx-rtmp
start MediaMTX: MTX_API=true MTX_APIADDRESS=:9997 MTX_LOGLEVEL=debug ./mediamtx mediamtx.yml (config is the default provided with binary release package)
add pull stream using the API: curl -vv -d '{"source":"rtmp://127.0.0.1:1936/live/aaaaaa","sourceOnDemand":true}' -X POST -H 'Content-Type: application/json' http://localhost:9997/v2/config/paths/add/fromnginx
try to probe stream from MediaMTX: ffprobe rtmp://localhost/fromnginx, ffprobe will return Input/output error and MediaMTX will show read tcp 127.0.0.1:38714->127.0.0.1:1936: i/o timeout
see that the same stream is readable using ffprobe directly: ffprobe rtmp://127.0.0.1:1936/live/aaaaaa
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.0
Which operating system are you using?
Describe the issue
MediaMTX is unable to pull stream from nginx-rtmp, while FFmpeg reads it correctly.
When pulling from a different instance of nginx-rtmp (not on localhost and with different config), other, unrelated error occurs (
unsupported video codec
) which I'll report later.Describe how to replicate the issue
docker run -d -p 1936:1935 --name nginx-rtmp tiangolo/nginx-rtmp
ffmpeg -re -f lavfi -i testsrc2=r=25 -f lavfi -i anoisesrc=color=brown -c:v libx264 -g 25 -c:a aac -f flv rtmp://127.0.0.1:1936/live/aaaaaa
MTX_API=true MTX_APIADDRESS=:9997 MTX_LOGLEVEL=debug ./mediamtx mediamtx.yml
(config is the default provided with binary release package)curl -vv -d '{"source":"rtmp://127.0.0.1:1936/live/aaaaaa","sourceOnDemand":true}' -X POST -H 'Content-Type: application/json' http://localhost:9997/v2/config/paths/add/fromnginx
ffprobe rtmp://localhost/fromnginx
, ffprobe will returnInput/output error
and MediaMTX will showread tcp 127.0.0.1:38714->127.0.0.1:1936: i/o timeout
ffprobe rtmp://127.0.0.1:1936/live/aaaaaa
Did you attach the server logs?
yes, timeout_bug_mediamtx.log
Did you attach a network dump?
yes
The text was updated successfully, but these errors were encountered: