VVCEasy/RUNVVCEasy.bat

220 lines
7.7 KiB
Batchfile
Raw Normal View History

2021-10-21 09:11:23 +02:00
echo off
2021-12-14 12:58:06 +01:00
cd /d "%~dp0"
2021-10-21 09:11:23 +02:00
cls
title Martin Eesmaa / VVCEasy
echo MARTIN EESMAA / VVCEasy
2021-12-23 13:06:15 +01:00
echo Welcome to VVCEasy. (Alpha version, v.0.0.1)
2021-10-21 09:11:23 +02:00
pause
goto start
:start
2021-12-13 14:19:35 +01:00
title Martin Eesmaa / VVCEasy
color 07
2021-10-21 09:11:23 +02:00
cls
echo What do you like to do for encode/decode VVC?
2022-01-27 01:16:03 +01:00
echo 1. Encode (partial construction)
echo 2. Decode (partial construction)
2021-10-21 09:11:23 +02:00
echo 3. Help (construction)
echo 4. Exit
echo 5. Test benchmark (construction)
2021-12-17 07:02:58 +01:00
echo 6. Install VLC Media Player (o266player, Windows x64)
echo 7. Install quickly through Anaconda for ffmpeg (Windows)
set /p VVCSTART=Number:
2021-10-21 09:11:23 +02:00
if %VVCSTART% == 1 goto encodestart
if %VVCSTART% == 2 goto decodestart
if %VVCSTART% == 3 goto help
if %VVCSTART% == 4 goto exit
if %VVCSTART% == 5 goto test
2021-12-13 12:36:45 +01:00
if %VVCSTART% == 6 goto vlc
2021-12-14 12:58:06 +01:00
if %VVCSTART% == 7 goto conda
2021-10-21 09:11:23 +02:00
:encodestart
2022-01-27 01:16:03 +01:00
title Encode to VVC
2021-10-21 09:11:23 +02:00
cls
echo Welcome to VVC encoder.
2022-01-27 01:16:03 +01:00
echo What do you like encode to VVC?
echo Before we move to settings quality, is your video lossy or lossless?
echo 1. Lossy (example YouTube videos, Web videos, lossy compressed videos and other webs)
echo 2. Lossless (example XIPH Media, Camera uncompressed (MOV/MP4/AVI), Apple ProRes and others uncompressed files)
echo 3. Go back to menu
set /p %vvencquestion1%=Number:
if %vvencquestion1% == 1 goto losslessvvenc1
if %vvencquestion1% == 2 goto lossyvvenc1
if %vvencquestion1% == 3 goto start
:losslessvvenc1
title Lossless (uncompressed)
cls
echo Okay, you chose Lossless (uncompressed)
echo Now for settings quality. Choose settings.
echo It is recommended to use Lossless settings. Others are not recommended, will lose your video quality.
echo 1. Lossless/Best settings (Recommended)
echo 2. Lossy settings (Not recommended)
echo 3. Default settings (Not recommended)
echo 4. Go back from previous
echo 5. Go back from menu
set /p %vvencquestion2%=Number:
if %vvencquestion2% == 1 goto losslessvvenc2
if %vvencquestion2% == 2 goto lossyvvenc2
if %vvencquestion2% == 3 goto defaultvvenc2
if %vvencquestion2% == 4 goto encodestart
if %vvencquestion2% == 5 goto start
:losslessvvenc2
title Lossless settings with Lossless uncompressed (VVC Encoder)
cls
echo Do you have Y4M?
echo If you have Y4M already, move your Y4M file into C:\Program Files\VVCEasy\
echo If you don't have Y4M, your instruction will go to next...
echo 1. I have Y4M already (I'm ready)
echo 2. I don't have Y4M
set /p %doyouhavey4mvvencquestion3%=Number:
if %doyouhavey4mvvencquestion3% == 1 goto startlosslessvvenc2
if %doyouhavey4mvvencquestion3% == 2 goto nextmoviefilestypeoflosslessvvenc2
:startlosslessvvenc2
echo SORRY! CONSTRUCTION MODE! Sorry for long code.
pause
goto start
2021-10-21 09:11:23 +02:00
echo 1. Default settings
echo 2. Best settings
echo 3. Go back to menu
2021-12-17 07:02:58 +01:00
set /p goodvvcenc=Number:
2021-10-21 09:11:23 +02:00
if %goodvvcenc% == 1 goto defaultvvcenc1
if %goodvvcenc% == 2 goto bestvvcenc1
if %goodvvcenc% == 3 goto start
:defaultvvcenc1
2021-12-13 14:19:35 +01:00
title Did you encode to YUV/Y4M?
2021-10-21 09:11:23 +02:00
echo Okay, did you encode to YUV/Y4M?
echo 1. Yes (YUV)
echo 2. Yes (Y4M)
echo 3. No
2021-12-17 07:02:58 +01:00
set /p encoderyu4m=Number:
2021-10-21 09:11:23 +02:00
if %encoderyu4m% == 1 goto YUVdefaultsetting
if %encoderyu4m% == 2 goto Y4Mdefaultsetting
if %encoderyu4m% == 3 goto nextoptionsetting
:test
cls
title TEST BENCHMARK
echo Martin Eesmaa is testing your benchmark for two settings between default and best settings.
echo Are you ready to test? (Y/N)
2021-12-17 07:02:58 +01:00
set /p readytestbefore=Answer:
2021-10-21 09:11:23 +02:00
if %readytestbefore% == Y goto nowtestingtime
2021-12-13 12:36:45 +01:00
if %readytestbefore% == N goto start
if %readytestbefore% == y goto nowtestingtime
if %readytestbefore% == n goto start
2021-10-21 09:11:23 +02:00
:nowtestingtime
2021-12-13 14:19:35 +01:00
title Testing time...
2021-10-21 09:11:23 +02:00
cd /d "%~dp0"
2021-12-16 06:49:18 +01:00
cd 7-Zip
2021-10-21 09:11:23 +02:00
:exit
cls
title Have a nice day!
2022-01-06 04:00:38 +01:00
echo Have a nice day! Thanks for using VVCEasy. :)
2021-12-17 07:02:58 +01:00
::: _ _ _
::: | | | | | |
::: | |_| |__ __ _ _ __ | | ___ _ ___ _ _
::: | __| '_ \ / _` | '_ \| |/ / | | |/ _ \| | | |
::: | |_| | | | (_| | | | | <| |_| | (_) | |_| |
::: \__|_| |_|\__,_|_| |_|_|\_\\__, |\___/ \__,_|
::: __/ |
::: |___/
2022-01-06 10:50:50 +01:00
::: __ ____ _______ ______
::: \ \ / /\ \ / / ____| ____|
::: \ \ / / \ \ / / | | |__ __ _ ___ _ _
::: \ \/ / \ \/ /| | | __| / _` / __| | | |
::: \ / \ / | |____| |___| (_| \__ \ |_| |
::: \/ \/ \_____|______\__,_|___/\__, |
::: __/ |
::: |___/
::: __ __ _ _ ______
::: | \/ | | | (_) | ____|
::: | \ / | __ _ _ __| |_ _ _ __ | |__ ___ ___ _ __ ___ __ _ __ _
::: | |\/| |/ _` | '__| __| | '_ \ | __| / _ \/ __| '_ ` _ \ / _` |/ _` |
::: | | | | (_| | | | |_| | | | | | |___| __/\__ \ | | | | | (_| | (_| |
::: |_| |_|\__,_|_| \__|_|_| |_| |______\___||___/_| |_| |_|\__,_|\__,_|
2021-12-17 07:02:58 +01:00
for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo(%%A
2021-10-21 09:11:23 +02:00
echo Copyright 2021 Martin Eesmaa
echo ------------END----------------
2021-12-17 07:02:58 +01:00
timeout 5 /nobreak
2021-12-13 12:36:45 +01:00
exit
:vlc
color 6F
title VLC Media Player (custom build of o266player)
2021-12-13 14:19:35 +01:00
cls
2021-12-13 12:51:20 +01:00
echo Hello, would you like to install VLC Media Player (v3.0.11.1 Vetinari, custom build of o266player) on your computer?
2021-12-13 12:36:45 +01:00
echo Before you install...
2022-01-06 04:00:38 +01:00
echo The VLC Media Player (custom build of o266player) works only on Windows 7 / Windows Server 2012 or earlier versions.
echo Windows Vista and older versions won't work, because it could be terminal error or/and cannot decode VVC format.
echo You need 64-bit / x64 to run VLC custom build. On 32-bit / x86, it won't work.
2021-12-13 12:36:45 +01:00
echo Install? Y/N?
2021-12-17 07:02:58 +01:00
set /p vlcinstall=Answer:
2021-12-13 12:36:45 +01:00
if %vlcinstall% == Y goto vlcinstaller
if %vlcinstall% == N goto start
if %vlcinstall% == y goto vlcinstaller
if %vlcinstall% == n goto start
:vlcinstaller
wget https://www.dropbox.com/s/hs7yoa9hkxa6ugd/vlc-3.0.11.1-w64.7z
2021-12-14 12:58:06 +01:00
mkdir VLC
2021-12-16 06:49:18 +01:00
copy 7-Zip VLC
move vlc-3.0.11.1-w64.7z VLC
2021-12-14 12:58:06 +01:00
cd VLC
2021-12-16 06:49:18 +01:00
del /q readme.txt
del /q license.txt
del /q History.txt
7z x vlc-3.0.11.1-w64.7z
del /q 7z.dll
del /q 7z.exe
del /q vlc-3.0.11.1-w64.7z
2021-12-17 07:02:58 +01:00
cd ../
2021-12-16 06:49:18 +01:00
color 6E
cls
2021-12-17 07:02:58 +01:00
echo SUCCESSFUL! Now, would you like to download test sample VVC file test it out to VLC custom build of o266player?
2021-12-16 06:49:18 +01:00
echo If Yes, wget will download the example of VVC file and run to VLC a few seconds.
echo If No, you will be prompted go back to menu.
echo TIP: Run VLC.exe on your own VVC file for example, if your input frame rate is 30 and you encoded to VVC same frame rate input file.
echo Example to run correctly frame rate on your VVC: vlc.exe yourownfile.266 --no-drop-late-frames --avformat-fps=30
2021-12-17 07:02:58 +01:00
set /p vlccompleted=Answer:
2021-12-16 06:49:18 +01:00
if %vlccompleted% == Y goto sample266
if %vlccompleted% == N goto start
if %vlccompleted% == y goto sample266
if %vlccompleted% == n goto start
2021-12-14 12:58:06 +01:00
2021-12-17 07:02:58 +01:00
:sample266
color 07
wget https://www.dropbox.com/s/zp8b3xg0b5p1pwe/VVCEasy.266
move VVCEasy.266 VLC
cd VLC
vlc.exe VVCEasy.266 --no-drop-late-frames --avformat-fps=24
2021-12-21 08:25:16 +01:00
cd ../
2021-12-17 12:28:25 +01:00
echo OK! Test completed!
timeout 5
2021-12-17 07:02:58 +01:00
goto start
2021-12-14 12:58:06 +01:00
:conda
cls
title ANACONDA
2021-12-17 07:02:58 +01:00
echo Welcome to Anaconda Quick Install. This will only one task for ffmpeg. Would you like to install? Y/N?
set /p anacondaman=
if %anacondaman% == Y goto condainstall
if %anacondaman% == N goto start
if %anacondaman% == y goto condainstall
if %anacondaman% == n goto start
:condainstall
conda install -c conda-forge ffmpeg
echo SUCCESS, going to back menu...
2021-12-14 12:58:06 +01:00
pause
goto start