summaryrefslogtreecommitdiffstats
path: root/doc/examples
Commit message (Collapse)AuthorAgeFilesLines
* examples/scaling_video: write to rawvideo fileStefano Sabatini2012-09-042-26/+28
| | | | | This is more useful for testing purposes. Also allow to specify the name of the output file.
* examples: add demuxing.c exampleStefano Sabatini2012-09-022-0/+194
|
* avoid ambigous buffersink namesMichael Niedermayer2012-09-012-2/+2
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* examples/scaling_video: add logging in case of image allocation failureStefano Sabatini2012-08-301-2/+6
|
* examples/muxing: remove pointless #undef exitStefano Sabatini2012-08-301-2/+0
|
* examples/scaling_video: consistently use printf rather than av_log()Stefano Sabatini2012-08-301-8/+8
|
* examples/scaling_video: add file doxyStefano Sabatini2012-08-301-0/+5
|
* examples/Makefile: give priority to pkg-config flagsStefano Sabatini2012-08-301-2/+2
| | | | | | | | | | In case CFLAGS/LDLIBS are already defined and conflicting with the pkg-config flags, give priority to the latter since they are used to detect compilation flags. This should fix for example the case where there are many different instances of a library, CFLAGS=-I/foo/include and pkg-config cflags say -I/bar/include.
* examples/Makefile: remove duplicated -f switchStefano Sabatini2012-08-281-2/+2
| | | | | | $(RM) already includes that flag. Spotted-by: ubitux
* examples: add scaling_video exampleStefano Sabatini2012-08-282-1/+133
| | | | | | | | This example should be useful to show the basic functionality of the libswscale API. More advanced features (scaling options etc., colorspace tweaking) may be added later.
* examples/decoding_encoding: make operation logic more self-evident / predictableStefano Sabatini2012-08-271-9/+18
| | | | | Add a switch which controls which operation to perform. Useful to test only a single feature. Also the new behavior is more self-consistent.
* examples/Makefile: apply misc minor fixes to the RM ruleStefano Sabatini2012-08-271-2/+2
| | | | Use $(RM) in place of rm, drop useless "-r" for removing files.
* examples/decoding_encoding: store temporary files in current dirStefano Sabatini2012-08-272-9/+12
| | | | | | | | Do not clutter the temporary directory with files, also "/tmp" is not always available, e.g. in Windows. Also add the clean-test Makefile rule, which will clean the generated files.
* examples/decoding_encoding.c: tell where the decoding output files are printedStefano Sabatini2012-08-241-2/+2
|
* examples/muxing: update to the new avcodec_encode_video2() APIStefano Sabatini2012-08-241-9/+15
|
* examples/decoding_encoding: flush audio frames in the encoderStefano Sabatini2012-08-221-0/+14
|
* examples/decoding_encoding: re-organize frame configuration codeStefano Sabatini2012-08-221-7/+15
| | | | | Put the relevant code in one chunk, also check for frame allocation failures.
* examples/muxing: cast sws_scale() argument to the expected oneStefano Sabatini2012-08-221-1/+2
| | | | | | Fix warnings: muxing.c: In function ‘write_video_frame’: muxing.c:326:23: warning: passing argument 2 of ‘sws_scale’ from incompatible pointer type [enabled by default]
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-08-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: Fix even more missing includes after the common.h removal build: Factor out rangecoder dependencies to CONFIG_RANGECODER build: Factor out error resilience dependencies to CONFIG_ERROR_RESILIENCE x86: avcodec: Consistently name all init files Add more missing includes after removing the implicit common.h Add some more missing includes after removing the implicit common.h Don't include common.h from avutil.h rtmp: Automatically compute the hash for SWFVerification Conflicts: configure doc/APIchanges doc/examples/decoding_encoding.c libavcodec/Makefile libavcodec/assdec.c libavcodec/audio_frame_queue.c libavcodec/avpacket.c libavcodec/dv_profile.c libavcodec/dwt.c libavcodec/libtheoraenc.c libavcodec/rawdec.c libavcodec/rv40dsp.c libavcodec/tiff.c libavcodec/tiffenc.c libavcodec/v210dec.h libavcodec/vc1dsp.c libavcodec/x86/Makefile libavfilter/asrc_anullsrc.c libavfilter/avfilter.c libavfilter/buffer.c libavfilter/formats.c libavfilter/vf_ass.c libavfilter/vf_drawtext.c libavfilter/vf_fade.c libavfilter/vf_select.c libavfilter/video.c libavfilter/vsrc_testsrc.c libavformat/version.h libavutil/audioconvert.c libavutil/error.h libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
* 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
|
OpenPOWER on IntegriCloud