Add ffmpeg video management scripts

master
sigonasr2 2 years ago
commit ca8cd5bd76
  1. 1
      .gitignore
  2. 7
      audiomerge.bat
  3. 7
      audiomerge_direct.bat
  4. 2
      list.txt
  5. 1
      merge.bat
  6. 1
      precrop.bat

1
.gitignore vendored

@ -0,0 +1 @@
*.exe

@ -0,0 +1,7 @@
@echo off
IF "%5"=="" GOTO HAVE_0
ffmpeg -i %1 -i %2 -i %3 -filter_complex "[0]volume=0.2[a];[1]adelay=%4|%4,volume=2[b];[2]adelay=%4|%4,volume=2[c];[a][b][c]amix=3" -c:v copy -ac 2 %5
GOTO DONE
:HAVE_0
ffmpeg -i %1 -i %2 -filter_complex "[0]volume=0.2[1]adelay=%3|%3,volume=1[b];[0][b]amix=2" -c:v copy -ac 2 %4
:DONE

@ -0,0 +1,7 @@
@echo off
IF "%5"=="" GOTO HAVE_0
ffmpeg -i %1 -i %2 -i %3 -filter_complex "[0]volume=0[a];[1]adelay=%4|%4,volume=0.2[b];[2]adelay=%4|%4,volume=1[c];[a][b][c]amix=3" -c:v copy -ac 2 %5
GOTO DONE
:HAVE_0
ffmpeg -i %1 -i %2 -filter_complex "[0]volume=0.2[1]adelay=%3|%3,volume=1[b];[0][b]amix=2" -c:v copy -ac 2 %4
:DONE

@ -0,0 +1,2 @@
file 'first file.mp4'
file 'second file.mp4'

@ -0,0 +1 @@
ffmpeg -f concat -safe 0 -i list.txt -c:v copy %1

@ -0,0 +1 @@
ffmpeg -ss %1 -i %2 -acodec copy %3
Loading…
Cancel
Save