mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-16 02:02:53 -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!
|
elif nzbtomedia.ALLOWSUBS: # Not every subtitle codec can be used for every video container format!
|
||||||
sub_cmd.extend(['-c:s', 'copy'])
|
sub_cmd.extend(['-c:s', 'copy'])
|
||||||
else: # http://en.wikibooks.org/wiki/FFMPEG_An_Intermediate_Guide/subtitle_options
|
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:
|
if nzbtomedia.OUTPUTFASTSTART:
|
||||||
other_cmd.extend(['-movflags', '+faststart'])
|
other_cmd.extend(['-movflags', '+faststart'])
|
||||||
|
@ -357,8 +357,8 @@ def buildCommands(file, newDir):
|
||||||
continue
|
continue
|
||||||
map_cmd.extend(['-map', '0:' + str(sub["index"])])
|
map_cmd.extend(['-map', '0:' + str(sub["index"])])
|
||||||
s_mapped.extend([sub["index"]])
|
s_mapped.extend([sub["index"]])
|
||||||
if not nzbtomedia.ALLOWSUBS:
|
if not nzbtomedia.ALLOWSUBS or not s_mapped:
|
||||||
sub_cmd.extend('-sn')
|
sub_cmd.extend(['-sn'])
|
||||||
else:
|
else:
|
||||||
if nzbtomedia.SCODEC:
|
if nzbtomedia.SCODEC:
|
||||||
sub_cmd.extend(['-c:s', nzbtomedia.SCODEC])
|
sub_cmd.extend(['-c:s', nzbtomedia.SCODEC])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue