PC端使用以下命令ffmpeg进行推流:
ffmpeg -re -stream_loop -1 -i london.mp4 -c:v copy -f rtsp rtsp://192.168.30.154:8554/live
然后板卡端使用ffmpeg拉流然后使用DvppWrapper解码,解码正常;
但是如果PC端使用ffmpeg -re -stream_loop -1 -i london.mp4 -c:v libx264 -f rtsp rtsp://192.168.30.154:8554/live 命令进行推流,板卡端使用同样代码进行解码,会遇见如下错误,这是什么原因啊
以下是报错信息:
I20240827 16:17:55.341547 1921 DvppWrapper.cpp:29] Current chip environment is Ascend310B, DvppWrapper is initialized by DvppWrapperDptrWithAcl.
I20240827 16:17:55.348248 1921 ModelInferenceProcessor.cpp:30] Begin to ModelInferenceProcessor init
I20240827 16:17:55.726701 1921 ModelInferenceProcessor.cpp:51] End to ModelInferenceProcessor init
I20240827 16:17:55.727002 1921 ObjectPostProcessBase.cpp:81] Start to init ObjectPostProcessBase.
I20240827 16:17:55.727033 1921 PostProcessBase.cpp:116] Start to LoadConfigDataAndLabelMap in PostProcessBase.
W20240827 16:17:55.730343 1921 ObjectPostProcessBase.cpp:57] [1016][Object, file or other resource doesn't exist] Fail to read SCORE_THRESH from config, default value(0) will be used as scoreThresh_.
I20240827 16:17:55.730405 1921 ObjectPostProcessBase.cpp:64] [1016][Object, file or other resource doesn't exist] Fail to read SEPARATE_SCORE_THRESH from config, default value(0) will be used as separateScoreThresh_.
[rtsp @ 0xaaaafd3ba210] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, rtsp, from 'rtsp://192.168.30.154:8554/live':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: h264, none, 90k tbr, 90k tbn, 180k tbc
Stream #0:1: Audio: aac, 48000 Hz, stereo, fltp
I20240827 16:17:58.840535 1921 DvppWrapper.cpp:29] Current chip environment is Ascend310B, DvppWrapper is initialized by DvppWrapperDptrWithAcl.
I20240827 16:17:58.840596 1921 DvppWrapper.cpp:357] Image width= 0, height= 0.
I20240827 16:17:58.840795 1928 DvppWrapperWithAcl.cpp:33] Thread start
I20240827 16:17:58.848955 1921 DvppWrapperWithAcl.cpp:186] Init video decode resource successfully.
[libx264 @ 0xe7ff94002a90] using cpu capabilities: none!
[libx264 @ 0xe7ff94002a90] profile High, level 3.1, 4:2:0, 8-bit
Output #0, rtsp, to 'rtsp://192.168.30.155:8554/live':
Stream #0:0: Video: h264 (libx264), nv12, 1280x720, q=-1--1, 2000 kb/s, 25 tbn
I20240827 16:17:58.946228 1930 DvppWrapperBase.cpp:850] Malloc mode has been set as: System malloc
W20240827 16:17:58.953087 1928 DvppWrapperBase.cpp:25] channelId:0 frameId:0 decode failed
I20240827 16:17:58.956475 1931 AscendStream.cpp:64] SetDevice ret is 0, deviceId is 0
I20240827 16:17:58.956805 1931 AscendStream.cpp:234] DefaultStream. SetDevice ret is 0.
model infer time: 18.1698 ms
W20240827 16:17:58.981292 1928 DvppWrapperBase.cpp:25] channelId:0 frameId:2 decode failed
W20240827 16:17:58.991422 1928 DvppWrapperBase.cpp:25] channelId:0 frameId:3 decode failed
W20240827 16:17:59.013392 1928 DvppWrapperBase.cpp:25] channelId:0 frameId:5 decode failed
I20240827 16:17:59.022147 1931 AscendStream.cpp:234] DefaultStream. SetDevice ret is 0.
model infer time: 18.2413 ms
W20240827 16:17:59.054632 1928 DvppWrapperBase.cpp:25] channelId:0 frameId:8 decode failed
W20240827 16:17:59.078713 1928 DvppWrapperBase.cpp:25] channelId:0 frameId:10 decode failed
I20240827 16:17:59.082710 1931 AscendStream.cpp:234] DefaultStream. SetDevice ret is 0.
model infer time: 18.1849 ms
W20240827 16:17:59.112926 1928 DvppWrapperBase.cpp:25] channelId:0 frameId:12 decode failed
W20240827 16:17:59.118896 1928 DvppWrapperBase.cpp:25] channelId:0 frameId:13 decode failed
I20240827 16:17:59.143694 1931 AscendStream.cpp:234] DefaultStream. SetDevice ret is 0.
W20240827 16:17:59.147179 1928 DvppWrapperBase.cpp:25] channelId:0 frameId:15 decode failed
W20240827 16:17:59.161134 1928 DvppWrapperBase.cpp:25] channelId:0 frameId:16 decode failed
model infer time: 18.2328 ms
W20240827 16:17:59.183280 1928 DvppWrapperBase.cpp:25] channelId:0 frameId:18 decode failed
I20240827 16:17:59.201004 1931 AscendStream.cpp:234] DefaultStream. SetDevice ret is 0.
W20240827 16:17:59.213428 1928 DvppWrapperBase.cpp:25] channelId:0 frameId:20 decode failed
model infer time: 18.2521 ms
W20240827 16:17:59.248632 1928 DvppWrapperBase.cpp:25] channelId:0 frameId:23 decode failed
ffmpeg -re -stream_loop -1 -i london.mp4 -c:v copy -f rtsp rtsp://192.168.30.154:8554/live
然后板卡端使用ffmpeg拉流然后使用DvppWrapper解码,解码正常;
但是如果PC端使用ffmpeg -re -stream_loop -1 -i london.mp4 -c:v libx264 -f rtsp rtsp://192.168.30.154:8554/live 命令进行推流,板卡端使用同样代码进行解码,会遇见如下错误,这是什么原因啊
以下是报错信息:
I20240827 16:17:55.341547 1921 DvppWrapper.cpp:29] Current chip environment is Ascend310B, DvppWrapper is initialized by DvppWrapperDptrWithAcl.
I20240827 16:17:55.348248 1921 ModelInferenceProcessor.cpp:30] Begin to ModelInferenceProcessor init
I20240827 16:17:55.726701 1921 ModelInferenceProcessor.cpp:51] End to ModelInferenceProcessor init
I20240827 16:17:55.727002 1921 ObjectPostProcessBase.cpp:81] Start to init ObjectPostProcessBase.
I20240827 16:17:55.727033 1921 PostProcessBase.cpp:116] Start to LoadConfigDataAndLabelMap in PostProcessBase.
W20240827 16:17:55.730343 1921 ObjectPostProcessBase.cpp:57] [1016][Object, file or other resource doesn't exist] Fail to read SCORE_THRESH from config, default value(0) will be used as scoreThresh_.
I20240827 16:17:55.730405 1921 ObjectPostProcessBase.cpp:64] [1016][Object, file or other resource doesn't exist] Fail to read SEPARATE_SCORE_THRESH from config, default value(0) will be used as separateScoreThresh_.
[rtsp @ 0xaaaafd3ba210] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, rtsp, from 'rtsp://192.168.30.154:8554/live':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: h264, none, 90k tbr, 90k tbn, 180k tbc
Stream #0:1: Audio: aac, 48000 Hz, stereo, fltp
I20240827 16:17:58.840535 1921 DvppWrapper.cpp:29] Current chip environment is Ascend310B, DvppWrapper is initialized by DvppWrapperDptrWithAcl.
I20240827 16:17:58.840596 1921 DvppWrapper.cpp:357] Image width= 0, height= 0.
I20240827 16:17:58.840795 1928 DvppWrapperWithAcl.cpp:33] Thread start
I20240827 16:17:58.848955 1921 DvppWrapperWithAcl.cpp:186] Init video decode resource successfully.
[libx264 @ 0xe7ff94002a90] using cpu capabilities: none!
[libx264 @ 0xe7ff94002a90] profile High, level 3.1, 4:2:0, 8-bit
Output #0, rtsp, to 'rtsp://192.168.30.155:8554/live':
Stream #0:0: Video: h264 (libx264), nv12, 1280x720, q=-1--1, 2000 kb/s, 25 tbn
I20240827 16:17:58.946228 1930 DvppWrapperBase.cpp:850] Malloc mode has been set as: System malloc
W20240827 16:17:58.953087 1928 DvppWrapperBase.cpp:25] channelId:0 frameId:0 decode failed
I20240827 16:17:58.956475 1931 AscendStream.cpp:64] SetDevice ret is 0, deviceId is 0
I20240827 16:17:58.956805 1931 AscendStream.cpp:234] DefaultStream. SetDevice ret is 0.
model infer time: 18.1698 ms
W20240827 16:17:58.981292 1928 DvppWrapperBase.cpp:25] channelId:0 frameId:2 decode failed
W20240827 16:17:58.991422 1928 DvppWrapperBase.cpp:25] channelId:0 frameId:3 decode failed
W20240827 16:17:59.013392 1928 DvppWrapperBase.cpp:25] channelId:0 frameId:5 decode failed
I20240827 16:17:59.022147 1931 AscendStream.cpp:234] DefaultStream. SetDevice ret is 0.
model infer time: 18.2413 ms
W20240827 16:17:59.054632 1928 DvppWrapperBase.cpp:25] channelId:0 frameId:8 decode failed
W20240827 16:17:59.078713 1928 DvppWrapperBase.cpp:25] channelId:0 frameId:10 decode failed
I20240827 16:17:59.082710 1931 AscendStream.cpp:234] DefaultStream. SetDevice ret is 0.
model infer time: 18.1849 ms
W20240827 16:17:59.112926 1928 DvppWrapperBase.cpp:25] channelId:0 frameId:12 decode failed
W20240827 16:17:59.118896 1928 DvppWrapperBase.cpp:25] channelId:0 frameId:13 decode failed
I20240827 16:17:59.143694 1931 AscendStream.cpp:234] DefaultStream. SetDevice ret is 0.
W20240827 16:17:59.147179 1928 DvppWrapperBase.cpp:25] channelId:0 frameId:15 decode failed
W20240827 16:17:59.161134 1928 DvppWrapperBase.cpp:25] channelId:0 frameId:16 decode failed
model infer time: 18.2328 ms
W20240827 16:17:59.183280 1928 DvppWrapperBase.cpp:25] channelId:0 frameId:18 decode failed
I20240827 16:17:59.201004 1931 AscendStream.cpp:234] DefaultStream. SetDevice ret is 0.
W20240827 16:17:59.213428 1928 DvppWrapperBase.cpp:25] channelId:0 frameId:20 decode failed
model infer time: 18.2521 ms
W20240827 16:17:59.248632 1928 DvppWrapperBase.cpp:25] channelId:0 frameId:23 decode failed