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

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

zhuwt
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?



 


_______________________________________________
Libav-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/libav-user
Reply | Threaded
Open this post in threaded view
|

Re: h264 sps frame_cropping_flag = 1, dxva decode How to get left offset or top offset?

Hendrik Leppkes
On Sat, May 20, 2017 at 9:36 AM, 朱伟滔 <[hidden email]> 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
_______________________________________________
Libav-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/libav-user