| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
| |
Simplify.
|
| |
|
|
|
|
| |
This is required to build with FFmpeg compilation options.
|
| |
|
|
|
|
|
|
|
| |
This codepath is not implemented and just crashes, also its simpler
without special cases, which makes sense for an example
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
|
|
|
| |
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
|
|
|
| |
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* qatar/master:
Add an audio transcoding example.
Conflicts:
configure
doc/Makefile
Merged-by: Michael Niedermayer <michaelni@gmx.at>
|
| |
| |
| |
| | |
Signed-off-by: Anton Khirnov <anton@khirnov.net>
|
|
|
|
| |
This includes moving libavformat/output-example to doc/examples/output.
|
|
|
|
| |
avcodec_close() does nothing in case the argument is NULL. Simplify.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* commit '5b9c3b4505206143d85398c1410949319fa1180f':
Replace all instances of avcodec_alloc_frame() with av_frame_alloc().
Conflicts:
doc/examples/decoding_encoding.c
doc/examples/muxing.c
ffmpeg.c
libavcodec/alacenc.c
libavcodec/libopenjpegenc.c
libavcodec/libvpxenc.c
libavcodec/pcm.c
libavcodec/xbmenc.c
libavcodec/xwdenc.c
libavformat/utils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
|
|
|
|
|
| |
That example shows how the decoding process works, not only the
demuxing.
|
| |
|
|
|
|
| |
Fix infinite loop at flushing.
|
|
|
|
| |
It uses at least sin()
|
|
|
|
| |
"into the doc/examples directory" vs "into doc/examples".
|
|
|
|
| |
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
|
|
|
|
| |
Adjust the code so that a working ffplay command is printed in the
planar audio case.
|
|
|
|
|
|
|
|
| |
There is no reason why this should copy the audio data in a very
complicated way. Also, strictly write the first plane, instead of
writing the whole buffer. This is more helpful in context of the
example. This way a user can clearly confirm that it works by playing
the written data as raw audio.
|
|
|
|
|
|
| |
This assumes one audio packet is decoded one time. This is not true:
packets can be partially decoded. Then you have to "adjust" the packet
and pass the undecoded part of the packet to the decode function again.
|
|
|
|
|
| |
Allows to encode to output in case the destination sample format is
different from AV_SAMPLE_FMT_S16.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the next bump
Add function avfilter_graph_parse_ptr() and favor it in place of
avfilter_graph_parse(), which will be restored with the old/Libav
signature at the next bump.
If HAVE_INCOMPATIBLE_LIBAV_API is enabled it will use the
Libav-compatible signature for avfilter_graph_parse().
At the next major bump the current implementation of
avfilter_graph_parse() should be dropped in favor of the Libav/old
implementation.
Should address trac ticket #2672.
|
| |
|
|
|
|
|
| |
The new name is less confusing, since the variables represent times
rather than timestamps.
|
|
|
|
|
| |
There is no much point in optimizing example code, and the -O2 flag is
annoying when debugging.
|
|
|
|
| |
Simpler and less confusing.
|
| |
|
|
|
|
|
| |
The frame is not used after being added to the filter
graph, there is no need to keep the reference.
|
|
|
|
|
|
|
|
| |
AVABufferSinkParams are ignored by avfilter_graph_create_filter,
therefore the example is misleading. Use av_opt_set_int_list to
configure abuffersink directly.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
|
|
|
|
|
| |
Fixes accessing freed memory
Signe-off-by: Michael Niedermayer <michaelni@gmx.at>
|
|
|
|
| |
This filter is not required anymore with aformat. Drop it at next bump.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* commit 'bcc94328980e6c56546792ab08b0756abdce310b':
opt: check the return values of av_get_token for ENOMEM.
doc: Fix best_nb_channells typo
matroska: pass the lace size to the matroska_parse_rm_audio
Conflicts:
libavformat/matroskadec.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
|
|
|
|
| |
Simplify.
|
|
|
|
| |
display_frame() functions
|
|
|
|
| |
In particular, fix crash.
|
|
|
|
| |
In particular, fix crash.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* commit '9d3009c6c4b9b6734f07df7c88f6a42ded6cdf38':
avconv: print an error on applying options of the wrong type.
atomic: Check for __sync_val_compare_and_swap instead of __sync_synchronize
output-example: Update to use encode_video2 instead of the now dropped encode_video
Conflicts:
doc/examples/muxing.c
ffmpeg_opt.c
libavutil/atomic.h
Merged-by: Michael Niedermayer <michaelni@gmx.at>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Do not re-call avcodec_get_context_defaults3(), it is already
called by avformat_new_stream() and it leaks the codec
priv_data that was already allocated.
Use avformat_free_context() instead of freeing (not)
everything manually.
Fix trac ticket #2322.
|
|
|
|
| |
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
|
|
|
|
|
|
| |
The size of the AVFrame structure is not part of the ABI;
it can grow with later versions. Therefore, applications
are not supposed to allocate AVFrame directly, they are
supposed to use avcodec_alloc_frame() instead.
|
| |
|
|
|
|
| |
Fix leak.
|
|
|
|
| |
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|
|
|
|
|
| |
Illustrate the use of return values, av_err2str and
avcodec_get_name.
|
|
|
|
| |
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
|