Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Python] Trigger FFMPEG If Conditions Are Not Met? #22119

Closed
ragov883 opened this issue Aug 16, 2019 · 2 comments
Closed

[Python] Trigger FFMPEG If Conditions Are Not Met? #22119

ragov883 opened this issue Aug 16, 2019 · 2 comments
Labels

Comments

@ragov883
Copy link

@ragov883 ragov883 commented Aug 16, 2019

Checklist

  • [ x] I'm asking a question
  • [x ] I've looked through the README and FAQ for similar questions
  • [x ] I've searched the bugtracker for similar questions including closed ones

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!

@ragov883 ragov883 added the question label Aug 16, 2019
@ragov883 ragov883 changed the title Trigger FFMPEG If Conditions Are Not Met? [Python] Trigger FFMPEG If Conditions Are Not Met? Aug 16, 2019
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Aug 16, 2019

See FAQ for format selection, --recode-video for recoding.

@dstftw dstftw closed this Aug 16, 2019
@ragov883
Copy link
Author

@ragov883 ragov883 commented Aug 16, 2019

@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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.