diff --git a/vid_convert.py b/vid_convert.py index 6e2e248..54587f5 100755 --- a/vid_convert.py +++ b/vid_convert.py @@ -61,10 +61,6 @@ def interlaced(file, infos): TFF = int(line.split('TFF:')[1].split()[0]) BFF = int(line.split('BFF:')[1].split()[0]) Progressive = int(line.split('Progressive:')[1].split()[0]) - if "frame= " in line: - total_frame = int(line.split()[1]) - elif "frame=" in line: - total_frame = int(line.split()[0].split("=")[1]) try: pct = ((TFF + BFF) / (TFF + BFF + Progressive)) * 100 pct = round(pct)