summaryrefslogtreecommitdiff
path: root/doc/examples
Commit message (Collapse)AuthorAge
* examples/demuxing_decoding: abort decoding when width, height or pix_fmt changeAndreas Cadhalpun2015-02-10
| | | | | | | | | | | | | | This is necessary, because avcodec_decode_video2 can change width, height and/or pixel format of the AVCodecContext. Since video_dst_data and video_dst_linesize are not updated by calling av_image_alloc again, av_image_copy[_plane] asserts, because the destination buffer is too small. In this case, creating a useable rawvideo is not possible anyway, since it has fixed width/height/pix_fmt. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* examples/demuxing_decoding: set stream_idx in open_codec_context only if no ↵Andreas Cadhalpun2015-01-31
| | | | | | | error occured Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* examples/filtering: extend comments about setting the filter graph endpointsStefano Sabatini2015-01-29
| | | | | That part is a constant source of confusions for readers, this should help clarify the apparently inverted logic.
* Merge commit '3a70c0c95feacb3844d05eebd579fc8189a77eee'Michael Niedermayer2015-01-27
|\ | | | | | | | | | | | | * commit '3a70c0c95feacb3844d05eebd579fc8189a77eee': examples/transcode_aac: generate proper PTS and set the muxer timebase Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * examples/transcode_aac: generate proper PTS and set the muxer timebaseAndreas Unterweger2015-01-27
| | | | | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | Merge commit 'c9b19ac8928c6c9b7f25c3988177204f110d5e0e'Michael Niedermayer2015-01-27
|\| | | | | | | | | | | | | * commit 'c9b19ac8928c6c9b7f25c3988177204f110d5e0e': examples/transcode_aac: fix a typo Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * examples/transcode_aac: fix a typoAndreas Unterweger2015-01-27
| | | | | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | Merge commit '749a89d1b8bb73b4d4f14c48f33259a1300c1761'Michael Niedermayer2015-01-27
|\| | | | | | | | | | | | | * commit '749a89d1b8bb73b4d4f14c48f33259a1300c1761': examples/transcode_aac: properly select the output sample format Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * examples/transcode_aac: properly select the output sample formatAndreas Unterweger2015-01-27
| | | | | | | | | | | | Makes the example work with all the supported AAC encoders. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | doc/examples: fix lib math dep for decoding_encodingAndreas Cadhalpun2015-01-10
| | | | | | | | | | | | | | It uses at least sin(). Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | doc/examples/transcoding: Use avio_closep() in examples as it avoids leaving ↵Michael Niedermayer2015-01-08
| | | | | | | | | | | | stale pointers Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | idoc/examples/remuxing: Use avio_closep() in examples as it avoids leaving ↵Michael Niedermayer2015-01-08
| | | | | | | | | | | | stale pointers Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | doc/examples/transcode_aac: Use avio_closep() in examples as it avoids ↵Michael Niedermayer2015-01-08
| | | | | | | | | | | | leaving stale pointers Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | doc/examples/muxing: Use avio_closep() in examples as it avoids leaving ↵Michael Niedermayer2015-01-08
| | | | | | | | | | | | stale pointers Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | doc/examples/filtering_video: fix frame ratePiotr Fusik2014-12-05
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | doc/examples/transcoding: check encoder before using itMichael Niedermayer2014-12-04
| | | | | | | | | | | | | | Fixes null pointer exception Found-by: stoupeace Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | doc/examples/decoding_encoding: fix storing all channelsMichael Niedermayer2014-11-24
| | | | | | | | | | | | Fixes Ticket3355 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | doc: fix the the typosMichael Niedermayer2014-11-22
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | doc/examples/transcoding: use av_packet_rescale_ts()Stefano Sabatini2014-09-16
| | | | | | | | Simplify.
* | doc/examples: remove unneeded NULL checksMichael Niedermayer2014-09-14
| | | | | | | | | | | | dst_file cannot be NULL Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec: export motion vectors in frame side data on demandClément Bœsch2014-08-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The reasoning behind this addition is that various third party applications are interested in getting some motion information out of a video "for free" when it is available. It was considered to export other information as well (such as the intra information about the block, or the quantization) but the structure might have ended up into a half full-generic, half full of codec specific cruft. If more information is necessary, it should either be added in the "flags" field of the AVMotionVector structure, or in another side-data. This commit also includes an example exporting them in a CSV stream.
* | transcode_aac: fix const return valueTimothy Gu2014-08-06
| | | | | | | | | | | | | | Fixes Trac #3613. Signed-off-by: Timothy Gu <timothygu99@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '6a928293dd29c7f0dcf09107980a1d651c9957df'Michael Niedermayer2014-08-03
|\| | | | | | | | | | | | | * commit '6a928293dd29c7f0dcf09107980a1d651c9957df': examples: filter_audio: Add missing mem.h header for av_freep() Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * examples: filter_audio: Add missing mem.h header for av_freep()Diego Biurrun2014-08-03
| |
| * output example: convert audio to the format supported by the encoderAnton Khirnov2014-07-26
| |
* | doc/examples/muxing: fix "-flags" optionMichael Niedermayer2014-07-27
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | doc/examples/muxing: Exchange tmp_frame and frameMichael Niedermayer2014-07-27
| | | | | | | | | | | | Reduces difference to 56f98e340fca894a76d1ddbe33118b8d8c4db34a Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | doc/examples/muxing: mark correct frame as writeableMichael Niedermayer2014-07-27
| | | | | | | | | | Bug found from comparing 56f98e340fca894a76d1ddbe33118b8d8c4db34a to HEAD Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | doc/examples/muxing: Always use swr, simplifies code slightlyMichael Niedermayer2014-07-27
| | | | | | | | | | Idea-from: 56f98e340fca894a76d1ddbe33118b8d8c4db34a Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | doc/examples/muxing: add alloc_audio_frame() and use it to simplify code.Anton Khirnov2014-07-27
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | doc/examples/muxing: Move samples_count to OutputStreamMichael Niedermayer2014-07-27
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | doc/examples/muxing: free swr context at the endMichael Niedermayer2014-07-27
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | doc/examples/muxing: Support setting flags, for example for setting bitexactMichael Niedermayer2014-07-26
| | | | | | | | | | | | This would allow the example to be used in regression tests Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | doc/examples/muxing: select a supported sample rate for the encoder, favor 44100Michael Niedermayer2014-07-26
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | doc/examples/muxing: pick a supported channel layout if stereo isnt ↵Michael Niedermayer2014-07-26
| | | | | | | | | | | | supported by the encoder Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | doc/examples/muxing: move swr context to OutputStreamMichael Niedermayer2014-07-26
| | | | | | | | | | Idea from: 56f98e340fca894a76d1ddbe33118b8d8c4db34a Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '884f7c975f0af25febe86660e87bf3b2165a0309'Michael Niedermayer2014-07-26
|\| | | | | | | | | | | | | | | | | | | * commit '884f7c975f0af25febe86660e87bf3b2165a0309': output example: set the stream timebase Conflicts: doc/examples/muxing.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * output example: set the stream timebaseAnton Khirnov2014-07-26
| | | | | | | | This is required by the new API.
| * examples/output: Remove unused variableDiego Biurrun2014-07-11
| | | | | | | | doc/examples/output.c:460:9: warning: unused variable ‘i’
| * output example: free the muxing format context properlyAnton Khirnov2014-06-26
| |
* | transcoding: fix Doxygen file pathTimothy Gu2014-07-07
| | | | | | | | | | Signed-off-by: Timothy Gu <timothygu99@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | doc/examples/resampling_audio: use av_freep() for safteyMichael Niedermayer2014-06-29
| | | | | | | | | | | | also its better in examples to use the safer functions. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | doc/examples/muxing: remove unused variableMichael Niedermayer2014-06-28
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '182d3f8221c23716ea4eafa460bdb94968f71f26'Michael Niedermayer2014-06-27
|\| | | | | | | | | | | | | | | | | | | * commit '182d3f8221c23716ea4eafa460bdb94968f71f26': output example: rewrite encoding logic Conflicts: doc/examples/muxing.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * output example: rewrite encoding logicAnton Khirnov2014-06-26
| | | | | | | | | | Properly generate pts for the frames sent to the encoder, avoid using private and deprecated AVStream.pts.
* | Merge commit 'a7fcd4122b19b0f934020f4e261d0c44c4c32e11'Michael Niedermayer2014-06-27
|\| | | | | | | | | | | | | | | | | | | * commit 'a7fcd4122b19b0f934020f4e261d0c44c4c32e11': output example: store the scaling context in the stream context Conflicts: doc/examples/muxing.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * output example: store the scaling context in the stream contextAnton Khirnov2014-06-26
| |
* | Merge commit '6a927d7aaf5625e83a674072913b9e292a303fd1'Michael Niedermayer2014-06-26
|\| | | | | | | | | | | | | | | | | | | * commit '6a927d7aaf5625e83a674072913b9e292a303fd1': output example: use a macro instead of a static variable Conflicts: doc/examples/muxing.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * output example: use a macro instead of a static variableAnton Khirnov2014-06-26
| |
* | Merge commit '63fd0d866c8300a8f251a15b1535e9ce40a407fb'Michael Niedermayer2014-06-26
|\| | | | | | | | | | | | | | | | | | | * commit '63fd0d866c8300a8f251a15b1535e9ce40a407fb': output example: allocate the audio frame only once Conflicts: doc/examples/muxing.c Merged-by: Michael Niedermayer <michaelni@gmx.at>