Changes between Version 5 and Version 6 of FFprobeTips
- Timestamp:
- Jun 22, 2016, 12:44:19 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FFprobeTips
v5 v6 150 150 * `-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. 151 151 * `-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. 152 153 153 154 == Duration == 154 155 155 Format (container) duration: 156 === Format (container) duration === 156 157 157 158 {{{ … … 166 167 }}} 167 168 169 === Stream duration === 170 168 171 Duration of the first video stream: 169 172 … … 172 175 30.000000 173 176 }}} 177 178 === Get duration by decoding === 179 180 You 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 ... 185 frame=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. 174 190 175 191 == Frame Rate ==
