summaryrefslogtreecommitdiff
path: root/libavformat/movenc.c
Commit message (Collapse)AuthorAge
...
| * movenc: Support setting fragment_index before the moov atom is writtenMartin Storsjö2015-03-10
| | | | | | | | | | | | | | | | | | | | This way, the caller doesn't need to coordinate setting the option after the moov atom has been written. The downside is that it is no longer possible to use the option for checking whether the moov atom already has been written, but a caller is able to keep track of that by other means anyway. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '0c5e380c2c266d2e8a13c000cc527529db837f10'Michael Niedermayer2015-03-10
|\| | | | | | | | | | | | | * commit '0c5e380c2c266d2e8a13c000cc527529db837f10': movenc: Don't rely on the fragment index for vc1 info gathering Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * movenc: Don't rely on the fragment index for vc1 info gatheringMartin Storsjö2015-03-10
| | | | | | | | | | | | | | | | The previous use of the mov->fragments field, for determining whether written packets were part of the first fragment or not, didn't work as intended when using the empty_moov flag. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '46d4d8575979a24a8d026d9805039b724e0e3e5f'Michael Niedermayer2015-03-09
|\| | | | | | | | | | | | | * commit '46d4d8575979a24a8d026d9805039b724e0e3e5f': movenc: Avoid writing separate flags for the first sample if not necessary Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * movenc: Avoid writing separate flags for the first sample if not necessaryMartin Storsjö2015-03-09
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '00d751d4fc20ec88d2cc2c9f39ec8b9e9c8cdeba'Michael Niedermayer2015-03-09
|\| | | | | | | | | | | | | * commit '00d751d4fc20ec88d2cc2c9f39ec8b9e9c8cdeba': movenc: Set tfhd default sample flags based on actual samples, if possible Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * movenc: Set tfhd default sample flags based on actual samples, if possibleMartin Storsjö2015-03-09
| | | | | | | | | | | | | | | | | | | | This avoids assuming that e.g. audio samples are marked as sync samples. This allows omitting the sample flags from trun, if the default flags happen to be right for all the samples. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '9731cf4001377fa2f75c279072cc2b0cbd57bf8e'Michael Niedermayer2015-03-06
|\| | | | | | | | | | | | | | | | | | | | | * commit '9731cf4001377fa2f75c279072cc2b0cbd57bf8e': movenc: Keep writing zero-entry stts atoms as intended Conflicts: libavformat/movenc.c See: 95165f7c1b533c121b890fa1e82e8ed596cfc108 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * movenc: Keep writing zero-entry stts atoms as intendedMartin Storsjö2015-03-06
| | | | | | | | | | | | | | | | a876585215 had the unintended side effect of returning AVERROR(ENOMEM) when track->entry is zero, while the code intentionally wants to continue in that case. Signed-off-by: Martin Storsjö <martin@martin.st>
* | avformat/movenc: Add support for writing 'gama' atom to QuickTime .mov files.Kevin Wheatley2015-03-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As this is depricated it should not be on by default, it is only supported for MOV containers, depends on avpriv_get_gamma_from_trc() Enable by: -movflags +write_gama This will use the color_trc to supply a gamma value, if desired an explicit value may be supplied using the -mov_gamma option supplying a suitable floating point value, values <=1e-6 will not be written. Signed-off-by: Kevin Wheatley <kevin.j.wheatley@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/movenc: mark write_colr as experimentalMichael Niedermayer2015-03-04
| | | | | | | | | | | | This way the flag can be flipped to a nowrite_colr, if people prefer that Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | movenc: Write 'colr' box correctly for MP4Derek Buitenhuis2015-02-27
| | | | | | | | | | | | | | This also restricts it to MOV and MP4, since it is only defined for those formats. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | avformat/movenc: Fix writing ACLR atoms for DNxHDKevin Wheatley2015-02-24
| | | | | | | | | | | | | | | | | | | | Using the copy codec ACLR atoms where incorrectly written During the creation of the ACLR atom we are assuming the vos_data contains the DNxHD header. This change makes this explicit and ensures we don't over write the stream with the extra_data. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/movenc: Check for memory allocation failuresMichael Niedermayer2015-02-22
| | | | | | | | | | Fixes CID1271049 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/movenc: Move avid DNxHD padding to the correct spotKevin Wheatley2015-02-20
| | | | | | | | | | | | | | | | | | | | | | | | Outputting DNxHD into .mov containers 'corrupts' following atoms until end of stsd ffmpeg and qtdump could not decode pasp/colr atoms in the files made by ffmpeg, when outputting DNxHD due to the incorrect padding placement. Now we add the padding in the correct place Tidy up FATE changes due to padding changes. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/movenc: Fix use of uninitialized variable (ret)Michael Niedermayer2015-02-18
| | | | | | | | | | | | Fixed CID1270823 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/movenc: Fix stts_entries allocation checkMichael Niedermayer2015-02-17
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'a8765852158ecb2ae34895fa35ff51dc95c186f9'Michael Niedermayer2015-02-17
|\| | | | | | | | | | | | | | | | | | | * commit 'a8765852158ecb2ae34895fa35ff51dc95c186f9': movenc: Check memory allocations Conflicts: libavformat/movenc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * movenc: Check memory allocationsHugo Beauzée-Luyssen2015-02-17
| | | | | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | libavformat: DNxHD in .mov, switch unspecified color_range to mpegKevin Wheatley2015-02-10
| | | | | | | | | | | | | | | | | | | | Avid prefers mpeg range [16-235] by default this change brings ffmpeg into line with that. To obtain the old behaviour use '-color_range jpeg' on the command line prior to the ouput filename. Signed-off-by: Kevin Wheatley <kevin.j.wheatley@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Fix standalone compilation of the mov muxer with --disable-optimizations.Carl Eugen Hoyos2015-02-08
| | | | | | | | Reported-by: Bernhard Döbler
* | avformat/movenc: remove unneeded #include, there are no assert() only av_assert*Paul B Mahol2015-01-31
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avformat/movenc: Add simplistic 'colr' tag writing support to mov containerKevin Wheatley2015-01-26
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/movenc: Check failure of allocation of ctts_entries and propagate errorMichael Niedermayer2015-01-25
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/movenc: fix cleanup on insufficient reserved_moov_sizeMichael Niedermayer2015-01-25
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Handle r10k endianess atom DpxE.Carl Eugen Hoyos2015-01-11
| | | | | | | | | | | | Fixes playback and remuxing of r10k_full-range_big-endian.mov. Reported, analyzed and tested by Olaf Matthes, olaf matthes gmx de
* | avformat/movenc: move variable to a more local blockMichael Niedermayer2015-01-10
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/movenc: workaround bug in "PathScale EKOPath(tm) Compiler Suite ↵Michael Niedermayer2015-01-10
| | | | | | | | | | | | Version 4.0.12.1" Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '2a1500fb552364488cfbee3e29e296788a3a6bdd'Michael Niedermayer2015-01-07
|\| | | | | | | | | | | | | * commit '2a1500fb552364488cfbee3e29e296788a3a6bdd': movenc: Fix a typo in a comment Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * movenc: Fix a typo in a commentMartin Storsjö2015-01-06
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit 'e581e88cbdb3323ca0026a54b39a9716a3686e9f'Michael Niedermayer2015-01-07
|\| | | | | | | | | | | | | * commit 'e581e88cbdb3323ca0026a54b39a9716a3686e9f': movenc: Readd an accidentally removed condition Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * movenc: Readd an accidentally removed conditionMartin Storsjö2015-01-06
| | | | | | | | | | | | | | This was removed accidentally as part of 847bf598. This could cause groundless warning logging. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '46808fdf04ab113df374157b90b506eb3110daf2'Michael Niedermayer2015-01-05
|\| | | | | | | | | | | | | * commit '46808fdf04ab113df374157b90b506eb3110daf2': movenc: Enable editlists by default if delay_moov is enabled Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * movenc: Enable editlists by default if delay_moov is enabledMartin Storsjö2015-01-04
| | | | | | | | | | | | | | Being able to write editlists properly is one of the main points in the delay_moov flag. Signed-off-by: Martin Storsjö <martin@martin.st>
* | avformat/movenc: fix DELAY_MOOVMichael Niedermayer2015-01-03
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'b3b0b35db2f3b61bf2f0f4fa85f5b6267d83c8fe'Michael Niedermayer2015-01-03
|\| | | | | | | | | | | | | * commit 'b3b0b35db2f3b61bf2f0f4fa85f5b6267d83c8fe': movenc: Get rid of a hack for updating the dvc1 atom Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * movenc: Get rid of a hack for updating the dvc1 atomMartin Storsjö2015-01-03
| | | | | | | | | | | | | | Use the more generic approach with the delay_moov flag, instead of having a update mechanism specific to this one single atom. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '847bf5988fec1d3e65c1d8cf0cdb8caf0cfd0c1b'Michael Niedermayer2015-01-03
|\| | | | | | | | | | | | | | | | | | | | | * commit '847bf5988fec1d3e65c1d8cf0cdb8caf0cfd0c1b': movenc: Add an option for delaying writing the moov with empty_moov Conflicts: libavformat/movenc.c libavformat/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * movenc: Add an option for delaying writing the moov with empty_moovMartin Storsjö2015-01-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This delays writing the moov until the first fragment is written, or can be flushed by the caller explicitly when wanted. If the first sample in all streams is available at this point, we can write a proper editlist at this point, allowing streams to start at something else than dts=0. For AC3 and DNXHD, a packet is needed in order to write the moov header properly. This isn't added to the normal behaviour for empty_moov, since the behaviour that ftyp+moov is written during avformat_write_header would be changed. Callers that split the output stream into header+segments (either by flushing manually, with the custom_frag flag set, or by just differentiating between data written during avformat_write_header and the rest) will need to be adjusted to take this option into use. For handling streams that start at something else than dts=0, an alternative would be to use different kinds of heuristics for guessing the start dts (using AVCodecContext delay or has_b_frames together with the frame rate), but this is not reliable and doesn't necessarily work well with stream copy, and wouldn't work for getting the right initialization data for AC3 or DNXHD either. Signed-off-by: Martin Storsjö <martin@martin.st>
* | avformat/movenc: Use cluster timestamps when available in edtsMichael Niedermayer2015-01-03
| | | | | | | | | | | | Also print both if they differ Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'c725faebda9a516766d94c33b07972ab0f70cf93'Michael Niedermayer2015-01-03
|\| | | | | | | | | | | | | | | | | | | * commit 'c725faebda9a516766d94c33b07972ab0f70cf93': movenc: Use start_dts/cts instead of cluster[0] for writing edit lists Conflicts: libavformat/movenc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * movenc: Use start_dts/cts instead of cluster[0] for writing edit listsMartin Storsjö2015-01-03
| | | | | | | | | | | | | | This allows writing edit lists even when track->entry == 0, if the start times have been set. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '724cbea7193945fe5a5b4dea8ede344803572844'Michael Niedermayer2015-01-03
|\| | | | | | | | | | | | | * commit '724cbea7193945fe5a5b4dea8ede344803572844': movenc: Remove an unnecessary condition when flushing fragments Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * movenc: Remove an unnecessary condition when flushing fragmentsMartin Storsjö2015-01-03
| | | | | | | | | | | | | | | | | | | | | | If fragments == 0 it means we haven't written any moov atom yet. If the empty_moov flag is set, we already have written an empty moov atom at startup. Thus, the check for empty_moov is redundant. This is in preparation for allowing writing the moov atom later, even when using the empty moov flag. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '355d01a1bf55297b1d1f04e4bfbf0ddc93b6247e'Michael Niedermayer2015-01-03
|\| | | | | | | | | | | | | | | | | | | * commit '355d01a1bf55297b1d1f04e4bfbf0ddc93b6247e': movenc: Factorize writing ftyp and other identification tags to a separate function Conflicts: libavformat/movenc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * movenc: Factorize writing ftyp and other identification tags to a separate ↵Martin Storsjö2015-01-03
| | | | | | | | | | | | function Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '59f0275dd0a42a7f90271a83a78e9ca5e69ff5b0'Michael Niedermayer2014-12-19
|\| | | | | | | | | | | | | * commit '59f0275dd0a42a7f90271a83a78e9ca5e69ff5b0': movenc: Adjust the pts of new fragments similarly to what is done for dts Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * movenc: Adjust the pts of new fragments similarly to what is done for dtsMartin Storsjö2014-12-18
| | | | | | | | | | | | | | The pts and the corresponding duration is written in sidx atoms, thus make sure these match up correctly. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Allow mov musing if the ac3 parser was disabled.Carl Eugen Hoyos2014-12-09
| | | | | | | | | | This reverts 8091fe30. Reported and tested by Takashi, ffmpeg-list dubistmeinheld de
* | avformat/movenc: Add 2048x1080 to the aivx caseRens Dijkshoorn2014-12-08
| | | | | | | | | | | | This improves compatibility of such files with apple tools Signed-off-by: Michael Niedermayer <michaelni@gmx.at>