From b7353ca935b61043e6770c18de4c94ef1c49b4d7 Mon Sep 17 00:00:00 2001 From: Nicholas Tinsley <00sturm@gmail.com> Date: Sat, 9 Oct 2021 15:36:55 -0400 Subject: [PATCH] change to use yt_dlp as title also update the max video dimensions --- double_speed_nvmpi.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/double_speed_nvmpi.py b/double_speed_nvmpi.py index 060973c..bb9c4be 100755 --- a/double_speed_nvmpi.py +++ b/double_speed_nvmpi.py @@ -8,17 +8,16 @@ import sys import os import re -import string from pprint import pprint import requests -import youtube_dl +import yt_dlp from datetime import datetime MAX_RETRIES = 5 -MAX_HEIGHT = 1080 -MAX_WIDTH = 1920 +MAX_HEIGHT = 1440 +MAX_WIDTH = 2560 MAX_INPUT_FRAME_RATE = 60 -MAX_OUTPUT_FRAME_RATE = 60 +MAX_OUTPUT_FRAME_RATE = 120 FILE_NAME_TEMPLATE = "%(id)s" SPEED_FACTOR = 2.50 @@ -77,7 +76,7 @@ def download_videos(videos, opts, retries_remaining): print('no more retries left. aborting.') return result_list - with youtube_dl.YoutubeDL(opts) as ydl: + with yt_dlp.YoutubeDL(opts) as ydl: for url in videos: try: extracted_info = ydl.extract_info(url)