2022-04-22 07:50:45 +02:00
echo off
2022-10-28 00:32:09 +02:00
set welcometitle = Martin Eesmaa / VVCEasy
2024-06-23 09:52:28 +02:00
set version = v2.7.0
set versionname = Martin Eesmaa at age 19, wow nice!
2024-04-11 12:48:32 +02:00
set vvceasydate = 11 April 2024
2024-04-14 12:50:31 +02:00
IF EXIST " %PROGRAMFILES(X86)% " ( set bit = x64) ELSE ( set bit = Win32)
2022-04-22 07:50:45 +02:00
pushd " %~dp0 "
cls
2024-04-14 12:50:31 +02:00
ver | find " DOS " > nul
if %errorlevel% equ 0 (
goto doserror
) else (
ver | find " 95 " > nul | goto error
ver | find " 98 " > nul | goto error
ver | find " Millennium " > nul | goto error
ver | findstr /i " 5\.0\. " > nul && goto error
)
2022-04-24 06:06:56 +02:00
REM === check and get the UAC for administrator privilege ===
REM === code from https://sites.google.com/site/eneerge/scripts/batchgotadmin
: : BatchGotAdmin
: -------------------------------------
REM --> Check for permissions
> nul 2 >& 1 " %SYSTEMROOT% \system32\cacls.exe " " %SYSTEMROOT% \system32\config\system "
REM --> If error flag set, we do not have admin.
if '%errorlevel% ' NEQ '0' (
2023-05-06 05:53:10 +02:00
if '%1 ' EQU '1' (
echo Cannot elevate administrator privilege
echo Please try again with " Run as Administrator "
echo Installation failed.
pause
exit /B
) else (
echo Requesting administrative privileges...
goto UACPrompt
)
2022-04-24 06:06:56 +02:00
) else ( goto gotAdmin )
: UACPrompt
echo Set UAC = CreateObject^( " Shell.Application " ^) > " %temp% \getadmin.vbs "
echo UAC.ShellExecute " %~s0 " , " 1 " , " " , " runas " , 1 >> " %temp% \getadmin.vbs "
" %temp% \getadmin.vbs "
exit /B
2023-05-06 05:53:10 +02:00
2022-04-24 06:06:56 +02:00
: gotAdmin
if exist " %temp% \getadmin.vbs " ( del " %temp% \getadmin.vbs " )
pushd " %CD% "
CD /D " %~dp0 "
: --------------------------------------
2022-04-22 07:50:45 +02:00
goto welcomenow
: welcomenow
cls
2022-10-28 00:32:09 +02:00
title %welcometitle%
echo %welcometitle%
2023-05-06 05:53:10 +02:00
echo Welcome to VVCEasy. (Batch file Release Version, %version% , %vvceasydate% )
2022-10-28 00:32:09 +02:00
echo Version codename: %versionname%
2022-04-22 07:50:45 +02:00
pause
goto start
: start
2022-10-28 00:32:09 +02:00
title %welcometitle%
2022-04-22 07:50:45 +02:00
color 07
cls
2022-10-28 00:32:09 +02:00
echo VVCEasy (Batchfile Release Version, %version% , %vvceasydate% )
echo Version codename: %versionname%
2022-04-22 07:50:45 +02:00
echo .
2023-05-06 05:53:10 +02:00
echo What would you like to do to encode/decode of VVC?
2022-04-22 07:50:45 +02:00
echo 1. Encode
echo 2. Decode
echo 3. Help
echo 4. Exit
2023-05-06 05:53:10 +02:00
echo 5. Install/Test path environment.
echo 6. Install quickly through Anaconda (Python distribution) for FFmpeg (Windows)
2022-05-13 11:36:43 +02:00
echo 7. Install/Update VVdec Web Player
2024-04-14 12:50:31 +02:00
echo 8. Install Windows VVC binaries
2022-05-13 11:36:43 +02:00
echo 9. Install vvDecPlayer from BitMovin
2022-06-18 12:46:21 +02:00
echo 10. Install/Update VLC VTM Plugins (Windows/Linux x64 of VLC plugins by Inter Digital Inc)
2023-05-06 05:53:10 +02:00
echo 11. Install FFmpeg VVDec support.
2022-07-02 09:16:37 +02:00
echo 12. Install MPV Windows/Android (libvvdec plugin)
2022-06-23 07:36:32 +02:00
echo 13. Tests of VVC videos
2024-04-14 12:50:31 +02:00
set /p VVCSTART = Number:
2023-05-20 14:00:00 +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
if " %VVCSTART% " == " 6 " goto conda
if " %VVCSTART% " == " 7 " goto installvvdecweb
if " %VVCSTART% " == " 8 " goto decompresswin7z
if " %VVCSTART% " == " 9 " goto installbitmovin
if " %VVCSTART% " == " 10 " goto vlcvtmplugininstall
if " %VVCSTART% " == " 11 " goto ffmpegvvdec
if " %VVCSTART% " == " 12 " goto mpvandroidvvc
if " %VVCSTART% " == " 13 " goto testsofvideo
echo Invalid input. Please enter a number between 1 and 13.
pause
goto start
2022-04-22 07:50:45 +02:00
: encodestart
title Encode to VVC
cls
echo Welcome to VVC encoder.
2023-05-06 05:53:10 +02:00
echo What do you like to encode to VVC?
2022-04-22 07:50:45 +02:00
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)
2024-04-14 12:50:31 +02:00
echo 2. Lossless (example XIPH Media, Camera uncompressed RAW video, Apple ProRes and others uncompressed files)
2023-05-06 05:53:10 +02:00
echo 3. Go back to the menu.
2022-04-22 07:50:45 +02:00
set /p vvencquestion1 = Number:
2023-05-20 14:00:00 +02:00
if " %vvencquestion1% " == 1 goto losslessvvenc2
if " %vvencquestion1% " == 2 goto lossyvvenc2
if " %vvencquestion1% " == 3 goto start
2022-04-22 07:50:45 +02:00
: 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 do not have Y4M, your instruction will go to next...
echo 1. I have Y4M already (I am ready)
echo 2. No, I am not ready yet (go back to previous)
echo If you don't have Y4M already... you need transcode file from your uncompressed file to Y4M.
echo Example: ffmpeg -i yourfile.mov -strict 1 yourfinal.y4m
echo Only 8-bit uncompressed movies input to Y4M.
set /p doyouhavey4mvvencquestion3 = Number:
2023-05-20 14:00:00 +02:00
if " %doyouhavey4mvvencquestion3% " == 1 goto startlosslessvvenc2
if " %doyouhavey4mvvencquestion3% " == 2 goto encodestart
2022-04-22 07:50:45 +02:00
: startlosslessvvenc2
cls
title VVC ENCODER (Y4M LOSSLESS)
2023-05-06 05:53:10 +02:00
echo Before we start encoding from your Y4M file to VVC file, I'm afraid I cannot do automatically for you.
echo You must manually encode to VVC, the batchfile won't work.
2022-04-22 07:50:45 +02:00
echo Here is code: vvencapp --qp 18 -i yourinput.y4m -s 854x480 -r 30 --preset slow --threads 16 --tier high -o yourfinalvvc.266
echo YOU HAVE TO REPLACE VIDEO SIZE AND FRAME RATE. -s is video size and -r is frame rate.
echo INPUT VIDEO BIT DEPTH IS 8-BIT ONLY FOR UNCOMPRESSED MOVIE FILES.
pause
goto start
: lossyvvenc2
title Lossy settings with Lossy compressed (VVC Encoder)
cls
echo Do you have YUV?
echo If you have YUV already, move your YUV file into C:\Program Files\VVCEasy\
echo If you do not have YUV, your instruction will go to next...
echo 1. I have YUV already (I am ready)
echo 2. No, I am not ready yet (go back to previous)
echo If you don't have Y4M already... you need transcode file from your lossy video file to YUV.
echo Example: ffmpeg -i yourfile.mp4 -strict 1 yourfinal.yuv
set /p doyouhaveyuvvvencquestion4 = Number:
2023-05-20 14:00:00 +02:00
if " %doyouhaveyuvvvencquestion4% " == 1 goto startlossyvvenc2
if " %doyouhaveyuvvvencquestion4% " == 2 goto encodestart
2022-04-22 07:50:45 +02:00
: startlossyvvenc2
cls
title VVC ENCODER (YUV LOSSY)
2023-05-06 05:53:10 +02:00
echo Before we start encoding from your YUV file to VVC file, I'm afraid I cannot do automatically for you.
echo You must manually encode to VVC, the batchfile won't work.
2022-04-22 07:50:45 +02:00
echo Here is code: vvencapp --qp 38 -i yourinput.yuv -s 854x480 -r 30 -o youroutputlossy.266
echo YOU HAVE TO REPLACE VIDEO SIZE AND FRAME RATE. -s is video size and -r is frame rate.
echo You can also add for " --tier high " or/and 10-bit video " -c yuv420_10 " , if necessary.
pause
goto start
: decodestart
explorer " C:\Program Files\VVCEasy\WindowsVVC "
cls
title Decode from VVC to YUV/Y4M
echo Do you want to transcode back from VVC to YUV or Y4M? Which did you choose settings? Choosing settings will transcode back.
echo You need copy from your VVC file to C:\Program Files\VVCEasy\WindowsVVC\. Windows Explorer will open automatically.
echo After copying your VVC file into VVCEasy folder, you need rename to VVC.vvc. It will transcode from your VVC file to YUV/Y4M.
echo After transcoding, your transcoded file should be: C:\Program Files\VVCEasy\transcodedback
2023-05-06 05:53:10 +02:00
echo Note, if you are using portable, like your git cloned VVCEasy or downloaded source files, go to your Downloads folder and select VVCEasy.
2022-04-22 07:50:45 +02:00
echo Portable won't work probably, you need copy from your Downloads folder\VVCEasy into Program Files\VVCEasy.
echo 1. YUV (lossy video VVC)
2024-04-14 12:50:31 +02:00
echo 2. Y4M (lossless video VVC, recommended)
2022-04-22 07:50:45 +02:00
set /p decodestart1 = Number:
2023-05-20 14:00:00 +02:00
if " %decodestart1% " == 1 goto DECODESTARTFROMVVCTOYUV
if " %decodestart1% " == 2 goto DECODESTARTFROMVVCTOY4M
2022-04-22 07:50:45 +02:00
: DECODESTARTFROMVVCTOYUV
cls
title STARTING TRANSCODING BACK FROM VVC TO YUV...
mkdir transcodedback
cd WindowsVVC
vvdecapp -b VVC.vvc -o VVCTOYUV.yuv
move VVCTOYUV.yuv ../
move VVCTOYUV.yuv transcodedback
explorer " C:\Program Files\VVCEasy\transcodedback "
2023-05-06 05:53:10 +02:00
echo FINISHED. Going back to the menu...
2022-04-22 07:50:45 +02:00
timeout 3
goto start
: DECODESTARTFROMVVCTOY4M
cls
title STARTING TRANSCODING BACK FROM VVC TO Y4M...
mkdir transcodedback
cd WindowsVVC
vvdecapp -b VVC.vvc --y4m -o VVCTOYUV.y4m
move VVCTOYUV.y4m ../
move VVCTOYUV.y4m transcodedback
explorer " C:\Program Files\VVCEasy\transcodedback "
2023-05-06 05:53:10 +02:00
echo FINISHED. Going back to the menu...
2022-04-22 07:50:45 +02:00
timeout 3
goto start
: test
cls
title INSTALL/TEST PATH ENVIRONMENT
echo Martin Eesmaa is testing your paths, that you installed programs in PATH. Not sure, what is path?
echo You can go here for link: https://stackoverflow.com/questions/4910721/python-on-cmd-path
2024-04-14 12:50:31 +02:00
echo Also you can also search " What is PATH in Windows? " in DuckDuckGo, Google, SearX or your favorite search engine.
2022-04-22 07:50:45 +02:00
echo Are you ready to test? (Y/N) or type " I " to install path environment.
set /p readytestbefore = Answer:
2023-05-20 14:00:00 +02:00
if " %readytestbefore% " == Y goto nowtestingtime
if " %readytestbefore% " == N goto start
if " %readytestbefore% " == y goto nowtestingtime
if " %readytestbefore% " == n goto start
if " %readytestbefore% " == I goto installpath
if " %readytestbefore% " == i goto installpath
2022-04-22 07:50:45 +02:00
: nowtestingtime
title Testing time...
7z
ffmpeg
ffplay
wget
git
2024-04-14 12:50:31 +02:00
python --version
2022-04-22 07:50:45 +02:00
echo Did that work in your PATH? Y/N?
set /p testdidworkq = Answer:
2023-05-20 14:00:00 +02:00
if " %testdidworkq% " == Y goto youdidworktest
if " %testdidworkq% " == N goto ahhdidnotwork
if " %testdidworkq% " == y goto youdidworktest
if " %testdidworkq% " == n goto ahhdidnotwork
2022-04-22 07:50:45 +02:00
: youdidworktest
title Great!
2023-05-06 05:53:10 +02:00
echo Great, your PATHS working now. Now back to the menu...
2022-04-22 07:50:45 +02:00
timeout 3
goto start
: ahhdidnotwork
title Sorry...
echo Sorry, your path environment did not work. Make sure follow that needs to be add it on paths installation like Python.
2023-05-06 05:53:10 +02:00
echo Still not working? You can ask questions in Stack Overflow.
2022-04-22 07:50:45 +02:00
pause
goto start
: installpath
echo Installer path environment will be only for 7-Zip.
2023-05-06 05:53:10 +02:00
echo Other programs should need manual, but Python, FFmpeg, wget and git must be installed manually and add automatically path environments.
2022-04-22 07:50:45 +02:00
echo Do you want patch 7-Zip on your path environment, so you can type " 7z " next time.
2023-05-06 05:53:10 +02:00
echo Would you like to install 7-Zip on your path environments? Y/N? No means go back to test menu.
2022-04-22 07:50:45 +02:00
set /p installpath1 = Answer:
2023-05-20 14:00:00 +02:00
if " %installpath1% " == Y goto installingpath
if " %installpath1% " == N goto test
if " %installpath1% " == y goto installingpath
if " %installpath1% " == n goto test
2022-04-22 07:50:45 +02:00
: installingpath
title INSTALLING 7-ZIP on your path environments...
echo INSTALLING 7-ZIP on your path environments...
set PATH = %PATH% ;C:\Program Files\7-Zip
echo DONE!
echo Returning to test menu...
timeout 3 /nobreak
goto test
: exit
cls
2024-04-14 12:50:31 +02:00
title Have a nice day!
echo Have a nice day! Thank you for using VVCEasy! :)
: :: _ _ _
2022-04-22 07:50:45 +02:00
: :: | | | | | |
: :: | |_| |__ __ _ _ __ | | ___ _ ___ _ _
: :: | __| '_ \ / _` | '_ \| |/ / | | |/ _ \| | | |
: :: | |_| | | | (_| | | | | <| |_| | (_) | |_| |
: :: \__|_| |_|\__,_|_| |_|_|\_\\__, |\___/ \__,_|
: :: __/ |
: :: |___/
: :: __ ____ _______ ______
: :: \ \ / /\ \ / / ____| ____|
: :: \ \ / / \ \ / / | | |__ __ _ ___ _ _
: :: \ \/ / \ \/ /| | | __| / _` / __| | | |
: :: \ / \ / | |____| |___| (_| \__ \ |_| |
: :: \/ \/ \_____|______\__,_|___/\__, |
: :: __/ |
: :: |___/
: :: __ __ _ _ ______
: :: | \/ | | | (_) | ____|
: :: | \ / | __ _ _ __| |_ _ _ __ | |__ ___ ___ _ __ ___ __ _ __ _
: :: | |\/| |/ _` | '__| __| | '_ \ | __| / _ \/ __| '_ ` _ \ / _` |/ _` |
: :: | | | | (_| | | | |_| | | | | | |___| __/\__ \ | | | | | (_| | (_| |
: :: |_| |_|\__,_|_| \__|_|_| |_| |______\___||___/_| |_| |_|\__,_|\__,_|
for /f " delims=: tokens=* " %% A in ( 'findstr /b ::: " %~f0 "' ) do @ echo (%% A
echo .
2024-04-14 12:50:31 +02:00
echo Copyright (C) 2021-2024 Martin Eesmaa
2022-04-22 07:50:45 +02:00
echo .
2024-04-14 12:50:31 +02:00
echo ------------ END OF WINDOWS BATCHFILE PROGRAM ----------------
2022-04-22 07:50:45 +02:00
timeout 5 /nobreak
exit
: conda
cls
2022-05-13 11:36:43 +02:00
title ANACONDA (PYTHON DISTRIBUTION)
2023-05-06 05:53:10 +02:00
echo Welcome to Anaconda (Python Distribution) Quick Install. This will do only one task to download FFmpeg. Would you like to install? Y/N?
2022-04-22 07:50:45 +02:00
set /p anacondaman = Answer:
2023-05-20 14:00:00 +02:00
if " %anacondaman% " == Y goto condainstall
if " %anacondaman% " == N goto start
if " %anacondaman% " == y goto condainstall
if " %anacondaman% " == n goto start
2022-04-22 07:50:45 +02:00
: condainstall
conda install -c conda-forge ffmpeg
2023-05-06 05:53:10 +02:00
echo SUCCESS, going to back the menu...
2022-04-22 07:50:45 +02:00
pause
goto start
: help
cls
echo Welcome to VVCEasy help instructions!
echo Here is tutorial about... How to use VVCEasy?
pause
echo Step 1: Run on VVCEasy.bat. When you see the screen of Welcome to VVCEasy. You can press any key continue to main menu.
2023-05-06 05:53:10 +02:00
echo Step 2: Here is the list of main menus, that you need type any number will go to direction like (goto) command.
2022-04-22 07:50:45 +02:00
echo Step 3: Follow the command instructions and that is easy.
pause
2023-05-06 05:53:10 +02:00
echo If you have any problems that you do not understand VVCEasy. Please contact Martin Eesmaa by creating issues for questions or/and problems.
echo Do you want to start over help instructions? If yes, then it will go back from the beginning. If No, going to back menu. Y/N?
2022-04-22 07:50:45 +02:00
set /p helper = Answer:
2023-05-20 14:00:00 +02:00
if " %helper% " == Y goto help
if " %helper% " == N goto start
if " %helper% " == y goto help
if " %helper% " == n goto start
2022-04-22 07:50:45 +02:00
: installvvdecweb
cls
title VVdec Web Player.
echo Welcome to VVDEC Web Player.
echo By installing, you will have to agree to download VVDec Web Player from Fraunhoferhhi GitHub.
echo See the code of VVDEC Web Player: https://github.com/fraunhoferhhi/vvdecWebPlayer
2023-05-06 05:53:10 +02:00
echo When you agree to install, it will clone VVDec Web Player repository using git. After git, we will copy from VVDECWEBINSTALL files into vvdecWebPlayer/bin folder.
2022-04-22 07:50:45 +02:00
echo After all of that, we will run Python to start web server of your localhost port 8000.
echo If you already have installed of VVDec Web Player, you can type " U " to update files of VVDec Web Player.
2023-05-06 05:53:10 +02:00
echo Would you like to install VVDEC Web Player?
2022-04-22 07:50:45 +02:00
set /p okletsdoit = Answer:
2023-05-20 14:00:00 +02:00
if " %okletsdoit% " == Y goto installnowplayer
if " %okletsdoit% " == N goto start
if " %okletsdoit% " == y goto installnowplayer
if " %okletsdoit% " == n goto start
if " %okletsdoit% " == U goto updatevvdecwebplayer
if " %okletsdoit% " == u goto updatevvdecwebplayer
2022-04-22 07:50:45 +02:00
: installnowplayer
cls
title INSTALLING VVDEC WEB PLAYER...
git clone https://github.com/fraunhoferhhi/vvdecWebPlayer.git
copy VVDECWEBINSTALL " vvdecWebPlayer/bin " /y
cd vvdecWebPlayer
wget https://www.dropbox.com/s/zp8b3xg0b5p1pwe/VVCEasy.266
rename VVCEasy.266 dummy_raw_bitstream.266
echo Note: If you want to go back to menu, press CTRL + C on your keyboard in Windows Terminal/CMD and type " Y " to terminate server and this will go back to main menu options.
2023-05-06 05:53:10 +02:00
echo The python file is porting 8000 on your local host computer.
2022-04-22 07:50:45 +02:00
python wasm_test-server.py
cd ../
2023-05-06 05:53:10 +02:00
echo Thanks for trying out VVDEC Web Player. If you want to run on your VVDEC Web Player Server, go to folder of vvdecWebPlayer and run one click wasm_test-server.py.
2022-04-22 07:50:45 +02:00
echo Press any key to go back menu.
timeout 10
goto start
: updatevvdecwebplayer
cls
title UPDATING VVDEC WEB PLAYER...
echo UPDATING VVDEC WEB PLAYER...
cd vvdecWebPlayer
git pull
cd ../
2024-04-14 12:50:31 +02:00
echo vvdecWebPlayer is now updated.
2022-04-22 07:50:45 +02:00
echo Returning to main menu...
timeout 3
goto start
: decompresswin7z
cls
2024-04-14 12:50:31 +02:00
title Decompress Windows VVC?
echo Would you like to decompress Windows VVC binaries? Y/N?
set /p decompwinvvc = Answer:
if " %decompwinvvc% " == Y goto decompresswin7z1
if " %decompwinvvc% " == N goto start
if " %decompwinvvc% " == y goto decompresswin7z1
if " %decompwinvvc% " == n goto start
: decompresswin7z1
2022-04-22 07:50:45 +02:00
title WindowsVVC.7z (decompressing)
echo Decompressing........
cd WindowsVVC
2024-04-14 12:50:31 +02:00
7z x WindowsVVC.7z -i!%bit% -aoa
certutil -hashfile %bit% \vvdecapp.exe SHA256
certutil -hashfile %bit% \vvencapp.exe SHA256
certutil -hashfile %bit% \vvencFFapp.exe SHA256
certutil -hashfile %bit% \vvencinterfacetest.exe SHA256
certutil -hashfile %bit% \vvenclibtest.exe SHA256
type WindowsVVC.sha256 | findstr %bit%
2024-04-15 14:14:58 +02:00
cd ../
2024-04-14 12:50:31 +02:00
echo Now please make sure double check that needs to be same hash. If it matches hash same as .exe of WindowsVVC.sha256 and CertUtil. This means good.
echo If the hashes are not matched correctly, please try again or manually extract the compressed file using 7-Zip.
echo .
echo Otherwise, please create issue to Martin Eesmaa/VVCEasy on GitHub for your own problem.
2022-04-22 07:50:45 +02:00
pause
2024-04-15 14:14:58 +02:00
echo Thank you for decompressing Windows VVC binaries. Now back to the menu.
2022-04-22 07:50:45 +02:00
timeout 3
goto start
: installbitmovin
cls
title Install BitVVDecPlayer from BitMovin
echo Would you like to install on your operating system?
echo Windows for W, Mac OS for M and Linux for L, Main Menu for N/n.
set /p installbitmovind = Answer:
2023-05-20 14:00:00 +02:00
if " %installbitmovind% " == W goto installbitmovin1windows
if " %installbitmovind% " == w goto installbitmovin1windows
if " %installbitmovind% " == M goto installbitmovin1macos
if " %installbitmovind% " == m goto installbitmovin1macos
if " %installbitmovind% " == L goto installbitmovin1linux
if " %installbitmovind% " == l goto installbitmovin1linux
if " %installbitmovind% " == N goto start
if " %installbitmovind% " == n goto start
2022-04-22 07:50:45 +02:00
: installbitmovin1windows
title Installing BitVVDecPlayer from BitMovin...
echo Installing BitVVDecPlayer from BitMovin...
mkdir BitVVDecPlayerWIN
cd BitVVDecPlayerWIN
echo Downloading BitVVDecPlayer (Windows) from Bitmovin, compiled by Martin Eesmaa
wget https://www.dropbox.com/s/75ouoeadcr2cl53/BitVVDecPlayerWIN.7z
2024-04-15 14:14:58 +02:00
7z x BitVVDecPlayerWIN.7z -aoa
2022-04-22 07:50:45 +02:00
del /q BitVVDecPlayerWIN.7z
vvDecPlayer
echo Successfully running on BitVVDecPlayer, now if you have any problems, please go to Bitmovin/vvDecPlayer issues of https://github.com/bitmovin/vvDecPlayer/issues
echo If you receive error, that MSVCP140.DLL is missing, you might need download Microsoft Visual C++ Redistributable of 2015-2017-2019-2022: https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist
2022-06-18 12:46:21 +02:00
echo To build vvDecPlayer, please go to https://github.com/bitmovin/vvDecPlayer
echo Or contact Bitmovin at https://www.bitmovin.com or create issue on VVCEasy.
2022-04-22 07:50:45 +02:00
goto downloadbitmovinvvcsample
: installbitmovin1macos
title Installing BitVVDecPlayer from BitMovin...
echo Installing BitVVDecPlayer from BitMovin...
mkdir BitVVDecPlayerMAC
cd BitVVDecPlayerMAC
echo Downloading BitVVDecPlayer (macOS) from Bitmovin, compiled by Martin Eesmaa
wget https://www.dropbox.com/s/ilsoica7c8dh4hq/BitVVDecPlayerMAC.7z
2024-04-15 14:14:58 +02:00
7z x BitVVDecPlayerMAC.7z -aoa
2022-04-22 07:50:45 +02:00
del /q BitVVDecPlayerMAC.7z
2024-04-15 14:14:58 +02:00
echo Download completed, please put to macOS and run it, now if you have any problems, please go to Bitmovin/vvDecPlayer issues of https://github.com/bitmovin/vvDecPlayer/issues
2022-04-22 07:50:45 +02:00
echo If vvDecPlayer won't work probably, it might be issue that you haven't installed Qt on your Mac OS. Please install using code: " brew install qt " on Homebrew.
2022-06-18 12:46:21 +02:00
echo To build vvDecPlayer, please go to https://github.com/bitmovin/vvDecPlayer
echo Or contact Bitmovin at https://www.bitmovin.com or create issue on VVCEasy.
echo For more information, see Bitmovin.md.
2022-04-22 07:50:45 +02:00
goto downloadbitmovinvvcsample
: installbitmovin1linux
title Installing BitVVDecPlayer from BitMovin...
echo Installing BitVVDecPlayer from BitMovin...
mkdir BitVVDecPlayerLINUX
cd BitVVDecPlayerLINUX
echo Downloading BitVVDecPlayer (Linux) from Bitmovin, compiled by Martin Eesmaa
wget https://www.dropbox.com/s/bihm3pyh21lcvte/BitVVDecPlayerLINUX.7z?dl=0
2024-04-15 14:14:58 +02:00
7z x BitVVDecPlayerLINUX.7z -aoa
2022-04-22 07:50:45 +02:00
del /q BitVVDecPlayerLINUX.7z
2024-04-15 14:14:58 +02:00
echo Download completed, please put and run on your Linux machine, now if you have any problems, please go to Bitmovin/vvDecPlayer issues of https://github.com/bitmovin/vvDecPlayer/issues
2022-06-18 12:46:21 +02:00
echo Note, this is only Ubuntu 20.04 LTS build.
echo If you're running other Linux without Ubuntu 20.04, you might need to read Bitmovin.md instructions and build vvDecPlayer yourself.
echo To build vvDecPlayer, please go to https://github.com/bitmovin/vvDecPlayer
2022-04-22 07:50:45 +02:00
echo If vvDecPlayer won't work probably, it might be issue that you haven't installed Qt on your Linux. Please install using code: " sudo apt install qt5-default build-essential " on Linux terminal.
2022-06-18 12:46:21 +02:00
echo Or contact Bitmovin at https://www.bitmovin.com or create issue on VVCEasy.
2022-04-22 07:50:45 +02:00
goto downloadbitmovinvvcsample
: downloadbitmovinvvcsample
echo Would you like to download VVC sample video files from Bitmovin? Y/N?
set /p vvcsampleyeah = Answer:
2023-05-20 14:00:00 +02:00
if " %vvcsampleyeah% " == Y goto downloadvvcnowbit
if " %vvcsampleyeah% " == y goto downloadvvcnowbit
if " %vvcsampleyeah% " == N goto start
if " %vvcsampleyeah% " == n goto start
2022-04-22 07:50:45 +02:00
: downloadvvcnowbit
title Downloading VVC sample files and Coffee Run JSON & Sprite Fright JSON... from Bitmovin
echo Downloading VVC sample files and Coffee Run JSON & Sprite Fright JSON from Bitmovin...
wget " https://www.dropbox.com/s/qncefmnhw8hzr2k/vvcBlogPostDemo.7z " " https://www.dropbox.com/s/ogxw1pz9pr9bphi/CoffeeRun.json " " https://www.dropbox.com/s/6kpnoin4bwzb1ob/SpriteFright.json "
echo Extracting from archived file...
2024-04-15 14:14:58 +02:00
7z x vvcBlogPostDemo.7z -aoa
2022-04-22 07:50:45 +02:00
echo Deleting archived file...
del /q vvcBlogPostDemo.7z
title Installation of BitVVDecPlayer
2023-05-06 05:53:10 +02:00
echo Please edit the location downloaded folder of vvcBlogPostDemo...
2022-04-22 07:50:45 +02:00
CoffeeRun.json && SpriteFright.json
echo Press any key, when you finished configured of your location folder...
pause
2024-04-15 14:14:58 +02:00
echo Okay, it seems you configured completely. Please run vvDecPlayer on your computer.
2022-04-22 07:50:45 +02:00
echo Go to File, then Open JSON manifest in BitVVDecPlayer...
echo Select JSON file to run VVC movie and enjoy it.
2024-04-15 14:14:58 +02:00
echo Still not working? Please create the new issue on GitHub or join community available with Discord, Revolt and Matrix.
2022-04-22 07:50:45 +02:00
pause
goto start
: vlcvtmplugininstall
cls
2022-05-24 13:26:20 +02:00
title VLC VTM Plugins Install (Windows & Linux)
2022-04-22 07:50:45 +02:00
echo Welcome to VLC Media Player of VTM Plugins Installation.
echo You need to run Windows version of Windows Vista / Windows Server 2008 to play VVC files.
echo Windows XP can't load VTM plugins, but other plugins work.
echo System type only = x64
2022-05-24 13:26:20 +02:00
echo Linux is now available, see Linux installation at: https://github.com/MartinEesmaa/VVCEasy/tree/master/INSTALLVLCPLUGIN#for-linux-users
2024-04-14 12:50:31 +02:00
echo Available: VLC 3.0.9.2 and later latest version 3 (it will work same latest version 3)
2022-04-22 07:50:45 +02:00
echo Would you like to install VTM plugins to your VLC Media Player? Y/N?
set /p vlcvtmyesorno = Answer:
2023-05-20 14:00:00 +02:00
if " %vlcvtmyesorno% " == Y goto installvlcvtmpluginnow
if " %vlcvtmyesorno% " == y goto installvlcvtmpluginnow
if " %vlcvtmyesorno% " == N goto start
if " %vlcvtmyesorno% " == n goto start
2022-04-22 07:50:45 +02:00
: installvlcvtmpluginnow
title Installing of VLC VTM Plugins by Inter Digital Inc... (Compiled by Martin Eesmaa)
echo Installing VLC VTM Plugins by Inter Digital Inc... (Compiled by Martin Eesmaa)
2022-04-22 07:52:56 +02:00
cd INSTALLVLCPLUGIN
2024-04-14 12:50:31 +02:00
: installingvlcvtmplugins
if exist " %programfiles% \VideoLAN\VLC " (
copy libvtmdec.dll " %programfiles% \VideoLAN\VLC\plugins\codec " /y
copy libvvcdecoder_plugin.dll " %programfiles% \VideoLAN\VLC\plugins\codec " /y
copy libvvctsdemux_plugin.dll " %programfiles% \VideoLAN\VLC\plugins\demux " /y
) else (
: tryagainafterinvalidvlc
echo Please make sure your VLC is installed on your computer.
echo After installing VLC, you can try again by pressing number one.
echo .
echo 1: Try again
echo 2: Go back to main menu
set /p vlcnotexisttryagain = Answer:
if " %vlcnotexisttryagain% " == " 1 " goto installingvlcvtmplugins
if " %vlcnotexisttryagain% " == " 2 " goto start
echo Invalid input. Please enter a number 1 or 2.
pause
goto tryagainafterinvalidvlc
)
2022-04-22 07:50:45 +02:00
cd ../
taskkill /im vlc.exe
2022-05-24 13:26:20 +02:00
echo Three dll files are patched to your VLC Media Player.
echo Restarting and starting VLC Media Player...
2022-04-22 07:50:45 +02:00
echo Please load your VVC (codec) video file to VLC Media Player.
2022-05-24 13:26:20 +02:00
echo For more information and options, please go at https://github.com/InterDigitalInc/VTMDecoder_VLCPlugin
2023-05-06 05:53:10 +02:00
echo Once you're finished, you don't have to patch again. You can continue normally VLC Media Player next time after VVCEasy.
2022-04-22 07:50:45 +02:00
" %programfiles% \VideoLAN\VLC\vlc.exe "
pause
goto start
2022-05-21 15:55:59 +02:00
: ffmpegvvdec
cls
title FFmpeg VVDec support
echo Hello, would you like to download FFmpeg VVDec support? Y/N?
2022-10-24 14:10:21 +02:00
set /p vvcnow0 = Answer:
2023-05-20 14:00:00 +02:00
if " %vvcnow0% " == Y goto installvvdecffmpegnow
if " %vvcnow0% " == N goto start
if " %vvcnow0% " == y goto installvvdecffmpegnow
if " %vvcnow0% " == n goto start
2022-05-21 15:55:59 +02:00
: installvvdecffmpegnow
2023-05-06 05:53:10 +02:00
echo Your favorite operating system is available on FFmpeg VVDec support. Please copy the link to a web browser.
2022-05-21 15:55:59 +02:00
echo .
2022-10-24 13:50:39 +02:00
echo Download link: https://github.com/MartinEesmaa/VVCEasy/blob/master/FFMPEGVVC.md#ffmpeg-downloads-xhe-aac--vvc-endecoder-plugin-compiled-by-martin-eesmaa
2022-05-21 15:55:59 +02:00
echo .
echo See information on FFMPEGVVC.md or online GitHub: https://github.com/MartinEesmaa/VVCEasy/blob/master/FFMPEGVVC.md
echo .
echo Press enter to go back menu.
pause
goto start
2022-05-23 12:28:46 +02:00
: mpvandroidvvc
echo Please see the document. The command will open the document for you.
MPV.md
echo .
2023-05-06 05:53:10 +02:00
echo See information MPV.md or online GitHub: https://github.com/MartinEesmaa/VVCEasy/blob/master/MPV.md
2022-05-23 12:28:46 +02:00
echo .
2023-05-06 05:53:10 +02:00
echo Press enter to go back to the main menu.
2022-05-23 12:28:46 +02:00
pause
goto start
2022-06-23 07:36:32 +02:00
: testsofvideo
echo Please see the paragraph in README.md.
echo https://github.com/MartinEesmaa/VVCEasy/#tests-of-vvc-videos
echo .
echo See information on FFMPEGVVC.md or online GitHub: https://github.com/MartinEesmaa/VVCEasy/blob/master/FFMPEGVVC.md
echo .
echo Press enter to go back menu.
pause
goto start
2023-05-06 05:53:10 +02:00
2024-04-14 12:50:31 +02:00
: error
echo Your Windows version is not supported and outdated which may not work to run with VVC binaries and others too.
echo This requires for Windows XP and later to use this script.
pause
exit
: doserror
echo DOS is not supported and outdated which may not work to run with VVC binaries and others too.
echo Also MS-DOS, DOSBox and FreeDOS were also not supported.
echo This requires for Windows XP and later to use this script.
pause
exit