I try and try again with Regex, I just don’t get it. I’m trying to traverse a log file for FFMPEG and get the FPS.
Basically, on a variable line (seems to be around 16/17) of the log file this line appears:-
Stream #0.1[0x1e0]: Video: mpeg1video, yuv420p, 640x480 [PAR 1:1 DAR 4:3], 104857 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc
I’d like to traverse line by line, which I think I can do exploding by /n and then for loop through, but I’d prefer to just get the line that line, and then get the FPS value.
Any pointers gratefully received.
You could try this:
Explanation: