[Libav-user] h264 sps frame_cropping_flag = 1, dxva decode How to get left offset or top offset?

Hendrik Leppkes h.leppkes at gmail.com
Sat May 20 10:53:09 EEST 2017


On Sat, May 20, 2017 at 9:36 AM, 朱伟滔 <15018405735 at 163.com> wrote:
> in H264 sps,I set a different sps
>     bool frame_cropping_flag = 1;
>         int frame_crop_left_offset = 100;
>         int frame_crop_right_offset = 100;
>         int frame_crop_top_offset = 100;
>         int frame_crop_bottom_offset = 100;
>
> when I decode the video and show it , dxva or vaapi  just show the top left
> corner(0,0), How can I get left offset or top offset in AVFrame?
>

Right now, you cannot. However we're currently in the process of
integrating a new API that can export a cropping rectangle so it can
be used with Hardware decoding, so with any luck it'll be available in
Git Master soon, and in the next release.

- Hendrik


More information about the Libav-user mailing list