mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-30 04:02:04 +08:00
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.
This commit is contained in:
committed by
Clément Bœsch
parent
0f0f3bd1e0
commit
6b35f1a2a6
@@ -32,12 +32,6 @@
|
||||
|
||||
#define AV_TIMECODE_STR_SIZE 16
|
||||
|
||||
#define AV_TIMECODE_OPTION(ctx, string_field, flags) \
|
||||
"timecode", "set timecode value following hh:mm:ss[:;.]ff format, " \
|
||||
"use ';' or '.' before frame number for drop frame", \
|
||||
offsetof(ctx, string_field), \
|
||||
AV_OPT_TYPE_STRING, {.str=NULL}, CHAR_MIN, CHAR_MAX, flags
|
||||
|
||||
enum AVTimecodeFlag {
|
||||
AV_TIMECODE_FLAG_DROPFRAME = 1<<0, ///< timecode is drop frame
|
||||
AV_TIMECODE_FLAG_24HOURSMAX = 1<<1, ///< timecode wraps after 24 hours
|
||||
|
||||
Reference in New Issue
Block a user