If you use the -report option, ffmpeg will create a logfile at initialization and the filename will contain the time at which it was created. You can use the last modified time of the log file to get the completion time, and thus the duration. On Windows, you could just check the creation time of the output as well. Addendum: A rough way to get this information, universally, without altering the command or using a monitoring tool like time, as LN guided, is to note the encoding speed normally reported i.e. speed=5.50x. So, if the duration of the output file is 110 seconds, then time taken to encode is 110 / 5.5 = 20 seconds. (责任编辑:) |