mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-06 21:21:12 -07:00
Add hardware acceleration toggle for recent ffmpeg versions
This commit is contained in:
parent
bec783fecf
commit
5d39d27367
3 changed files with 12 additions and 3 deletions
|
@ -347,7 +347,12 @@ def buildCommands(file, newDir):
|
|||
if nzbtomedia.OUTPUTFASTSTART:
|
||||
other_cmd.extend(['-movflags', '+faststart'])
|
||||
|
||||
command = [nzbtomedia.FFMPEG, '-loglevel', 'warning', '-i', file]
|
||||
command = [nzbtomedia.FFMPEG, '-loglevel', 'warning']
|
||||
|
||||
if nzbtomedia.HWACCEL:
|
||||
command.extend(['-hwaccel', 'auto'])
|
||||
|
||||
command.extend([ '-i', file])
|
||||
|
||||
if nzbtomedia.SEMBED:
|
||||
filenum = 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue