I have the following use case:
I would like to playback MP4 files one after another in a mounted directory with nginx-rtmp. I managed to play/access only 1 files at a time.
So instead of this rtsp://192.168.1.100/vod/movie01.MP4
then change it to this manually rtsp://192.168.1.100/vod/movie02.MP4
Have and endpoint like this and play all of the videos one after another (without using ffmpeg stream to nginx rtmp endpoint).
rtsp://192.168.1.100/vod/stream
I have a simple config so far
rtmp {
server {
listen 1935;
chunk_size 4096;
# video on demand for mp4 files
application vod {
allow play all;
wait_video on;
play /opt/video/vod;
}
}
}
How can I achieve this?
您可以使用 ffmpeg 推送到您的 nginx-rtmp 服务器和 ffmpeg 您可以使用多个输入,因此您的服务器将一个接一个地为它们提供服务
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.