Added audio bitrate check for mp2.Updated avconv scale options.
This commit is contained in:
parent
b9036954b4
commit
72815ecbf2
1 changed files with 3 additions and 1 deletions
|
|
@ -203,7 +203,7 @@ class avconv(devedeng.executor.executor):
|
|||
if (file_project.width_final != file_project.width_midle) or (file_project.height_final != file_project.height_midle):
|
||||
if (cmd_line!=""):
|
||||
cmd_line+=",fifo,"
|
||||
cmd_line+="scale="+str(file_project.width_final)+":"+str(file_project.height_final)
|
||||
cmd_line+="scale=w="+str(file_project.width_final)+":h="+str(file_project.height_final)
|
||||
|
||||
if cmd_line!="":
|
||||
self.command_var.append("-vf")
|
||||
|
|
@ -376,6 +376,8 @@ class avconv(devedeng.executor.executor):
|
|||
self.command_var.append("-acodec")
|
||||
if (use_mp2):
|
||||
self.command_var.append("mp2")
|
||||
if (audio_rate > 384):
|
||||
audio_rate = 384 #max bitrate for mp2
|
||||
else:
|
||||
self.command_var.append("ac3")
|
||||
self.command_var.append("-s")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue