mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
fix subtitle codec for external subs. #678
This commit is contained in:
parent
f716323b76
commit
ee312d1dca
1 changed files with 7 additions and 7 deletions
|
@ -438,13 +438,6 @@ def buildCommands(file, newDir, movieName, bitbucket):
|
||||||
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 or not s_mapped:
|
|
||||||
sub_cmd.extend(['-sn'])
|
|
||||||
else:
|
|
||||||
if nzbtomedia.SCODEC:
|
|
||||||
sub_cmd.extend(['-c:s', nzbtomedia.SCODEC])
|
|
||||||
else:
|
|
||||||
sub_cmd.extend(['-c:s', 'copy'])
|
|
||||||
|
|
||||||
if nzbtomedia.OUTPUTFASTSTART:
|
if nzbtomedia.OUTPUTFASTSTART:
|
||||||
other_cmd.extend(['-movflags', '+faststart'])
|
other_cmd.extend(['-movflags', '+faststart'])
|
||||||
|
@ -464,6 +457,13 @@ def buildCommands(file, newDir, movieName, bitbucket):
|
||||||
n += 1
|
n += 1
|
||||||
command.extend(['-i', subfile])
|
command.extend(['-i', subfile])
|
||||||
#map_cmd.extend(['-map', n]) #Commented out as this appears to break the transcode.
|
#map_cmd.extend(['-map', n]) #Commented out as this appears to break the transcode.
|
||||||
|
if not nzbtomedia.ALLOWSUBS or (not s_mapped and not n):
|
||||||
|
sub_cmd.extend(['-sn'])
|
||||||
|
else:
|
||||||
|
if nzbtomedia.SCODEC:
|
||||||
|
sub_cmd.extend(['-c:s', nzbtomedia.SCODEC])
|
||||||
|
else:
|
||||||
|
sub_cmd.extend(['-c:s', 'copy'])
|
||||||
|
|
||||||
command.extend(map_cmd)
|
command.extend(map_cmd)
|
||||||
command.extend(video_cmd)
|
command.extend(video_cmd)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue