1

Maybe it will be a ridiculous question... I've been looking around for 3 hours how to get the batch to run the ffprobe command without randomly expanding % inside the -read_intervals command.

Batch:

for %%a in ("*.mkv") do ffprobe -read_intervals 1%16 -v error -skip_frame nokey -show_entries frame=pkt_pts_time -select_streams v -of csv=p=0 -i "%%a" >> KFS.txt

It would be the basic command. However 1%16 is seen as %1. Even putting 1%%16 or 1%%%16 continues to expand the %1. I tried any combination with ("" '' @ ^) read this link 10 times (and many more). The command on normal Windows CMD works fine. It is its batch conversion that gives problems.

-read_intervals use x%x as the interval system.

Thanks in advance to those who explain me how to solve.

3
  • 1%%16 should work.
    – JosefZ
    Commented Nov 18, 2020 at 10:50
  • No, I also wrote it. But I solved it right now. Thanks anyway for the reply.
    – Geass
    Commented Nov 18, 2020 at 10:55
  • Please post your solution as your own answer, see How to Answer.
    – JosefZ
    Commented Nov 18, 2020 at 10:59

1 Answer 1

1

I thought that "_intervals" was an additional command, so I found that you can use (only in my specific case) as input "%%+6" which means "read only the first 6 seconds".

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .