summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* flvenc: Don't over-count metadata.Josh Allmann2014-06-17
| | | | | | Over-counting occurs if framerate is not set. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavf: dump stream side data when probingVittorio Giovara2014-06-14
|
* lavf: group dump functions togetherVittorio Giovara2014-06-14
|
* Remove some unnecessary CONFIG_FOO_COMPONENT ifdefsDiego Biurrun2014-06-12
| | | | The files are only ever compiled if that condition is true.
* mpegts: Provide an option to override the pcr periodLuca Barbato2014-06-10
| | | | Certain hardware demuxer have specific restrictions for PCR periodicity.
* mpegts: Move the option section to the bottomLuca Barbato2014-06-10
| | | | | Makes it consistent with the rest of the formats and ease usage of macros constants for the defaults.
* oggenc: Set the right AVOption size for the pref_duration optionMartin Storsjö2014-06-06
| | | | | | | | | | | | | | | On big endian machines, the default value set via the faulty AVOption ended up as 2^32 times too big. This fixes the fate-lavf-ogg test which currently is broken on big endian machines, broken since 3831362. Since that commit, a final zero-sized packet is written to the ogg muxer in that test, which caused different flushing behaviour on little and big endian depending on whether the pref_duration option was handled as it should or not. CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* mov: Export geotag metadata fieldsMartin Storsjö2014-06-06
| | | | | | | | | | | | The '?xyz' form is used by android devices (and according to apple mailing list archives, also by older iOS devices). The 'loci' field (defined in 3GPP 26.244) is used by recent iOS devices. Even though the loci field can contain an altitude, it was plain 0 in my sample. Just export longitude and latitude, in a string format matching the one used by the '?xyz' metadata field. Signed-off-by: Martin Storsjö <martin@martin.st>
* oggenc: Support flushing the muxerMartin Storsjö2014-06-04
| | | | | | | | | This allows the caller to write all buffered data to disk, allowing the caller to know at what byte position in the file a certain packet starts (any packet written after the flush will be located after that byte position). Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmpproto: read metadata to set correct FLV headerUwe L. Korn2014-06-01
| | | | | | | | In the presence of no metadata, do not set any stream flag in the FLV header but let the demuxer handle the detection and creation of streams as data arrives. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmppkt: Add method to read an AMF string that is not prefixed by its typeUwe L. Korn2014-06-01
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* flvdec: Do not default to a video and audio streamUwe L. Korn2014-06-01
| | | | | | | | | If no streams were indicated in the FLV header, do not automatically allocate by default a video and an audio stream. Instead, in the case that the header did not indicate the presence of any data, allocate no stream until data actually arrives for one type. Signed-off-by: Martin Storsjö <martin@martin.st>
* flac muxer: support reading updated extradata from side dataAnton Khirnov2014-06-01
|
* flac muxer: accept only STREAMINFO extradataAnton Khirnov2014-06-01
| | | | | | | | The other format (full flac header blocks) should not be exported by any demuxers anymore. This allows to drop an avpriv_ function and also simplify the following commits.
* matroskaenc: Allow VP9 and Opus in webmTudor Suciu2014-06-01
| | | | | | Bug-Id: 695 Signed-off-by: Anton Khirnov <anton@khirnov.net>
* rtpenc_chain: Don't copy the time base to the source stream by defaultMartin Storsjö2014-05-31
| | | | | | | | | | | | | | | Only copy it manually in the muxers where it makes sense (rtspenc, sapenc). Don't touch the original AVStream in movenchint, where the original AVStream should be kept untouched. This fixes the normal tracks in RTP hinted files after abb810db - the hint tracks were ok while the normal media tracks were broken, noticed by Michael Niedermayer. This reverts abb810db but achieves the same effect for the other muxers. Signed-off-by: Martin Storsjö <martin@martin.st>
* Revert "rtpenc_chain: Don't copy the time_base back to the caller"Martin Storsjö2014-05-30
| | | | | | | | | | | | | While it strictly isn't necessary to copy the time base (since any use of it is scaled in ff_write_chained), it still is better to signal the actual time base to the caller, avoiding one unnecessary rescaling. This also lets the caller know what the actual internal time base is, in case that is useful info for some caller. This reverts commit 397ffde115f4e0482a007b672f40457596cebfc4. Signed-off-by: Martin Storsjö <martin@martin.st>
* matroskaenc: set the stream timebase earlierAnton Khirnov2014-05-29
| | | | Fixes calculating the ts offset for audio codecs with delay.
* flvenc: only write the framerate tag based on avg_frame_rateAnton Khirnov2014-05-29
| | | | | Do not fall back on the codec timebase, since that can be anything for VFR video.
* movenc: write avg_frame_rate as the framerate, not the codec timebaseAnton Khirnov2014-05-29
|
* matroskaenc: base DefaultDuration on the framerate, not the codec timebaseAnton Khirnov2014-05-29
| | | | | | This results in DefaultDuration not being written when the framerate is not known, but as this field is purely informative, this should not break any sane demuxers.
* nut: Support experimental NUT 4 featuresLuca Barbato2014-05-28
| | | | | | | Add the low overhead pipe mode and the extended broadcast mode. Export the options as 'syncponts' since it impacts only that. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avformat: Provide a standard compliance flagLuca Barbato2014-05-28
| | | | | | Provide f_strict for avconv usage. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* oggenc: Fix the EOS flagMichael Niedermayer2014-05-28
| | | | | | | | | | | This corrects the bug that caused the checksums to change in 9767d7c092c890ecc5953452e8a951fd902dd67b. It caused the EOS flag to be set incorrectly; the ogg spec does not allow it to be set in the middle of a logical bitstream. Signed-off-by: Andrew Kelley <superjoe30@gmail.com> Signed-off-by: Martin Storsjö <martin@martin.st>
* matroskaenc: write the channel mask for FLACAnton Khirnov2014-05-28
|
* vorbiscomment: simplify API by using av_dict_count()Anton Khirnov2014-05-28
|
* matroskadec: parse the channel layout mask for FLACAnton Khirnov2014-05-28
| | | | It is commonly stored in a vorbiscomment block in codec private data.
* matroskadec: export just the STREAMINFO block as FLAC extradataAnton Khirnov2014-05-28
| | | | | It contains all information that is used by the decoder and the other FLAC-capable demuxers (flacdec, ogg) export only STREAMINFO as well.
* matroskadec: split parsing tracks into a separate functionAnton Khirnov2014-05-28
|
* flac: make avpriv_flac_parse_block_header() inlineAnton Khirnov2014-05-28
| | | | | | This avoids all the ABI troubles associated with avpriv_. Since this function is very small and does not depend on any tables, making it inline should have no adverse effects.
* flac muxer: write WAVEFORMATEXTENSIBLE_CHANNEL_MASK tag for multichannel filesAnton Khirnov2014-05-28
|
* flac demuxer: parse the WAVEFORMATEXTENSIBLE_CHANNEL_MASK tagAnton Khirnov2014-05-28
| | | | It is used to store the channel mask for non-standard layouts.
* oggenc: Flush after writing headersAndrew Kelley2014-05-27
| | | | | | | | | | | | | Before, header information for ogg format files was sent with the first encoded packet. This patch makes it so that it is possible for API users to differentiate between headers and encoded audio. This is useful, for example, when creating an audio stream where you want to send one set of headers for every client that connects and then the encoded stream of audio. Signed-off-by: Martin Storsjö <martin@martin.st>
* oggenc: Move ogg_write_pages up above ogg_write_headerAndrew Kelley2014-05-27
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* smoothstream: check malloc callsNidhi Makhijani2014-05-24
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* rdt: check malloc callsNidhi Makhijani2014-05-24
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavf: add av_stream_get_side_dataJanne Grunau2014-05-20
|
* mov: store display matrix in a stream side dataVittorio Giovara2014-05-19
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavf: deprecate now unused AVStream.ptsAnton Khirnov2014-05-19
|
* mux: drop one of the hacks comprising compute_pkt_fields2()Anton Khirnov2014-05-19
| | | | All encoders should output proper timestamps now.
* movenc: use the "encoder" metadata tag to write stsd CompressornameAnton Khirnov2014-05-18
| | | | | This mirrors the demuxer behaviour and avoids accessing AVCodecContext.codec, which should not be done in muxers.
* wavenc: use codec descriptors to get the codec nameAnton Khirnov2014-05-18
| | | | Also, return a proper error code.
* dv: do not set codec timebaseAnton Khirnov2014-05-18
| | | | | It is not supposed to be set from outside of libavcodec. Set average framerate instead.
* lavf: extend avg_frame_rate documentation.Anton Khirnov2014-05-18
|
* avienc: sanitize variable naming in write_header()Anton Khirnov2014-05-18
| | | | | | Do not call an AVCodecContext 'stream', that is highly confusing. Also, add a local variable for the current AVStream in the loop over all streams.
* yop: only set extradata size after it has been successfully allocatedAnton Khirnov2014-05-18
| | | | Do not leave a non-zero extradata_size set on failure
* yuv4mpegdec: do not set coded_frame propertiesAnton Khirnov2014-05-18
| | | | | | coded_frame is not meant to be changed from outside of lavc, and is not used for decoding. Set AVCodecContext.field_order instead.
* yuv4mpeg: split the demuxer and muxer into separate filesAnton Khirnov2014-05-18
|
* a64: check that extradata exists before reading from itAnton Khirnov2014-05-18
|
* a64: remove unneeded struct qualifierAnton Khirnov2014-05-18
|