Forum

Issue connecting to the docker rtmp endpoint in nimble streamer

ali 2020-11-11 05:32:33 UTC in Nimble Streamer

I had this working but altered some settings and am now stuck...

I have nimble streamer running in docker on my Mac and am able to connect via RTSP both for pushing and pulling without issue using ffmpeg & ffplay but when I try to connect to RTMP it fails.

For RTMP I get failures:
> ffmpeg -v debug -f avfoundation -framerate 30 -i "0:0" -vcodec libx264 -tune zerolatency -s 500:500 -f flv "rtmp://localhost:1935/app/test flashver=FMLE/3.0\20(compatible;\20FMSc/1.0) live=true pubUser=user pubPasswd=pwd"

> ffplay -v debug rtmp://localhost:1935/app/test

The following works for RTSP:
> ffmpeg -f avfoundation -framerate 30 -i "0:0" -pix_fmt uyvy422 -vcodec libx264 -tune zerolatency -s 500:500 -f rtsp -rtsp_transport tcp rtsp://user:pwd@localhost:554/dev/test

> ffplay rtsp://localhost:554/dev/test

In WMSPanel I have the app setup with the username/password & allows rtmp & rtsp. I've also setup the interfaces for both with Any/1935 for RTMP & Any/554 for RTSP.

ali 2020-11-11 05:40:32 UTC 

I should have clarified - I'm getting failures when i try to "ffplay -v debug rtmp://localhost:1935/app/test".
I get:
"RTMP_ReadPacket, failed to read RTMP packet header
rtmp://localhost:1935/app/test: Unknown error occurred"

Viewing the debug output of ffplay, it looks like it connects to the Nimble Streamer server and handshakes but then dies and errors.

Sergei 2020-11-11 07:56:02 UTC 

Hello, Ali.

Could you please clarify, what exact command are you using to run a container?

Thank you

ali 2020-11-11 18:47:57 UTC 

I'm using docker-compose and opened up ports for what I listed - 1935, 554.
The nimble streamer server is running in the container appropriately and is synchronizing with wmspanel.
The /var/log/nimble/nimble.log in the container and it's connecting to nimble.wmspanel.com successfully.
The server & incoming/outgoing streams show up correctly for the RTSP streams in wmspanel, also.

Further update, I added Live pull settings for rtmp://localhost:1935/app/test and see incoming/outgoing streams when I run now but I can only ffplay the rtsp url still. Trying to play the rtmp url still fails with the same error but I can publish to the rtmp url now instead of needing to publish to the rtsp url.

Sergei 2020-11-11 23:18:55 UTC 

Ali, please launch a ticker at wmspanel.com/help to continue conversation.
Thank you.

Post a reply


Post a new question

Categories:

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the Privacy Policy. If you want to know more or withdraw your consent to all or some of the cookies, please refer to the Privacy Policy.
By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to the use of cookies.