FFmpeg转换直播流格式
mp4转rtsp
ffmpeg -re -i 1671680590843.mp4 -vcodec copy -acodec copy -f rtsp rtsp://localhost:8554/live.sdp
mp4转hls
ffmpeg -re -i D:\下载[www.domp4.cc]兔子暴力.2021.HD1080p.国语中字.mp4 -vcodec copy -acodec copy -f rtsp rtsp://10.0.0.11/live
rtsp转hls
ffmpeg -i rtsp://192.168.226.130/test.mkv -strict -2 -y ./video.m3u8
ffmpeg -i rtsp://10.0.0.11:554/live -strict -2 -y ./video.m3u8
ffmpeg -rtsp_transport tcp -i "rtspurl" -fflags flush_packets -max_delay 1 -an -flags -global_header -hls_time 1 -hls_list_size 3 -hls_wrap 3 -vcodec copy -s 216x384 -b 1024k -y /home/test2.m3u8
posted on 2023-02-20 14:18 ZhengyaoLu 阅读(276) 评论(0) 收藏 举报
浙公网安备 33010602011771号