我正在使用ffmpeg解碼視頻。我知道我得到的錯誤是由於frame/sliceHeader被解碼並且圖片參數集信息不存在。我只是好奇,如果有人知道擺脫這個錯誤的方式?我的視頻已成功解碼,但在調試器中,此錯誤使元數據難以閱讀。擺脫FFmpeg不存在的PPS錯誤
的錯誤是:
non existing PPS 0 referenced
decode_slice_header error
no frame!
********我的代碼是用C ******
我正在使用ffmpeg解碼視頻。我知道我得到的錯誤是由於frame/sliceHeader被解碼並且圖片參數集信息不存在。我只是好奇,如果有人知道擺脫這個錯誤的方式?我的視頻已成功解碼,但在調試器中,此錯誤使元數據難以閱讀。擺脫FFmpeg不存在的PPS錯誤
的錯誤是:
non existing PPS 0 referenced
decode_slice_header error
no frame!
********我的代碼是用C ******
對我來說,我的解決方案竟然是: 希望它可以幫助任何人在c中使用ffmpeg!
av_log_set_level(AV_LOG_QUIET);
在我的使用的情況下,我能仍然收到嚴重錯誤,但不再與下面的參數解碼器錯誤:
ffmpeg -loglevel panic
這裏是可用的記錄級的文檔的一個片段:
-loglevel [repeat+]loglevel | -v [repeat+]loglevel
Set the logging level used by the library. Adding "repeat+" indicates that repeated log output should not be compressed to the first line and the "Last message repeated n times" line will be omitted. "repeat" can also be used alone. If "repeat" is used alone, and with no prior loglevel set, the default loglevel will be used. If multiple loglevel parameters are given, using ’repeat’ will not change the loglevel. loglevel is a string or a number containing one of the following values:
‘quiet, -8’
Show nothing at all; be silent.
‘panic, 0’
Only show fatal errors which could lead the process to crash, such as and assert failure. This is not currently used for anything.
‘fatal, 8’
Only show fatal errors. These are errors after which the process absolutely cannot continue after.
‘error, 16’
Show all errors, including ones which can be recovered from.
‘warning, 24’
Show all warnings and errors. Any message related to possibly incorrect or unexpected events will be shown.
‘info, 32’
Show informative messages during processing. This is in addition to warnings and errors. This is the default value.
‘verbose, 40’
Same as info, except more verbose.
‘debug, 48’
Show everything, including debugging information.
‘trace, 56’
檢查FFmpeg的logging設施 - 您可以使用av_log_set_callback提供自己的日誌回調,要麼只是不顧一切,或通過過濾日誌級別,它是由你。
這工作,如果我從cmd運行我的代碼,非常感謝你!可悲的是我使用C和我正在使用本地調試器,但它似乎並沒有在這種情況下工作。有什麼建議麼? –