Lukasz Marek
56b7aa2138
doc/examples: add directory listing example
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-03-28 03:13:44 +01:00
Andreas Cadhalpun
f97f2a3527
doc/examples: fix lib math dep for decoding_encoding
...
It uses at least sin().
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-01-10 04:50:42 +01:00
Clément Bœsch
b0352b1997
avcodec: export motion vectors in frame side data on demand
...
The reasoning behind this addition is that various third party
applications are interested in getting some motion information out of a
video "for free" when it is available.
It was considered to export other information as well (such as the intra
information about the block, or the quantization) but the structure
might have ended up into a half full-generic, half full of codec
specific cruft. If more information is necessary, it should either be
added in the "flags" field of the AVMotionVector structure, or in
another side-data.
This commit also includes an example exporting them in a CSV stream.
2014-08-18 14:13:57 +02:00
Stefano Sabatini
bf411fffd4
examples: rename avcodec.c to decoding_encoding.c
...
Restore the old name, which was more meaningful and consistent with the
names of the other examples.
2014-04-23 10:32:42 +02:00
Andrey Utkin
e10ab43614
doc/examples: Add example transcoding.c
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-03-17 20:56:33 +01:00
Michael Niedermayer
1fc74926a5
Merge commit 'b339182eba34f28de5f1a477cdd2c84f1ef35d90'
...
* commit 'b339182eba34f28de5f1a477cdd2c84f1ef35d90':
Move all example programs to doc/examples
Conflicts:
configure
doc/Makefile
doc/doxy-wrapper.sh
doc/examples/avcodec.c
doc/examples/decoding_encoding.c
doc/examples/metadata.c
doc/examples/muxing.c
doc/examples/transcode_aac.c
libavcodec/Makefile
libavcodec/api-example.c
libavformat/Makefile
Merged-by: Michael Niedermayer <michaelni@gmx.at>
2014-02-17 02:22:01 +01:00
Stefano Sabatini
5fc4dea39c
examples: add avio_reading.c example
2014-02-02 11:58:23 +01:00
Stefano Sabatini
5e2b8e4934
examples: add remuxing example
...
Show how to perform streamcopy from one container to another.
2014-01-20 13:10:10 +01:00
Clément Bœsch
e5102feb6b
doc/examples: add transcode_aac to local Makefile.
2013-11-28 13:19:50 +01:00
Clément Bœsch
fb10b43fc4
doc/examples: rename demuxing to demuxing_decoding.
...
That example shows how the decoding process works, not only the
demuxing.
2013-11-04 12:53:06 +01:00
Clément Bœsch
dc8f732292
doc/examples: fix lib math dep for resampling_audio.
...
It uses at least sin()
2013-09-04 15:49:18 +02:00
Stefano Sabatini
c58d535b2f
examples/Makefile: disable -O2 optimizations
...
There is no much point in optimizing example code, and the -O2 flag is
annoying when debugging.
2013-06-26 23:21:39 +02:00
Stefano Sabatini
89920387da
examples: add resampling_audio.c file
2012-12-06 10:09:37 +01:00
Stefano Sabatini
3b34cbce19
examples/scaling_video: write to rawvideo file
...
This is more useful for testing purposes. Also allow to specify the name
of the output file.
2012-09-04 11:29:28 +02:00
Stefano Sabatini
c8ef309379
examples: add demuxing.c example
2012-09-02 10:48:01 +02:00
Stefano Sabatini
e53becc70f
examples/Makefile: give priority to pkg-config flags
...
In case CFLAGS/LDLIBS are already defined and conflicting with the
pkg-config flags, give priority to the latter since they are used to
detect compilation flags.
This should fix for example the case where there are many different
instances of a library, CFLAGS=-I/foo/include and pkg-config cflags say
-I/bar/include.
2012-08-30 21:46:44 +02:00
Stefano Sabatini
2cbffc6706
examples/Makefile: remove duplicated -f switch
...
$(RM) already includes that flag.
Spotted-by: ubitux
2012-08-28 20:09:42 +02:00
Stefano Sabatini
74419fcf45
examples: add scaling_video example
...
This example should be useful to show the basic functionality of the
libswscale API.
More advanced features (scaling options etc., colorspace tweaking) may be
added later.
2012-08-28 20:09:37 +02:00
Stefano Sabatini
3b0e2763f4
examples/Makefile: apply misc minor fixes to the RM rule
...
Use $(RM) in place of rm, drop useless "-r" for removing files.
2012-08-27 10:09:39 +02:00
Stefano Sabatini
c0bca6425d
examples/decoding_encoding: store temporary files in current dir
...
Do not clutter the temporary directory with files, also "/tmp" is not
always available, e.g. in Windows.
Also add the clean-test Makefile rule, which will clean the generated
files.
2012-08-27 10:09:31 +02:00
Andrew Wason
1ef802d038
update filtering_audio example
...
The filtering_audio.c example needs to be updated for the new
"abuffer" filter args.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-06-05 03:02:41 +02:00
Clément Bœsch
c6bbe3c2a7
doc/examples: add debug compilation flag.
2012-05-19 12:28:59 +02:00
Clément Bœsch
136ca0e5f8
doc/examples: remove explicit rules.
...
These rules are already in gmake builtins.
2012-05-19 12:28:58 +02:00
Clément Bœsch
7aedfeebfb
doc/examples: add libavr to libraries to avoid link failures.
2012-05-19 12:28:48 +02:00
Clément Bœsch
be062de9d4
doc/examples: add libswresample in the libraries.
...
It is required for audio filtering.
2012-05-12 19:58:44 +02:00
Clément Bœsch
9188294d30
doc/examples: fix typo.
2012-05-12 18:08:26 +02:00
Clément Bœsch
5b55c7f4e9
doc/examples: add -O2 in CFLAGS.
2012-05-12 17:59:41 +02:00
Clément Bœsch
2f197a20cf
doc/examples: link decoding_encoding and muxing with math lib.
...
These two examples use the sin() function.
2012-05-12 17:59:41 +02:00
Clément Bœsch
9a19341e6e
doc/examples: rename LDFLAGS to LDLIBS.
2012-05-12 17:59:41 +02:00
Michael Niedermayer
0261902dac
doc/examples/Makefile: split lines up to make diffs that change them clearer
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-05-08 20:18:53 +02:00
Clément Bœsch
2bdac29360
doc/examples: rename filtering.c into filtering_video.c.
2012-02-21 22:34:39 +01:00
Clément Bœsch
aecf0cf5ed
doc/examples: add audio decoding/filtering example.
...
Mostly based on doc/examples/filtering.c. lavfi API is still limited to
"buffer feeding" instead of "frame feeding" at the moment, so this
example code sticks with it.
2012-02-21 16:45:37 +01:00
Clément Bœsch
624c413d55
examples: add -Wall to CFLAGS.
2012-02-19 02:18:29 +01:00
Michael Niedermayer
be5ac961e0
examples/encoding: rename to decoding_encoding.c as the file is an example for both.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2011-10-11 22:16:04 +02:00
Stefano Sabatini
fcc7d869d9
doc/examples: add decoding/filtering example program
2011-07-10 18:03:17 +02:00
Stefano Sabatini
a953577b46
examples: move metadata-example.c to doc/examples
2011-07-08 09:40:30 +02:00
Stefano Sabatini
79f3384ce1
examples: rename "-example" suffix from examples files
...
The suffix is redundant since the containing directory itself is
called "examples". Simplify.
2011-07-04 11:03:54 +02:00
Stefano Sabatini
ca858ab77d
doc/examples: give meaningful names to the example files
...
Rename:
api-example.c -> encoding-example.c
output-example.c -> muxing-example.c
2011-06-01 13:02:08 +02:00
Stefano Sabatini
9362b50941
examples: move API examples to a dedicated dir in doc
2011-05-30 09:20:06 +02:00