look for timecode to "format" key of ffprobe data

This commit is contained in:
iLLiCiTiT 2021-11-15 16:12:48 +01:00
parent 161db35672
commit 044cb1d681

View file

@ -597,6 +597,14 @@ def burnins_from_data(
if source_timecode is None:
source_timecode = stream.get("tags", {}).get("timecode")
if source_timecode is None:
# Use "format" key from ffprobe data
# - this is used e.g. in mxf extension
input_format = burnin.ffprobe_data.get("format") or {}
source_timecode = input_format.get("timecode")
if source_timecode is None:
source_timecode = input_format.get("tags", {}).get("timecode")
if source_timecode is not None:
data[SOURCE_TIMECODE_KEY[1:-1]] = SOURCE_TIMECODE_KEY