B
B
bezvozni2020-07-04 16:06:50
Automation
bezvozni, 2020-07-04 16:06:50

How to use a script to take all possible metadata about 1000 video files in windows?

in general, you need to use a script to take all possible metadata about 1000 video files and put this information in a file of the same name. I wanted to use Mediainfo, but I can't find how to use it through the console on Windows

Answer the question

In order to leave comments, you need to log in

4 answer(s)
K
Konstantin Tsvetkov, 2020-07-04
@bezvozni

wanted to resort to Mediainfo
CLI

R
Roman Mirilaczvili, 2020-07-04
@2ord

You can use the tika-app utility from Apache Tika in the .bat script

java -jar tika-app.jar [option...] [file|port...]

J
jcmvbkbc, 2014-11-05
@jcmvbkbc


for (i = 0; i < SIZE; ++i){
    
    if (!anim[i].animal) break;
    if (i == SIZE){ cout << "Its full"; return; }
    
    
  }
  anim[i].input();

The first condition will never be true, because animal is an array inside an object, it is never equal to 0.
But the second condition will never be true either, because the loop to i < SIZE.
So you're calling input() on an object outside of the array.
Undefined behavior.

T
tsarevfs, 2014-11-05
@tsarevfs

Use indentation to highlight blocks, nothing is clear!

void add_animal(){
  int i;
  for (i = 0; i < SIZE; ++i){
    if (!anim[i].animal) break; //WAT??? Для массивов char это не сработает как
            //проверка на пустоту строки, тем более неинициализированные массивы забиты мусором.
            //Удобнее использовать std::string и проверять (!animal.empty())
    if (i == SIZE){ cout << "Its full"; return; }  //никогда не выполнится по условию цикла
    
    
  }
  anim[i].input(); //Это вы хотели сделать в цикле, с отступами бы вы это заметили!
  return;
}

Well, everything in the manager needs to be stuffed into while (true) and return in case 3 for example.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question