Anton Khirnov
56f98e340f
output example: convert audio to the format supported by the encoder
10 years ago
Anton Khirnov
884f7c975f
output example: set the stream timebase
...
This is required by the new API.
10 years ago
Diego Biurrun
6cc1409ba8
examples/output: Remove unused variable
...
doc/examples/output.c:460:9: warning: unused variable ‘i’
11 years ago
Anton Khirnov
a5864e9a25
output example: free the muxing format context properly
11 years ago
Anton Khirnov
182d3f8221
output example: rewrite encoding logic
...
Properly generate pts for the frames sent to the encoder, avoid
using private and deprecated AVStream.pts.
11 years ago
Anton Khirnov
a7fcd4122b
output example: store the scaling context in the stream context
11 years ago
Anton Khirnov
6a927d7aaf
output example: use a macro instead of a static variable
11 years ago
Anton Khirnov
63fd0d866c
output example: allocate the audio frame only once
11 years ago
Anton Khirnov
edd5f95764
output example: use OutputStream for audio streams as well
11 years ago
Anton Khirnov
5e7b125b6a
output example: use the new AVFrame API to allocate audio frames
11 years ago
Anton Khirnov
ac85f631c9
output example: set output channel layout
11 years ago
Anton Khirnov
294daf71a7
output example: use a struct to bundle the video stream variables together
11 years ago
Anton Khirnov
38d044429d
output example: use the new AVFrame API for allocating the video frame
11 years ago
Anton Khirnov
452860d7e0
Use av_packet_rescale_ts() to simplify code.
11 years ago
Diego Biurrun
b339182eba
Move all example programs to doc/examples
...
Also drop support for building examples in library directories.
11 years ago
Diego Biurrun
0b9716c455
doc/examples: misc Doxygen markup improvements
...
Add properly formatted @example tag and fix Doxygen syntax.
11 years ago
Anton Khirnov
eb891b3114
Replace all uses of avcodec_free_frame with av_frame_free().
11 years ago
Diego Biurrun
ab81f24ad4
build: Integrate multilibrary examples into the build system
...
This includes moving libavformat/output-example to doc/examples/output.
11 years ago
Anton Khirnov
5b9c3b4505
Replace all instances of avcodec_alloc_frame() with av_frame_alloc().
11 years ago
Martin Storsjö
f1af3d19a7
output-example: Update to use encode_video2 instead of the now dropped encode_video
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years ago
Anton Khirnov
cb45553f57
Remove pointless #undefs of previously forbidden functions.
12 years ago
Anton Khirnov
716d413c13
Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat
12 years ago
Anton Khirnov
11d1ca4b2c
Use avcodec_free_frame() to free AVFrames.
12 years ago
Anton Khirnov
36ef5369ee
Replace all CODEC_ID_* with AV_CODEC_ID_*
12 years ago
Diego Biurrun
afd8a3957b
output-example: K&R formatting cosmetics, comment spelling fixes
13 years ago
Luca Barbato
93f6d0475f
avf: make the example output the proper message
...
av_dump_format needs the codecs opened in order to print
them.
13 years ago
Luca Barbato
28db30aa29
avf: fix audio writing in the output-example
...
av_init_packet does not reset data and size fields in AVPacket,
avcodec_encode_audio2 can use preallocated AVPacket.
13 years ago
Anton Khirnov
5ff42e3138
lavf/output-example: use new audio encoding API correctly.
13 years ago
Anton Khirnov
6e9ed7c7ae
lavf/output-example: more proper usage of the new API.
...
Passing the codec into avformat_new_stream() is preferred.
13 years ago
Luca Barbato
aac63cef20
examples: unbreak compilation
...
Update api so it will compile again.
13 years ago
Diego Biurrun
4dccfff9dd
tests/examples: Mark some variables only used within their files as static.
13 years ago
Diego Biurrun
9a5d6c23c5
tests/tools/examples: Replace direct exit() calls by return.
13 years ago
Anton Khirnov
3b3bbdd3e6
lavf,lavd: replace av_new_stream->avformat_new_stream part I.
...
Trivial replacements with sed are done in this commit:
sed 's/av_new_stream(\([^)]*\), 0)/avformat_new_stream(\1, NULL)/'
13 years ago
Mans Rullgard
0ebcdf5cda
Do not include mathematics.h in avutil.h
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Reinhard Tartler
d7537a6fce
doxygen: Include libavcodec and libavformat examples into the documentation
14 years ago
Stefano Sabatini
59d96941f0
avio: remove AVIO_* access symbols in favor of new AVIO_FLAG_* symbols
...
Make AVIO_FLAG_ access constants work as flags, and in particular fix
the behavior of functions (such as avio_check()) which expect them to
be flags rather than modes.
This breaks API.
14 years ago
Anton Khirnov
f87b1b373a
avio: AVIO_ prefixes for URL_ open flags.
14 years ago
Anton Khirnov
22a3212e32
avio: rename url_fopen/fclose -> avio_open/close.
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
610219a598
lavf: add av_ prefix to dump_format()
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Stefano Sabatini
5d6e4c160a
Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enum
...
SampleFormat with AVSampleFormat.
Originally committed as revision 25730 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Ramiro Polla
1f1916cea2
output-example: Set sample_fmt to SAMPLE_FMT_S16.
...
Originally committed as revision 23597 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Jean-Daniel Dupas
cc947f04cc
Replace all occurences of PKT_FLAG_KEY with AV_PKT_FLAG_KEY.
...
Patch by Jean-Daniel Dupas, devlists shadowlab org
Originally committed as revision 22744 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
72415b2adb
Define AVMediaType enum, and use it instead of enum CodecType, which
...
is deprecated and will be dropped at the next major bump.
Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
54a4f36d6e
Remove conditional M_PI definition, it is already defined in
...
libavutil/mathematics.h indirectly included by libavformat/avformat.h.
Originally committed as revision 21388 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
a52ce57d4e
Replace deprecated guess_format() with av_guess_format().
...
Patch by Martin Storsjö reverse(<ts.nitram@nitram>).
Originally committed as revision 21387 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
073189917e
Make output-example.c handle AAC audio.
...
Patch by Martin Storsjö martin martin st
Originally committed as revision 21367 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ramiro Polla
c15508dc93
Use enums instead of int.
...
Originally committed as revision 19568 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
d95a0c67ae
Move output_example.c --> libavformat/output-example.c.
...
The libavformat directory is a better place for a libavformat API example.
Originally committed as revision 18199 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Art Clarke
a6f925b8f7
Make output_example use av_interleaved_write_frame() instead of av_write_frame().
...
Patch by Art Clarke (standard login name) xuggle com
Originally committed as revision 17428 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Art Clarke
c12b0d86ad
Set global header flag for every container that requires it.
...
Patch by Art Clarke a$(name) xuggle com
Originally committed as revision 17425 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago