Martin Storsjö
83988d58ed
movenc: Add support for writing fragmented mov files
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
6ca3856894
movenc: Add a separate start_pts
...
This fixes calculation of trackDuration if the MOVIentry array
is cleared. This is required by the fragmentation support in the
next patch.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
f58d670002
movenc: Decrease default chunk merge limit to 1mb.
...
This reduces the delay when opening the video with quicktime.
Idea-by: Maksym Veremeyenko <verem@m1stereo.tv>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Maksym Veremeyenko
2aadff2e44
limit chunk size to 1GB
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
89ddff92a3
Revert "movenc: simplify handling of pcm vs. adpcm vs. other compressed codecs"
...
This reverts commit 8e8c51318c
.
Fixes Ticket873
Conflicts:
tests/ref/acodec/pcm_s16be
tests/ref/acodec/pcm_s24be
tests/ref/acodec/pcm_s32be
tests/ref/acodec/pcm_s8
tests/ref/lavf/mov
Approved-by: Baptiste Coudurier <baptiste.coudurier@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Jean First
60168f9319
movenc: add FIXME to add alis and rsrc atoms
...
Signed-off-by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Jean First
0c10885c39
movenc: indent cosemtics
...
Signed-off-by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Martin Storsjö
a78dbada55
movenc: Don't store a nonzero creation time if nothing was set by the caller
...
If the creation time is stored in the file as a zero, the
mov demuxer skips exporting the creation time. Currently,
files muxed without a creation time get demuxed with a
Jan 1st 1970 creation timestamp.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Jean First
8aed73c355
movenc: remove unused variables
...
Signed-off-by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Alex Converse
4bf3c8f226
mov: Don't stick the QuickTime field ordering atom in extradata.
...
The 'fiel' atoms can be found in H.264 tracks clobbering the extradata.
MJPEG supports non field based extradata, and this data should be
preserved when copying.
13 years ago
Michael Niedermayer
0988a6a035
movenc: disable iods by default
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Approved-by: MP4_maniac
Approved-by: Baptiste Coudurier
13 years ago
Alex Converse
d3b8bde2f1
movenc: Rudimentary IODs support.
13 years ago
Michael Niedermayer
9aeaf62903
Fix all GNU %Ld
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
a6c4c0f274
mp4enc: Avoid storing sizes in trun when they all match.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
d9a41695ed
mp4enc: Only store flags in trun when they differ from the default and set a sane default.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
1f83f04609
mp4enc: dont store durations in trun if they are unneeded.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
4a6855343f
mp4enc: dont store cts in trun if they are unneeded.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Mans Rullgard
3383a53e7d
lavu: replace int/float punning functions
...
The existing functions defined in intfloat_readwrite.[ch] are
both slow and incorrect (infinities are not handled).
This introduces a new header with fast, inline conversion
functions using direct union punning assuming an IEEE-754
system, an assumption already made throughout the code.
The one use of Intel/Motorola extended 80-bit format is
replaced by simpler code sufficient under the present
constraints (positive normal values).
The old functions are marked deprecated and retained for
compatibility.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
373211d828
Remove extraneous semicolons
...
These semicolons cause invalid empty top-level declarations.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Martin Storsjö
e2484fb644
movenc: Use the actual converted sample for RTP hinting
...
If an annex b bitstream is muxed into mov, the actual written
sample is reformatted to mp4 syntax before writing.
Currently, the RTP hints that copy data from the normal video
track, where the payload data might be offset compared to the
original sample that the RTP hinting used (when 3 byte
annex b startcodes have been converted into 4 byte mp4 format
startcodes).
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Diego Biurrun
da9cea77e3
Fix a bunch of common typos.
13 years ago
Justin Ruggles
60cd802daf
movenc: write 'chan' tag for AC-3 in MOV
13 years ago
Justin Ruggles
1fdf18f4b7
mov: add support for reading and writing the 'chan' tag
...
This implements reading the tag in the demuxer and adds support for writing it
in the muxer. Some example channel layout tables for muxing are included for
ac3, aac, and alac, but they are not utilized yet.
13 years ago
Justin Ruggles
8e8c51318c
movenc: simplify handling of pcm vs. adpcm vs. other compressed codecs
...
Use Sound Sample Description Version 2 for all MOV files.
Updated FATE references accordingly.
Note that ADPCM is treated as compressed audio in version 2.
13 years ago
Michael Niedermayer
901af94b69
movenc: Always write EDTS when we are able to.
...
Inspired by a patch from Michael Root
Idea-by: Baptiste Coudurier
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
15130b94fc
movenc: support spliting fragments based on bytesize instead of duration.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
cf8ec019ab
movenc: fragment support
...
Reviewed-by: Baptiste Coudurier
Tested-with-QT: Baptiste Coudurier
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
c863d3751f
movenc: replace cluster memset by zeroing only the needed field.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
c3f9ebf743
lavf: make av_set_pts_info private.
...
It's supposed to be called only from (de)muxers.
13 years ago
Michael Niedermayer
4710993800
movenc: memset(0) new cluster elements after realloc()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Geek.Song
9cdf048ad2
movenc: Remove unneeded chunkSize field from MOVIentry
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
fc09bf57a6
movenc: Write file with minimal number of chunks for the given interleaving.
...
Reviewed-by: Baptiste Coudurier <baptiste.coudurier@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Carl Eugen Hoyos
ed669c9bec
movenc: Set a correct packet size for AMR-NB mode 15, "no data"
...
These packets are valid packets, and consist of 1 byte (which
contains the mode bits).
This had been analyzed and reported by Igor Levin, igor d levin comverse com.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
3a56169fec
movenc: reserved_moov_size, which allows placing moov at the begin of the file.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Carl Eugen Hoyos
891f76b0a8
Fix AMR block length for no data mode when muxing mov.
...
Fixes ticket #550 .
This had been analyzed and reported by Igor Levin, igor d levin comverse com
13 years ago
Anton Khirnov
145f741e11
AVOptions: rename FF_OPT_TYPE_* => AV_OPT_TYPE_*
13 years ago
Anton Khirnov
a4ea00d021
lavc/lavf: use unique private classes.
...
This is needed by the new AVOptions API.
13 years ago
Nicolas George
194c2432ee
movenc: Replace av_realloc by av_realloc_f when relevant.
...
Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
c92a2a4eb8
movenc: fix NULL reference in mov_write_tkhd_tag
...
st may be NULL when there are more mov streams than AVStreams, e.g. when
chapters are present.
13 years ago
Anton Khirnov
7574cacbd5
movenc: create an alternate group for each media type
...
Partially fixes bug 44.
13 years ago
Laurent Aimar
b59efc9434
Fixed size given to init_get_bits().
...
init_get_bits() takes a number of bits and not a number of bytes as
its size argument.
Signed-off-by: Alex Converse <alex.converse@gmail.com>
13 years ago
Laurent Aimar
e5e0580b93
Fixed size given to init_get_bits().
...
init_get_bits() takes a number of bits and not a number of bytes as
its size argument.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
fb42d156ed
movenc: use libx264 by default when possible for mov, mp4 and psp
14 years ago
Anton Khirnov
eb97dbb05a
movenc: change AV_LOG_INFO to AV_LOG_WARNING for some warnings
14 years ago
Anton Khirnov
dfc2c4d900
lavf: use designated initialisers for all (de)muxers.
...
It's more readable and less prone to breakage.
14 years ago
Anton Khirnov
001d668d40
lavf: factor out conversion of ISO8601 string to unix time
14 years ago
Anton Khirnov
5f847bf61d
lavf: deprecate AVFormatContext.timestamp
...
It's replaced by 'creation_time' metadata tag.
14 years ago
Anton Khirnov
71a861cf40
lavc: make avcodec_alloc_context3 officially public.
...
Deprecate avcodec_alloc_context/2.
14 years ago
Mans Rullgard
0ebcdf5cda
Do not include mathematics.h in avutil.h
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
ee8aecd23a
Do not include intfloat_readwrite.h in avutil.h
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago