summaryrefslogtreecommitdiffstats
path: root/doc/examples
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-08-151-26/+45
| | | | | | | | | | | | | | | | | | | | | | * qatar/master: rtmp: Add support for SWFVerification api-example: use new video encoding API. x86: avcodec: Appropriately name files containing only init functions mpegvideo_mmx_template: drop some commented-out cruft libavresample: add mix level normalization option w32pthreads: Add missing #includes to make header compile standalone rtmp: Gracefully ignore _checkbw errors by tracking them rtmp: Do not send _checkbw calls as notifications prores: interlaced ProRes encoding Conflicts: doc/examples/decoding_encoding.c libavcodec/proresenc_kostya.c libavcodec/w32pthreads.h libavcodec/x86/Makefile libavformat/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-08-091-17/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (23 commits) build: cosmetics: Reorder some lists in a more logical fashion x86: pngdsp: Fix assembly for OS/2 fate: add test for RTjpeg in nuv with frameheader rtmp: send check_bw as notification g723_1: clip argument for 15-bit version of normalize_bits() g723_1: use all LPC vectors in formant postfilter id3v2: Support v2.2 PIC avplay: fix build with lavfi disabled. avconv: split configuring filter configuration to a separate file. avconv: split option parsing into a separate file. mpc8: do not leave padding after last frame in buffer for the next decode call mpegaudioenc: list supported channel layouts. mpegaudiodec: don't print an error on > 1 frame in a packet. api-example: update to new audio encoding API. configure: add --enable/disable-random option doc: cygwin: Update list of FATE package requirements build: Remove all installed headers and header directories on uninstall build: change checkheaders to use regular build rules rtmp: Add a new option 'rtmp_subscribe' rtmp: Add support for subscribing live streams ... Conflicts: Makefile common.mak configure doc/examples/decoding_encoding.c ffmpeg.c libavcodec/g723_1.c libavcodec/mpegaudiodec.c libavcodec/x86/pngdsp.asm libavformat/version.h library.mak tests/fate/video.mak Merged-by: Michael Niedermayer <michaelni@gmx.at>
* Merge commit '36ef5369ee9b336febc2c270f8718cec4476cb85'Michael Niedermayer2012-08-072-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '36ef5369ee9b336febc2c270f8718cec4476cb85': Replace all CODEC_ID_* with AV_CODEC_ID_* lavc: add AV prefix to codec ids. Conflicts: doc/APIchanges doc/examples/decoding_encoding.c doc/examples/muxing.c ffmpeg.c ffprobe.c ffserver.c libavcodec/8svx.c libavcodec/avcodec.h libavcodec/dnxhd_parser.c libavcodec/dvdsubdec.c libavcodec/error_resilience.c libavcodec/h263dec.c libavcodec/libvorbisenc.c libavcodec/mjpeg_parser.c libavcodec/mjpegenc.c libavcodec/mpeg12.c libavcodec/mpeg4videodec.c libavcodec/mpegvideo.c libavcodec/mpegvideo_enc.c libavcodec/pcm.c libavcodec/r210dec.c libavcodec/utils.c libavcodec/v210dec.c libavcodec/version.h libavdevice/alsa-audio-dec.c libavdevice/bktr.c libavdevice/v4l2.c libavformat/asfdec.c libavformat/asfenc.c libavformat/avformat.h libavformat/avidec.c libavformat/caf.c libavformat/electronicarts.c libavformat/flacdec.c libavformat/flvdec.c libavformat/flvenc.c libavformat/framecrcenc.c libavformat/img2.c libavformat/img2dec.c libavformat/img2enc.c libavformat/ipmovie.c libavformat/isom.c libavformat/matroska.c libavformat/matroskadec.c libavformat/matroskaenc.c libavformat/mov.c libavformat/movenc.c libavformat/mp3dec.c libavformat/mpeg.c libavformat/mpegts.c libavformat/mxf.c libavformat/mxfdec.c libavformat/mxfenc.c libavformat/nsvdec.c libavformat/nut.c libavformat/oggenc.c libavformat/pmpdec.c libavformat/rawdec.c libavformat/rawenc.c libavformat/riff.c libavformat/sdp.c libavformat/utils.c libavformat/vocenc.c libavformat/wtv.c libavformat/xmv.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
* examples/muxing: set codec in the codec contextStefano Sabatini2012-08-071-19/+20
| | | | | | | | | | | | Make add_{audio,video}_stream return the found codec, and pass it to avcodec_open2() through open_{audio,video} functions. Fix failure: No codec provided to avcodec_open2(). could not open codec This is also consistent with the use of the avcodec_open2() API in the codebase.
* examples/muxing: drop duplicated code in add_video_stream()Stefano Sabatini2012-08-051-6/+0
|
* examples/muxing: simplify alloc_picture()Stefano Sabatini2012-08-051-15/+3
| | | | Use avpicture_alloc() high level function.
* examples/filtering: fix packet memleakGavin Kinsey2012-06-262-2/+2
| | | | | | | Free packets unconditionally after demuxing, and not only when the packets belong to a given stream. Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* examples/filtering_video: update to the new APIGavin Kinsey2012-06-261-9/+25
| | | | | | Update the video filtering example program based on the audio one. Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
* examples/filtering_audio: update for avfilter API "cleanup"Michael Niedermayer2012-06-241-5/+7
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* update filtering_audio exampleAndrew Wason2012-06-052-3/+5
| | | | | | | The filtering_audio.c example needs to be updated for the new "abuffer" filter args. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* doc/examples: make use of the parameter filters_descr parameter in ↵Clément Bœsch2012-05-192-2/+2
| | | | init_filters().
* doc/examples: fix pts heuristic in filtering_video.Clément Bœsch2012-05-191-3/+2
| | | | | Note: the condition looked wrong in the first place ("if DTS is not defined, then set PTS to that undefined value [...]").
* doc/examples: properly close input in metadata.Clément Bœsch2012-05-191-1/+1
| | | | Avoid some memleaks.
* doc/examples: print operation filename in decoding_encoding.Clément Bœsch2012-05-191-4/+4
|
* doc/examples: add debug compilation flag.Clément Bœsch2012-05-191-1/+1
|
* doc/examples: use system headers in decoding_encoding and muxing.Clément Bœsch2012-05-192-8/+8
| | | | All the other examples already use the system installed headers.
* doc/examples: remove explicit rules.Clément Bœsch2012-05-191-6/+0
| | | | These rules are already in gmake builtins.
* doc/examples: add libavr to libraries to avoid link failures.Clément Bœsch2012-05-191-0/+1
|
* lavfi: drop planar/packed negotiation supportStefano Sabatini2012-05-161-3/+1
| | | | | | | | | The planar/packed switch and the packing_formats list is no longer required, since the planar/packed information is now stored in the sample format enum. This is technically a major API break, possibly it should be not too painful as we marked the audio filtering API as unstable.
* doc/examples: add libswresample in the libraries.Clément Bœsch2012-05-121-0/+1
| | | | It is required for audio filtering.
* doc/examples: use buffersrc.h instead of deprecated asrc_abuffer.h.Clément Bœsch2012-05-121-1/+1
|
* doc/examples: fix typo.Clément Bœsch2012-05-121-1/+1
|
* doc/examples: add -O2 in CFLAGS.Clément Bœsch2012-05-121-2/+3
|
* doc/examples: add missing math.h include in decoding/encoding example.Clément Bœsch2012-05-121-0/+2
| | | | The header is required for the sin() function.
* doc/examples: link decoding_encoding and muxing with math lib.Clément Bœsch2012-05-121-0/+4
| | | | These two examples use the sin() function.
* doc/examples: rename LDFLAGS to LDLIBS.Clément Bœsch2012-05-121-3/+3
|
* doc/examples/Makefile: split lines up to make diffs that change them clearerMichael Niedermayer2012-05-081-2/+12
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* examples/filtering_audio: use av_buffersrc_add_frame.Nicolas George2012-05-041-10/+1
|
* examples/decoding_encoding: fix encoding when all frames got buffered.Michael Niedermayer2012-05-031-1/+4
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* examples/filtering_audio: do not stop on decode error.Nicolas George2012-04-281-1/+1
| | | | | Decode errors can happen with concatenated MP3s with different formats.
* examples/filtering_audio: fix a memory leak.Nicolas George2012-04-281-0/+1
|
* examples/decoding_encoding: remove unused variable "size"Stefano Sabatini2012-04-131-1/+1
| | | | | | | Remove unused variable size from video_encode_example() function. Fix GCC warning: decoding_encoding.c:214:22: warning: unused variable ‘size’ [-Wunused-variable]
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-03-301-93/+99
| | | | | | | | | | | | | | | | | | | | | * qatar/master: h264: drop ff_h264_ prefix from static function ff_h264_decode_rbsp_trailing() h264: Make ff_h264_decode_end() static, it is not used externally. output-example: K&R formatting cosmetics, comment spelling fixes avf: make the example output the proper message avf: fix audio writing in the output-example mov: don't overwrite existing indexes. lzw: fix potential integer overflow. truemotion: forbid invalid VLC bitsizes and token values. truemotion2: handle out-of-frame motion vectors through edge extension. configure: Check for a different SDL function Conflicts: configure doc/examples/muxing.c libavcodec/truemotion2.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
* doc/examples/decoding_encoding: make the buffer bigger.Michael Niedermayer2012-03-221-1/+1
| | | | | | This should be converted to the new API Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-02-251-52/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: docs: use -bsf:[vas] instead of -[vas]bsf. mpegaudiodec: Prevent premature clipping of mp3 input buffer. lavf: move the packet keyframe setting code. oggenc: free comment header for all codecs lcl: error out if uncompressed input buffer is smaller than framesize. mjpeg: abort decoding if packet is too large. golomb: use HAVE_BITS_REMAINING() macro to prevent infloop on EOF. get_bits: add HAVE_BITS_REMAINING macro. lavf/output-example: use new audio encoding API correctly. lavf/output-example: more proper usage of the new API. tiff: Prevent overreads in the type_sizes array. tiff: Make the TIFF_LONG and TIFF_SHORT types unsigned. apetag: do not leak memory if avio_read() fails apetag: propagate errors. SBR DSP x86: implement SSE sbr_hf_g_filt SBR DSP x86: implement SSE sbr_sum_square_sse SBR DSP: use intptr_t for the ixh parameter. Conflicts: doc/bitstream_filters.texi doc/examples/muxing.c doc/ffmpeg.texi libavcodec/golomb.h libavcodec/x86/Makefile libavformat/oggenc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
* doc/examples: rename filtering.c into filtering_video.c.Clément Bœsch2012-02-212-1/+1
|
* doc/examples: add audio decoding/filtering example.Clément Bœsch2012-02-212-1/+246
| | | | | | Mostly based on doc/examples/filtering.c. lavfi API is still limited to "buffer feeding" instead of "frame feeding" at the moment, so this example code sticks with it.
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-02-202-7/+7
| | | | | | | | | | | | | | | | * qatar/master: doxy: remove reference to removed api examples: unbreak compilation ttadec: cosmetics: reindent sunrast: use RLE trigger macro inplace of the hard coded value. sunrastenc: set keyframe flag for the output packet. mpegvideo_enc: switch to encode2(). mpegvideo_enc: force encoding delay of at least 1 frame when low_delay=0 Conflicts: doc/examples/muxing.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
* examples: add -Wall to CFLAGS.Clément Bœsch2012-02-191-1/+1
|
* examples/filtering: fix unused variable and return value in open_input_file().Clément Bœsch2012-02-191-1/+2
|
* examples/filtering: fix deprecated function calls warnings.Clément Bœsch2012-02-191-4/+4
|
* examples/filtering: fix implicit declarations and function mis-usage.Clément Bœsch2012-02-191-2/+4
|
* example: Update decoding/encoding example to the new API.Michael Niedermayer2012-01-281-3/+0
| | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* example: update muxing example to purple APIMichael Niedermayer2012-01-281-1/+1
| | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* decoding example: reset pts/dts after subpacket.Michael Niedermayer2011-12-131-0/+2
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-12-091-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: cljr: K&R cosmetics cljr: return a more sensible value when encountering invalid headers cljr: drop unnecessary emms_c() calls without MMX code cljr: remove useless casts cljr: group encode/decode parts under single ifdefs cljr: remove stray semicolon cljr: add missing return statement in decode_end() doc: add pulseaudio to the input list avconv: remove unsubstantiated comment shorten: avoid abort() on unknown audio types cljr: add encoder build: merge lists of HTML documentation targets tests/examples: Mark some variables only used within their files as static. tests/tools/examples: Replace direct exit() calls by return. x86 cpuid: set vendor union members separately cljr: release picture at end of decoding rv40: NEON optimised rv40 qpel motion compensation Conflicts: doc/examples/muxing.c libavcodec/cljr.c libavcodec/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-12-061-9/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: mov: Don't av_malloc(0). avconv: only allocate 1 AVFrame per input stream avconv: fix memleaks due to not freeing the AVFrame for audio h264-fate: remove -strict 1 except where necessary (mr4/5-tandberg). misc Doxygen markup improvements doxygen: eliminate Qt-style doxygen syntax g722: Add a regression test for muxing/demuxing in wav g722: Change bits per sample to 4 g722dec: Signal skipping the lower bits via AVOptions instead of bits_per_coded_sample api-example: update to use avcodec_decode_audio4() avplay: use avcodec_decode_audio4() avplay: use a separate buffer for playing silence avformat: use avcodec_decode_audio4() in avformat_find_stream_info() avconv: use avcodec_decode_audio4() instead of avcodec_decode_audio3() mov: Allow empty stts atom. doc: document preferred Doxygen syntax and make patcheck detect it Conflicts: avconv.c ffplay.c libavcodec/mlpdec.c libavcodec/version.h libavformat/mov.c tests/codec-regression.sh tests/fate/h264.mak Merged-by: Michael Niedermayer <michaelni@gmx.at>
* doc/example/muxing: fix video timestampsMichael Niedermayer2011-12-021-1/+2
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* muxing example: set encoder defaultsMichael Niedermayer2011-12-021-1/+10
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Fix various if parenthesis misplacements.Clément Bœsch2011-11-211-1/+1
|
OpenPOWER on IntegriCloud