This commit is contained in:
marcsello 2025-10-07 21:38:17 +02:00
commit 0cbcd9a837
9 changed files with 244 additions and 0 deletions

14
reencode.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/bash
set +e
mkdir -p reencoded
for f in video/*.ts; do
out="reencoded/$(basename $f)"
echo "$f -> $out"
ffmpeg -nostdin -hide_banner -loglevel error \
-hwaccel cuda -hwaccel_output_format cuda \
-i $f -vf scale_cuda=1280:720 -copyts -c:v hevc_nvenc -preset fast -c:a copy -f mpegts -mpegts_copyts 1 $out
done