ffmpeg -f lavfi -i anullsrc -rtsp_transport udp -i rtsp://192.168.0.3:554/onvif1 -f hls -hls_list_size 5 -hls_time 10 -hls_wrap 10 /usr/local/nginx/html/hls/playlist.m3u8
中间有报错,但能生成文件。
[rtsp @ 0x2d237c0] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Guessed Channel Layout for Input Stream #1.1 : mono
还有
[hls @ 0x3436b20] Opening '/usr/local/nginx/html/hls/playlist0.ts' for writing
[mpegts @ 0x3447140] frame size not set
Output #0, hls, to '/usr/local/nginx/html/hls/playlist.m3u8':
还是能不断产生 文件,但用VLC播放是黑屏
中间有报错,但能生成文件。
[rtsp @ 0x2d237c0] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Guessed Channel Layout for Input Stream #1.1 : mono
还有
[hls @ 0x3436b20] Opening '/usr/local/nginx/html/hls/playlist0.ts' for writing
[mpegts @ 0x3447140] frame size not set
Output #0, hls, to '/usr/local/nginx/html/hls/playlist.m3u8':
还是能不断产生 文件,但用VLC播放是黑屏