From 53cb97def5f2aa760de32f652e8db7be76be529a Mon Sep 17 00:00:00 2001 From: Mort Yao Date: Tue, 5 Apr 2016 00:39:28 +0200 Subject: [PATCH] [processor.ffmpeg] set safe option to -1 (as default value changed from -1 to 1 in ffmpeg 3.0.1), fix #1023 --- src/you_get/processor/ffmpeg.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/you_get/processor/ffmpeg.py b/src/you_get/processor/ffmpeg.py index e4ea1223..320eb642 100644 --- a/src/you_get/processor/ffmpeg.py +++ b/src/you_get/processor/ffmpeg.py @@ -58,7 +58,7 @@ def ffmpeg_concat_mp4_to_mpg(files, output='output.mpg'): concat_list.close() params = [FFMPEG] + LOGLEVEL - params.extend(['-f', 'concat', '-y', '-i']) + params.extend(['-f', 'concat', '-safe', '-1', '-y', '-i']) params.append(output + '.txt') params += ['-c', 'copy', output] @@ -122,7 +122,7 @@ def ffmpeg_concat_flv_to_mp4(files, output='output.mp4'): concat_list.write("file %s\n" % parameterize(file)) concat_list.close() - params = [FFMPEG] + LOGLEVEL + ['-f', 'concat', '-y', '-i'] + params = [FFMPEG] + LOGLEVEL + ['-f', 'concat', '-safe', '-1', '-y', '-i'] params.append(output + '.txt') params += ['-c', 'copy', output] @@ -167,7 +167,7 @@ def ffmpeg_concat_mp4_to_mp4(files, output='output.mp4'): concat_list.write("file %s\n" % parameterize(file)) concat_list.close() - params = [FFMPEG] + LOGLEVEL + ['-f', 'concat', '-y', '-i'] + params = [FFMPEG] + LOGLEVEL + ['-f', 'concat', '-safe', '-1', '-y', '-i'] params.append(output + '.txt') params += ['-c', 'copy', output]