

In that case the single quotes should not be escaped for ffmpeg to work correctly. I ran into the same issue with the crop filter using expressions that requires single quotes. I’m actually trying to scale conditionally (only scale down for if source has bigger dimensions), for that I need to enter a more complex scaling value which involves expressions as found on Outstream = ffmpeg.output(v0,a0, outfile, acodec='aac', audio_bitrate='96K',vcodec='libx265', crf='23' ) V0 = inputstream.filter_('scale',"320x240") # this works, resulting in get_args item 'scale=320x240' Running against the same issue when trying to scale down. Error initializing filter 'subtitles' with args 'tes\\\'t.mkv'įile "test.py", line 14, in convert_videoįile "/home/baa/.local/lib/python3.6/site-packages/ffmpeg/_run.py", line 212, in runįfmpeg._run.Error: ffmpeg error (see stderr output for detail) If I attempt to run this stream then ffmpeg crashes with the below error: Unable to open tes\'t.mkv Stream = ffmpeg.output(stream, file_path + '2.mkv') Stream = ffmpeg.filter_(stream,'subtitles',str(file_path))

This is a script I recreated this with: import ffmpeg I’m not 100% sure this is an issue with this library or if it’s something else, but basically I am attempting to use the ‘subtitles’ filter by feeding it an mkv file, ffmpeg always crashes and when I printed the stream arguments I got the below:
