Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-01-09examples/muxing: set timestamps in output audio packetStefano Sabatini
In particular, fix trac ticket #3231.
2014-01-09examples/muxing: use av_frame_free() in place of av_free()Stefano Sabatini
2014-01-09examples/muxing: reuse global audio frameStefano Sabatini
Simplify logic, avoid multiple unnecessary alloc/free operations.
2014-01-09examples/muxing: honour distinction between encoder PTS timebase and stream ↵Stefano Sabatini
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.
2014-01-09examples/muxing: set sample formats from list of codec supported sample formatsStefano Sabatini
Avoid the need of tweaking, also show how to get list of supported sample formats.
2014-01-07examples/decoding_encoding: fix style nitsStefano Sabatini
2013-12-21examples/muxing: fix memleaks in resamplerIlya Basin
- 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>
2013-12-21examples/muxing: use S16 sample_fmt for resample src regardless of codec ↵Ilya Basin
sample_fmt We generate S16 samples and we should allocate the right buffer Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-12-21examples/muxing: fix av_frame_free() not called when got_packet is falseIlya Basin
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>
2013-12-15examples/decoding_encoding: check av_samples_get_buffer_size() for a ↵Stefano Sabatini
negative value Fix broken != 0 check.
2013-12-14examples/decoding_encoding: check av_samples_get_buffer_size() return codeTimothy Gu
Fixes CID1135756. Signed-off-by: Timothy Gu <timothygu99@gmail.com>
2013-12-14examples/resample_audio: check av_samples_get_buffer_size() return codeTimothy Gu
Fixes CID1135757. Signed-off-by: Timothy Gu <timothygu99@gmail.com>
2013-12-13examples/demuxing_decoding: print the decoding error when it happens.Clément Bœsch
2013-12-13examples/demuxing_decoding: return error when no codec foundEven Wiik Thomassen
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>
2013-12-12Merge commit '48d17ee6dc2b2a552f645484f200c2946bf24607'Michael Niedermayer
* commit '48d17ee6dc2b2a552f645484f200c2946bf24607': api-example: remove an unneeded call to avcodec_get_frame_defaults(). Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-12-12Merge commit 'eb891b3114f499e96b9faddd0b0ae856345dfbd9'Michael Niedermayer
* 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>
2013-12-11Replace all uses of avcodec_free_frame with av_frame_free().Anton Khirnov
2013-12-03doc/examples/filtering_audio: init packet0.dataMichael Niedermayer
Fixes use of uinitialized data and crash Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-12-02doc/examples/filtering_audio: fix chunked audio decodingStefano Sabatini
Support the case when multiple frames are contained in a single packet. In particular, fix fate-samples/lossless-audio/luckynight-partial.shn sample decoding.
2013-12-02doc/examples/filtering_audio: fix styleStefano Sabatini
2013-12-02doc/examples/filtering_video: do not make use of AVBufferSinkParamsStefano Sabatini
Set the value on the filter context instead. Simplify.
2013-12-02doc/examples/filtering_video: add some error handling in init_filters()Stefano Sabatini
2013-12-02doc/examples/README: fix typoStefano Sabatini
2013-12-02doc/examples/filtering_audio: add more error checksStefano Sabatini
2013-12-02doc/examples/filtering: make use of av_err2str()Stefano Sabatini
Simplify.
2013-11-28doc/examples: update README.Clément Bœsch
2013-11-28doc/examples: make fill_samples static.Clément Bœsch
This is required to build with FFmpeg compilation options.
2013-11-28doc/examples: add transcode_aac to local Makefile.Clément Bœsch
2013-11-27doc/examples/transcode_aac: remove non converted codepathMichael Niedermayer
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>
2013-11-27doc/examples/transcode_aac: switch to swresampleMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-11-27doc/examples/transcode_aac: fix project nameMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-11-27Merge remote-tracking branch 'qatar/master'Michael Niedermayer
* qatar/master: Add an audio transcoding example. Conflicts: configure doc/Makefile Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-11-27Add an audio transcoding example.Andreas Unterweger
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2013-11-25build: Integrate multilibrary examples into the build systemDiego Biurrun
This includes moving libavformat/output-example to doc/examples/output.
2013-11-22doc/examples: do not check NULL values for avcodec_close()Stefano Sabatini
avcodec_close() does nothing in case the argument is NULL. Simplify.
2013-11-19doc/examples: fix mem issues in filtering_video.Clément Bœsch
2013-11-17Merge commit '5b9c3b4505206143d85398c1410949319fa1180f'Michael Niedermayer
* 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>
2013-11-04doc/examples: rename demuxing to demuxing_decoding.Clément Bœsch
That example shows how the decoding process works, not only the demuxing.
2013-11-04doc/examples/demuxing: show how to use the reference counting system.Clément Bœsch
2013-10-30doc/examples/demuxing: reset got_frame.Clément Bœsch
Fix infinite loop at flushing.
2013-09-04doc/examples: fix lib math dep for resampling_audio.Clément Bœsch
It uses at least sin()
2013-09-04doc/examples: remove extra "the".Clément Bœsch
"into the doc/examples directory" vs "into doc/examples".
2013-08-04doc/examples/filtering_audio: make const arrays also staticMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-07-19examples: demuxing: print ffplay command even if sample format is planarwm4
Adjust the code so that a working ffplay command is printed in the planar audio case.
2013-07-19examples: demuxing: simplify audio outputwm4
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.
2013-07-19examples: demuxing: do partial audio packet decodingwm4
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.
2013-07-06examples/muxing: add support to audio resamplingStefano Sabatini
Allows to encode to output in case the destination sample format is different from AV_SAMPLE_FMT_S16.
2013-07-03lavfi: create Libav-API compatibility layer for avfilter_graph_parse() at ↵Stefano Sabatini
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.
2013-07-03examples/muxing: make more compact audio/video_time computationStefano Sabatini
2013-06-27examples/muxing: rename audio/video_pts to audio/video_timeStefano Sabatini
The new name is less confusing, since the variables represent times rather than timestamps.