Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
[Python] Trigger FFMPEG If Conditions Are Not Met? #22119
Comments
|
See FAQ for format selection, |
|
@dstftw Hi, sorry to bother, but where can I call it within Python? I checked the YouTubeDL module and theres no "recode-video" option (yes it exists if i call youtube-dl via the commandline but im trying to embed it within my Python app) |
Checklist
Question
Hi, im playing around with the FFMPEG settings and this is my code so far here: https://pastebin.com/60zUzCRT
Currently, YouTube-Dl downloads the best filesize thats less than 50MB. I was wondering if its possible to set a command that it downloads the best MP4 version and if an MP4 version does not exist, it will download the best version then use FFMPEG to convert it to MP4 format.
Thank you!