Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

ffmpeg生成的m3u8用VLC播放是黑屏

sycru

New Member
Joined
Aug 21, 2017
Messages
13
Reaction score
0
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播放是黑屏
 
root@debian11:~# ffmpeg -version
ffmpeg version N-87177-g69e6877 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 4.9.2 (Debian 4.9.2-10)
configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-decoder=h264 --enable-decoder=h264_vdpau --enable-parser=h264 --enable-protocol=rstp --enable-demuxer=h264 --enable-nonfree
libavutil 55. 74.100 / 55. 74.100
libavcodec 57.104.101 / 57.104.101
libavformat 57. 81.100 / 57. 81.100
libavdevice 57. 8.100 / 57. 8.100
libavfilter 6.101.100 / 6.101.100
libswscale 4. 7.103 / 4. 7.103
libswresample 2. 8.100 / 2. 8.100
libpostproc 54. 6.100 / 54. 6.100
 
Back
Top