[FFmpeg-trac] #8134(undetermined:new): [FFmpeg-vaapi][encode] caanot setup number of refference frames through `-refs` option
FFmpeg
trac at avcodec.org
Fri Sep 13 08:05:27 EEST 2019
#8134: [FFmpeg-vaapi][encode] caanot setup number of refference frames through
`-refs` option
-------------------------------------+-------------------------------------
Reporter: andreyor | Owner:
Type: defect | Status: new
Priority: normal | Component:
| undetermined
Version: git-master | Resolution:
Keywords: ffmpeg- | Blocked By:
vaapi |
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by lizhong1008):
From the
code:https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/vaapi_encode_h264.c#L1043
{{{
av_assert0(pic->nb_refs <= 2);
if (pic->nb_refs >= 1) {
// Backward reference for P- or B-frame.
av_assert0(pic->type == PICTURE_TYPE_P ||
pic->type == PICTURE_TYPE_B);
vslice->RefPicList0[0] = vpic->ReferenceFrames[0];
}
if (pic->nb_refs >= 2) {
// Forward reference for B-frame.
av_assert0(pic->type == PICTURE_TYPE_B);
vslice->RefPicList1[0] = vpic->ReferenceFrames[1];
}
}}}
I doubt multiple referneces is supported.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8134#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list