File tree 1 file changed +9
-6
lines changed
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -835,12 +835,15 @@ def accept(self):
835
835
# These extra options should be set in an extra method
836
836
# No feedback is given to the user
837
837
# TODO: Tell user if option is not available
838
- # Set the quality in case crf was selected
839
- if "crf" in self .txtVideoBitRate .text ():
840
- w .SetOption (openshot .VIDEO_STREAM , "crf" , str (int (video_settings .get ("video_bitrate" ))) )
841
-
842
- # Muxing options for mp4/mov
843
- w .SetOption (openshot .VIDEO_STREAM , "muxing_preset" , "mp4_faststart" )
838
+ if export_type in [_ ("Audio Only" )]:
839
+ # Muxing options for mp4/mov
840
+ w .SetOption (openshot .AUDIO_STREAM , "muxing_preset" , "mp4_faststart" )
841
+ else :
842
+ # Muxing options for mp4/mov
843
+ w .SetOption (openshot .VIDEO_STREAM , "muxing_preset" , "mp4_faststart" )
844
+ # Set the quality in case crf was selected
845
+ if "crf" in self .txtVideoBitRate .text ():
846
+ w .SetOption (openshot .VIDEO_STREAM , "crf" , str (int (video_settings .get ("video_bitrate" ))) )
844
847
845
848
# Open the writer
846
849
w .Open ()
You can’t perform that action at this time.
0 commit comments