aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples
Commit message (Collapse)AuthorAgeFilesLines
...
* | doc/examples/avcodec: information regarding gop_size ignored if ↵Anshul Maheshwari2014-03-211-1/+7
| | | | | | | | | | | | frame->pic-type is AV_PICTURE_TYPE_I Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | doc/examples: Add example transcoding.cAndrey Utkin2014-03-172-0/+598
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | doc: fix typocompn2014-03-071-1/+1
| |
* | doc/examples/remuxing: dont use the input codec_tag, it may be invalid tor ↵Jason Hsu2014-03-051-0/+1
| | | | | | | | | | | | the output Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'e7dfaf16a403972eb6aed5ce8f84c0085bd2fb5a'Michael Niedermayer2014-02-251-0/+364
|\| | | | | | | | | | | | | | | | | | | | | | | * commit 'e7dfaf16a403972eb6aed5ce8f84c0085bd2fb5a': libavfilter: example audio filtering program Conflicts: .gitignore configure doc/Makefile Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * libavfilter: example audio filtering programAnton Khirnov2014-02-251-0/+364
| | | | | | | | | | | | Based on a patch by Andrew Kelley <superjoe30@gmail.com> Signed-off-by: Diego Biurrun <diego@biurrun.de>
* | doc/examples: remove pathes from doxy examplesMichael Niedermayer2014-02-179-9/+9
| | | | | | | | | | | | | | This makes the examples page less cluttered Reviewed-by: Clément Bœsch <u@pkh.me> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'b339182eba34f28de5f1a477cdd2c84f1ef35d90'Michael Niedermayer2014-02-173-4/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
| * Move all example programs to doc/examplesDiego Biurrun2014-02-164-2/+653
| | | | | | | | Also drop support for building examples in library directories.
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2014-02-142-3/+6
|\| | | | | | | | | | | | | | | | | | | | | * qatar/master: doc/examples: misc Doxygen markup improvements Conflicts: doc/examples/muxing.c doc/examples/transcode_aac.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * doc/examples: misc Doxygen markup improvementsDiego Biurrun2014-02-142-3/+6
| | | | | | | | Add properly formatted @example tag and fix Doxygen syntax.
* | examples/avio_reading: remove stray empty lineStefano Sabatini2014-02-021-1/+0
| |
* | examples: add avio_reading.c exampleStefano Sabatini2014-02-022-1/+135
| |
* | doc/examples/decoding_encoding: Check all av_samples_get_buffer_size() returnsMichael Niedermayer2014-01-311-0/+5
| | | | | | | | | | Fixed CID1135755 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | examples/filtering_audio,video: do not call avcodec_register_all()Stefano Sabatini2014-01-242-2/+0
| | | | | | | | It is implied by av_register_all(). Simplify.
* | examples/muxing: reindent after previous commitStefano Sabatini2014-01-231-32/+32
| |
* | examples/muxing: flush encoders at the endStefano Sabatini2014-01-231-23/+30
| |
* | examples/filtering_audio,video: drop call to avcodec_get_frame_defaults()Stefano Sabatini2014-01-212-2/+0
| | | | | | | | | | The avcodec_get_frame_defaults() function is deprecated and its use doesn't seem required.
* | examples/muxing: reduce duration, remove wrong and misleading commentStefano Sabatini2014-01-211-2/+1
| | | | | | | | | | | | | | | | Set duration to 10 seconds, after it was increased from 5 to 200 seconds in 8d80f3cb877b890889b1673029387229648901ed. 200 seconds will generate too much data which is annoying especially when testing.
* | examples/muxing: remove redundant {}Stefano Sabatini2014-01-201-6/+4
| |
* | examples/muxing: change error checks, from "ret != 0" to "ret < 0"Stefano Sabatini2014-01-201-2/+3
| | | | | | | | More consistent and more future-proof.
* | examples/muxing: factorize write_interleave codeStefano Sabatini2014-01-201-17/+28
| | | | | | | | Also log output packet information.
* | examples: add remuxing exampleStefano Sabatini2014-01-202-0/+165
| | | | | | | | Show how to perform streamcopy from one container to another.
* | examples/muxing: simplify video PTS settingStefano Sabatini2014-01-121-3/+1
| | | | | | | | Rely on frame_count. Also more consistent with audio path.
* | doc/examples/muxing: Fixes frame initialization.Andre Anjos2014-01-091-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | Fixes use of the example with encoders which use tha AVFrame w/h/pix_fmt fields FFV1 is one of these codecs We cannot easily workaround the not set fields in common code because the API has AVFrame constant for the encoders. Alternatives would be to fix the API or to duplicate the struct and fill in missing fields. Or as is to require all user apps to set this correctly and maybe simplify for that case Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | examples/muxing: set timestamps in output audio packetStefano Sabatini2014-01-091-0/+7
| | | | | | | | In particular, fix trac ticket #3231.
* | examples/muxing: use av_frame_free() in place of av_free()Stefano Sabatini2014-01-091-1/+1
| |
* | examples/muxing: reuse global audio frameStefano Sabatini2014-01-091-7/+13
| | | | | | | | Simplify logic, avoid multiple unnecessary alloc/free operations.
* | examples/muxing: honour distinction between encoder PTS timebase and stream ↵Stefano Sabatini2014-01-091-1/+5
| | | | | | | | | | | | | | | | | | | | timebase Fix PTS set on the frame when encoding, which must be specified in the encoder timebase or this will confuse the encoder. When muxing the packet, the PTS/DTS generated by the encoder is then rescaled to the stream timebase.
* | examples/muxing: set sample formats from list of codec supported sample formatsStefano Sabatini2014-01-091-1/+2
| | | | | | | | | | Avoid the need of tweaking, also show how to get list of supported sample formats.
* | examples/decoding_encoding: fix style nitsStefano Sabatini2014-01-071-14/+14
| |
* | examples/muxing: fix memleaks in resamplerIlya Basin2013-12-211-12/+18
| | | | | | | | | | | | | | - do not allocate resample dst buffer when resample is off - free sample buffers in addition to freeing data pointer arrays Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | examples/muxing: use S16 sample_fmt for resample src regardless of codec ↵Ilya Basin2013-12-211-1/+1
| | | | | | | | | | | | | | | | sample_fmt We generate S16 samples and we should allocate the right buffer Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | examples/muxing: fix av_frame_free() not called when got_packet is falseIlya Basin2013-12-211-1/+2
| | | | | | | | | | | | | | Hi list! Since my last patch (fix 2 memleaks in doc/examples/muxing.c) I found more problems to fix. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | examples/decoding_encoding: check av_samples_get_buffer_size() for a ↵Stefano Sabatini2013-12-151-1/+1
| | | | | | | | | | | | negative value Fix broken != 0 check.
* | examples/decoding_encoding: check av_samples_get_buffer_size() return codeTimothy Gu2013-12-141-0/+4
| | | | | | | | | | | | Fixes CID1135756. Signed-off-by: Timothy Gu <timothygu99@gmail.com>
* | examples/resample_audio: check av_samples_get_buffer_size() return codeTimothy Gu2013-12-141-0/+4
| | | | | | | | | | | | Fixes CID1135757. Signed-off-by: Timothy Gu <timothygu99@gmail.com>
* | examples/demuxing_decoding: print the decoding error when it happens.Clément Bœsch2013-12-131-2/+2
| |
* | examples/demuxing_decoding: return error when no codec foundEven Wiik Thomassen2013-12-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Merge commit '48d17ee6dc2b2a552f645484f200c2946bf24607'Michael Niedermayer2013-12-121-2/+1
|\| | | | | | | | | | | | | * commit '48d17ee6dc2b2a552f645484f200c2946bf24607': api-example: remove an unneeded call to avcodec_get_frame_defaults(). Merged-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'eb891b3114f499e96b9faddd0b0ae856345dfbd9'Michael Niedermayer2013-12-112-5/+5
|\| | | | | | | | | | | | | | | | | | | * commit 'eb891b3114f499e96b9faddd0b0ae856345dfbd9': Replace all uses of avcodec_free_frame with av_frame_free(). Conflicts: doc/examples/decoding_encoding.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Replace all uses of avcodec_free_frame with av_frame_free().Anton Khirnov2013-12-111-1/+1
| |
* | doc/examples/filtering_audio: init packet0.dataMichael Niedermayer2013-12-031-0/+1
| | | | | | | | | | | | Fixes use of uinitialized data and crash Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | doc/examples/filtering_audio: fix chunked audio decodingStefano Sabatini2013-12-021-4/+15
| | | | | | | | | | | | Support the case when multiple frames are contained in a single packet. In particular, fix fate-samples/lossless-audio/luckynight-partial.shn sample decoding.
* | doc/examples/filtering_audio: fix styleStefano Sabatini2013-12-021-2/+2
| |
* | doc/examples/filtering_video: do not make use of AVBufferSinkParamsStefano Sabatini2013-12-021-5/+8
| | | | | | | | Set the value on the filter context instead. Simplify.
* | doc/examples/filtering_video: add some error handling in init_filters()Stefano Sabatini2013-12-021-6/+15
| |
* | 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.