CMD command (if,goto) I need help

Ravyar Tahir

Estimable
Aug 18, 2014
14
0
4,560
0
if not exist 1.txt goto :1
if not exist 2.txt goto :2
if not exist 3.txt goto :3
if not exist 4.txt goto :4
if not exist 5.txt goto :5

:1

"ffmpeg.exe" -i "1.avs" -f yuv4mpegpipe -pix_fmt yuv420p -loglevel error - | "x265_ml.exe" --output-depth 8 --weightb --lookahead-slices 0 --preset slow --crf 27 --profile main10 --rd 4 --limit-refs 2 --rect --amp --rc-grain --limit-modes --aq-mode 3 --subme 3 --me 3 --bframes 8 --rc-lookahead 25 --ref 4 --no-strong-intra-smoothing --no-constrained-intra --high-tier --rdoq-level 2 --psy-rd 1.0 --frames 129608 --y4m --stats "eurotrip.2004.16d4u_new.stats" --output "1.hevc" -

dir/b/s *.hevc >1.txt

:2

"ffmpeg.exe" -i "2.avs" -f yuv4mpegpipe -pix_fmt yuv420p -loglevel error - | "x265_ml.exe" --output-depth 8 --weightb --lookahead-slices 0 --preset slow --crf 27 --profile main10 --rd 4 --limit-refs 2 --rect --amp --rc-grain --limit-modes --aq-mode 3 --subme 3 --me 3 --bframes 8 --rc-lookahead 25 --ref 4 --no-strong-intra-smoothing --no-constrained-intra --high-tier --rdoq-level 2 --psy-rd 1.0 --frames 129608 --y4m --stats "2.stats" --output "2.hevc" -

dir/b/s *.avi >2.txt

:3

"ffmpeg.exe" -i "3.avs" -f yuv4mpegpipe -pix_fmt yuv420p -loglevel error - | "x265_ml.exe" --output-depth 8 --weightb --lookahead-slices 0 --preset slow --crf 27 --profile main10 --rd 4 --limit-refs 2 --rect --amp --rc-grain --limit-modes --aq-mode 3 --subme 3 --me 3 --bframes 8 --rc-lookahead 25 --ref 4 --no-strong-intra-smoothing --no-constrained-intra --high-tier --rdoq-level 2 --psy-rd 1.0 --frames 129608 --y4m --stats "3.stats" --output "3.hevc" -

dir/b/s *.avi >3.txt

:4

"ffmpeg.exe" -i "4.avs" -f yuv4mpegpipe -pix_fmt yuv420p -loglevel error - | "x265_ml.exe" --output-depth 8 --weightb --lookahead-slices 0 --preset slow --crf 27 --profile main10 --rd 4 --limit-refs 2 --rect --amp --rc-grain --limit-modes --aq-mode 3 --subme 3 --me 3 --bframes 8 --rc-lookahead 25 --ref 4 --no-strong-intra-smoothing --no-constrained-intra --high-tier --rdoq-level 2 --psy-rd 1.0 --frames 129608 --y4m --stats "4.stats" --output "4.hevc" -

dir/b/s *.avi >4.txt

:5

"ffmpeg.exe" -i "5.avs" -f yuv4mpegpipe -pix_fmt yuv420p -loglevel error - | "x265_ml.exe" --output-depth 8 --weightb --lookahead-slices 0 --preset slow --crf 27 --profile main10 --rd 4 --limit-refs 2 --rect --amp --rc-grain --limit-modes --aq-mode 3 --subme 3 --me 3 --bframes 8 --rc-lookahead 25 --ref 4 --no-strong-intra-smoothing --no-constrained-intra --high-tier --rdoq-level 2 --psy-rd 1.0 --frames 129608 --y4m --stats "5.stats" --output "5.hevc" -

dir/b/s *.avi >5.txt
 

Ravyar Tahir

Estimable
Aug 18, 2014
14
0
4,560
0


yup I am looking for a batch script but I couldnt figure out how if and goto command work can you fix it for me ignore the action
 

Ravyar Tahir

Estimable
Aug 18, 2014
14
0
4,560
0


I did but I couldnt figure out I was hoping someone will give me a working example of if and goto together
 

Ravyar Tahir

Estimable
Aug 18, 2014
14
0
4,560
0


well I wanna make a batch after encoding is done create like 1done.txt but before encoding if 1.hevc and 1done.txt found skip to encode next file

I update the question detail so you understand what I am trying to do
 
Thread starter Similar threads Forum Replies Date
M Apps General Discussion 1
B Apps General Discussion 2
B Apps General Discussion 2
N Apps General Discussion 4
S Apps General Discussion 4
ccoo84 Apps General Discussion 2
G Apps General Discussion 0
R Apps General Discussion 1
C Apps General Discussion 3
H Apps General Discussion 6
A Apps General Discussion 1
A Apps General Discussion 11
A Apps General Discussion 7
T Apps General Discussion 5
M Apps General Discussion 1
R Apps General Discussion 1
C Apps General Discussion 3
H Apps General Discussion 3
R Apps General Discussion 7
R Apps General Discussion 1

ASK THE COMMUNITY