Ticket #1588: 00_test_VVC.bat

File 00_test_VVC.bat, 1.8 KB (added by Shabhrish, 16 months ago)

Batch file

Line 
1REM
2@echo off
3
4REM damit Zeit aktuakisiert wird:
5SetLocal EnableDelayedExpansion
6
7
8REM
9set ENC="Apps\EncoderApp.exe"
10set DEC="Apps\DecoderApp.exe"
11set CONVERT="Apps\PNM2RAW.exe"
12set PSNR="Apps\PSNR_C.exe"
13
14set resE="VVC_enc.txt"
15set resD="VVC_dec.txt"
16set flag=1
17REM
18echo #Results >> %resE%
19
20REM single image to be encoded
21set numFrames=1
22
23rem for  %%I in (images\*.ppm ) do (
24for  %%I in (cim10_672x768_crop.ppm) do (
25
26REM convert and write width and height to stdout
27
28FOR /F "usebackq tokens=1,2" %%a IN (`%CONVERT% -i %%I  -o tmp.raw -s`) DO (
29SET width=%%a
30SET height=%%b
31set out=%%I
32echo !out!
33REM replace ppm by str
34set out=!out:.ppm=.str!
35echo !out!
36REM replace Trimmed by RAW_trimmed
37set out=!out:PPM_trimmed=HEVCset1!
38)
39SetLocal EnableDelayedExpansion
40echo !width! !height!
41echo !out!
42
43echo Start Encoder: !time:~0,8!
44echo Start Encoder: !time:~0,8! >> %resE%
45
46rem %ENC%  -i tmp.raw --BitstreamFile=!out! --FramesToBeEncoded=%numFrames% -c lossless.cfg -fr 1 -g 1 --SourceWidth=!width! --SourceHeight=!height!  >> %resE%
47rem %ENC% -i tmp.raw -c encoder_intra_vtm.cfg --SourceWidth=!width! --SourceHeight=!height! --BitstreamFile=!out! -g 1 -f 1 -fr 1 -ip 1 -dr 0 >> %resE%
48%ENC% -i tmp.raw -c lossless.cfg --SourceWidth=!width! --SourceHeight=!height! --BitstreamFile=!out! -f 1 -fr 1 -g 1 >> %resE%
49rem %ENC% -i tmp.raw -c encoder_intra_vtm.cfg -c lossless.cfg --SourceWidth=!width! --SourceHeight=!height! --BitstreamFile=!out! -f 1 -fr 1 -g 1 >> %resE%
50
51echo Start Decoder !time:~0,8!
52echo Start Decoder !time:~0,8! >> %resD%
53
54set recon=!out:.str=.raw!
55
56rem %DEC% -b !out!
57%DEC% --BitstreamFile=!out! --ReconFile=!recon! -opl logDec.txt >> %resD%
58
59echo Finished Decoder !time:~0,8!
60echo Finished Decoder !time:~0,8! >> %resD%
61
62REM pause
63)
64
65
66
67pause
68
69REM@echo on