aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples
Commit message (Collapse)AuthorAgeFilesLines
* doc/examples/README: fix typoStefano Sabatini2013-12-021-1/+1
|
* doc/examples/filtering_audio: add more error checksStefano Sabatini2013-12-021-10/+18
|
* doc/examples/filtering: make use of av_err2str()Stefano Sabatini2013-12-022-6/+2
| | | | Simplify.
* doc/examples: update README.Clément Bœsch2013-11-281-4/+9
|
* doc/examples: make fill_samples static.Clément Bœsch2013-11-281-1/+1
| | | | This is required to build with FFmpeg compilation options.
* doc/examples: add transcode_aac to local Makefile.Clément Bœsch2013-11-281-0/+1
|
* doc/examples/transcode_aac: remove non converted codepathMichael Niedermayer2013-11-271-7/+0
| | | | | | | 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>
* doc/examples/transcode_aac: switch to swresampleMichael Niedermayer2013-11-271-44/+34
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* doc/examples/transcode_aac: fix project nameMichael Niedermayer2013-11-271-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-11-271-0/+769
|\ | | | | | | | | | | | | | | | | | | | | * qatar/master: Add an audio transcoding example. Conflicts: configure doc/Makefile Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Add an audio transcoding example.Andreas Unterweger2013-11-271-0/+769
| | | | | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * build: Integrate multilibrary examples into the build systemDiego Biurrun2013-11-251-0/+527
| | | | This includes moving libavformat/output-example to doc/examples/output.
* doc/examples: do not check NULL values for avcodec_close()Stefano Sabatini2013-11-213-8/+4
| | | | avcodec_close() does nothing in case the argument is NULL. Simplify.
* doc/examples: fix mem issues in filtering_video.Clément Bœsch2013-11-191-0/+3
|
* Merge commit '5b9c3b4505206143d85398c1410949319fa1180f'Michael Niedermayer2013-11-162-6/+6
| | | | | | | | | | | | | | | | | | | * 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>
* doc/examples: rename demuxing to demuxing_decoding.Clément Bœsch2013-11-042-3/+3
| | | | | That example shows how the decoding process works, not only the demuxing.
* doc/examples/demuxing: show how to use the reference counting system.Clément Bœsch2013-11-041-6/+51
|
* doc/examples/demuxing: reset got_frame.Clément Bœsch2013-10-301-0/+2
| | | | Fix infinite loop at flushing.
* doc/examples: fix lib math dep for resampling_audio.Clément Bœsch2013-09-041-0/+1
| | | | It uses at least sin()
* doc/examples: remove extra "the".Clément Bœsch2013-09-041-1/+1
| | | | "into the doc/examples directory" vs "into doc/examples".
* doc/examples/filtering_audio: make const arrays also staticMichael Niedermayer2013-08-031-5/+5
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* examples: demuxing: print ffplay command even if sample format is planarwm42013-07-191-2/+14
| | | | | Adjust the code so that a working ffplay command is printed in the planar audio case.
* examples: demuxing: simplify audio outputwm42013-07-191-36/+10
| | | | | | | | 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.
* examples: demuxing: do partial audio packet decodingwm42013-07-191-3/+16
| | | | | | 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.
* examples/muxing: add support to audio resamplingStefano Sabatini2013-07-061-28/+93
| | | | | Allows to encode to output in case the destination sample format is different from AV_SAMPLE_FMT_S16.
* lavfi: create Libav-API compatibility layer for avfilter_graph_parse() at ↵Stefano Sabatini2013-07-032-2/+2
| | | | | | | | | | | | | | | | | 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.
* examples/muxing: make more compact audio/video_time computationStefano Sabatini2013-07-031-9/+2
|
* examples/muxing: rename audio/video_pts to audio/video_timeStefano Sabatini2013-06-261-8/+8
| | | | | The new name is less confusing, since the variables represent times rather than timestamps.
* examples/Makefile: disable -O2 optimizationsStefano Sabatini2013-06-261-1/+1
| | | | | There is no much point in optimizing example code, and the -O2 flag is annoying when debugging.
* examples/muxing: remove useless instructionStefano Sabatini2013-06-261-1/+0
| | | | Simpler and less confusing.
* examples/muxing: vertically alignStefano Sabatini2013-06-251-2/+1
|
* examples/filtering_audio: fix frame leak.Nicolas George2013-04-181-1/+1
| | | | | The frame is not used after being added to the filter graph, there is no need to keep the reference.
* examples/filtering_audio: get rid of AVABufferSinkParamsPavel Koshevoy2013-04-171-6/+26
| | | | | | | | 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>
* examples/filtering_audio: enable ref counted framesMichael Niedermayer2013-04-171-0/+1
| | | | | | Fixes accessing freed memory Signe-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavfi: deprecate aconvert.Clément Bœsch2013-04-111-1/+1
| | | | This filter is not required anymore with aformat. Drop it at next bump.
* Merge commit 'bcc94328980e6c56546792ab08b0756abdce310b'Michael Niedermayer2013-04-041-3/+3
| | | | | | | | | | | | * 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>
* examples/resampling_audio: make use of av_samples_alloc_array_and_samples()Stefano Sabatini2013-03-311-16/+4
| | | | Simplify.
* examples/filtering_*: constify AVFrame * for print_frame() and ↵Stefano Sabatini2013-03-142-2/+2
| | | | display_frame() functions
* examples/filtering_audio: update to new APIStefano Sabatini2013-03-141-14/+12
| | | | In particular, fix crash.
* examples/filtering_video: update to new APIStefano Sabatini2013-03-141-20/+18
| | | | In particular, fix crash.
* Remove references to the "ff" variant of buffersink.Nicolas George2013-03-122-2/+2
|
* Merge commit '9d3009c6c4b9b6734f07df7c88f6a42ded6cdf38'Michael Niedermayer2013-03-121-11/+5
| | | | | | | | | | | | | | * 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>
* doc: fix examples.Clément Bœsch2013-03-102-2/+2
|
* examples/muxing: fix memory leak.Nicolas George2013-03-051-9/+2
| | | | | | | | | | | 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.
* doc/examples/demuxing: use AVFrame accessor functionsMichael Niedermayer2013-03-011-3/+3
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* doc/examples: do not allocate AVFrame directly.Nicolas George2013-02-172-9/+19
| | | | | | | 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.
* examples/scaling_video: fix typoStefano Sabatini2013-02-151-1/+1
|
* examples/demuxing: free AVPacket after usageAngelo Haller2013-01-151-1/+3
| | | | Fix leak.
* doc/examples: fix assignments in if()Michael Niedermayer2013-01-142-2/+2
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* examples/muxing: improve error messages.Nicolas George2013-01-021-17/+28
| | | | | Illustrate the use of return values, av_err2str and avcodec_get_name.