Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | examples/avio_reading: remove stray empty line | Stefano Sabatini | 2014-02-02 | 1 | -1/+0 |
| | |||||
* | examples: add avio_reading.c example | Stefano Sabatini | 2014-02-02 | 2 | -1/+135 |
| | |||||
* | doc/examples/decoding_encoding: Check all av_samples_get_buffer_size() returns | Michael Niedermayer | 2014-01-31 | 1 | -0/+5 |
| | | | | | Fixed CID1135755 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> | ||||
* | examples/filtering_audio,video: do not call avcodec_register_all() | Stefano Sabatini | 2014-01-24 | 2 | -2/+0 |
| | | | | It is implied by av_register_all(). Simplify. | ||||
* | examples/muxing: reindent after previous commit | Stefano Sabatini | 2014-01-23 | 1 | -32/+32 |
| | |||||
* | examples/muxing: flush encoders at the end | Stefano Sabatini | 2014-01-23 | 1 | -23/+30 |
| | |||||
* | examples/filtering_audio,video: drop call to avcodec_get_frame_defaults() | Stefano Sabatini | 2014-01-21 | 2 | -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 comment | Stefano Sabatini | 2014-01-21 | 1 | -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 Sabatini | 2014-01-20 | 1 | -6/+4 |
| | |||||
* | examples/muxing: change error checks, from "ret != 0" to "ret < 0" | Stefano Sabatini | 2014-01-20 | 1 | -2/+3 |
| | | | | More consistent and more future-proof. | ||||
* | examples/muxing: factorize write_interleave code | Stefano Sabatini | 2014-01-20 | 1 | -17/+28 |
| | | | | Also log output packet information. | ||||
* | examples: add remuxing example | Stefano Sabatini | 2014-01-20 | 2 | -0/+165 |
| | | | | Show how to perform streamcopy from one container to another. | ||||
* | examples/muxing: simplify video PTS setting | Stefano Sabatini | 2014-01-12 | 1 | -3/+1 |
| | | | | Rely on frame_count. Also more consistent with audio path. | ||||
* | doc/examples/muxing: Fixes frame initialization. | Andre Anjos | 2014-01-09 | 1 | -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 packet | Stefano Sabatini | 2014-01-09 | 1 | -0/+7 |
| | | | | In particular, fix trac ticket #3231. | ||||
* | examples/muxing: use av_frame_free() in place of av_free() | Stefano Sabatini | 2014-01-09 | 1 | -1/+1 |
| | |||||
* | examples/muxing: reuse global audio frame | Stefano Sabatini | 2014-01-09 | 1 | -7/+13 |
| | | | | Simplify logic, avoid multiple unnecessary alloc/free operations. | ||||
* | examples/muxing: honour distinction between encoder PTS timebase and stream ↵ | Stefano Sabatini | 2014-01-09 | 1 | -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 formats | Stefano Sabatini | 2014-01-09 | 1 | -1/+2 |
| | | | | | Avoid the need of tweaking, also show how to get list of supported sample formats. | ||||
* | examples/decoding_encoding: fix style nits | Stefano Sabatini | 2014-01-07 | 1 | -14/+14 |
| | |||||
* | examples/muxing: fix memleaks in resampler | Ilya Basin | 2013-12-21 | 1 | -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 Basin | 2013-12-21 | 1 | -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 false | Ilya Basin | 2013-12-21 | 1 | -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 Sabatini | 2013-12-15 | 1 | -1/+1 |
| | | | | | | negative value Fix broken != 0 check. | ||||
* | examples/decoding_encoding: check av_samples_get_buffer_size() return code | Timothy Gu | 2013-12-14 | 1 | -0/+4 |
| | | | | | | Fixes CID1135756. Signed-off-by: Timothy Gu <timothygu99@gmail.com> | ||||
* | examples/resample_audio: check av_samples_get_buffer_size() return code | Timothy Gu | 2013-12-14 | 1 | -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œsch | 2013-12-13 | 1 | -2/+2 |
| | |||||
* | examples/demuxing_decoding: return error when no codec found | Even Wiik Thomassen | 2013-12-13 | 1 | -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 Niedermayer | 2013-12-12 | 1 | -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 Niedermayer | 2013-12-11 | 2 | -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 Khirnov | 2013-12-11 | 1 | -1/+1 |
| | | |||||
* | | doc/examples/filtering_audio: init packet0.data | Michael Niedermayer | 2013-12-03 | 1 | -0/+1 |
| | | | | | | | | | | | | Fixes use of uinitialized data and crash Signed-off-by: Michael Niedermayer <michaelni@gmx.at> | ||||
* | | doc/examples/filtering_audio: fix chunked audio decoding | Stefano Sabatini | 2013-12-02 | 1 | -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 style | Stefano Sabatini | 2013-12-02 | 1 | -2/+2 |
| | | |||||
* | | doc/examples/filtering_video: do not make use of AVBufferSinkParams | Stefano Sabatini | 2013-12-02 | 1 | -5/+8 |
| | | | | | | | | Set the value on the filter context instead. Simplify. | ||||
* | | doc/examples/filtering_video: add some error handling in init_filters() | Stefano Sabatini | 2013-12-02 | 1 | -6/+15 |
| | | |||||
* | | doc/examples/README: fix typo | Stefano Sabatini | 2013-12-02 | 1 | -1/+1 |
| | | |||||
* | | doc/examples/filtering_audio: add more error checks | Stefano Sabatini | 2013-12-02 | 1 | -10/+18 |
| | | |||||
* | | doc/examples/filtering: make use of av_err2str() | Stefano Sabatini | 2013-12-02 | 2 | -6/+2 |
| | | | | | | | | Simplify. | ||||
* | | doc/examples: update README. | Clément Bœsch | 2013-11-28 | 1 | -4/+9 |
| | | |||||
* | | doc/examples: make fill_samples static. | Clément Bœsch | 2013-11-28 | 1 | -1/+1 |
| | | | | | | | | This is required to build with FFmpeg compilation options. | ||||
* | | doc/examples: add transcode_aac to local Makefile. | Clément Bœsch | 2013-11-28 | 1 | -0/+1 |
| | | |||||
* | | doc/examples/transcode_aac: remove non converted codepath | Michael Niedermayer | 2013-11-27 | 1 | -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 swresample | Michael Niedermayer | 2013-11-27 | 1 | -44/+34 |
| | | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> | ||||
* | | doc/examples/transcode_aac: fix project name | Michael Niedermayer | 2013-11-27 | 1 | -1/+1 |
| | | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> | ||||
* | | Merge remote-tracking branch 'qatar/master' | Michael Niedermayer | 2013-11-27 | 1 | -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 Unterweger | 2013-11-27 | 1 | -0/+769 |
| | | | | | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net> | ||||
| * | build: Integrate multilibrary examples into the build system | Diego Biurrun | 2013-11-25 | 1 | -0/+527 |
| | | | | This includes moving libavformat/output-example to doc/examples/output. | ||||
* | doc/examples: do not check NULL values for avcodec_close() | Stefano Sabatini | 2013-11-21 | 3 | -8/+4 |
| | | | | avcodec_close() does nothing in case the argument is NULL. Simplify. | ||||
* | doc/examples: fix mem issues in filtering_video. | Clément Bœsch | 2013-11-19 | 1 | -0/+3 |
| |