Skip to main content
fixed space-in-url bug
Source Link
Adi
  • 5.2k
  • 6
  • 35
  • 48

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) 

(Edited on request by Abe Karplus to include his solution.)

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) 

(Edited on request by Abe Karplus to include his solution.)

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) 

This is the way to go:

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

(Edited on request by Abe Karplus to include his solution.)

This is the way to go:

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

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) 

(Edited on request by Abe Karplus to include his solution.)

Source Link
Fabrizio
  • 467
  • 3
  • 14

This is the way to go:

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