I have a question, if I use nginx for RTMP stream, can this function to stream video with RTSP?
What are the differences between RTSP and RTMP? Can I use my RTMP server to stream with the RTSP protocol?
Sorry for my English.
Using nginx-rtmp, you still can add on-the-fly encoding of your RTMP stream to RTSP using ffmpeg. Example of the config:
rtmp {
access_log /var/log/nginx/rtmp_access.log;
server {
listen 1935;
ping 30s;
notify_method get;
application camera1 {
live on;
exec_pull ffmpeg -i rtsp://admin:admin@10.10.10.11/axis-media/media.amp -threads 2 -f flv -r 25 -s 1280x720 -an rtmp://localhost:1935/cam1/stream 2>>/var/log/nginx/ffmpeg.log;
}
}
}
RTMP - proprietary protocol from Adobe, RTSP is open standard from IETF. They are not compatible with each other.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.