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.
HEVC recode. Is that possible? #17134
Comments
|
If I know Youtube-dl don't change encoding. This can be do in post-process https://trac.ffmpeg.org/wiki/Encode/H.265 eg |
Try |
YouTube already offers HEVC encoded streams? This is new to me.. since when? |
IIRC, some 4K videos may be offered both in HEVC and VP9. I don't remember if that also extended to lower resolutions' encoding, or if that was simple testing/experiments on YT side |
|
Hi guys. |
|
|
|
Did you try |
|
Yes, I've tried. Now it works! Can we also use CRF instead of bitrate? YES, WE CAN: youtube-dl https://www.youtube.com/watch?v=BaW_jenozKc --postprocessor-args "-c:v libx265 -preset slow -crf 15 -c:a opus -strict experimental -b:a 128k" --merge-output-format mkv Please, put that in the Wiki because many people need that info. Thank you guys so much! |
|
Also works for mp4: youtube-dl https://www.youtube.com/watch?v=BaW_jenozKc --postprocessor-args "-c:v libx265 -preset slow -crf 15 -c:a opus -strict experimental -b:a 128k" --merge-output-format mp4 I preffer a higher -crf, 28 is the default. |
|
@williamjmorenor This works amazing. Any way to show progress for the post processing? |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like this:[x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2018.07.29. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add the
-vflag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):
Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
Description of your issue, suggested solution and other information
Explanation of your issue in arbitrary form goes here. Please make sure the description is worded well enough to be understood. Provide as much context and examples as possible.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
Hi there.
I'm currently using Youtube-DL as an archiving tool and it works great. The problem is I always have to use Handbrake after downloading new videos in order to encode them to hevc.
I see Youtube-DL has a recode option but that option doesn't seem to use HEVC as a codec. Is there a way I can use directly HEVC video and OPUS audio with youtube-dl? It'd be so much easier to me since HEVC and OPUS are great standards in the YouTube archiving community. Yes, we do have a community against censorship and we provide archiving of some very important YouTube channels in case they get removed or banned.