mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 13:53:15 -07:00
add additional options to pass into ffmpeg. #1619
This commit is contained in:
parent
8c45e76507
commit
fd1149aea1
3 changed files with 12 additions and 1 deletions
|
@ -211,6 +211,7 @@ VEXTENSION = None
|
|||
OUTPUTVIDEOPATH = None
|
||||
PROCESSOUTPUT = False
|
||||
GENERALOPTS = []
|
||||
OTHEROPTS = []
|
||||
ALANGUAGE = None
|
||||
AINCLUDE = False
|
||||
SLANGUAGES = []
|
||||
|
@ -513,6 +514,7 @@ def configure_transcoder():
|
|||
global IGNOREEXTENSIONS
|
||||
global OUTPUTFASTSTART
|
||||
global GENERALOPTS
|
||||
global OTHEROPTS
|
||||
global OUTPUTQUALITYPERCENT
|
||||
global OUTPUTVIDEOPATH
|
||||
global PROCESSOUTPUT
|
||||
|
@ -568,6 +570,11 @@ def configure_transcoder():
|
|||
GENERALOPTS.append('-fflags')
|
||||
if '+genpts' not in GENERALOPTS:
|
||||
GENERALOPTS.append('+genpts')
|
||||
OTHEROPTS = (CFG['Transcoder']['otherOptions'])
|
||||
if isinstance(OTHEROPTS, str):
|
||||
OTHEROPTS = OTHEROPTS.split(',')
|
||||
if OTHEROPTS == ['']:
|
||||
OTHEROPTS = []
|
||||
try:
|
||||
OUTPUTQUALITYPERCENT = int(CFG['Transcoder']['outputQualityPercent'])
|
||||
except Exception:
|
||||
|
|
|
@ -493,6 +493,8 @@ def build_commands(file, new_dir, movie_name, bitbucket):
|
|||
|
||||
if core.OUTPUTFASTSTART:
|
||||
other_cmd.extend(['-movflags', '+faststart'])
|
||||
if core.OTHEROPTS:
|
||||
other_cmd.extend(core.OTHEROPTS)
|
||||
|
||||
command = [core.FFMPEG, '-loglevel', 'warning']
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue