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
..
Makefile doc/examples: fix lib math dep for decoding_encoding 2015-01-10 04:50:42 +01:00
README
avio_reading.c
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
filter_audio.c
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
metadata.c
muxing.c doc/examples/muxing: Use avio_closep() in examples as it avoids leaving stale pointers 2015-01-08 05:28:15 +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
scaling_video.c
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

README

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.