mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
stats.lua: add timecode display
This commit is contained in:
@@ -996,6 +996,21 @@ local function add_video(s)
|
||||
or {prefix="Picture Type:"}
|
||||
append(s, "Interlaced", attrs)
|
||||
end
|
||||
|
||||
local timecodes = {
|
||||
["gop-timecode"] = "GOP",
|
||||
["smpte-timecode"] = "SMPTE",
|
||||
["estimated-smpte-timecode"] = "Estimated SMPTE",
|
||||
}
|
||||
for prop, name in pairs(timecodes) do
|
||||
if frame_info and frame_info[prop] then
|
||||
local attrs = has_prefix and {prefix=name .. " Timecode:",
|
||||
indent=o.prefix_sep .. o.prefix_sep, nl=""}
|
||||
or {prefix=name .. " Timecode:"}
|
||||
append(s, frame_info[prop], attrs)
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if mp.get_property_native("current-tracks/video/image") == false then
|
||||
|
||||
Reference in New Issue
Block a user