Skip to content
Browse files

Support for changing volume

  • Loading branch information...
1 parent ff0a259 commit 4c644ef3eaf203b2f6c2bad857e94ebcfd7c3585 @rastersoft committed
Showing with 9 additions and 3 deletions.
  1. +7 −0 devede_ffmpeg_convert.py
  2. +1 −1 devede_newfiles.py
  3. +1 −2 interface/wfile.ui
View
7 devede_ffmpeg_convert.py
@@ -232,6 +232,10 @@ def __init__(self,global_vars,videofile,filename,filefolder,progresbar,proglabel
command_var.append("-i")
command_var.append(videofile["path"])
+ if (volume!=100):
+ command_var.append("-vol")
+ command_var.append(str((256*volume)/100))
+
if (audiodelay!=0.0) and (copy_audio==False) and (isvob==False):
command_var.append("-itsoffset")
command_var.append(str(audiodelay))
@@ -523,6 +527,9 @@ def __init__(self,global_vars,videofile,filename,filefolder,progresbar,proglabel
at=audio_tracks
while (at>1):
+ if (volume!=100):
+ command_var.append("-vol")
+ command_var.append(str((256*volume)/100))
command_var.append("-newaudio")
at-=1
View
2 devede_newfiles.py
@@ -1319,7 +1319,7 @@ def set_widgets(self):
self.tree.get_object("lameopts_label").set_visible(use_ffmpeg)
self.tree.get_object("custom_params_lavcopts").set_visible(use_ffmpeg)
self.tree.get_object("custom_params_lameopts").set_visible(use_ffmpeg)
- self.tree.get_object("volume_frame").set_visible(use_ffmpeg)
+ #self.tree.get_object("volume_frame").set_visible(use_ffmpeg)
self.tree.get_object("audiotrack_box").set_visible(use_ffmpeg)
self.tree.get_object("frame_field_order").set_visible(use_ffmpeg)
View
3 interface/wfile.ui
@@ -42,8 +42,7 @@
<property name="page_increment">100</property>
</object>
<object class="GtkAdjustment" id="volume_adj">
- <property name="lower">25</property>
- <property name="upper">250</property>
+ <property name="upper">300</property>
<property name="value">100</property>
<property name="step_increment">1</property>
<property name="page_increment">10</property>

0 comments on commit 4c644ef

Please sign in to comment.
Something went wrong with that request. Please try again.