summaryrefslogtreecommitdiffstats
path: root/libavformat/img2enc.c
Commit message (Collapse)AuthorAgeFilesLines
* avformat/img2enc: mention -frames:v in error messageLou Logan2019-01-221-1/+2
| | | | | Signed-off-by: Lou Logan <lou@lrcd.com> Signed-off-by: Kieran O Leary <kieran.o.leary@gmail.com>
* avformat: migrate to AVFormatContext->urlMarton Balint2018-01-281-2/+2
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/img2enc: add frame_pts option for make output filenameSteven Liu2017-11-131-0/+7
| | | | | | | | fix ticket id: #1452 when use frame_pts option, the output image name can be set with PTS of current frame. Signed-off-by: Steven Liu <lq@onvideo.cn>
* lavf/img2enc: remove redundant option 'updatefirst'Gyan Doshi2017-11-011-2/+1
| | | | 'updatefirst' is an undocumented option redundant to older option 'update'. Since it doesn't serve as a shorthand, this patch removes it.
* avformat/img2enc: remove av_dup_packet() callJames Almer2017-09-251-1/+0
| | | | | | It's unnecessary after a call to av_packet_ref(). Signed-off-by: James Almer <jamrial@gmail.com>
* avformat: replace all uses of av_copy_packet()James Almer2017-09-251-1/+1
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* Add FITS MuxerParas Chadha2017-08-301-0/+2
| | | | Signed-off-by: Paras Chadha <paraschadha18@gmail.com>
* Revert "img2 encoder: allow %t in filename, based on patch from Yuval Adam"Michael Niedermayer2016-11-011-4/+2
| | | | | | | breaks API Found-by: jamrial This reverts commit 1a956c64c8eff5edecb004fc7aafd21207e6485c.
* img2 encoder: allow %t in filename, based on patch from Yuval Adamrogerdpack2016-11-011-2/+4
| | | | | Signed-off-by: rogerdpack <rogerpack2005@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/img2enc: Use AV_FRAME_FILENAME_FLAGS_MULTIPLE, support tee:Michael Niedermayer2016-08-041-1/+3
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Merge commit '9200514ad8717c63f82101dc394f4378854325bf'Derek Buitenhuis2016-04-101-8/+8
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '9200514ad8717c63f82101dc394f4378854325bf': lavf: replace AVStream.codec with AVStream.codecpar This has been a HUGE effort from: - Derek Buitenhuis <derek.buitenhuis@gmail.com> - Hendrik Leppkes <h.leppkes@gmail.com> - wm4 <nfxjfg@googlemail.com> - Clément Bœsch <clement@stupeflix.com> - James Almer <jamrial@gmail.com> - Michael Niedermayer <michael@niedermayer.cc> - Rostislav Pehlivanov <atomnuker@gmail.com> Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * lavf: replace AVStream.codec with AVStream.codecparAnton Khirnov2016-02-231-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, AVStream contains an embedded AVCodecContext instance, which is used by demuxers to export stream parameters to the caller and by muxers to receive stream parameters from the caller. It is also used internally as the codec context that is passed to parsers. In addition, it is also widely used by the callers as the decoding (when demuxer) or encoding (when muxing) context, though this has been officially discouraged since Libav 11. There are multiple important problems with this approach: - the fields in AVCodecContext are in general one of * stream parameters * codec options * codec state However, it's not clear which ones are which. It is consequently unclear which fields are a demuxer allowed to set or a muxer allowed to read. This leads to erratic behaviour depending on whether decoding or encoding is being performed or not (and whether it uses the AVStream embedded codec context). - various synchronization issues arising from the fact that the same context is used by several different APIs (muxers/demuxers, parsers, bitstream filters and encoders/decoders) simultaneously, with there being no clear rules for who can modify what and the different processes being typically delayed with respect to each other. - avformat_find_stream_info() making it necessary to support opening and closing a single codec context multiple times, thus complicating the semantics of freeing various allocated objects in the codec context. Those problems are resolved by replacing the AVStream embedded codec context with a newly added AVCodecParameters instance, which stores only the stream parameters exported by the demuxers or read by the muxers.
* | avformat/img2enc: remove unused variableMichael Niedermayer2016-02-141-1/+0
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avformat/img2enc: disable atomic file creation by defaultMarton Balint2016-02-141-4/+1
| | | | | | | | | | | | | | | | | | Currently it is broken when explicitly using the file protocol, it uses an insecure temporary file name, and in commit b4431c80 disabling the option by default was already considered. Also it is not very consistent to have such an option for one particular muxer. Signed-off-by: Marton Balint <cus@passwd.hu>
* | avformat/img2enc: return error if image rename failsMarton Balint2016-02-141-1/+3
| | | | | | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* | Merge commit '9f61abc8111c7c43f49ca012e957a108b9cc7610'Derek Buitenhuis2016-02-101-6/+5
|\ \ | |/ | | | | | | | | | | | | | | This also deprecates our old duplicated callbacks. * commit '9f61abc8111c7c43f49ca012e957a108b9cc7610': lavf: allow custom IO for all files Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * lavf: allow custom IO for all filesAnton Khirnov2016-01-241-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Some (de)muxers open additional files beyond the main IO context. Currently, they call avio_open() directly, which prevents the caller from using custom IO for such streams. This commit adds callbacks to AVFormatContext that default to avio_open2()/avio_close(), but can be overridden by the caller. All muxers and demuxers using AVIO are switched to using those callbacks instead of calling avio_open()/avio_close() directly. (de)muxers that use the URLProtocol layer directly instead of AVIO remain unconverted for now. This should be fixed in later commits.
* | avutil: Rename FF_CEIL_COMPAT to AV_CEIL_COMPATDerek Buitenhuis2016-01-271-1/+1
| | | | | | | | | | | | | | | | | | | | Libav, for some reason, merged this as a public API function. This will aid in future merges. A define is left for backwards compat, just in case some person used it, since it is in a public header. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | lavf/img2enc: add atomic_writing optionClément Bœsch2015-12-211-1/+3
| | | | | | | | | | This behaviour change caused a regression on our side recently, we might want to disable the option by default.
* | avformat: use AV_OPT_TYPE_BOOL in a bunch of placesClément Bœsch2015-12-041-3/+3
| |
* | avformat/img2enc: re enable atomic writes with split planesMichael Niedermayer2015-10-281-4/+0
| | | | | | | | | | | | They work now after fixing the implementation Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avformat/img2enc: Fix img2enc atomic implementation to work with split planesMichael Niedermayer2015-10-271-6/+12
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avformat/img2enc: Disable rename&atomic writing for non file protocol and ↵Michael Niedermayer2015-10-271-3/+13
| | | | | | | | | | | | | | | | | | split planes For protocols other than local files ff_rename() is not implemented For split planes support the implementation is simply wrong Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Replace remaining occurances of av_free_packet with av_packet_unrefHendrik Leppkes2015-10-271-2/+2
| |
* | Merge commit '22f4d9c303ede1a240538fd105c97047db40dc86'Hendrik Leppkes2015-10-271-2/+5
|\ \ | |/ | | | | | | | | | | * commit '22f4d9c303ede1a240538fd105c97047db40dc86': img2enc: Make sure the images are atomically written Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * img2enc: Make sure the images are atomically writtenLuca Barbato2015-10-231-2/+5
| | | | | | | | | | Users that want to generate a live-preview and serve it would otherwise get partial images.
* | Replace all remaining occurances of step/depth_minus1 and offset_plus1Hendrik Leppkes2015-09-081-1/+1
| |
* | avformat: implement query_codec for the image2 muxer.tab2015-09-071-0/+14
| | | | | | | | | | | | | | Allows avformat_query_codec to be used to check for valid image2 encoders. Reuses the existing ff_guess_image2_codec ID table. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Merge commit 'daf8cf358a098a903d59adb6c0d0cc3262a8c93e'Michael Niedermayer2015-02-141-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'daf8cf358a098a903d59adb6c0d0cc3262a8c93e': avformat: Don't anonymously typedef structs Conflicts: libavformat/adtsenc.c libavformat/aiffenc.c libavformat/avidec.c libavformat/gif.c libavformat/iff.c libavformat/img2dec.c libavformat/jvdec.c libavformat/matroskadec.c libavformat/udp.c libavformat/wtvdec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avformat: Don't anonymously typedef structsDiego Biurrun2015-02-141-1/+1
| |
* | avformat/img2enc: Use avio_closep() to avoid leaving stale pointers in memoryMichael Niedermayer2015-01-081-4/+4
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/img2enc: Use localtime_r() for thread safteyMichael Niedermayer2014-11-021-2/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/img2enc: remove webp extension as we have a dedicated webp muxerMichael Niedermayer2014-11-021-1/+1
| | | | | | | | | | Found-by: jamrial Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Allow .y as extension for image2.Carl Eugen Hoyos2014-04-051-1/+1
| |
* | Merge commit 'e50f5d3cf9ef9a16982a5cb4d8b1916cd963aa5b'Michael Niedermayer2014-03-271-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | * commit 'e50f5d3cf9ef9a16982a5cb4d8b1916cd963aa5b': Alias PIX image encoder and decoder Conflicts: Changelog libavcodec/allcodecs.c libavcodec/version.h libavformat/img2enc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Alias PIX image encoder and decoderVittorio Giovara2014-03-261-1/+1
| |
| * img2: add j2c file extensionJean First2014-03-161-1/+1
| | | | | | | | Some applications use the j2c extension for jpeg2000 codestream files.
* | Merge commit 'be7c323176e2e5fcf30e3d2ff20975b2f936811b'Michael Niedermayer2013-12-221-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | * commit 'be7c323176e2e5fcf30e3d2ff20975b2f936811b': Add a libwebp encoder Conflicts: Changelog doc/encoders.texi doc/general.texi libavcodec/version.h libavformat/img2enc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Add a libwebp encoderJustin Ruggles2013-12-211-1/+1
| |
* | avformat/img2enc: simplify split planes extension selection.Clément Bœsch2013-11-071-1/+1
| |
* | avformat/img2enc: reindent after previous commit.Clément Bœsch2013-11-071-7/+6
| |
* | avformat/image2: allow muxing gif files.Clément Bœsch2013-11-071-3/+39
| | | | | | | | Fixes Ticket #2936.
* | avformat: remove duplicate includesMichael Niedermayer2013-09-211-1/+0
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavf/image2: extend start_number range to accept zeroStefano Sabatini2013-08-221-1/+1
| | | | | | | | Address trac ticket #2884.
* | img2enc: add option to use strftime() for filenameRamiro Polla2013-07-191-0/+11
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavf/img2enc: use FF_CEIL_RSHIFT().Clément Bœsch2013-05-161-1/+1
| |
* | replace remaining PIX_FMT_* flags with AV_PIX_FMT_FLAG_*Michael Niedermayer2013-05-151-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Recognize j2k as file suffix for the image2 muxer.Carl Eugen Hoyos2013-04-291-1/+1
| |
* | Merge commit '9e6b5e61a0c91e25e298d0a21b189c4c95443795'Michael Niedermayer2013-04-111-4/+7
|\ \ | |/ | | | | | | | | | | | | | | | | | | * commit '9e6b5e61a0c91e25e298d0a21b189c4c95443795': img2enc: add an option for overwriting one file with subsequent images Conflicts: doc/muxers.texi libavformat/img2enc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * img2enc: add an option for overwriting one file with subsequent imagesAnton Khirnov2013-04-111-2/+6
| | | | | | | | Based on a patch by Michael Niedermayer <michaelni@gmx.at>.
OpenPOWER on IntegriCloud