[FFmpeg-user] Cropping a video with FFMPEG API

Carl Eugen Hoyos cehoyos at ag.or.at
Thu May 19 10:21:23 CEST 2016


GUILLOT Jean-Baptiste <jguillot <at> et.esiea.fr> writes:

> I learned how to use FFMPEG API with http://dranger.com/ffmpeg/ , 
> and I implemented a video reader using the library SDL to 
> display the video.

There is a mailing list more suited for such questions:
http://ffmpeg.org/mailman/listinfo/libav-user

> I have a HD video 1280*720 (i only worked with mp4) and i want to 
> select a VGA-screen anywhere in the HD video (I mean cropping a VGA 
> screen in a HD video), recuperate the data and display it on screen.

There is a crop filter in libavfilter that is able to do this.

> In the FFMPEG API, we can use the function av_picture_crop

The function is deprecated, you should not use it.

>     *** glibc detected *** ./HDtoVGA: corrupted double-linked list:

valgrind may help you.

Carl Eugen



More information about the ffmpeg-user mailing list