init
This commit is contained in:
commit
0cbcd9a837
9 changed files with 244 additions and 0 deletions
14
reencode.sh
Executable file
14
reencode.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue