question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Default settings (-f bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4) only download 720p or lower anymore.

See original GitHub issue

I think by default youtuble-dl grabs best quality anyhow, so maybe setting this is kinda passé anyhow?

A setting to change this globally (subs and on-demand) would be helpful. I’m open to grabbing VP9 or AV1 as well if the codecs are provided.

I’m a bit busy atm, but there are even more intricate ways to figure out the best quality. It isn’t always what youtuble-dl auto-picks, but personally I’m already pretty fine with whatever is the highest res.

Maybe an option to prefer open codecs could be nice for those who fancy the ultimate independence? 😃

Ok, maybe a bit of a tangent there. Let’s leave it at a bug report for now. 😃

Log with two attempts:

2020-05-08T06:46:40.211Z INFO: YoutubeDL-Material v4.0 started on PORT 17442
2020-05-08T07:21:49.042Z ERROR: Unexpected end of JSON input
(node:1) UnhandledPromiseRejectionWarning: ReferenceError: req is not defined
at Readable.<anonymous> (/app/app.js:1425:38)
at Readable.emit (events.js:228:7)
at endReadableNT (_stream_readable.js:1185:12)
at processTicksAndRejections (internal/process/task_queues.js:81:21)
(node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:1) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:1) UnhandledPromiseRejectionWarning: ReferenceError: req is not defined
at Readable.<anonymous> (/app/app.js:1425:38)
at Readable.emit (events.js:228:7)
at endReadableNT (_stream_readable.js:1185:12)
at processTicksAndRejections (internal/process/task_queues.js:81:21)
(node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:1) UnhandledPromiseRejectionWarning: ReferenceError: req is not defined
at Readable.<anonymous> (/app/app.js:1425:38)
at Readable.emit (events.js:228:7)
at endReadableNT (_stream_readable.js:1185:12)
at processTicksAndRejections (internal/process/task_queues.js:81:21)
(node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:17 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Tzahi12345commented, Jun 27, 2020

@powerdude No problem, at some point GitHub discussions will come out and that will be a much better place to ask questions, but I digress…

but how do i change the resolution from best to 720p for subscription?

In the latest nightly (use Docker tag nightly) you can set custom args when you subscribe. Set this as your custom args -f,,(mp4)[height<=720] and it will limit the resolution to max 720p. Sometimes 720p isn’t available and it will grab the resolution just below it.

Also, on a tangent, is it possible to specify a different filename?

Yup!

In the latest nightly, you can also set a custom output. To follow the format you wrote above, I would set %(uploader)s/%(uploader)s - S01E%(playlist_index)s - %(title)s as the custom output. Your videos for that playlist would be organized into separate folders for each uploader in the subscriptions/playlists/{playlist_title} directory, and the filenames would follow the format you described above.

Let me know if you need any more help!

1reaction
powerdudecommented, Jun 26, 2020

Sorry to interrupt this thread, but how do i change the resolution from best to 720p for subscription? Also, on a tangent, is it possible to specify a different filename? I’d like to rename the file to make it more friendly for Plex to something like this from another tool i was using:

--output '/workdir/%(uploader)s/%(uploader)s - S01E%(playlist_index)s - %(title)s.%(ext)s'

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Disable Auto Video Quality 480p on Youtube and Set ...
When you watch YouTube on your phone, tablet or computer, YouTube by default tends to set the resolution quality to low or medium....
Read more >
YouTube finally realizes you should be able to choose a ...
These settings are available on a per-video basis, as always, but the good news is you can now set default preferences in the...
Read more >
How to select video quality from youtube-dl? - Ask Ubuntu
From the man page: "youtube-dl now defaults to downloading the highest available quality as reported by YouTube, which will be 1080p or 720p...
Read more >
How to Permanently Change YouTube Video Quality
Stop adjusting YouTube's settings for every video. Here's how to permanently set video quality on desktop and mobile.
Read more >
Get youtube-dl video for a particular size, like 480p or 720p
If you want to only download some DASH formats (for example if you are not interested in getting videos with a resolution higher...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found