aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-04-29 23:37:36 +0200
committerdec05eba <dec05eba@protonmail.com>2023-04-29 23:37:36 +0200
commit6172cac8dc03265e327c34d56ec6330d18d18040 (patch)
tree4a805298191ce0c26932a0eca6a3ddab595e3c66
parent26eeff170576a3cfcb482ee66d3f2e662f3068ab (diff)
ytdl: prefer mp4 because of better video playback performance
-rw-r--r--src/VideoPlayer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/VideoPlayer.cpp b/src/VideoPlayer.cpp
index 32eda39..6a34f29 100644
--- a/src/VideoPlayer.cpp
+++ b/src/VideoPlayer.cpp
@@ -227,7 +227,7 @@ namespace QuickMedia {
if(startup_args.no_video)
ytdl_format = "--ytdl-format=bestaudio/best";
else
- ytdl_format = "--ytdl-format=bestvideo[height<=?" + std::to_string(startup_args.monitor_height) + "]+bestaudio/best";
+ ytdl_format = "--ytdl-format=bestvideo[ext=mp4][height<=?" + std::to_string(startup_args.monitor_height) + "]+bestaudio/best";
args.push_back("--ytdl=no");