mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-06 13:11:11 -07:00
fixes for subtitle transcoding.
This commit is contained in:
parent
64c02f68aa
commit
cc5632de63
1 changed files with 3 additions and 3 deletions
|
@ -132,7 +132,7 @@ def buildCommands(file, newDir):
|
|||
elif nzbtomedia.ALLOWSUBS: # Not every subtitle codec can be used for every video container format!
|
||||
sub_cmd.extend(['-c:s', 'copy'])
|
||||
else: # http://en.wikibooks.org/wiki/FFMPEG_An_Intermediate_Guide/subtitle_options
|
||||
sub_cmd.extend('-sn') # Don't copy the subtitles over
|
||||
sub_cmd.extend(['-sn']) # Don't copy the subtitles over
|
||||
|
||||
if nzbtomedia.OUTPUTFASTSTART:
|
||||
other_cmd.extend(['-movflags', '+faststart'])
|
||||
|
@ -357,8 +357,8 @@ def buildCommands(file, newDir):
|
|||
continue
|
||||
map_cmd.extend(['-map', '0:' + str(sub["index"])])
|
||||
s_mapped.extend([sub["index"]])
|
||||
if not nzbtomedia.ALLOWSUBS:
|
||||
sub_cmd.extend('-sn')
|
||||
if not nzbtomedia.ALLOWSUBS or not s_mapped:
|
||||
sub_cmd.extend(['-sn'])
|
||||
else:
|
||||
if nzbtomedia.SCODEC:
|
||||
sub_cmd.extend(['-c:s', nzbtomedia.SCODEC])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue