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] Calling Recode Video From Module #22126

Closed
ragov883 opened this issue Aug 16, 2019 · 1 comment
Closed

[Python] Calling Recode Video From Module #22126

ragov883 opened this issue Aug 16, 2019 · 1 comment
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, I have a basic script here that is designed to download the best format under 50MB here: https://pastebin.com/9Y4z2iwk

I know about the --recode-video which allows me to recode a video if the format is not supported by the download. My goal is to download the best mp4 videos and, if the best video is not in mp4 format, recode it into mp4. However, I am not using YouTube-DL via the command line but embedded into my Python module and there is no "recode-video" listed here in the YouTubeDL.

One last thing (a little off topic but relevant). Options such as the downloader cannot be controlled video the YouTubeDL module since their handled by the downloader, a seperate module. How do I control this and add it into my YouTubeDL options inside my Python program?

@ragov883 ragov883 added the question label Aug 16, 2019
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Aug 16, 2019

You must explicitly set FFmpegVideoConvertor postprocessor.
Control what? Bother to clearly explain yourself.

@dstftw dstftw closed this Aug 16, 2019
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.