ffmpeg之将rtsp流地址切片成为m3u8

使用 ffmpeg 命令: 
ffmpeg -i  "rtsp://184.72.239.149/vod/mp4://BigBuckBunny_175k.mov" -fflags flush_packets -max_delay 2 -flags -global_header -hls_time 2 -hls_list_size 3 -vcodec copy -y  /usr/local/nginx/html/second/video.m3u8

绿色是rtsp流地址

红色是切片后的文件的路径

原地址是:https://www.reddit.com/r/ffmpeg/comments/7l8umm/how_to_restream_rtsp_to_hlsmjpegother_stream/

猜你喜欢

转载自blog.csdn.net/lu__ya/article/details/79759341