|
|
|
|
@ -130,7 +130,7 @@ def update_codec_db(video_id, codec):
|
|
|
|
|
def reencode_videos_av1():
|
|
|
|
|
# get videos
|
|
|
|
|
conn, cursor = config.get_local_db_connection()
|
|
|
|
|
cursor.execute("SELECT * FROM videos WHERE codec IS NULL AND status != 'missing' AND filepath IS NOT NULL ORDER BY size ASC;")
|
|
|
|
|
cursor.execute("SELECT * FROM videos WHERE codec IS NULL AND status != 'missing' AND filepath IS NOT NULL ORDER BY size DESC;")
|
|
|
|
|
videos = cursor.fetchall()
|
|
|
|
|
|
|
|
|
|
# for video in tqdm(videos, desc="Processing videos", unit="file"):
|
|
|
|
|
|