[FFmpeg-devel] [PATCH] avcodec/libvpxenc: add ROI-based encoding support for VP8/VP9 support

Michael Niedermayer michael at niedermayer.cc
Tue Aug 13 00:12:58 EEST 2019


On Mon, Aug 12, 2019 at 02:40:02PM +0800, Guo, Yejun wrote:
> example command line to verify it:
> ./ffmpeg -i input.stream -vf addroi=0:0:iw/3:ih/3:-0.8 -c:v libvpx -b:v 2M tmp.webm
> 
> Signed-off-by: Guo, Yejun <yejun.guo at intel.com>
> ---
>  libavcodec/libvpxenc.c | 177 +++++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 177 insertions(+)

breaks build

CC	libavcodec/libvpxenc.o
libavcodec/libvpxenc.c: In function ‘vp9_encode_set_roi’:
libavcodec/libvpxenc.c:1196:19: error: ‘vpx_roi_map_t’ has no member named ‘ref_frame’
     memset(roi_map.ref_frame, -1, sizeof(roi_map.ref_frame));
                   ^
libavcodec/libvpxenc.c:1196:49: error: ‘vpx_roi_map_t’ has no member named ‘ref_frame’
     memset(roi_map.ref_frame, -1, sizeof(roi_map.ref_frame));
                                                 ^
libavcodec/libvpxenc.c:1198:43: error: ‘VP9E_SET_ROI_MAP’ undeclared (first use in this function)
     if (vpx_codec_control(&ctx->encoder, VP9E_SET_ROI_MAP, &roi_map)) {
                                           ^
libavcodec/libvpxenc.c:1198:43: note: each undeclared identifier is reported only once for each function it appears in
make: *** [libavcodec/libvpxenc.o] Error 1
make: Target `all' not remade because of errors.


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If you fake or manipulate statistics in a paper in physics you will never
get a job again.
If you fake or manipulate statistics in a paper in medicin you will get
a job for life at the pharma industry.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190812/79e9c278/attachment.sig>


More information about the ffmpeg-devel mailing list