Created
November 22, 2020 20:20
-
-
Save arnabanimesh/f5a76a3d2f9cc2d438b85394cfc1105b to your computer and use it in GitHub Desktop.
Side by side audioless video player
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
where /q ffplay | |
IF ERRORLEVEL 1 ( | |
ECHO ffplay.exe not found. | |
ECHO Download ffmpeg from https://ffmpeg.org and add the ffplay executable to the PATH | |
PAUSE | |
) ELSE ( | |
ECHO Side by side audioless video player | |
ECHO. | |
ECHO Enter the names with extension. e.g.: sample video.mp4 | |
ECHO. | |
SET /P left="Enter the name of the 1st video: " | |
SET /P right="Enter the name of the 2nd video: " | |
ffplay -f lavfi "movie='%left%',scale=iw/2:ih/2.5[v0];movie='%right%',scale=iw/2:ih/2.5[v1];[v0][v1]hstack" | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Depends on
ffplay.exe
. Download it fromhttps://ffmpeg.org
and addffplay.exe
to the path before running the script