Changes between Version 5 and Version 6 of FFprobeTips


Ignore:
Timestamp:
Jun 22, 2016, 3:44:19 AM (17 months ago)
Author:
llogan
Comment:

mentioned ffmpeg decoding for duration

Legend:

Unmodified
Added
Removed
Modified
  • FFprobeTips

    v5 v6  
    150150* `-v` sets the loglevel. `error` will omit the build and "generic" file information, but will allow errors to be shown in addition to the desired `ffprobe` output. 
    151151* `-print_format` (or the alias `-of`) is useful to change the output format. Available formats are: default, compact, csv, flat, ini, json, xml. 
     152* You can use `nw=1:nk=1` instead of `noprint_wrappers=1:nokey=1` if you prefer. 
    152153 
    153154== Duration == 
    154155 
    155 Format (container) duration: 
     156=== Format (container) duration === 
    156157 
    157158{{{ 
     
    166167}}} 
    167168 
     169=== Stream duration === 
     170 
    168171Duration of the first video stream: 
    169172 
     
    17217530.000000 
    173176}}} 
     177 
     178=== Get duration by decoding === 
     179 
     180You can also use `ffmpeg` to get the duration by fully decoding the file. The [https://ffmpeg.org/ffmpeg-formats.html#null null muxer] is used so no output file is created. Refer to `time=` in the next-to-last line of the console output. In this example the input has a duration of `00:57:28.87`. 
     181 
     182{{{ 
     183$ ffmpeg -i input.webm -f null - 
     184... 
     185frame=206723 fps=1390 q=-0.0 Lsize=N/A time=00:57:28.87 bitrate=N/A speed=23.2x 
     186}}} 
     187 
     188* This method will report the correct duration in case the methods shown above using `ffprobe` are incorrect or missing due to corrupt, truncated, or damaged files. 
     189* The command may take some time depending on the input file duration and decoding complexity. 
    174190 
    175191== Frame Rate ==