1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00
FFmpeg/doc/examples
Andreas Cadhalpun 078be09dd7 examples/demuxing_decoding: abort decoding when width, height or pix_fmt change
This is necessary, because avcodec_decode_video2 can change
width, height and/or pixel format of the AVCodecContext. Since
video_dst_data and video_dst_linesize are not updated by calling
av_image_alloc again, av_image_copy[_plane] asserts, because the
destination buffer is too small.

In this case, creating a useable rawvideo is not possible anyway, since
it has fixed width/height/pix_fmt.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-02-10 02:43:47 +01:00
..
avio_reading.c examples/avio_reading: fix null dereference on error 2014-04-06 00:39:58 +02:00
decoding_encoding.c doc/examples/decoding_encoding: fix storing all channels 2014-11-24 22:01:33 +01:00
demuxing_decoding.c examples/demuxing_decoding: abort decoding when width, height or pix_fmt change 2015-02-10 02:43:47 +01:00
extract_mvs.c avcodec: export motion vectors in frame side data on demand 2014-08-18 14:13:57 +02:00
filter_audio.c Merge commit '6a928293dd29c7f0dcf09107980a1d651c9957df' 2014-08-03 19:18:25 +02:00
filtering_audio.c examples/filtering: extend comments about setting the filter graph endpoints 2015-01-29 11:12:39 +01:00
filtering_video.c examples/filtering: extend comments about setting the filter graph endpoints 2015-01-29 11:12:39 +01:00
Makefile doc/examples: fix lib math dep for decoding_encoding 2015-01-10 04:50:42 +01:00
metadata.c doc/examples: remove pathes from doxy examples 2014-02-17 13:50:53 +01:00
muxing.c doc/examples/muxing: Use avio_closep() in examples as it avoids leaving stale pointers 2015-01-08 05:28:15 +01:00
README doc/examples/README: fix typo 2013-12-02 14:35:39 +01:00
remuxing.c idoc/examples/remuxing: Use avio_closep() in examples as it avoids leaving stale pointers 2015-01-08 05:28:59 +01:00
resampling_audio.c doc/examples: remove unneeded NULL checks 2014-09-14 16:45:50 +02:00
scaling_video.c doc/examples: remove unneeded NULL checks 2014-09-14 16:45:50 +02:00
transcode_aac.c Merge commit '3a70c0c95feacb3844d05eebd579fc8189a77eee' 2015-01-27 13:35:31 +01:00
transcoding.c doc/examples/transcoding: Use avio_closep() in examples as it avoids leaving stale pointers 2015-01-08 05:29:10 +01:00

FFmpeg examples README
----------------------

Both following use cases rely on pkg-config and make, thus make sure
that you have them installed and working on your system.


Method 1: build the installed examples in a generic read/write user directory

Copy to a read/write user directory and just use "make", it will link
to the libraries on your system, assuming the PKG_CONFIG_PATH is
correctly configured.

Method 2: build the examples in-tree

Assuming you are in the source FFmpeg checkout directory, you need to build
FFmpeg (no need to make install in any prefix). Then just run "make examples".
This will build the examples using the FFmpeg build system. You can clean those
examples using "make examplesclean"

If you want to try the dedicated Makefile examples (to emulate the first
method), go into doc/examples and run a command such as
PKG_CONFIG_PATH=pc-uninstalled make.