aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/movenc.c
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge commit '72fe16a13e3ebd5396ac173bf84c8b20085c16d5'Michael Niedermayer2013-09-201-9/+4
|\| | | | | | | | | | | | | | | | | | | * commit '72fe16a13e3ebd5396ac173bf84c8b20085c16d5': movenc: Use null buffers for measuring the amount of data to be written Conflicts: libavformat/movenc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * movenc: Use null buffers for measuring the amount of data to be writtenMartin Storsjö2013-09-191-12/+6
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-09-181-7/+16
|\| | | | | | | | | | | | | | | | | | | * qatar/master: movenc: Add an option for omitting the tfhd base offset Conflicts: libavformat/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * movenc: Add an option for omitting the tfhd base offsetMartin Storsjö2013-09-171-7/+16
| | | | | | | | | | | | | | | | | | | | This makes the output fragments independent of their position in the output stream, making the output work better when streamed. QuickTime Player doesn't support fragmented mp4 without the base data offset, though. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit 'a4adabb460ace39783d707a5b3bbe28b4b5b9dc4'Michael Niedermayer2013-09-181-22/+25
|\| | | | | | | | | | | | | * commit 'a4adabb460ace39783d707a5b3bbe28b4b5b9dc4': movenc: Write the moof atom in two passes Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * movenc: Write the moof atom in two passesMartin Storsjö2013-09-171-22/+25
| | | | | | | | | | | | | | | | | | | | | | This is a bit more work, but avoids having to fill in the data offset field afterwards instead of directly when the rest of the trun atom is written. This simplifies future cases where this field needs to be set to something different. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-09-101-5/+3
|\| | | | | | | | | | | | | | | | | | | * qatar/master: movenc: Simplify setting the fragmentation flag Conflicts: libavformat/movenc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * movenc: Simplify setting the fragmentation flagMartin Storsjö2013-09-091-5/+3
| | | | | | | | | | | | | | This makes sure the faststart vs fragmentation check works as intended when fragmentation is enabled due to using the ismv mode. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '8b524ab0c43c1767919530abb79d3656113cdc47'Michael Niedermayer2013-09-101-2/+4
|\| | | | | | | | | | | | | | | | | | | * commit '8b524ab0c43c1767919530abb79d3656113cdc47': movenc: Add a warning message if conflicting options have been specified Conflicts: libavformat/movenc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * movenc: Add a warning message if conflicting options have been specifiedMartin Storsjö2013-09-091-1/+4
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-09-031-2/+0
|\| | | | | | | | | | | | | * qatar/master: movenc: Don't flush after each written packet Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * movenc: Don't flush after each written packetMartin Storsjö2013-09-031-2/+0
| | | | | | | | | | | | | | | | | | | | This should improve write performance quite significantly. --- Tested with both writing a normal mp4, by using the faststart feature and writing a fragmented mp4 file; all turn out with the same md5sum as before. Signed-off-by: Martin Storsjö <martin@martin.st>
* | avformat/movenc: Use the rate from av_timecode_init_from_string() for tmcdMichael Niedermayer2013-09-021-1/+1
| | | | | | | | | | | | Fixes Ticket2892 Reveiwed-by: ubitux Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-08-271-2/+5
|\| | | | | | | | | | | | | * qatar/master: movenc: Check for errors from mov_create_chapter_track Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * movenc: Check for errors from mov_create_chapter_trackMartin Storsjö2013-08-271-2/+5
| | | | | | | | | | | | | | | | | | | | | | On failures in the write_trailer function, we could also ignore the errors and try to finish the file despite these errors (which would only leave an incomplete chapters track). It's probably better to signal the error clearly to the caller though (and if this function failed there's no guarantee that there's enough memory to finish the trailer either). Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '2bbad1f94cbc5eab0aa2d937bc79d085477d0242'Michael Niedermayer2013-08-271-17/+28
|\| | | | | | | | | | | | | | | | | | | * commit '2bbad1f94cbc5eab0aa2d937bc79d085477d0242': movenc: Properly free allocated data on failures in mov_write_header Conflicts: libavformat/movenc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * movenc: Properly free allocated data on failures in mov_write_headerMartin Storsjö2013-08-271-15/+26
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '3559fb97c459c88b4f1d0eef80d55933d3b7fabe'Michael Niedermayer2013-08-271-1/+2
|\| | | | | | | | | | | | | | | | | | | * commit '3559fb97c459c88b4f1d0eef80d55933d3b7fabe': movenc: Check that tracks->enc exists before trying to free extradata Conflicts: libavformat/movenc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * movenc: Check that tracks->enc exists before trying to free extradataMartin Storsjö2013-08-271-1/+2
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '4d122b01e4ce539269ee2df193b061772c7374f6'Michael Niedermayer2013-08-271-0/+4
|\| | | | | | | | | | | | | * commit '4d122b01e4ce539269ee2df193b061772c7374f6': movenc: Check for allocation failures in mov_create_chapter_track Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * movenc: Check for allocation failures in mov_create_chapter_trackMartin Storsjö2013-08-271-0/+4
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit 'b89e8759e053792704741d08cbc41c9ac3c7ed63'Michael Niedermayer2013-08-261-20/+30
|\| | | | | | | | | | | | | | | | | | | * commit 'b89e8759e053792704741d08cbc41c9ac3c7ed63': mov: Write tmcd extradata This commit should make no difference as we had tmcd support already, which is not changed. Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mov: Write tmcd extradataLuca Barbato2013-08-251-0/+17
| |
* | avcodec/movenc: move chapter_properties under the #if of the code that uses itMichael Niedermayer2013-08-241-2/+2
| | | | | | | | | | | | Fixes warning about unused variable Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-08-231-9/+55
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: movenc: Make tkhd "enabled" flag QuickTime compatible Conflicts: libavformat/movenc.c tests/ref/acodec/alac tests/ref/acodec/pcm-s16be tests/ref/acodec/pcm-s24be tests/ref/acodec/pcm-s32be tests/ref/acodec/pcm-s8 tests/ref/lavf/mov tests/ref/vsynth/vsynth1-dnxhd-1080i tests/ref/vsynth/vsynth1-mpeg4 tests/ref/vsynth/vsynth1-prores tests/ref/vsynth/vsynth1-qtrle tests/ref/vsynth/vsynth1-svq1 tests/ref/vsynth/vsynth2-dnxhd-1080i tests/ref/vsynth/vsynth2-mpeg4 tests/ref/vsynth/vsynth2-prores tests/ref/vsynth/vsynth2-qtrle tests/ref/vsynth/vsynth2-svq1 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * movenc: Make tkhd "enabled" flag QuickTime compatibleJohn Stebbins2013-08-231-1/+55
| | | | | | | | | | | | | | | | QuickTime will play multiple audio tracks concurrently if this flag is set for multiple audio tracks. And if no subtitle track has this flag set, QuickTime will show no subtitles in the subtitle menu. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | avformat/movenc: use av_freep() instead of av_free() except for local ↵Michael Niedermayer2013-08-231-2/+2
| | | | | | | | | | | | variables before return Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '60198742ff851f11a3757c713fc75a9c19b88566'Michael Niedermayer2013-08-221-10/+4
|\| | | | | | | | | | | | | | | | | | | * commit '60198742ff851f11a3757c713fc75a9c19b88566': movenc: fix detection of 64bit offset requirement Conflicts: libavformat/movenc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * movenc: fix detection of 64bit offset requirementClément Bœsch2013-08-211-3/+9
| | | | | | | | | | | | The old method doesn't work when moov is relocated to beginning of file Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit 'fe5d5a8ffcafdc14c0d26eaea6464c89e120cc9e'Michael Niedermayer2013-08-221-3/+16
|\| | | | | | | | | | | | | * commit 'fe5d5a8ffcafdc14c0d26eaea6464c89e120cc9e': movenc: Make chapter track QuickTime compatible Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * movenc: Make chapter track QuickTime compatibleJohn Stebbins2013-08-211-2/+13
| | | | | | | | | | | | QuickTime requires that the stsd.text box be completely filled in. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit 'f8ef91ff3d6bb83d601d816ef9368f911021c64b'Michael Niedermayer2013-08-221-26/+32
|\| | | | | | | | | | | | | | | | | | | | | | | * commit 'f8ef91ff3d6bb83d601d816ef9368f911021c64b': movenc: add faststart option for web streaming Conflicts: doc/muxers.texi libavformat/movenc.c libavformat/movenc.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * movenc: add faststart option for web streamingClément Bœsch2013-08-211-4/+133
| | | | | | | | | | | | | | Faststart moves the moov atom to the beginning of the file and rewrites the rest of the file after muxing is complete. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '6c786765cd5eb794dedd4a0970dfe689b16dfeeb'Michael Niedermayer2013-08-211-2/+14
|\| | | | | | | | | | | | | | | | | | | * commit '6c786765cd5eb794dedd4a0970dfe689b16dfeeb': movenc: Allow chapters to be written in trailer Conflicts: libavformat/movenc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * movenc: Allow chapters to be written in trailerJohn Stebbins2013-08-201-2/+15
| | | | | | | | | | | | | | | | This allows creation of frame accurate chapter marks from sources like DVD and BD where the precise chapter location is not known until the chapter mark has been reached during reading. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit 'db03cb37fd9650b4a7c752d24a2e84ff27508ee8'Michael Niedermayer2013-08-211-1/+1
|\| | | | | | | | | | | | | * commit 'db03cb37fd9650b4a7c752d24a2e84ff27508ee8': movenc: Allow chapter track in default MODE_MP4 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * movenc: Allow chapter track in default MODE_MP4John Stebbins2013-08-201-1/+1
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | movenc: ilbc needs audio_vbr set.Michael Niedermayer2013-08-201-0/+3
| | | | | | | | | | | | | | | | Without this the block_align or bitrate value is not available to the decoder Fixes Ticket2858 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-08-201-11/+15
|\| | | | | | | | | | | | | | | | | | | * qatar/master: mov: Prevent segfaults on mov_write_hdlr_tag Conflicts: libavformat/movenc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mov: Prevent segfaults on mov_write_hdlr_tagLuca Barbato2013-08-201-5/+16
| | | | | | | | | | Do not segfault when writing tracks such as tmcd by writing them down as generic DataHandlers if not known.
* | Merge commit '22de0f8369f1f3edf1a55e1d275f3c07c617b53e'Michael Niedermayer2013-08-201-1/+1
|\| | | | | | | | | | | | | * commit '22de0f8369f1f3edf1a55e1d275f3c07c617b53e': mov: Compute max duration among the tracks with a timescale Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mov: Compute max duration among the tracks with a timescaleLuca Barbato2013-08-201-1/+1
| | | | | | | | Prevent an assert.
* | Merge commit '39523030108815242178ac5e209c83070bd1baef'Michael Niedermayer2013-08-201-1/+3
|\| | | | | | | | | | | | | | | | | | | * commit '39523030108815242178ac5e209c83070bd1baef': mov: Set the timescale for data streams Conflicts: libavformat/movenc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mov: Set the timescale for data streamsLuca Barbato2013-08-201-0/+2
| | | | | | | | Data streams have a defined timebase, do not ignore it.
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-08-181-2/+2
|\| | | | | | | | | | | | | * qatar/master: movenc: Indicate that negative timestamps are supported Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * movenc: Indicate that negative timestamps are supportedMartin Storsjö2013-08-171-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | The mov/mp4 muxer has support for handling negative timestamps via edit lists (which customarily is used for handling the 1-frame delay due to B-frames as well). Using the muxer's native way of handling it is better than using the generic offsetting. The generic offsetting is a bit too crude when e.g. the timebase of one track is 1/fps, where the edit lists can handle it accurately. Signed-off-by: Martin Storsjö <martin@martin.st>
* | movenc: make uuids static constMichael Niedermayer2013-08-021-3/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavf/movenc: Write disc number and total number of discs as part of metadata.Carl Eugen Hoyos2013-08-011-7/+10
| | | | | | | | Fixes ticket #2731.
* | lavf/movenc: Write total number of tracks as part of metadata.Carl Eugen Hoyos2013-08-011-1/+5
| | | | | | | | Fixes ticket #2157.
* | lavf/movenc: improve psp checkMatthieu Bouron2013-07-281-1/+12
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>