Issue trying to stream RTSP to RTMP (live) through NGINX Issue trying to stream RTSP to RTMP (live) through NGINX nginx nginx

Issue trying to stream RTSP to RTMP (live) through NGINX


Looks like I found the issue:

I was using this command to stream through ffmpeg:

ffmpeg -i rtsp://admin:pass@aaa.bb.ccc.dd:554/channel3 -f mpegts rtmp://<live ip address>:1935/live/

The encoding parameters were incorrect: -f mpegts was wrong; I changed it to: -c copy -f flv , then it started working.

Example:

ffmpeg -i rtsp://admin:pass@aaa.bb.ccc.dd:554/channel3 -c copy -f flv rtmp://<live ip address>:1935/live/

Above example is for reading an RTSP based IP camera.