Peter White (12021-03-09): > Would you mind answering the OP's question with a command line example, > then?
I help people who help themselves, thus avoiding Russel's paradox. > I am well aware of that, but nobody said anything about parsing. Oh? Please, explain to me how you extract the number of frames from the statistics line without parsing it? > ffprobe -v error -count_frames -select_streams v:0 -show_entries > stream=nb_read_frames -of default=nokey=1:noprint_wrappers=1 input.mkv Do not use "-v error" if you want help. > > No need for output because it takes to long to complete: roughly one > minute for a 20 minute video as opposed to virtually no time with: > > ffmpeg -i input.mkv -an -sn -c copy -f null - -c copy tells ffmpeg to dispense with the decoder, which means it does not count frames but packets. Have you tried telling ffprobe to count packets? Regards, -- Nicolas George
signature.asc
Description: PGP signature
_______________________________________________ ffmpeg-user mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
