adds another image-based subtitle to discard
Prithu Goswami prithugoswami524@gmail.com
Wed, 07 Mar 2018 23:12:24 +0530
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
amt.py
→
amt.py
@@ -27,7 +27,7 @@
def collect_stream_metadata(filename): """ Returns a list of streams' metadata present in the media file passed as - the argument (filename) + the argument (filename) """ command = 'ffprobe -i "{}" -show_streams -of json'.format(filename) args = shlex.split(command)@@ -125,7 +125,7 @@ stream_md = collect_stream_metadata(filename)
streams_to_process = [] dvdsub_exists=False for stream in stream_md['streams']: - if not stream['codec_name'] == "dvdsub": + if not stream['codec_name'] in ("dvdsub", "pgssub"): streams_to_process.append(stream['index']) else: dvdsub_exists=True