简体   繁体   中英

ffmpeg feeding mp4 file to rtsp stream

ffserver.conf [![] I am trying to feed a mp4 file from ffmpeg to rtsp stream using the command on centos 7:

from console 1: ffmpeg -i space.mp4 -vcodec libx264 -tune zerolatency -crf 18 http://localhost:8050/feed1.ffm

from console 2: I have started ffserver and it is started listening.

But when i open http://xxxx:8050/feed1.ffm in browser it shows error:

My ffserver.conf file is attached

Browser can't play RTSP directly so you need it delivered in a HTML5 format (HLS) that can load inside a VIDEO tag. You can directly embed the mp4 inside a VIDEO tag if you wish.

FFMPEG needs to publish the video/stream to a streaming server that supports RTSP or the format you decide to publish as.

You can schedule mp4 videos to play as a live stream with this tool https://broadcastlivevideo.com/schedule-video-playlist-as-live-streaming-channel/ , available as free open source WP plugin.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM