摆脱 FFmpeg 不存在的 PPS 错误
Getting rid of FFmpeg non-existng PPS error
我正在使用 ffmpeg 解码视频。我知道我得到的错误是由于 frame/sliceHeader 被解码并且图片参数集信息不存在。我只是好奇是否有人知道摆脱此错误的方法?我的视频已成功解码,但在调试器中,此错误导致元数据难以读取。
错误是:
non existing PPS 0 referenced
decode_slice_header error
no frame!
******** 我的代码是用 C 写的 ******
在我的使用情况下,我仍然能够收到严重错误,但不再有以下参数的解码器错误:
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 facilities - you can use av_log_set_callback 以提供您自己的日志记录回调并忽略所有内容,或按日志级别过滤,由您决定。
对我来说,我的解决方案是:
希望它能帮助任何在 c 中使用 ffmpeg 的人!
av_log_set_level(AV_LOG_QUIET);
我正在使用 ffmpeg 解码视频。我知道我得到的错误是由于 frame/sliceHeader 被解码并且图片参数集信息不存在。我只是好奇是否有人知道摆脱此错误的方法?我的视频已成功解码,但在调试器中,此错误导致元数据难以读取。
错误是:
non existing PPS 0 referenced
decode_slice_header error
no frame!
******** 我的代码是用 C 写的 ******
在我的使用情况下,我仍然能够收到严重错误,但不再有以下参数的解码器错误:
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 facilities - you can use av_log_set_callback 以提供您自己的日志记录回调并忽略所有内容,或按日志级别过滤,由您决定。
对我来说,我的解决方案是: 希望它能帮助任何在 c 中使用 ffmpeg 的人!
av_log_set_level(AV_LOG_QUIET);