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

Add option to specify video fps. #274

Closed
SGOrava opened this issue Oct 27, 2019 · 2 comments
Closed

Add option to specify video fps. #274

SGOrava opened this issue Oct 27, 2019 · 2 comments

Comments

@SGOrava
Copy link

SGOrava commented Oct 27, 2019

youtube-dl has an option to specify fps of the video which should be downloaded.
Is it possible to add into youtube-viewer ?
Right now the yt-viewer is trying to use 60fps video on my small machine and it is unwatchable.
While youtube.dl can clearly download 30fps one.

So having an option like "preffer fps: [30 / 60]" would be nice.

https://github.com/ytdl-org/youtube-dl/blob/master/README.md#format-selection

@trizen
Copy link
Owner

trizen commented Nov 5, 2019

Will not add an explicit option for this, as it will unnecessarily complicate the code, since most people prefer 60 FPS anyway. (see: #67)

However, adding the following player entry, will do the trick:

mpv30fps => {
    fs => "--fullscreen",
    novideo => "--no-video",
    srt => "--sub-file *SUB*",
    arg => "--ytdl-raw-options='format=best[fps<=30]+bestaudio/best[height<=720]' *URL*",
    cmd => "mpv",
},

By executing youtube-viewer with --player=mpv30fps, videos will be played @ 30 FPS (or lower).

@trizen trizen closed this as completed Nov 5, 2019
@SGOrava
Copy link
Author

SGOrava commented Nov 5, 2019

Thank you for answer.
Most people have powerful machines compared to my own.
I solved it in similar way as you suggested.
https://github.com/SGOrava/yt-download/blob/master/yt_download.py
it is still a prototype :)

trizen added a commit that referenced this issue Jul 10, 2020
Provided via the `hfr` config-option. When set to "0", HFR videos will be ignored.

The option is also available as a command-line argument:

	$ youtube-viewer --no-hfr

By default, the value of `hfr` is set to "1".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants