Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Download from youtube
#7
Also missing .format.
Need raw string in path r"C:\Users\Anton"
url = 'http://google.com'
process_call = 'ffmpeg -ss {1} -to {2} -i "{0}" -acodec aac -b:a 192k -avoid_negative_ts make_zero "{3}"'.\
format(url, "00:10:00.00", "00:10:56.00", r"C:\Users\Anton")
print(repr(process_call))
Output:
'ffmpeg -ss 00:10:00.00 -to 00:10:56.00 -i "http://google.com" -acodec aac -b:a 192k -avoid_negative_ts make_zero "C:\\Users\\Anton"'
Advice is always write it as list to avoid shell=True(not secure).
Reply


Messages In This Thread
Download from youtube - by antonbison - Mar-24-2018, 09:47 PM
RE: Download from youtube - by micseydel - Mar-24-2018, 10:51 PM
RE: Download from youtube - by antonbison - Mar-24-2018, 10:55 PM
RE: Download from youtube - by buran - Mar-25-2018, 08:27 AM
RE: Download from youtube - by antonbison - Mar-25-2018, 08:43 AM
RE: Download from youtube - by buran - Mar-25-2018, 08:46 AM
RE: Download from youtube - by snippsat - Mar-25-2018, 09:02 AM
RE: Download from youtube - by buran - Mar-25-2018, 09:25 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  download with internet download manager coral_raha 0 3,029 Jul-18-2021, 03:11 PM
Last Post: coral_raha
  How to get python to download YouTube videos in the background? Pythenx 11 10,909 Mar-25-2019, 04:57 AM
Last Post: samsonite

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020