2016-08-08 2 views
0

私はffmpegを使ってビデオをデコードしています。私は、フレーム/ sliceHeaderがデコードされ、ピクチャパラメータセット情報が存在しないためにエラーが発生していることを認識しています。このエラーを取り除く方法を誰かが知っていれば、私はちょうど興味がありますか?ビデオのデコードに成功しましたが、デバッガでこのエラーが発生すると、メタデータの読み込みが困難になります。FFmpegを削除するPPSエラー

エラーがある:私のコード********

non existing PPS 0 referenced 
decode_slice_header error 
no frame! 

はCである******

答えて

0

私にとって、私の解決策は次のようになりました。 cでffmpegを使用している人に役立つことを願っています!

av_log_set_level(AV_LOG_QUIET); 
0

使用の私の場合は、私がすることができましたまだ重大なエラーが、次のパラメータを使用して、もはやデコーダエラーを受け取ります。ここでは

ffmpeg -loglevel panic 

は、利用可能なloglevelのの文書の抜粋です:

-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’ 
+0

これはcmdからコードを実行するとうまくいきました。ありがとうございました!残念ながら私はCを使用していますが、ローカルのデバッガを使用していますが、そのような状況では動作しないようです。助言がありますか? –

1

にFFmpeg logging施設をチェック - あなたはあなた自身のロギングのコールバックを提供し、どちらかだけのログレベルですべてのもの、またはフィルタを無視するav_log_set_callbackを使用することができ、それはあなた次第です。

関連する問題