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
Martin Storsjö
d16cccac98
movenc: Add RTP muxer/hinter options
...
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Martin Storsjö
f3f82296a4
movenc: Pass the RTP AVFormatContext to the SDP generation
...
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Martin Storsjö
0558e266a2
sdp: Allow passing an AVFormatContext to the SDP generation
...
Options from the AVFormatContext can be read for modifying
the generated SDP.
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Anton Khirnov
d2d67e424f
Remove all uses of now deprecated metadata functions.
14 years ago
Gil Pedersen
c16919487e
improved 'edts' atom writing support
...
The 'edts' write function can now generate an initial empty edit resulting in a track-specific presentation delay.
This is automatically calculated and inserted for any track where the initial DTS != 0.
Added support for long (version==1) timecodes.
14 years ago
Martin Storsjö
28734ac995
movenc: Deprecate the global RTP hinting flag, use a private AVOption instead
...
Instead of -fflags rtphint, set -movflags rtphint instead.
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Martin Storsjö
91e3a25ef6
movenc: Add an AVClass for setting muxer specific options
...
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Martin Storsjö
bd61b2a1ca
movenc: Pass AVFormatContext flags to the SDP generation
14 years ago
Martin Storsjö
abe9363889
sdp: Allow passing AVFormatContext flags to the SDP generation
14 years ago
Baptiste Coudurier
7e19a6e868
movenc: always write esds descriptor length using 4 bytes.
...
ipod shuffle doesn't support anything else.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Baptiste Coudurier
304e983dc7
movenc: fix yuv range in avid atoms used by dnxhd.
...
yuv range: full 1 / normal 2
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Alex Converse
7fe3207e25
movenc: fix adpcm mono muxing.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Alex Converse
1a5e4fd8c5
Replace strncpy() with av_strlcpy().
14 years ago
Baptiste Coudurier
c22f2527ed
In mov and flv muxer, check aac bitstream validity.
14 years ago
Baptiste Coudurier
0ba8485666
In mov muxer, compute avg bitrate in esds
14 years ago
Anton Khirnov
6dc7d80de7
avio: avio_ prefix for url_close_dyn_buf
14 years ago
Anton Khirnov
b92c545282
avio: avio_ prefix for url_open_dyn_buf
14 years ago
Anton Khirnov
8978fedaee
avio: introduce an AVIOContext.seekable field
...
Use it instead of url_is_streamed and AVIOContext.is_streamed.
14 years ago
Baptiste Coudurier
93dfda8896
In ipod/mov/mp4 muxer, always write esds descriptor length using 4 bytes,
...
ipod shuffle doesn't support anything else.
14 years ago
Baptiste Coudurier
efdad9fbc7
In mov muxer, fix yuv range in avid atoms used by dnxhd.
14 years ago