subprocess call ffmpeg (command line)

前端 未结 4 657
轻奢々
轻奢々 2020-12-31 11:16

I have been incorporating subprocess calls in my program. I have had no issues with subprocess calls for other commands, but I am having trouble getting the command line inp

4条回答
  •  天涯浪人
    2020-12-31 11:49

    import shlex
    import pipes
    from subprocess import check_call
    
    command = 'ffmpeg -r 10 -i frame%03d.png -r ntsc ' + pipes.quote(out_movie)
    check_call(shlex.split(command))
    

提交回复
热议问题