ffmpeg/doc/examples
Even Wiik Thomassen 43f116d162 examples/demuxing_decoding: return error when no codec found
The open_codec_context function, when it fails to find a codec, now
return AVERROR(EINVAL) to signal an error.

Before it would return the stream index, which was always >= 0, and
continue as if a codec was found. This change make it fail faster,
instead of repeated failed tries to decode frames with no codec.

Signed-off-by: Even Wiik Thomassen <e.thomassen@sportradar.com>
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
2013-12-13 09:45:54 +01:00
..
decoding_encoding.c Merge commit '48d17ee6dc2b2a552f645484f200c2946bf24607' 2013-12-12 00:19:53 +01:00
demuxing_decoding.c examples/demuxing_decoding: return error when no codec found 2013-12-13 09:45:54 +01:00
filtering_audio.c doc/examples/filtering_audio: init packet0.data 2013-12-03 00:01:07 +01:00
filtering_video.c doc/examples/filtering_video: do not make use of AVBufferSinkParams 2013-12-02 14:35:40 +01:00
Makefile doc/examples: add transcode_aac to local Makefile. 2013-11-28 13:19:50 +01:00
metadata.c
muxing.c Merge commit 'eb891b3114f499e96b9faddd0b0ae856345dfbd9' 2013-12-11 23:18:51 +01:00
README doc/examples/README: fix typo 2013-12-02 14:35:39 +01:00
resampling_audio.c doc/examples: make fill_samples static. 2013-11-28 13:54:44 +01:00
scaling_video.c
transcode_aac.c doc/examples/transcode_aac: remove non converted codepath 2013-11-27 11:22:19 +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.