aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit '63fd0d866c8300a8f251a15b1535e9ce40a407fb'Michael Niedermayer2014-06-261-42/+45
|\ | | | | | | | | | | | | | | | | | | * commit '63fd0d866c8300a8f251a15b1535e9ce40a407fb': output example: allocate the audio frame only once Conflicts: doc/examples/muxing.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * output example: allocate the audio frame only onceAnton Khirnov2014-06-261-26/+23
| |
* | Merge commit 'edd5f957646dcbf1bb55718bc7bf1e5481c25bcb'Michael Niedermayer2014-06-261-46/+40
|\| | | | | | | | | | | | | | | | | | | * commit 'edd5f957646dcbf1bb55718bc7bf1e5481c25bcb': output example: use OutputStream for audio streams as well Conflicts: doc/examples/muxing.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * output example: use OutputStream for audio streams as wellAnton Khirnov2014-06-261-42/+39
| |
* | Merge commit '5e7b125b6ae36893dfd9cb5661c99b67363cbb38'Michael Niedermayer2014-06-261-69/+47
|\| | | | | | | | | | | | | | | | | | | * commit '5e7b125b6ae36893dfd9cb5661c99b67363cbb38': output example: use the new AVFrame API to allocate audio frames Conflicts: doc/examples/muxing.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * output example: use the new AVFrame API to allocate audio framesAnton Khirnov2014-06-261-19/+24
| |
* | Merge commit 'ac85f631c9a9cc59aaca1c8dd6894fb1f701c594'Michael Niedermayer2014-06-261-0/+2
|\| | | | | | | | | | | | | | | | | | | * commit 'ac85f631c9a9cc59aaca1c8dd6894fb1f701c594': output example: set output channel layout Conflicts: doc/examples/muxing.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * output example: set output channel layoutAnton Khirnov2014-06-261-0/+2
| |
* | Merge commit '294daf71a7a1303b5ddd3cbefebed3b732d610f3'Michael Niedermayer2014-06-261-45/+58
|\| | | | | | | | | | | | | | | | | | | * commit '294daf71a7a1303b5ddd3cbefebed3b732d610f3': output example: use a struct to bundle the video stream variables together Conflicts: doc/examples/muxing.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * output example: use a struct to bundle the video stream variables togetherAnton Khirnov2014-06-261-43/+50
| |
* | Merge commit '38d044429dabcd28928693240e955c6d4430cca9'Michael Niedermayer2014-06-261-33/+49
|\| | | | | | | | | | | | | | | | | | | * commit '38d044429dabcd28928693240e955c6d4430cca9': output example: use the new AVFrame API for allocating the video frame Conflicts: doc/examples/muxing.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * output example: use the new AVFrame API for allocating the video frameAnton Khirnov2014-06-261-16/+23
| |
* | Merge commit '452860d7e056f9a894cac2fe52cdedeae4c38251'Michael Niedermayer2014-06-201-3/+1
|\| | | | | | | | | | | | | | | | | | | | | * commit '452860d7e056f9a894cac2fe52cdedeae4c38251': Use av_packet_rescale_ts() to simplify code. Conflicts: doc/examples/muxing.c ffmpeg.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Use av_packet_rescale_ts() to simplify code.Anton Khirnov2014-06-201-8/+1
| |
* | fix various typosLou Logan2014-06-031-1/+1
| | | | | | | | | | Signed-off-by: Lou Logan <lou@lrcd.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | examples: rename avcodec.c to decoding_encoding.cStefano Sabatini2014-04-232-2/+2
| | | | | | | | | | Restore the old name, which was more meaningful and consistent with the names of the other examples.
* | examples/transcoding: use av_malloc_array()Michael Niedermayer2014-04-081-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | examples/avio_reading: fix null dereference on errorMichael Niedermayer2014-04-061-2/+4
| | | | | | | | | | Fixed CID1197052 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | 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>