??低暰W(wǎng)絡(luò)攝像頭直播-nginx+ffmpeg+flv直播報錯問題-no frame!和missing picture in access unit with size

簡易直播啟動后異常報錯:-錯誤信息

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命令,長時間觀察后沒有報錯。

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容