avdevice/decklink_dec: capture timecode to metadata when requested
If the user provides a valid timecode_format look for timecode of that format in the capture and if found store it on the video avstream's metadata. Slightly modified by Marton Balint to capture per-frame timecode as well. Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
committed by
Marton Balint
parent
fb480a1f1e
commit
0946c0ec17
@@ -93,6 +93,7 @@ struct decklink_ctx {
|
||||
BMDDisplayMode bmd_mode;
|
||||
BMDVideoConnection video_input;
|
||||
BMDAudioConnection audio_input;
|
||||
BMDTimecodeFormat tc_format;
|
||||
int bmd_width;
|
||||
int bmd_height;
|
||||
int bmd_field_dominance;
|
||||
@@ -169,6 +170,17 @@ static const BMDVideoConnection decklink_video_connection_map[] = {
|
||||
bmdVideoConnectionSVideo,
|
||||
};
|
||||
|
||||
static const BMDTimecodeFormat decklink_timecode_format_map[] = {
|
||||
(BMDTimecodeFormat)0,
|
||||
bmdTimecodeRP188VITC1,
|
||||
bmdTimecodeRP188VITC2,
|
||||
bmdTimecodeRP188LTC,
|
||||
bmdTimecodeRP188Any,
|
||||
bmdTimecodeVITC,
|
||||
bmdTimecodeVITCField2,
|
||||
bmdTimecodeSerial,
|
||||
};
|
||||
|
||||
HRESULT ff_decklink_get_display_name(IDeckLink *This, const char **displayName);
|
||||
int ff_decklink_set_configs(AVFormatContext *avctx, decklink_direction_t direction);
|
||||
int ff_decklink_set_format(AVFormatContext *avctx, int width, int height, int tb_num, int tb_den, enum AVFieldOrder field_order, decklink_direction_t direction = DIRECTION_OUT, int num = 0);
|
||||
|
||||
Reference in New Issue
Block a user