diff --git a/audiocrop.bat b/audiocrop.bat new file mode 100644 index 0000000..97ef3d8 --- /dev/null +++ b/audiocrop.bat @@ -0,0 +1 @@ +ffmpeg -i %1 -ss %2 -to %3 -ac 2 %4 diff --git a/audiomerge_direct.bat b/audiomerge_direct.bat index 2246e30..99098ff 100644 --- a/audiomerge_direct.bat +++ b/audiomerge_direct.bat @@ -1,6 +1,6 @@ @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 +ffmpeg -i %1 -i %2 -i %3 -filter_complex "[0]volume=0[a];[1]adelay=%4|%4,volume=0.4[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 diff --git a/audiomerge_none.bat b/audiomerge_none.bat new file mode 100644 index 0000000..fe2f9c2 --- /dev/null +++ b/audiomerge_none.bat @@ -0,0 +1,7 @@ +@echo off +IF "%5"=="" GOTO HAVE_0 +ffmpeg -i %1 -i %2 -i %3 -filter_complex "[0]volume=1[a];[1]adelay=%4|%4,volume=0[b];[2]adelay=%4|%4,volume=0[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 \ No newline at end of file diff --git a/audiomerge_sdvx.bat b/audiomerge_sdvx.bat new file mode 100644 index 0000000..b49ff27 --- /dev/null +++ b/audiomerge_sdvx.bat @@ -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=3[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 \ No newline at end of file diff --git a/audioprecrop.bat b/audioprecrop.bat new file mode 100644 index 0000000..5e176fc --- /dev/null +++ b/audioprecrop.bat @@ -0,0 +1 @@ +ffmpeg -ss %1 -i %2 -ac 2 %3 diff --git a/crop.bat b/crop.bat new file mode 100644 index 0000000..bcfd33b --- /dev/null +++ b/crop.bat @@ -0,0 +1 @@ +ffmpeg -fflags +genpts -r 59.94 -i %1 -ss %2 -to %3 -c:v copy -video_track_timescale 60000 -map 0:1 -map 0:0 -ac 2 %4 diff --git a/highlight.bat b/highlight.bat new file mode 100644 index 0000000..041bc8a --- /dev/null +++ b/highlight.bat @@ -0,0 +1,4 @@ +echo Provide the time delay for when the fade in should appear (should be 10 seconds before end of video) + +ffmpeg -fflags +genpts -r 59.94 -i %1 -ss %2 -to %3 -c:v copy -video_track_timescale 60000 -map 0:1 -map 0:0 -ac 2 %6 +ffmpeg -i %6 -loop 1 -i %5 -filter_complex "[0]afade=out:st=%4:d=10;[1]format=yuva420p,scale=-1:1080,fade=in:st=%4:d=5:alpha=1[i];[0][i]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2:shortest=1" -c:v libx264 final_%6 \ No newline at end of file diff --git a/merge.bat b/merge.bat index cdb4ca9..10b18b4 100644 --- a/merge.bat +++ b/merge.bat @@ -1 +1 @@ -ffmpeg -f concat -safe 0 -i list.txt -c:v copy %1 \ No newline at end of file +ffmpeg -f concat -i list.txt -codec copy %1 \ No newline at end of file diff --git a/precrop.bat b/precrop.bat index bf62c67..ecf354f 100644 --- a/precrop.bat +++ b/precrop.bat @@ -1 +1 @@ -ffmpeg -ss %1 -i %2 -acodec copy %3 \ No newline at end of file +ffmpeg -fflags +genpts -r 59.94 -ss %1 -i %2 -c:v copy -video_track_timescale 60000 -map 0:1 -map 0:0 -ac 2 %3