summaryrefslogtreecommitdiff
path: root/libavformat/oggenc.c
Commit message (Collapse)AuthorAge
* oggenc: add a page_duration option and deprecate the pagesize optionJustin Ruggles2013-01-08
| | | | | | | | | | | This uses page duration instead of byte size to determine when to buffer the page. Also, it tries to avoid continued pages by buffering the current page if there are already packets in the page and adding the next packet would require it to be continued on a new page. This can improve seeking performance. The default page duration is 1 second, which is much saner than filling all page segments by default.
* Add Opus support to the Ogg muxer.Nathan Caldwell2012-09-27
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* avopt: Store defaults for AV_OPT_TYPE_INT in the i64 union memberMartin Storsjö2012-09-04
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-07
|
* oggenc: fix condition when not to flush due to keyframe granule.Reimar Döffinger2012-03-30
| | | | | | | | | | | | | | The previous condition of 0 page size was wrong, that would disable the mechanism for all frames at a start of a page, thus some keyframes still would not get their own granule. The real problem is that header packets must not be flushed, but they have (and must have) 0 granule and thus would be detected as keyframes. Add a separate parameter to mark header packets. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* oggenc: add pagesize option to set preferred page sizeAndres Gonzalez2012-03-30
| | | | | | | | When set, if an Ogg stream buffer has enough data, a page is made instead of filling maximum-size pages. Using smaller pages results smaller seek intervals at the expense of higher container overhead. Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* oggenc: free comment header for all codecsJustin Ruggles2012-02-24
| | | | | | fixes a memleak for Vorbis and Theora, where the comment header from avpriv_split_xiph_headers() is replaced by a buffer that must be freed separately.
* lavf: make av_set_pts_info private.Anton Khirnov2011-11-30
| | | | It's supposed to be called only from (de)muxers.
* Replace vendor string in Ogg and FLAC muxers.Diego Biurrun2011-11-02
|
* lavc: use avpriv_ prefix for ff_split_xiph_headers.Anton Khirnov2011-10-20
| | | | It's used in lavf.
* lavc: use avpriv_ prefix for some flac symbols used in lavf.Anton Khirnov2011-10-20
| | | | | Specifically, ff_flac_parse_streaminfo, ff_flac_is_extradata_valid and ff_flac_parse_block_header
* lavf: use designated initialisers for all (de)muxers.Anton Khirnov2011-07-17
| | | | It's more readable and less prone to breakage.
* Do not include mathematics.h in avutil.hMans Rullgard2011-07-03
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Remove all uses of now deprecated metadata functions.Anton Khirnov2011-06-08
|
* avio: avio_ prefix for url_close_dyn_bufAnton Khirnov2011-04-03
|
* avio: avio_ prefix for url_open_dyn_bufAnton Khirnov2011-04-03
|
* avio: make get_checksum() internal.Anton Khirnov2011-03-30
|
* avio: make init_checksum() internal.Anton Khirnov2011-03-30
|
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* avio: rename put_flush_packet -> avio_flushAnton Khirnov2011-03-16
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: add avio_tell macro as a replacement for url_ftellAnton Khirnov2011-03-04
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: avio_ prefix for url_fseekAnton Khirnov2011-03-01
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* lavf: use a new ffio_wfourcc macro instead of put_tag() where possibleAnton Khirnov2011-02-25
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: avio: avio_ prefixes for put_* functionsAnton Khirnov2011-02-21
| | | | | | | | | | | | In the name of consistency: put_byte -> avio_w8 put_<type> -> avio_w<type> put_buffer -> avio_write put_nbyte will be made private put_tag will be merged with avio_put_str Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: rename ByteIOContext to AVIOContext.Anton Khirnov2011-02-20
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Prefix all _demuxer, _muxer, _protocol from libavformat and libavdevice.Diego Elio Pettenò2011-01-26
| | | | | This also lists the objects from those two libraries as internal (by adding the ff_ prefix) so that they can then be hidden via linker scripts.
* In ogg muxer, correctly mux VFR streams, fix issue #2398Baptiste Coudurier2011-01-05
| | | | Originally committed as revision 26229 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vorbiscomment: convert metadata before computing the header's lengthAnton Khirnov2010-10-27
| | | | Originally committed as revision 25586 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Export metadata in the generic format. Deprecate old conversion API.Anton Khirnov2010-10-15
| | | | | | patch by Anton Khirnov anton _at_ khirnov _dot_ net Originally committed as revision 25493 to svn://svn.ffmpeg.org/ffmpeg/trunk
* vorbiscomment: change ff_vorbiscomment_write to take an AVMetadata**Anton Khirnov2010-10-14
| | | | | | patch by Anton Khirnov anton _at_ khirnov _dot_ net Originally committed as revision 25473 to svn://svn.ffmpeg.org/ffmpeg/trunk
* oggenc: Don't use char* to point to a string constant.Alex Converse2010-10-10
| | | | Originally committed as revision 25440 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Vorbis metadata writing. Patch by James Darnley <james.darnley gmail com>.James Darnley2010-09-03
| | | | | | Fixes issue 555. Originally committed as revision 25034 to svn://svn.ffmpeg.org/ffmpeg/trunk
* In ogg muxer, free dyn allocated buffer, fix memleakBaptiste Coudurier2010-07-16
| | | | Originally committed as revision 24276 to svn://svn.ffmpeg.org/ffmpeg/trunk
* In ogg muxer, use dyn buffer to compute crc of the page, fix muxing with pipeBaptiste Coudurier2010-07-14
| | | | | | when page buffer is bigger than default buffer size. Max page is 65k. Originally committed as revision 24242 to svn://svn.ffmpeg.org/ffmpeg/trunk
* In ogg muxer, use random serial number of each ogg streamsBaptiste Coudurier2010-05-24
| | | | Originally committed as revision 23302 to svn://svn.ffmpeg.org/ffmpeg/trunk
* remove unused fieldBaptiste Coudurier2010-05-21
| | | | Originally committed as revision 23232 to svn://svn.ffmpeg.org/ffmpeg/trunk
* In ogg muxer, pack multiple frames into one page, much lower overheadBaptiste Coudurier2010-05-21
| | | | Originally committed as revision 23231 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace all remaining occurrences of AVERROR_NOMEM withStefano Sabatini2010-04-03
| | | | | | | | | AVERROR(ENOMEM). AVERROR_NOMEM is deprecated and will be dropped at the next libavutil major bump. Originally committed as revision 22791 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace all occurences of PKT_FLAG_KEY with AV_PKT_FLAG_KEY.Jean-Daniel Dupas2010-03-31
| | | | | | Patch by Jean-Daniel Dupas, devlists shadowlab org Originally committed as revision 22744 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Define AVMediaType enum, and use it instead of enum CodecType, whichStefano Sabatini2010-03-30
| | | | | | is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add VorbisComment writing to Ogg/FLAC and Ogg/Speex files.James Darnley2010-03-20
| | | | | | Patch by James Darnley <james darnley at gmail> Originally committed as revision 22606 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Correctly write last 0 lacing value when packet size is multiple of 255, ↵Greg Maxwell2010-03-15
| | | | | | patch by Greg Maxwell, gmaxwell at gmail dot com Originally committed as revision 22559 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove MAX_STREAMS usage in ogg and mxf muxersBaptiste Coudurier2010-01-29
| | | | Originally committed as revision 21526 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add Speex support to the Ogg muxer.Justin Ruggles2009-10-13
| | | | Originally committed as revision 20220 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Improve amortized worst case speed of the muxers packet interleaving codeMichael Niedermayer2009-09-16
| | | | | | from O(packets_in_the_file) to O(num_of_streams). Originally committed as revision 19887 to svn://svn.ffmpeg.org/ffmpeg/trunk
* oggenc: Change error log text. An error here does not necessarily meanJustin Ruggles2009-06-21
| | | | | | corrupted data. Originally committed as revision 19248 to svn://svn.ffmpeg.org/ffmpeg/trunk
* oggenc: return error value from ogg_build_flac_headers()Justin Ruggles2009-06-21
| | | | Originally committed as revision 19247 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: spacing and commentsJustin Ruggles2009-06-21
| | | | Originally committed as revision 19246 to svn://svn.ffmpeg.org/ffmpeg/trunk
* oggenc: check for failed av_mallocz()Justin Ruggles2009-06-21
| | | | Originally committed as revision 19245 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use a shared function to validate FLAC extradata.Justin Ruggles2009-02-26
| | | | Originally committed as revision 17602 to svn://svn.ffmpeg.org/ffmpeg/trunk