aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples
Commit message (Collapse)AuthorAgeFilesLines
* doc/examples: do not allocate AVFrame directly.Nicolas George2013-02-172-9/+19
| | | | | | | The size of the AVFrame structure is not part of the ABI; it can grow with later versions. Therefore, applications are not supposed to allocate AVFrame directly, they are supposed to use avcodec_alloc_frame() instead.
* examples/scaling_video: fix typoStefano Sabatini2013-02-151-1/+1
|
* examples/demuxing: free AVPacket after usageAngelo Haller2013-01-151-1/+3
| | | | Fix leak.
* doc/examples: fix assignments in if()Michael Niedermayer2013-01-142-2/+2
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* examples/muxing: improve error messages.Nicolas George2013-01-021-17/+28
| | | | | Illustrate the use of return values, av_err2str and avcodec_get_name.
* doc/examples/resampling_audio.c: fix pathMichael Niedermayer2012-12-161-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* examples: add resampling_audio.c fileStefano Sabatini2012-12-062-0/+224
|
* Merge commit '97bf7c03b1338a867da52c159a2afecbdedcfa88'Michael Niedermayer2012-11-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '97bf7c03b1338a867da52c159a2afecbdedcfa88': doc: git-howto: Leave reviewers time to react before pushing patches Include libavutil/channel_layout.h instead of libavutil/audioconvert.h lavu: rename audioconvert.* to channel_layout.* and deprecate audioconvert.h Conflicts: doc/APIchanges doc/examples/decoding_encoding.c doc/git-howto.texi ffmpeg_filter.c libavcodec/flacdec.c libavcodec/imc.c libavcodec/mpegaudiodec.c libavcodec/utils.c libavfilter/asrc_anullsrc.c libavfilter/audio.c libavfilter/avfilter.c libavfilter/avfilter.h libavfilter/avfiltergraph.c libavfilter/buffer.c libavutil/Makefile libavutil/audioconvert.h libavutil/channel_layout.c libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
* examples/muxing: fix typo: allocated -> allocateStefano Sabatini2012-11-061-1/+1
|
* examples/demuxing: fix brainoStefano Sabatini2012-11-061-1/+1
| | | | s/video/audio/ in a log message.
* examples/demuxing: dump input information *after* trying to open audio streamStefano Sabatini2012-11-061-3/+3
| | | | Implement more logical code flow.
* examples: fix doxy so they appear on the example pageMichael Niedermayer2012-10-267-0/+7
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* examples/decoding_encoding: add and use the decode_write_frame functionStefano Sabatini2012-10-241-33/+32
| | | | Allow to factorize code in video_decode_example(), simplify.
* examples/decoding_encoding: prefer 'frame' over 'picture' for an AVFrameStefano Sabatini2012-10-201-19/+19
| | | | Decrease confusion.
* examples/scaling_video: remove unnecessary intermediary variable in ↵Stefano Sabatini2012-10-201-6/+4
| | | | fill_yuv_frame()
* examples/decoding_encoding: fix misc typos in the usage textStefano Sabatini2012-10-201-2/+2
|
* examples/decoding_encoding: remove misplaced and confusing commentStefano Sabatini2012-10-201-2/+0
|
* examples/decoding_encoding: add missing checks on avcodec_alloc_context3()Stefano Sabatini2012-10-201-0/+17
|
* examples/muxing: merge add_audio_stream() and add_video_stream()Stefano Sabatini2012-10-171-70/+55
| | | | Factorize.
* examples/muxing: check on frameStefano Sabatini2012-10-171-1/+2
| | | | Fix crash in case frame is not defined (e.g. with muxing out.wav).
* examples/muxing: fix bogus setting of st->idStefano Sabatini2012-10-171-3/+2
|
* examples/muxing: remove misleading comment about pending API changeStefano Sabatini2012-10-171-2/+1
| | | | | The API was never changed since 2003. Replace with a comment about the performed operation.
* examples/muxing: remove video_outbuf unused and useless codeStefano Sabatini2012-10-171-15/+1
|
* examples/muxing: fix video ptsMichael Niedermayer2012-10-171-4/+1
| | | | | | Fixes Ticket1801 Based on suggestion from AztecC Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* examples: add README file with simple compilation instructionsStefano Sabatini2012-10-161-0/+18
|
* examples/muxing: extend usage noticeStefano Sabatini2012-10-151-1/+3
|
* examples/muxing: provide more information in case of avcodec_open2 failureStefano Sabatini2012-10-151-2/+2
|
* examples/muxing: add missing error checksStefano Sabatini2012-10-151-2/+11
|
* examples/muxing: fix case inconsistency in messageStefano Sabatini2012-10-151-1/+1
|
* Merge commit '716d413c13981da15323c7a3821860536eefdbbb'Michael Niedermayer2012-10-084-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '716d413c13981da15323c7a3821860536eefdbbb': Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat Conflicts: doc/examples/muxing.c ffmpeg.h ffmpeg_filter.c ffmpeg_opt.c ffplay.c ffprobe.c libavcodec/8bps.c libavcodec/aasc.c libavcodec/aura.c libavcodec/avcodec.h libavcodec/avs.c libavcodec/bfi.c libavcodec/bmp.c libavcodec/bmpenc.c libavcodec/c93.c libavcodec/cscd.c libavcodec/cyuv.c libavcodec/dpx.c libavcodec/dpxenc.c libavcodec/eatgv.c libavcodec/escape124.c libavcodec/ffv1.c libavcodec/flashsv.c libavcodec/fraps.c libavcodec/h264.c libavcodec/huffyuv.c libavcodec/iff.c libavcodec/imgconvert.c libavcodec/indeo3.c libavcodec/kmvc.c libavcodec/libopenjpegdec.c libavcodec/libopenjpegenc.c libavcodec/libx264.c libavcodec/ljpegenc.c libavcodec/mjpegdec.c libavcodec/mjpegenc.c libavcodec/motionpixels.c libavcodec/mpeg12.c libavcodec/mpeg12enc.c libavcodec/mpeg4videodec.c libavcodec/mpegvideo_enc.c libavcodec/pamenc.c libavcodec/pcxenc.c libavcodec/pgssubdec.c libavcodec/pngdec.c libavcodec/pngenc.c libavcodec/pnm.c libavcodec/pnmdec.c libavcodec/pnmenc.c libavcodec/ptx.c libavcodec/qdrw.c libavcodec/qpeg.c libavcodec/qtrleenc.c libavcodec/raw.c libavcodec/rawdec.c libavcodec/rl2.c libavcodec/sgidec.c libavcodec/sgienc.c libavcodec/snowdec.c libavcodec/snowenc.c libavcodec/sunrast.c libavcodec/targa.c libavcodec/targaenc.c libavcodec/tiff.c libavcodec/tiffenc.c libavcodec/tmv.c libavcodec/truemotion2.c libavcodec/utils.c libavcodec/vb.c libavcodec/vp3.c libavcodec/wnv1.c libavcodec/xl.c libavcodec/xwddec.c libavcodec/xwdenc.c libavcodec/yop.c libavdevice/v4l2.c libavdevice/x11grab.c libavfilter/avfilter.c libavfilter/avfilter.h libavfilter/buffersrc.c libavfilter/drawutils.c libavfilter/formats.c libavfilter/src_movie.c libavfilter/vf_ass.c libavfilter/vf_drawtext.c libavfilter/vf_fade.c libavfilter/vf_format.c libavfilter/vf_hflip.c libavfilter/vf_lut.c libavfilter/vf_overlay.c libavfilter/vf_pad.c libavfilter/vf_scale.c libavfilter/vf_transpose.c libavfilter/vf_yadif.c libavfilter/video.c libavfilter/vsrc_testsrc.c libavformat/movenc.c libavformat/mxf.h libavformat/utils.c libavformat/yuv4mpeg.c libavutil/imgutils.c libavutil/pixdesc.c libswscale/input.c libswscale/output.c libswscale/swscale_internal.h libswscale/swscale_unscaled.c libswscale/utils.c libswscale/x86/swscale_template.c libswscale/x86/yuv2rgb.c libswscale/x86/yuv2rgb_template.c libswscale/yuv2rgb.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
* Merge commit '7751e4693dd10ec98c20fbd9887233b575034272'Michael Niedermayer2012-09-252-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | * commit '7751e4693dd10ec98c20fbd9887233b575034272': ogg: check that the expected number of headers had been parsed libx264: change default to closed gop to match x264cli Use avcodec_free_frame() to free AVFrames. lavf: use a malloced AVFrame in try_decode_frame(). lavc: add avcodec_free_frame(). lavc: ensure extended_data is set properly on decoding lavc: initialize AVFrame.extended_data in avcodec_get_frame_defaults() lavc: use av_mallocz to allocate AVFrames. lavc: rename the argument of avcodec_alloc_frame/get_frame_defaults Conflicts: doc/APIchanges doc/examples/decoding_encoding.c libavcodec/utils.c libavcodec/version.h libavfilter/src_movie.c libavformat/oggdec.c libavformat/oggdec.h libavformat/oggparsetheora.c libavformat/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
* examples/decoding_encoding: clarify operations in the usage messageStefano Sabatini2012-09-131-0/+3
|
* examples/decoding_encoding: replace "picture" with "frame" in encode_example()Stefano Sabatini2012-09-131-14/+14
| | | | The use of "picture" in place of "frame" is confusing.
* examples/decoding_encoding: apply various message log fixesStefano Sabatini2012-09-131-26/+26
|
* examples/muxing: add check on avformat_write_header() resultStefano Sabatini2012-09-111-1/+4
|
* examples/muxing: apply misc fixes to log messagesStefano Sabatini2012-09-111-5/+5
|
* examples/muxing: rename img_convert_ctx to sws_ctxStefano Sabatini2012-09-111-9/+7
| | | | | The new name is more consistent with the codebase, and more self-consistent with the libswscale API.
* examples/muxing: merge some declarations and definitionsStefano Sabatini2012-09-111-6/+2
|
* examples/muxing: prefer AVPicture to AVFrame, when feasibleStefano Sabatini2012-09-111-29/+29
| | | | | | | Favor the use of plain AVPicture over AVFrame, especially when the use of AVFrame is not required like in the case of tmp_picture. Also adopt more straightforward names, to avoid frame/picture confusion.
* examples/demuxing: add audio decoding/demuxingStefano Sabatini2012-09-111-79/+225
|
* 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.