簡(jiǎn)易直播啟動(dòng)后異常報(bào)錯(cuò):-錯(cuò)誤信息
ffmpeg -thread_queue_size 512 -rtsp_transport tcp -re -i "rtsp://admin:a123456789@192.168.8.74/h264/ch1/main/av_stream" -vcodec copy -acodec copy -f flv -flvflags no_duration_filesize "rtmp://192.168.8.92:1935/hls/local"
網(wǎng)絡(luò)攝像頭H.264 視頻輸入源
ffmpeg -thread_queue_size 512 -rtsp_transport tcp -re -i "rtsp://admin:a123456789@192.168.8.74/h265/ch1/main/av_stream" -vcodec copy -acodec copy -f flv -flvflags no_duration_filesize "rtmp://192.168.8.92:1935/hls/local"
ffmpeg version 3.4.12 Copyright (c) 2000-2022 the FFmpeg developers
? built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
? configuration: --prefix=/usr/local/ffmpeg
? libavutil? ? ? 55. 78.100 / 55. 78.100
? libavcodec? ? 57.107.100 / 57.107.100
? libavformat? ? 57. 83.100 / 57. 83.100
? libavdevice? ? 57. 10.100 / 57. 10.100
? libavfilter? ? 6.107.100 /? 6.107.100
? libswscale? ? ? 4.? 8.100 /? 4.? 8.100
? libswresample? 2.? 9.100 /? 2.? 9.100
Input #0, rtsp, from 'rtsp://admin:a123456789@192.168.8.74/h265/ch1/main/av_stream':
? Metadata:
? ? title? ? ? ? ? : Media Presentation
? Duration: N/A, start: 0.240000, bitrate: N/A
? ? Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 1280x720, 25 fps, 25 tbr, 90k tbn, 50 tbc
Output #0, flv, to 'rtmp://192.168.8.92:1935/hls/local':
? Metadata:
? ? title? ? ? ? ? : Media Presentation
? ? encoder? ? ? ? : Lavf57.83.100
? ? Stream #0:0: Video: h264 (Main) ([7][0][0][0] / 0x0007), yuvj420p(pc, bt709, progressive), 1280x720, q=2-31, 25 fps, 25 tbr, 1k tbn, 90k tbc
Stream mapping:
? Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[flv @ 0x561a87b3e980] Non-monotonous DTS in output stream 0:0; previous: 0, current: -200; changing to 0. This may result in incorrect timestamps in the output file.
[flv @ 0x561a87b3e980] Non-monotonous DTS in output stream 0:0; previous: 0, current: -160; changing to 0. This may result in incorrect timestamps in the output file.
[flv @ 0x561a87b3e980] Non-monotonous DTS in output stream 0:0; previous: 0, current: -120; changing to 0. This may result in incorrect timestamps in the output file.
[flv @ 0x561a87b3e980] Non-monotonous DTS in output stream 0:0; previous: 0, current: -80; changing to 0. This may result in incorrect timestamps in the output file.
[flv @ 0x561a87b3e980] Non-monotonous DTS in output stream 0:0; previous: 0, current: -40; changing to 0. This may result in incorrect timestamps in the output file.
[rtsp @ 0x561a87b1f7e0] Undefined type (31)time=00:08:42.91 bitrate=3847.3kbits/s speed=? 1x
[NULL @ 0x561a87b234e0] missing picture in access unit with size 1432829.8kbits/s speed=? 1x
[NULL @ 0x561a87b234e0] SEI type 6 size 1912 truncated at 1192trate=3797.4kbits/s speed=? 1x
frame=12818 fps= 24 q=-1.0 Lsize=? 251080kB time=00:09:03.83 bitrate=3782.2kbits/s speed=0.998x
video:250830kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.099918%
出現(xiàn)以上提示后税弃,ffmpeg命令行異常終止
嘗試調(diào)整了網(wǎng)絡(luò)攝像頭-碼率上限降盹,調(diào)整前為4096kbps馅笙,調(diào)整后為1024kbps
啟用ffmpeg命令,長(zhǎng)時(shí)間觀察后沒(méi)有報(bào)錯(cuò)蔬捷。