[FFmpeg-trac] #7345(undetermined:new): Progress value out_time_ms is in microseconds (μs) NOT milliseconds (ms).
FFmpeg
trac at avcodec.org
Sat Aug 4 15:35:28 EEST 2018
#7345: Progress value out_time_ms is in microseconds (μs) NOT milliseconds (ms).
-------------------------------------+-------------------------------------
Reporter: flaneur | Type: defect
Status: new | Priority: minor
Component: | Version: 3.4
undetermined | Blocked By:
Keywords: | Reproduced by developer: 0
abbreviation microseconds |
milliseconds progress |
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
FFmpeg can produce periodic progress information using e.g. "-progress
pipe:1", which produces key=value pairs like below. The value for key
"out_time_ms" however is not in milliseconds (ms) but in microseconds,
which is abbreviated with "μs" - sometimes "us" may be used for
convenience but "ms" means something else.
frame=391
fps=97.0
stream_0_0_q=28.0
bitrate= 162.8kbits/s
total_size=262192
out_time_ms=12885333
out_time=00:00:12.885333
dup_frames=0
drop_frames=0
speed= 3.2x
progress=continue
The key out_time_ms is incorrect as "ms" is the abbreviation for
milliseconds but the value shown is actually in microseconds. The correct
abbreviation for microseconds is μs or one might use "us", as the Ancient
Greek μῦ [mŷː] might be inconvenient for people to use.
Or you change the value to a float showing milliseconds instead. Either
way, a correction is needed.
https://en.wikipedia.org/wiki/Mu_(letter)
https://en.wikipedia.org/wiki/Orders_of_magnitude_(time)
How to reproduce:
You can reproduce that with any transcoding operation.
{{{
% ffmpeg -i input -progress pipe:1 -nostats -nostdin output
}}}
Version from Ubuntu 18.04
ffmpeg version 3.4.2-2 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7 (Ubuntu 7.3.0-16ubuntu2)
configuration: --prefix=/usr --extra-version=2 --toolchain=hardened
--libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu
--enable-gpl --disable-stripping --enable-avresample --enable-avisynth
--enable-gnutls --enable-ladspa --enable-libass --enable-libbluray
--enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite
--enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-
libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-
libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse
--enable-librubberband --enable-librsvg --enable-libshine --enable-
libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-
libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-
libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-
libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal
--enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-
libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv
--enable-libx264 --enable-shared
WARNING: library configuration mismatch
avcodec configuration: --prefix=/usr --extra-version=2
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu
--incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping
--enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca
--enable-libcdio --enable-libflite --enable-libfontconfig --enable-
libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-
libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt
--enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg
--enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex
--enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265
--enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi
--enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-
libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint
--enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
--enable-version3 --disable-doc --disable-programs --enable-
libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract
--enable-libvo_amrwbenc
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7345>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list