Michael Niedermayer
405cc0d905
movenc: hotfix, dont store fiel for h264 / mpeg4-asp / dnxhd
...
Other software does not store it in this case, and the information
is provided by the codec stream
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Carl Eugen Hoyos
7d0e3b197c
Write the fiel atom to mov files independently of the used video coded.
...
The QuickTime specification does not contain any hint that the atom
must not be written in some cases and both the QuickTime and the
AVID decoders do not fail if the atom is present.
This change allows to signal (visually) interlaced streams with
a codec different from uncompressed video.
As a side-effect, this fixes ticket #2202
12 years ago
Martin Storsjö
61d36761ef
movenc: Simplify code by using avio_wb24
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Michael Niedermayer
55d66b2790
movenc: check that fps for tmcd is within encodable range.
...
The fps is stored as a 8 bit value thus 255 is the maximum encodable.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
9362f31b55
movenc: Calculate fps for tmcd without intermediate step.
...
Fixes part of Ticket2045
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
66b45d8f7a
movenc: fix assert failure caused by rounding.
...
Fixes Ticket1820
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Luca Barbato
8034130e06
rtp: set the payload type as stream id
...
Support multiple video/audio streams with different format in the
same session.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years ago
Michael Niedermayer
5f53138621
movenc: remove unneeded check
...
Fixes CID741417
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Jason
a5f6720f13
Add QT CC track mux support
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Tim Nicholson
8a9b48bfa9
movenc: Add required 'prof' atom to 'tapt' atom set.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
bbraun
d72aef4e92
movenc: add more metadata types
...
Fixes Ticket1052
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
fefe9bd782
libavformat/movenc: add {} to complex ifs
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
5c7a62aef5
movenc: fix tmcd parameters
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
b8d64559d5
movenc: fix timescale for timecode track
...
regression since b02493e476
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Tim Nicholson
a02762995b
movenc.c: Force correct value for "Samples per packet" for pcm audio
...
Apple spec is for it to always be "1" for uncompressed audio.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Anton Khirnov
716d413c13
Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat
12 years ago
Michael Niedermayer
537ef8bebf
movenc: support an alternative to edit lists to handle the first DTS != 0 case.
...
Some software does not support edit lists at all, the adobe flash
player seems to be one of these. Which results in AV sync errors when
edit lists are used to adjust AV sync.
2nd try on implementing this, the first try had various issues
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
ac6659aff7
movenc: fix regression with yuyv caused by c5f23d
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Tim Nicholson
60b433d905
movenc.c: Add support for >16bit BE flavours
...
Currently only LE handled correctly
Updated fate checksums to reflect new headers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
b02493e476
movenc: force video timebase to be 0.1ms precisse at least.
...
The timebases before where only guranteed to be 1/fps precisse
and could cause AV sync errors on low fps
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Diego Biurrun
11d4e92ed9
avformat: Remove non-compiling and/or silly commented-out printf/av_log statements
12 years ago
Michael Niedermayer
14fd34d73b
movenc: fix edit list for the case of negative pts.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Clément Bœsch
a714150827
lavf/movenc: add faststart option.
12 years ago
Clément Bœsch
f379a108a4
lavf/movenc: make mov_write_stco_tag() not use the offset pos for mode64 heuristic.
...
At the moment, the moov header is written at the end of the file, so we
can use the current offset (which focus on the end of the mdat already
written) to guess if 64-bits offset will be required or not.
Though, the next commits will make possible the writing of this table at
the beginning, so this heuristic can't work. As a consequence, we check
all the values within the potential offset table for any value >
32-bits.
12 years ago
Clément Bœsch
e17a2aba25
lavf/movenc: add get_moov_size and use it in fragment code.
...
This function will be re-used in the following commits.
12 years ago
Clément Bœsch
7bc70930dd
lavf/movenc: add F4V flavor.
12 years ago
Anton Khirnov
3b4bb19e63
lavf: flush the output AVIOContext in av_write_trailer().
...
This is consistent with stdio and is what we want to do in all cases.
Fixes a bug in the voc muxer which didn't flush in write_trailer()
previously. This is the cause of the change in the test results.
12 years ago
Martin Storsjö
e6153f173a
avopt: Store defaults for AV_OPT_TYPE_INT in the i64 union member
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
d58dd4b5b5
avopt: Store defaults for AV_OPT_TYPE_FLAGS in the i64 union member
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
124134e424
avopt: Store defaults for AV_OPT_TYPE_CONST in the i64 union member
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Kari Lentz
be862c0dac
movenc: support for itunes tempo tag
...
Implements support for tmpo atom for mp4 files, typically used to store BPM. -metadata "tmpo=127" as a command line option will record 127 as the BPM in the meta data.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
cb5bb521aa
lavf/movenc: use two explicit bytes instead of a short.
...
This also avoids a pointless cast.
Idea-by: Reimar Döffinger
13 years ago
Clément Bœsch
aca0f78114
lavf/movenc: add frame rate heuristic for timecode frame rate.
...
Fixes ticket 1576.
13 years ago
Michael Niedermayer
bb2f13c19f
rename missed CodecID to AVCodecID
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
36ef5369ee
Replace all CODEC_ID_* with AV_CODEC_ID_*
13 years ago
Piotr Bandurski
68f4156f44
movenv: fix remuxing of qdm2
13 years ago
Piotr Bandurski
5d2f89a23c
movenc: fix remuxing of svq3
13 years ago
Philip Langdale
3eb56e8434
movenc: Fix unfreed memory found by valgrind.
...
Signed-off-by: Philip Langdale <philipl@overt.org>
13 years ago
Philip Langdale
18175ca9b2
movenc: Handle need for extra packets to express subtitle duration.
...
As packet duration is not stored inherently in MPEG4 containers,
subtitles have their duration expressed by storing an additional
empty packet with a pts matching the desired end time of the real
subtitle. Additionally, it is generally expected that all streams
start at time = 0, so an empty packet needs to be inserted at the
beginning of the stream, before the first real subtitle.
Unfortunately, ffmpeg lacks a proper way to express that a subtitle
might map to multiple packets, so the muxer is the only place we
can handle this.
Signed-off-by: Philip Langdale <philipl@overt.org>
13 years ago
Clément Bœsch
bc42682749
lavf/movenc: fix invalid free with timecode meta and tmcd data copy.
...
Fixes ticket 1577.
13 years ago
Diego Biurrun
0177b7d23a
Improve descriptiveness of a number of codec and container long names
13 years ago
Diego Biurrun
6774247a9d
avformat: Drop pointless "format" from container long names
13 years ago
Piotr Bandurski
c5f23df2dd
movenc: fix remuxing of yuv2
...
Attached patch fixes remuxing of yuv2 in mov (and does not break remuxing of yuvs)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Carl Eugen Hoyos
20e88d8618
Fix avui stream-copy.
...
The native decoder and MPlayer's binary decoder only need the
APRG atom, QuickTime at least requires also the ARES atom and
four additional 0 bytes padding at the end of stsd.
13 years ago
Ronald S. Bultje
fd48721849
lavf: use conditional notation for default codec in muxer declarations.
...
This removes the use of macro nesting in these code constructs, which
makes it easier to parse in pre-processors.
13 years ago
Ronald S. Bultje
5354a904fe
rtsp: remove terminal comma in FF_RTP_FLAG_OPTS macro.
...
This makes usage of the macro look more natural when
used with array entries.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
13 years ago
Stefan Gehrer
e98330df90
movenc: write track header transformation matrix depending on "rotate" metadata
...
should fix ticket #505
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Al@dneg.com
c88a832735
movenc: Addtion of \251cmt field to udta
...
Allows support of comment in udta for libquicktime, also currently \251des is used
which is ignored by mov.c.
\251cmt IS currently already picked up by mov.c
References
libquicktime
http://libquicktime.cvs.sourceforge.net/viewvc/libquicktime/libquicktime/src/udta.c?view=markup
Also listed here:
http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/QuickTime.html#UserData
Not listed here, but that`s not entirely surprising, as udta fields are expected to be somewhat arbitary.
http://developer.apple.com/library/mac/#documentation/QuickTime/qtff/QTFFChap2/qtff2.html#//apple_ref/doc/uid/TP40000939-CH204-BBCCFFGD
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Martin Storsjö
9e74db6850
mov: Support muxing/demuxing iLBC
...
The packet size, signalled via block_align, has to be passed via
the container.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Clément Bœsch
9fb2e234d0
movenc: add timecode track support.
13 years ago