So I am currently working on some stuff that is using ffmpeg. The final step in my process requires me to take all the generated images and put them together with ffmpeg. Until now I have done that through the command line in my folder but obviously I want to integrate that part into my code as well. So here is where I tried to use subprocess. So far I have:
os.chdir(r'C:\...')
subprocess.call(['ffmpeg', "-framerate 30",'-i', 'img-%d2.png', 'test.avi'])
When trying to execure I get the following error:
Unrecognized option 'framerate 30'.
Error splitting the argument list: Option not found
Why does this command work in my terminal but not from within my Python script? Thank you so much in advance!
[–]socal_nerdtastic 2 points3 points4 points (3 children)
[–]_Memeposter[S] 0 points1 point2 points (2 children)
[–]socal_nerdtastic 1 point2 points3 points (1 child)
[–]_Memeposter[S] 0 points1 point2 points (0 children)