Skip to content

Commit f6f3af4

Browse files
committed
Include an option to chose between top field first and
bottom field first in interlace mode. Much more work needed.
1 parent e319064 commit f6f3af4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/windows/export.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -471,8 +471,9 @@ def cboProfile_index_changed(self, widget, index):
471471

472472
# Load the interlaced options
473473
self.cboInterlaced.clear()
474-
self.cboInterlaced.addItem(_("Yes"), "Yes")
474+
self.cboInterlaced.addItem(_("Yes Top field first"), "Yes")
475475
self.cboInterlaced.addItem(_("No"), "No")
476+
self.cboInterlaced.addItem(_("Yes Bottom field first"), "Yes")
476477
if profile.info.interlaced_frame:
477478
self.cboInterlaced.setCurrentIndex(0)
478479
else:
@@ -797,6 +798,7 @@ def accept(self):
797798
return
798799

799800
# Init export settings
801+
interlacedIndex = self.cboInterlaced.currentIndex()
800802
video_settings = { "vformat": self.txtVideoFormat.text(),
801803
"vcodec": self.txtVideoCodec.text(),
802804
"fps": { "num" : self.txtFrameRateNum.value(), "den": self.txtFrameRateDen.value()},
@@ -806,8 +808,8 @@ def accept(self):
806808
"video_bitrate": int(self.convert_to_bytes(self.txtVideoBitRate.text())),
807809
"start_frame": self.txtStartFrame.value(),
808810
"end_frame": self.txtEndFrame.value(),
809-
"interlace": self.cboInterlaced.currentIndex() == 0,
810-
"topfirst": self.cboInterlaced.currentIndex() == 0
811+
"interlace": ((interlacedIndex == 0) or (interlacedIndex == 2)),
812+
"topfirst": interlacedIndex == 0
811813
}
812814

813815
audio_settings = {"acodec": self.txtAudioCodec.text(),

0 commit comments

Comments
 (0)