small changes

main
oscar 1 month ago
parent 1a3ee2e430
commit 0d30a4de1c

@ -228,7 +228,6 @@ if __name__ == '__main__':
# fill_missing_gender(cursor, conn)
# fill_missing_hashes(cursor, conn)
cursor.close()
conn.close()

@ -1,5 +1,5 @@
from datetime import datetime, timedelta, timezone
from MP4Manager import get_duration
from VideoManager import get_duration
import os, json, subprocess, shutil

@ -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"):

@ -263,7 +263,7 @@
</div>
<div class="player">
<video id="player" poster="/{{ video.thumbnail }}">
<video id="player" poster="/{{ video.thumbnail }}" muted>
<source src="/video/stream/{{ video.video_id }}" type="video/mp4">
</video>

Loading…
Cancel
Save