Message ID | 1537955394-29009-1-git-send-email-mypopydev@gmail.com |
---|---|
State | Superseded |
Headers | show |
2018-09-26 11:49 GMT+02:00, Jun Zhao <mypopydev@gmail.com>: > For HEVC/MPEG4, we also need video_delay from the decoder, when decoding > some HEVC/MPEG4 clips, got numerous log like: > "video_delay is larger in decoder than demuxer", similar ticket: #3711 Can you provide such a hevc sample? Carl Eugen
On Wed, Sep 26, 2018 at 11:36 PM Carl Eugen Hoyos <ceffmpeg@gmail.com> wrote: > > 2018-09-26 11:49 GMT+02:00, Jun Zhao <mypopydev@gmail.com>: > > For HEVC/MPEG4, we also need video_delay from the decoder, when decoding > > some HEVC/MPEG4 clips, got numerous log like: > > "video_delay is larger in decoder than demuxer", similar ticket: #3711 > > Can you provide such a hevc sample? > Hi, Carl: The HEVC clips have some license issue, so I can't provide the clips, sorry about this. I use the test clips from https://software.intel.com/en-us/stress-bitstreams-and-encoder, now is http://vicuesoft.com/
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 934dc71..7e939d0 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -2389,7 +2389,9 @@ static int decode_video(InputStream *ist, AVPacket *pkt, int *got_output, int64_ // The following line may be required in some cases where there is no parser // or the parser does not has_b_frames correctly if (ist->st->codecpar->video_delay < ist->dec_ctx->has_b_frames) { - if (ist->dec_ctx->codec_id == AV_CODEC_ID_H264) { + if (ist->dec_ctx->codec_id == AV_CODEC_ID_H264 || + ist->dec_ctx->codec_id == AV_CODEC_ID_HEVC || + ist->dec_ctx->codec_id == AV_CODEC_ID_MPEG4) { ist->st->codecpar->video_delay = ist->dec_ctx->has_b_frames; } else av_log(ist->dec_ctx, AV_LOG_WARNING,