Python subprocess arguments

前端 未结 3 1187
迷失自我
迷失自我 2021-01-01 23:09

For example I am using ffplay and want to run this command -bufsize[:stream_specifier] integer (output,audio,video)

At the moment I have th

3条回答
  •  粉色の甜心
    2021-01-01 23:17

    This is the way to go:

    url = 'http://www.whatever.com'
    cmd = 'ffplay -vn -nodisp -bufsize 4096 '.split()
    subprocess.call(cmd + [str(url)], shell=False)
    

提交回复
热议问题