HA
Turns off the double colon ":" in C: \ Windows \ Fonts, etc., acts as a split, so when I entered the full path of the font, ffmpeg read my command as follows
source team
" -vf drawtext=fontfile='C:\\Windows\\fonts\\arial.ttf'|text='test' "
ffmpeg interpretation
-vf drawtext=
So, to fix this, you need to strengthen: in the path of the font file.
My last working code:
import subprocess ffmpeg = "C:\\ffmpeg_10_6_11.exe" inVid = "C:\\test_in.avi" outVid = "C:\\test_out.avi" subprocess.Popen(ffmpeg + " -i " + inVid + ''' -vf drawtext=fontfile=/Windows/Fonts/arial.ttf:text=test ''' + outVid , shell=True)
Jared source share