Michael Niedermayer
8214c1d82c
mxfenc: avoid depending on private codec structures and functions
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Paul B Mahol
d885cc41e5
Fix "knwon" typo and add a check in tools/patcheck
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Tomas Härdin
5c108092a3
mxfenc: Write MultipleDescriptor ref in Preface
...
Reviewed-by: Matthieu Bouron <matthieu.bouron@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Tomas Härdin
e3ba817b95
mxfenc: Fix possible integer overflows
...
None of these are likely unless the user is writing a file with two billion
streams or a duration of around two months.
This fixes CIDs 700568, 700569, 700570, 700571, 700572 and 700573.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
c2c066784f
libavformat/mxfenc: add {} to complex ifs
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
3896cd11a1
mxfenc: explicitly truncate continuity count.
...
The field is intended to overflow and have only its low 16bits stored.
This commit avoids the implicit truncation and clarifies that its
intended and not a bug
S326m section 7.6 ("Continuity count"):
> The continuity count word consists of 2 bytes allow-
> ing a number to be created by a modulo 65536
> counter (bits C15 to C0 in figure 7). The continuity
> count shall increment by 1 for each newly transmit-
> ted content package with the same SDTI source and
> destination addresses. The continuity count may
> be used to detect whether the content package
> sequence has been broken by an operation such as
> a routing switch.
Approved-by: Tjoppen
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
adcfc0535d
mxfenc: fix av_log data type for dts paramater
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Diego Biurrun
72eaba5e4f
avformat: Convert some commented-out printf/av_log instances to av_dlog
12 years ago
Matthieu Bouron
41f7e0649f
mxf: export ff_mxf_get_samples_per_frame to lavf
...
Reviewed-by: Tomas Härdin <tomas.hardin@codemill.se>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Matthieu Bouron
d57ca5e5a8
mxfenc: support 23.976 and 24 frame rates
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Matthieu Bouron
906a263813
mxfenc: factorize samples per frame code
...
Reviewed-by: Tomas Härdin <tomas.hardin@codemill.se>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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
Piotr Bandurski
08277a45c3
lavf: add missing new line to some error messages
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Clément Bœsch
6b3484dcbc
lavf/mxfenc: better error handling with invalid frame rate.
12 years ago
Clément Bœsch
aad737c669
lavf/mxfenc: simplify frame rate checks.
12 years ago
Anton Khirnov
36ef5369ee
Replace all CODEC_ID_* with AV_CODEC_ID_*
12 years ago
Clément Bœsch
16dc5f2050
Replace various inlined inverse AVRational with av_inv_q().
12 years ago
Diego Biurrun
0177b7d23a
Improve descriptiveness of a number of codec and container long names
12 years ago
Michael Niedermayer
db03f91f4b
mxfenc: switch to av_assert
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Matthieu Bouron
b8a90976da
lavf/mxfenc: fix dnxhd codec uls and aspect ratio
...
Reviewed-by: Tomas Härdin <tomas.hardin@codemill.se>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Matthieu Bouron
d99001cab3
mxfenc: support dnxhd codec
13 years ago
Matthieu Bouron
135e684311
mxfenc: support smpte dv codec
...
After some internal talks it seems the code is similar to what is in FFmbc
by Baptiste Coudurier; Baptiste accepted to relicense the similiar chunks
from GPL to LGPL.
13 years ago
Matthieu Bouron
f6d952f584
mxfenc: write optional field dominance flag in picture description
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
6b35f1a2a6
timecode: move timecode muxer options to metadata.
...
Some demuxers set a timecode in the format or streams metadata. The
muxers now make use of this metadata instead of a duplicated private
option.
This makes possible transparent copy of the timecode when transmuxing
and transcoding.
-timecode option for MPEG1/2 codec is also renamed to -gop_timecode. The
global ffmpeg -timecode option will set it anyway so no option change
visible for the user.
13 years ago
Matthieu Bouron
320e537baf
mxfenc: support 50 and 60 frame rates
...
Reviewed-by: Tomas Härdin <tomas.hardin@codemill.se>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Tomas Härdin
24e90d0c05
mxfenc: Don't allow muxing audio-only since it's not supported
...
This fixes muxing audio-only output resulting in SIGFPE due to lack of EditRate.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
bf6e83a8e8
mxfenc: use new public timecode API.
13 years ago
Anton Khirnov
df0bb26aca
lavf: remove disabled FF_API_TIMESTAMP cruft
13 years ago
Daniel Kristjansson
adff77f28c
mxfenc: Add support for MPEG-2 MP@HL-14 in mxf container.
...
Support Main Profile at High 1440 Level in MXF container,
using essence coding label from SMPTE RDD 9, table 6.
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
13 years ago
Clément Bœsch
80914cde6f
timecode: rename internal ff_* symbols to avpriv_*.
...
Those functions are shared between libs.
Also fix a typo in function names: smtpe → smpte.
13 years ago
Diego Biurrun
da9cea77e3
Fix a bunch of common typos.
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
Daniel Kristjansson
4460b81f9e
mxfenc: Add support for MPEG-2 MP@HL-14 in mxf container
...
Support Main Profile at High 1440 Level in MXF container,
using essence coding label from SMPTE RDD 9, table 6.
13 years ago
Clément Bœsch
b49fe589ea
mxf: honor timecode drop flag in mxf muxer if set.
13 years ago
Clément Bœsch
b33ca05b46
mxf: add cli option in mxfenc to replace GOP timecode parsing.
...
This is based on the original work by Baptiste Coudurier.
13 years ago
Clément Bœsch
4c3c6e60f9
mxf: move framenum to timecode convert to timecode helpers.
...
This is based on the original work by Baptiste Coudurier.
13 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
Kostya Shishkov
2c4d7bf008
mxfenc: include needed header for ff_iso8601_to_unix_time() prototype
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
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
Clément Bœsch
76f105967b
mxfenc: fix ignored drop flag in binary timecode representation.
14 years ago
Clément Bœsch
4d5e7ab5c4
mxfenc: fix ignored drop flag in binary timecode representation.
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Clément Bœsch
19b6127365
mxfenc: small typo fix
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
14 years ago
Michael Niedermayer
2d2b5a1421
10l, commit that should have been stashed into the merge.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Diego Biurrun
6001dad6e2
Replace more FFmpeg references by Libav.
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
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Anton Khirnov
b7f2fdde74
avio: rename put_flush_packet -> avio_flush
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
384c9c2fa7
avio: add avio_tell macro as a replacement for url_ftell
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit a2704c9712
)
14 years ago
Anton Khirnov
a2704c9712
avio: add avio_tell macro as a replacement for url_ftell
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago