mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -07:00
Add 'dvb_subtitle' codec to list of ignored codecs when using 'mov_text' (#1974)
Add 'dvb_subtitle' codec to list of ignored codecs when using 'mov_text'. DVB subtitles are bitmap based.
This commit is contained in:
parent
c4cc554ea1
commit
e72c0b9228
1 changed files with 3 additions and 3 deletions
|
@ -479,7 +479,7 @@ def build_commands(file, new_dir, movie_name, bitbucket):
|
||||||
burnt = 1
|
burnt = 1
|
||||||
if not core.ALLOWSUBS:
|
if not core.ALLOWSUBS:
|
||||||
break
|
break
|
||||||
if sub['codec_name'] in ['dvd_subtitle', 'VobSub'] and core.SCODEC == 'mov_text': # We can't convert these.
|
if sub['codec_name'] in ['dvd_subtitle', 'dvb_subtitle', 'VobSub'] and core.SCODEC == 'mov_text': # We can't convert these.
|
||||||
continue
|
continue
|
||||||
map_cmd.extend(['-map', '0:{index}'.format(index=sub['index'])])
|
map_cmd.extend(['-map', '0:{index}'.format(index=sub['index'])])
|
||||||
s_mapped.extend([sub['index']])
|
s_mapped.extend([sub['index']])
|
||||||
|
@ -490,7 +490,7 @@ def build_commands(file, new_dir, movie_name, bitbucket):
|
||||||
break
|
break
|
||||||
if sub['index'] in s_mapped:
|
if sub['index'] in s_mapped:
|
||||||
continue
|
continue
|
||||||
if sub['codec_name'] in ['dvd_subtitle', 'VobSub'] and core.SCODEC == 'mov_text': # We can't convert these.
|
if sub['codec_name'] in ['dvd_subtitle', 'dvb_subtitle', 'VobSub'] and core.SCODEC == 'mov_text': # We can't convert these.
|
||||||
continue
|
continue
|
||||||
map_cmd.extend(['-map', '0:{index}'.format(index=sub['index'])])
|
map_cmd.extend(['-map', '0:{index}'.format(index=sub['index'])])
|
||||||
s_mapped.extend([sub['index']])
|
s_mapped.extend([sub['index']])
|
||||||
|
@ -516,7 +516,7 @@ def build_commands(file, new_dir, movie_name, bitbucket):
|
||||||
continue
|
continue
|
||||||
if core.SCODEC == 'mov_text':
|
if core.SCODEC == 'mov_text':
|
||||||
subcode = [stream['codec_name'] for stream in sub_details['streams']]
|
subcode = [stream['codec_name'] for stream in sub_details['streams']]
|
||||||
if set(subcode).intersection(['dvd_subtitle', 'VobSub']): # We can't convert these.
|
if set(subcode).intersection(['dvd_subtitle', 'dvb_subtitle', 'VobSub']): # We can't convert these.
|
||||||
continue
|
continue
|
||||||
command.extend(['-i', subfile])
|
command.extend(['-i', subfile])
|
||||||
lan = os.path.splitext(os.path.splitext(subfile)[0])[1][1:].split('-')[0]
|
lan = os.path.splitext(os.path.splitext(subfile)[0])[1][1:].split('-')[0]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue