Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time value in Statistics is increase and decrease, instead of continuous increase #804

Closed
TipsBox opened this issue Aug 27, 2023 · 23 comments · Fixed by #816
Closed

Time value in Statistics is increase and decrease, instead of continuous increase #804

TipsBox opened this issue Aug 27, 2023 · 23 comments · Fixed by #816
Assignees
Labels
all-platforms bug Something isn't working fixed-in-v6.0-1 library Affects the library v6.0

Comments

@TipsBox
Copy link

TipsBox commented Aug 27, 2023

First of all thanks for making such great project.
I will try with details as much as i can.

Description
When migrated from mobile-ffmpeg to ffmpegkit
com.arthenica:mobile-ffmpeg-full:4.4.LTS to com.arthenica:ffmpeg-kit-full:6.0
I am facing issue while using Statistics.time value for showing processed video progress.

Expected behavior
Statistics.time value should work same way in ffmpegKit as it was working in mobile-ffmpeg.
Statistics.time value should have to increase with ongoing video processing.

Current behavior
Right now, the Statistics.time value increase and decrease.

To Reproduce
I have added command that i have used for both ffmpeg and ffmpegKit.

Screenshots
Here is the screenshot of code and logs for mobile-ffmpeg.
Untitled-1

Here is the screenshot of code and logs for ffmpegKit.
Untitled-2

Logs
I have combined code and logs in screenshot. Please check.

Environment

  • Platform: Android
  • Simulator/Device: Samsung M31 Prime
  • Version: com.arthenica:ffmpeg-kit-full:6.0
  • Android Studio version: Android Studio Electric Eel | 2022.1.1 Patch 2

Other
Add any other context about the problem here.

@TipsBox TipsBox changed the title Time value in Statistics value increase and decrease, instead of continuous increase Time value in Statistics is increase and decrease, instead of continuous increase Aug 27, 2023
@tanersener
Copy link
Collaborator

ffmpeg-kit simply forwards statistics generated by ffmpeg. If you believe something is not right there, we much check what ffmpeg produces. Can you attach the output generated by ffmpeg?

@tanersener tanersener added android Affect Android platform needs-analysis We don't know that this is. It must be investigated further library Affects the library v6.0 labels Aug 27, 2023
@TipsBox
Copy link
Author

TipsBox commented Aug 27, 2023

@tanersener You mean full log while ffmpeg command executing ?

@TipsBox
Copy link
Author

TipsBox commented Aug 27, 2023

Here is the statistics.

Statistics{sessionId=1, videoFrameNumber=2461, videoFps=0.0, videoQuality=-1.0, size=19136512, time=35932.0, bitrate=1595.8397198015261, speed=191.80761429490434} Statistics{sessionId=1, videoFrameNumber=3419, videoFps=3418.4836, videoQuality=-1.0, size=27525120, time=15740.0, bitrate=1622.2260203329895, speed=135.71950117492813} Statistics{sessionId=1, videoFrameNumber=4542, videoFps=3022.1191, videoQuality=-1.0, size=36438016, time=2503.0, bitrate=1597.256636877202, speed=121.43236263533521} Statistics{sessionId=1, videoFrameNumber=5560, videoFps=2768.4126, videoQuality=-1.0, size=47448064, time=44999.0, bitrate=1687.0497735545491, speed=112.03058954079546} Statistics{sessionId=1, videoFrameNumber=6557, videoFps=2601.7498, videoQuality=-1.0, size=58195968, time=26664.0, bitrate=1745.8964989649896, speed=105.8095182369058} Statistics{sessionId=1, videoFrameNumber=7603, videoFps=2517.3264, videoQuality=-1.0, size=68419584, time=10120.0, bitrate=1764.9834644653683, speed=102.67963099867524} Statistics{sessionId=1, videoFrameNumber=8578, videoFps=2433.6824, videoQuality=-1.0, size=80216064, time=50908.0, bitrate=1828.7656935721043, speed=99.55684379656111} Statistics{sessionId=1, videoFrameNumber=9795, videoFps=2431.6323, videoQuality=-1.0, size=96468992, time=41639.0, bitrate=1921.5064672504413, speed=99.70785189366049} Statistics{sessionId=1, videoFrameNumber=10927, videoFps=2413.024, videoQuality=-1.0, size=109314048, time=28892.0, bitrate=1948.157650392522, speed=99.12941226103086} Statistics{sessionId=1, videoFrameNumber=11755, videoFps=2335.698, videoQuality=-1.0, size=117702656, time=3559.0, bitrate=1947.2727174967274, speed=96.08232996262433} Statistics{sessionId=1, videoFrameNumber=12926, videoFps=2336.2407, videoQuality=-1.0, size=126353408, time=52327.0, bitrate=1898.8840768925868, speed=96.21259653758263} Statistics{sessionId=1, videoFrameNumber=14233, videoFps=2359.2568, videoQuality=-1.0, size=138936320, time=46770.0, bitrate=1894.2525350648466, speed=97.26277572949104} Statistics{sessionId=1, videoFrameNumber=15437, videoFps=2362.8572, videoQuality=-1.0, size=148111360, time=36988.0, bitrate=1860.146313588325, speed=97.50027010070801} Statistics{sessionId=1, videoFrameNumber=16549, videoFps=2352.9744, videoQuality=-1.0, size=157024256, time=23495.0, bitrate=1837.897933415753, speed=97.18086674860255} Statistics{sessionId=1, videoFrameNumber=17623, videoFps=2339.3464, videoQuality=-1.0, size=167247872, time=8252.0, bitrate=1837.2527311974427, speed=96.67103596783411} Statistics{sessionId=1, videoFrameNumber=19167, videoFps=2385.9412, videoQuality=-1.0, size=181665792, time=12701.0, bitrate=1833.3852688466395, speed=98.67678385057863} Statistics{sessionId=1, videoFrameNumber=20198, videoFps=2366.9497, videoQuality=-1.0, size=191365120, time=55602.0, bitrate=1832.1173956022126, speed=97.92197294437184} Statistics{sessionId=1, videoFrameNumber=21315, videoFps=2359.5771, videoQuality=-1.0, size=200802304, time=42066.0, bitrate=1821.1998104450233, speed=97.6449768576588} Statistics{sessionId=1, videoFrameNumber=22355, videoFps=2344.9111, videoQuality=-1.0, size=209977344, time=25480.0, bitrate=1815.0783939145092, speed=97.0775402483168} Statistics{sessionId=1, videoFrameNumber=23552, videoFps=2336.4846, videoQuality=-1.0, size=219414528, time=15442.0, bitrate=1799.5085550960487, speed=96.7690699452551} Statistics{sessionId=1, videoFrameNumber=24528, videoFps=2315.9915, videoQuality=-1.0, size=230948864, time=56124.0, bitrate=1818.2730769079365, speed=95.94481914805964} Statistics{sessionId=1, videoFrameNumber=25404, videoFps=2290.3594, videoQuality=-1.0, size=240648192, time=32881.0, bitrate=1828.492997784175, speed=94.92504599595891} Statistics{sessionId=1, videoFrameNumber=26227, videoFps=2262.5522, videoQuality=-1.0, size=248774656, time=6995.0, bitrate=1830.9166537104586, speed=93.77294044464028} Statistics{sessionId=1, videoFrameNumber=27229, videoFps=2251.782, videoQuality=-1.0, size=259260416, time=48956.0, bitrate=1837.1693210364265, speed=93.36233058747715} Statistics{sessionId=1, videoFrameNumber=28155, videoFps=2235.901, videoQuality=-1.0, size=271056896, time=27356.0, bitrate=1857.578294881767, speed=92.7044002883992} Statistics{sessionId=1, videoFrameNumber=29066, videoFps=2218.8818, videoQuality=-1.0, size=279445504, time=5351.0, bitrate=1854.6996119802448, speed=92.01581121319866} Statistics{sessionId=1, videoFrameNumber=29819, videoFps=2192.6587, videoQuality=-1.0, size=286261248, time=36796.0, bitrate=1851.631137228775, speed=90.94441282910054} Statistics{sessionId=1, videoFrameNumber=30762, videoFps=2181.7786, videoQuality=-1.0, size=295436288, time=16199.0, bitrate=1851.9763015015683, speed=90.51374226094893} Statistics{sessionId=1, videoFrameNumber=31611, videoFps=2165.1892, videoQuality=-1.0, size=304873472, time=51656.0, bitrate=1859.4721298877146, speed=89.84161517230469} Statistics{sessionId=1, videoFrameNumber=32361, videoFps=2143.1323, videoQuality=-1.0, size=316932096, time=22760.0, bitrate=1888.2427001102208, speed=88.92532104130572} Statistics{sessionId=1, videoFrameNumber=32393, videoFps=2134.6824, videoQuality=-1.0, size=317409408, time=23997.0, bitrate=1889.3459315757402, speed=88.56872695433468}

@TipsBox
Copy link
Author

TipsBox commented Aug 27, 2023

Other values are correct, videoFrameNumber, size etc. except the Time value.

@tanersener
Copy link
Collaborator

By output, I mean console output or logs, which can be taken via FFmpegKitConfig.enableLogCallback(), session.getAllLogsAsString() or session.getOutput()

@TipsBox
Copy link
Author

TipsBox commented Aug 27, 2023

I have used session.getAllLogsAsString() to print log.
But here i see different values for time. I mean here it prints correct values.

ffmpeg version n6.0 Copyright (c) 2000-2023 the FFmpeg developers
built with Android (7155654, based on r399163b1) clang version 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315dfbea7c137aa2e6d362dbb457e388158d)
configuration: --cross-prefix=aarch64-linux-android- --sysroot=/Users/sue/Library/Android/sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/darwin-x86_64/sysroot --prefix=/Users/sue/Projects/arthenica/ffmpeg-kit/prebuilt/android-arm64/ffmpeg --pkg-config=/opt/homebrew/bin/pkg-config --enable-version3 --arch=aarch64 --cpu=armv8-a --target-os=android --enable-neon --enable-asm --enable-inline-asm --ar=aarch64-linux-android-ar --cc=aarch64-linux-android24-clang --cxx=aarch64-linux-android24-clang++ --ranlib=aarch64-linux-android-ranlib --strip=aarch64-linux-android-strip --nm=aarch64-linux-android-nm --extra-libs='-L/Users/sue/Projects/arthenica/ffmpeg-kit/prebuilt/android-arm64/cpu-features/lib -lndk_compat' --disable-autodetect --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --disable-static --enable-shared --enable-pthreads --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --disable-xmm-clobber-test --disable-debug --enable-lto --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-videotoolbox --disable-audiotoolbox --disable-appkit --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gmp --enable-gnutls --enable-libmp3lame --enable-libass --enable-iconv --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxml2 --enable-libopencore-amrnb --enable-libshine --enable-libspeex --enable-libdav1d --enable-libkvazaar --enable-libilbc --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libtwolame --disable-sdl2 --enable-libvo-amrwbenc --enable-libzimg --disable-openssl --enable-zlib --enable-mediacodec
libavutil 58. 2.100 / 58. 2.100
libavcodec 60. 3.100 / 60. 3.100
libavformat 60. 3.100 / 60. 3.100
libavdevice 60. 1.100 / 60. 1.100
libavfilter 9. 3.100 / 9. 3.100
libswscale 7. 1.100 / 7. 1.100
libswresample 4. 10.100 / 4. 10.100
Input #0, matroska,webm, from '/storage/emulated/0/Movies/Video_Sample.mkv':
Metadata:
encoder : libebml v1.4.4 + libmatroska v1.7.1
creation_time : 2023-05-26T00:14:27.000000Z
Duration: 01:33:44.90, start: 0.000000, bitrate: 2865 kb/s
Stream #0:0: Video: hevc, yuv420p10le(tv), 1920x800 [SAR 1:1 DAR 12:5], 23.98 fps, 23.98 tbr, 1k tbn (default)
Metadata:
BPS : 2002867
DURATION : 01:33:34.901000000
NUMBER_OF_FRAMES: 134623
NUMBER_OF_BYTES : 1405737592
_STATISTICS_WRITING_APP: mkvmerge v73.0.0 ('25 or 6 to 4') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2023-05-26 00:14:27
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(hin): Audio: eac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
Metadata:
title : हिन्दी (भारत) [Dolby Digital Plus 5.1]
BPS : 640000
DURATION : 01:33:44.896000000
NUMBER_OF_FRAMES: 175778
NUMBER_OF_BYTES : 449991680
_STATISTICS_WRITING_APP: mkvmerge v73.0.0 ('25 or 6 to 4') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2023-05-26 00:14:27
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2(eng): Audio: aac, 48000 Hz, 5.1, fltp (default)
Metadata:
BPS : 224000
DURATION : 01:33:34.933000000
NUMBER_OF_FRAMES: 263200
NUMBER_OF_BYTES : 157218134
_STATISTICS_WRITING_APP: mkvmerge v73.0.0 ('25 or 6 to 4') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2023-05-26 00:14:27
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Output #0, matroska, to '/storage/emulated/0/Movies/VC/Video/Video_Sample.mkv':
Metadata:
encoder : Lavf60.3.100
Stream #0:0: Video: hevc, yuv420p10le(tv), 1920x800 [SAR 1:1 DAR 12:5], q=2-31, 23.98 fps, 23.98 tbr, 1k tbn (default)
Metadata:
BPS : 2002867
DURATION : 01:33:34.901000000
NUMBER_OF_FRAMES: 134623
NUMBER_OF_BYTES : 1405737592
_STATISTICS_WRITING_APP: mkvmerge v73.0.0 ('25 or 6 to 4') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2023-05-26 00:14:27
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(eng): Audio: aac ([255][0][0][0] / 0x00FF), 48000 Hz, 5.1, fltp (default)
Metadata:
BPS : 224000
DURATION : 01:33:34.933000000
NUMBER_OF_FRAMES: 263200
NUMBER_OF_BYTES : 157218134
_STATISTICS_WRITING_APP: mkvmerge v73.0.0 ('25 or 6 to 4') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2023-05-26 00:14:27
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:2 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 1 fps=0.0 q=-1.0 size= 1kB time=-00:00:01.22 bitrate=N/A speed=N/A
frame= 2360 fps=0.0 q=-1.0 size= 17664kB time=00:01:37.42 bitrate=1485.3kbits/s speed= 195x
frame= 3383 fps=3382 q=-1.0 size= 25600kB time=00:02:20.13 bitrate=1496.5kbits/s speed= 140x
frame= 4546 fps=3030 q=-1.0 size= 36608kB time=00:03:08.43 bitrate=1591.5kbits/s speed= 126x
frame= 5515 fps=2757 q=-1.0 size= 47104kB time=00:03:48.94 bitrate=1685.4kbits/s speed= 114x
frame= 6617 fps=2647 q=-1.0 size= 57600kB time=00:04:34.98 bitrate=1716.0kbits/s speed= 110x
frame= 7596 fps=2532 q=-1.0 size= 68864kB time=00:05:15.90 bitrate=1785.8kbits/s speed= 105x
frame= 8520 fps=2434 q=-1.0 size= 80128kB time=00:05:54.28 bitrate=1852.8kbits/s speed= 101x
frame= 9454 fps=2361 q=-1.0 size= 92672kB time=00:06:33.27 bitrate=1930.4kbits/s speed=98.2x
frame=10577 fps=2348 q=-1.0 size= 103168kB time=00:07:20.25 bitrate=1919.7kbits/s speed=97.7x
frame=11637 fps=2325 q=-1.0 size= 111360kB time=00:08:04.39 bitrate=1883.3kbits/s speed=96.8x
frame=12612 fps=2291 q=-1.0 size= 121088kB time=00:08:44.98 bitrate=1889.5kbits/s speed=95.4x
frame=13932 fps=2320 q=-1.0 size= 131072kB time=00:09:39.96 bitrate=1851.4kbits/s speed=96.6x
frame=15030 fps=2310 q=-1.0 size= 140288kB time=00:10:26.02 bitrate=1835.8kbits/s speed=96.2x
frame=16216 fps=2314 q=-1.0 size= 150784kB time=00:11:15.30 bitrate=1829.1kbits/s speed=96.4x
frame=17398 fps=2317 q=-1.0 size= 158208kB time=00:12:04.73 bitrate=1788.3kbits/s speed=96.5x
frame=18267 fps=2277 q=-1.0 size= 168960kB time=00:12:40.72 bitrate=1819.5kbits/s speed=94.8x
frame=19558 fps=2295 q=-1.0 size= 180992kB time=00:13:34.69 bitrate=1819.9kbits/s speed=95.6x
frame=20290 fps=2286 q=-1.0 Lsize= 187591kB time=00:14:04.99 bitrate=1818.6kbits/s speed=95.2x
video:164029kB audio:23137kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.227124%

@TipsBox
Copy link
Author

TipsBox commented Aug 27, 2023

When i used FFmpegKitConfig.enableLogCallback then again time values are incorrect.
Check attached below screenshot of Android Studio LogCat.
Screenshot 2023-08-27 175814

@tanersener
Copy link
Collaborator

ffmpeg logs and ffmpeg-kit logs don't correlate with each other. Can you please capture them for the same session?

@TipsBox
Copy link
Author

TipsBox commented Aug 27, 2023

ffmpeg-kit logs

Log{sessionId=1, level=AV_LOG_INFO, message='ffmpeg version n6.0'} Log{sessionId=1, level=AV_LOG_INFO, message=' Copyright (c) 2000-2023 the FFmpeg developers'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' built with Android (7155654, based on r399163b1) clang version 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315dfbea7c137aa2e6d362dbb457e388158d) '} Log{sessionId=1, level=AV_LOG_INFO, message=' configuration: --cross-prefix=aarch64-linux-android- --sysroot=/Users/sue/Library/Android/sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/darwin-x86_64/sysroot --prefix=/Users/sue/Projects/arthenica/ffmpeg-kit/prebuilt/android-arm64/ffmpeg --pkg-config=/opt/homebrew/bin/pkg-config --enable-version3 --arch=aarch64 --cpu=armv8-a --target-os=android --enable-neon --enable-asm --enable-inline-asm --ar=aarch64-linux-android-ar --cc=aarch64-linux-android24-clang --cxx=aarch64-linux-android24-clang++ --ranlib=aarch64-linux-android-ranlib --strip=aarch64-linux-android-strip --nm=aarch64-linux-android-nm --extra-libs='-L/Users/sue/Projects/arthenica/ffmpeg-kit/prebuilt/android-arm64/cpu-features/lib -lndk_compat' --disable-autodetect --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --disable-static --enable-shared --enable-pthreads --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --disable-xmm-clobber-test --disable-debug --enable-lto --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-videotoolbox --disable-audiotoolbox --disable-appkit --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gmp --enable-gnutls --enable-libmp3lame --enable-libass --enable-iconv --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxml2 --enable-libopencore-amrnb --enable-libshine --enable-libspeex --enable-libdav1d --enable-libkvazaar --enable-libilbc --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libtwolame --disable-sdl2 --enable-libvo-amrwbenc --enable-libzimg --disable-openssl --enable-zlib --enable-mediacodec '} Log{sessionId=1, level=AV_LOG_INFO, message=' libavutil 58. 2.100 / 58. 2.100 '} Log{sessionId=1, level=AV_LOG_INFO, message=' libavcodec 60. 3.100 / 60. 3.100 '} Log{sessionId=1, level=AV_LOG_INFO, message=' libavformat 60. 3.100 / 60. 3.100 '} Log{sessionId=1, level=AV_LOG_INFO, message=' libavdevice 60. 1.100 / 60. 1.100 '} Log{sessionId=1, level=AV_LOG_INFO, message=' libavfilter 9. 3.100 / 9. 3.100 '} Log{sessionId=1, level=AV_LOG_INFO, message=' libswscale 7. 1.100 / 7. 1.100 '} Log{sessionId=1, level=AV_LOG_INFO, message=' libswresample 4. 10.100 / 4. 10.100 '} Log{sessionId=1, level=AV_LOG_INFO, message='Input #0, matroska,webm, from '/storage/emulated/0/Movies/Video_Sample.mkv': '} Log{sessionId=1, level=AV_LOG_INFO, message=' Metadata: '} Log{sessionId=1, level=AV_LOG_INFO, message=' encoder : '} Log{sessionId=1, level=AV_LOG_INFO, message='libebml v1.4.4 + libmatroska v1.7.1'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' creation_time : '} Log{sessionId=1, level=AV_LOG_INFO, message='2023-05-26T00:14:27.000000Z'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' Duration: '} Log{sessionId=1, level=AV_LOG_INFO, message='01:33:44.90'} Log{sessionId=1, level=AV_LOG_INFO, message=', start: '} Log{sessionId=1, level=AV_LOG_INFO, message='0.000000'} Log{sessionId=1, level=AV_LOG_INFO, message=', bitrate: '} Log{sessionId=1, level=AV_LOG_INFO, message='2865 kb/s'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' Stream #0:0'} Log{sessionId=1, level=AV_LOG_INFO, message=': Video: hevc, yuv420p10le(tv), 1920x800 [SAR 1:1 DAR 12:5]'} Log{sessionId=1, level=AV_LOG_INFO, message=', '} Log{sessionId=1, level=AV_LOG_INFO, message='23.98 fps, '} Log{sessionId=1, level=AV_LOG_INFO, message='23.98 tbr, '} Log{sessionId=1, level=AV_LOG_INFO, message='1k tbn'} Log{sessionId=1, level=AV_LOG_INFO, message=' (default)'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' Metadata: '} Log{sessionId=1, level=AV_LOG_INFO, message=' BPS : '} Log{sessionId=1, level=AV_LOG_INFO, message='2002867'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' DURATION : '} Log{sessionId=1, level=AV_LOG_INFO, message='01:33:34.901000000'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' NUMBER_OF_FRAMES: '} Log{sessionId=1, level=AV_LOG_INFO, message='134623'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' NUMBER_OF_BYTES : '} Log{sessionId=1, level=AV_LOG_INFO, message='1405737592'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' _STATISTICS_WRITING_APP: '} Log{sessionId=1, level=AV_LOG_INFO, message='mkvmerge v73.0.0 ('25 or 6 to 4') 64-bit'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' _STATISTICS_WRITING_DATE_UTC: '} Log{sessionId=1, level=AV_LOG_INFO, message='2023-05-26 00:14:27'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' _STATISTICS_TAGS: '} Log{sessionId=1, level=AV_LOG_INFO, message='BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' Stream #0:1'} Log{sessionId=1, level=AV_LOG_INFO, message='(hin)'} Log{sessionId=1, level=AV_LOG_INFO, message=': Audio: eac3, 48000 Hz, 5.1(side), fltp, 640 kb/s'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' Metadata: '} Log{sessionId=1, level=AV_LOG_INFO, message=' title : '} Log{sessionId=1, level=AV_LOG_INFO, message='हिन्दी (भारत) [Dolby Digital Plus 5.1]'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' BPS : '} Log{sessionId=1, level=AV_LOG_INFO, message='640000'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' DURATION : '} Log{sessionId=1, level=AV_LOG_INFO, message='01:33:44.896000000'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' NUMBER_OF_FRAMES: '} Log{sessionId=1, level=AV_LOG_INFO, message='175778'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' NUMBER_OF_BYTES : '} Log{sessionId=1, level=AV_LOG_INFO, message='449991680'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' _STATISTICS_WRITING_APP: '} Log{sessionId=1, level=AV_LOG_INFO, message='mkvmerge v73.0.0 ('25 or 6 to 4') 64-bit'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' _STATISTICS_WRITING_DATE_UTC: '} Log{sessionId=1, level=AV_LOG_INFO, message='2023-05-26 00:14:27'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' _STATISTICS_TAGS: '} Log{sessionId=1, level=AV_LOG_INFO, message='BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' Stream #0:2'} Log{sessionId=1, level=AV_LOG_INFO, message='(eng)'} Log{sessionId=1, level=AV_LOG_INFO, message=': Audio: aac, 48000 Hz, 5.1, fltp'} Log{sessionId=1, level=AV_LOG_INFO, message=' (default)'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' Metadata: '} Log{sessionId=1, level=AV_LOG_INFO, message=' BPS : '} Log{sessionId=1, level=AV_LOG_INFO, message='224000'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' DURATION : '} Log{sessionId=1, level=AV_LOG_INFO, message='01:33:34.933000000'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' NUMBER_OF_FRAMES: '} Log{sessionId=1, level=AV_LOG_INFO, message='263200'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' NUMBER_OF_BYTES : '} Log{sessionId=1, level=AV_LOG_INFO, message='157218134'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' _STATISTICS_WRITING_APP: '} Log{sessionId=1, level=AV_LOG_INFO, message='mkvmerge v73.0.0 ('25 or 6 to 4') 64-bit'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' _STATISTICS_WRITING_DATE_UTC: '} Log{sessionId=1, level=AV_LOG_INFO, message='2023-05-26 00:14:27'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' _STATISTICS_TAGS: '} Log{sessionId=1, level=AV_LOG_INFO, message='BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message='Output #0, matroska, to '/storage/emulated/0/Movies/VC/Video/Video_Sample.mkv': '} Log{sessionId=1, level=AV_LOG_INFO, message=' Metadata: '} Log{sessionId=1, level=AV_LOG_INFO, message=' encoder : '} Log{sessionId=1, level=AV_LOG_INFO, message='Lavf60.3.100'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' Stream #0:0'} Log{sessionId=1, level=AV_LOG_INFO, message=': Video: hevc, yuv420p10le(tv), 1920x800 [SAR 1:1 DAR 12:5], q=2-31'} Log{sessionId=1, level=AV_LOG_INFO, message=', '} Log{sessionId=1, level=AV_LOG_INFO, message='23.98 fps, '} Log{sessionId=1, level=AV_LOG_INFO, message='23.98 tbr, '} Log{sessionId=1, level=AV_LOG_INFO, message='1k tbn'} Log{sessionId=1, level=AV_LOG_INFO, message=' (default)'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' Metadata: '} Log{sessionId=1, level=AV_LOG_INFO, message=' BPS : '} Log{sessionId=1, level=AV_LOG_INFO, message='2002867'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' DURATION : '} Log{sessionId=1, level=AV_LOG_INFO, message='01:33:34.901000000'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' NUMBER_OF_FRAMES: '} Log{sessionId=1, level=AV_LOG_INFO, message='134623'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' NUMBER_OF_BYTES : '} Log{sessionId=1, level=AV_LOG_INFO, message='1405737592'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' _STATISTICS_WRITING_APP: '} Log{sessionId=1, level=AV_LOG_INFO, message='mkvmerge v73.0.0 ('25 or 6 to 4') 64-bit'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' _STATISTICS_WRITING_DATE_UTC: '} Log{sessionId=1, level=AV_LOG_INFO, message='2023-05-26 00:14:27'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' _STATISTICS_TAGS: '} Log{sessionId=1, level=AV_LOG_INFO, message='BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' Stream #0:1'} Log{sessionId=1, level=AV_LOG_INFO, message='(eng)'} Log{sessionId=1, level=AV_LOG_INFO, message=': Audio: aac ([255][0][0][0] / 0x00FF), 48000 Hz, 5.1, fltp'} Log{sessionId=1, level=AV_LOG_INFO, message=' (default)'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' Metadata: '} Log{sessionId=1, level=AV_LOG_INFO, message=' BPS : '} Log{sessionId=1, level=AV_LOG_INFO, message='224000'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' DURATION : '} Log{sessionId=1, level=AV_LOG_INFO, message='01:33:34.933000000'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' NUMBER_OF_FRAMES: '} Log{sessionId=1, level=AV_LOG_INFO, message='263200'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' NUMBER_OF_BYTES : '} Log{sessionId=1, level=AV_LOG_INFO, message='157218134'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' _STATISTICS_WRITING_APP: '} Log{sessionId=1, level=AV_LOG_INFO, message='mkvmerge v73.0.0 ('25 or 6 to 4') 64-bit'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' _STATISTICS_WRITING_DATE_UTC: '} Log{sessionId=1, level=AV_LOG_INFO, message='2023-05-26 00:14:27'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' _STATISTICS_TAGS: '} Log{sessionId=1, level=AV_LOG_INFO, message='BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message='Stream mapping: '} Log{sessionId=1, level=AV_LOG_INFO, message=' Stream #0:0 -> #0:0'} Log{sessionId=1, level=AV_LOG_INFO, message=' (copy)'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message=' Stream #0:2 -> #0:1'} Log{sessionId=1, level=AV_LOG_INFO, message=' (copy)'} Log{sessionId=1, level=AV_LOG_INFO, message=' '} Log{sessionId=1, level=AV_LOG_INFO, message='Press [q] to stop, [?] for help '} Log{sessionId=1, level=AV_LOG_INFO, message='frame= 0 fps=0.0 q=-1.0 size= 0kB time=-00:00:01.80 bitrate= -0.0kbits/s speed=N/A '} Log{sessionId=1, level=AV_LOG_INFO, message='frame= 2819 fps=0.0 q=-1.0 size= 28160kB time=00:01:56.02 bitrate=1988.2kbits/s speed= 232x '} Log{sessionId=1, level=AV_LOG_INFO, message='frame= 5522 fps=5495 q=-1.0 size= 50432kB time=00:03:48.81 bitrate=1805.6kbits/s speed= 228x '} Log{sessionId=1, level=AV_LOG_INFO, message='frame= 7383 fps=4880 q=-1.0 size= 75520kB time=00:05:06.29 bitrate=2019.8kbits/s speed= 202x '} Log{sessionId=1, level=AV_LOG_INFO, message='frame= 8479 fps=4212 q=-1.0 size= 82944kB time=00:05:52.10 bitrate=1929.8kbits/s speed= 175x '} Log{sessionId=1, level=AV_LOG_INFO, message='frame= 9503 fps=3781 q=-1.0 size= 92672kB time=00:06:34.64 bitrate=1923.7kbits/s speed= 157x '} Log{sessionId=1, level=AV_LOG_INFO, message='frame=10456 fps=3448 q=-1.0 size= 103168kB time=00:07:14.42 bitrate=1945.5kbits/s speed= 143x '} Log{sessionId=1, level=AV_LOG_INFO, message='frame=11998 fps=3393 q=-1.0 size= 123392kB time=00:08:18.76 bitrate=2026.7kbits/s speed= 141x '} Log{sessionId=1, level=AV_LOG_INFO, message='frame=13776 fps=3413 q=-1.0 size= 134912kB time=00:09:33.02 bitrate=1928.7kbits/s speed= 142x '} Log{sessionId=1, level=AV_LOG_INFO, message='frame=14845 fps=3272 q=-1.0 size= 151808kB time=00:10:17.57 bitrate=2013.7kbits/s speed= 136x '} Log{sessionId=1, level=AV_LOG_INFO, message='frame=15669 fps=3111 q=-1.0 size= 164608kB time=00:10:51.91 bitrate=2068.5kbits/s speed= 129x '} Log{sessionId=1, level=AV_LOG_INFO, message='frame=17148 fps=3097 q=-1.0 size= 178432kB time=00:11:53.46 bitrate=2048.7kbits/s speed= 129x '} Log{sessionId=1, level=AV_LOG_INFO, message='frame=20245 fps=3354 q=-1.0 size= 204544kB time=00:14:02.89 bitrate=1987.9kbits/s speed= 140x '} Log{sessionId=1, level=AV_LOG_INFO, message='frame=22545 fps=3449 q=-1.0 size= 221440kB time=00:15:38.70 bitrate=1932.5kbits/s speed= 144x '} Log{sessionId=1, level=AV_LOG_INFO, message='frame=23731 fps=3373 q=-1.0 size= 232704kB time=00:16:28.19 bitrate=1929.1kbits/s speed= 140x '} Log{sessionId=1, level=AV_LOG_INFO, message='frame=24835 fps=3295 q=-1.0 size= 243456kB time=00:17:14.27 bitrate=1928.3kbits/s speed= 137x '} Log{sessionId=1, level=AV_LOG_INFO, message='frame=26080 fps=3245 q=-1.0 size= 256256kB time=00:18:06.18 bitrate=1932.7kbits/s speed= 135x '} Log{sessionId=1, level=AV_LOG_INFO, message='frame=27118 fps=3174 q=-1.0 size= 267264kB time=00:18:49.40 bitrate=1938.6kbits/s speed= 132x '} Log{sessionId=1, level=AV_LOG_INFO, message='frame=28030 fps=3099 q=-1.0 size= 278528kB time=00:19:27.54 bitrate=1954.3kbits/s speed= 129x '} Log{sessionId=1, level=AV_LOG_INFO, message='frame=29050 fps=3039 q=-1.0 size= 291840kB time=00:20:09.97 bitrate=1975.9kbits/s speed= 127x '} Log{sessionId=1, level=AV_LOG_INFO, message='frame=31167 fps=3098 q=-1.0 size= 311296kB time=00:21:38.40 bitrate=1964.1kbits/s speed= 129x '} Log{sessionId=1, level=AV_LOG_INFO, message='frame=32411 fps=3111 q=-1.0 Lsize= 323110kB time=00:22:29.98 bitrate=1960.7kbits/s speed= 130x '} Log{sessionId=1, level=AV_LOG_INFO, message='video:285470kB audio:36961kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: '} Log{sessionId=1, level=AV_LOG_INFO, message='0.210546%'} Log{sessionId=1, level=AV_LOG_INFO, message=' '}

@TipsBox
Copy link
Author

TipsBox commented Aug 27, 2023

ffmpeg logs

LogMessage{executionId=3001, level=AV_LOG_INFO, text='ffmpeg version v4.4-dev-416'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' Copyright (c) 2000-2020 the FFmpeg developers'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' built with Android (6454773 based on r365631c2) clang version 9.0.8 (https://android.googlesource.com/toolchain/llvm-project 98c855489587874b2a325e7a516b99d838599c6f) (based on LLVM 9.0.8svn) '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' configuration: --cross-prefix=aarch64-linux-android- --sysroot=/files/android-sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/linux-x86_64/sysroot --prefix=/home/taner/Projects/mobile-ffmpeg/prebuilt/android-arm64/ffmpeg --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=aarch64 --cpu=armv8-a --cc=aarch64-linux-android21-clang --cxx=aarch64-linux-android21-clang++ --extra-libs='-L/storage/light/projects/mobile-ffmpeg/prebuilt/android-arm64/cpu-features/lib -lndk_compat' --target-os=android --enable-neon --enable-asm --enable-inline-asm --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --enable-shared --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --disable-openssl --disable-xmm-clobber-test --disable-debug --enable-lto --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-static --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-videotoolbox --disable-audiotoolbox --disable-appkit --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gmp --enable-gnutls --enable-libmp3lame --enable-libass --enable-iconv --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxml2 --enable-libopencore-amrnb --enable-libshine --enable-libspeex --enable-libwavpack --enable-libkvazaar --enable-libilbc --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libaom --enable-libtwolame --disable-sdl2 --enable-libvo-amrwbenc --enable-zlib --enable-mediacodec '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' libavutil 56. 55.100 / 56. 55.100 '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' libavcodec 58. 96.100 / 58. 96.100 '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' libavformat 58. 48.100 / 58. 48.100 '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' libavdevice 58. 11.101 / 58. 11.101 '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' libavfilter 7. 87.100 / 7. 87.100 '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' libswscale 5. 8.100 / 5. 8.100 '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' libswresample 3. 8.100 / 3. 8.100 '} LogMessage{executionId=3001, level=AV_LOG_WARNING, text='Guessed Channel Layout for Input Stream #0.1 : 5.1 '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='Input #0, matroska,webm, from '/storage/emulated/0/Movies/Video_Sample.mkv': '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' Metadata: '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' encoder : '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='libebml v1.4.4 + libmatroska v1.7.1'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' creation_time : '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='2023-05-26T00:14:27.000000Z'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' Duration: '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='01:33:44.90'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=', start: '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='0.000000'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=', bitrate: '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='2865 kb/s'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' Stream #0:0'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=': Video: hevc, yuv420p10le(tv), 1920x800 [SAR 1:1 DAR 12:5]'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=', '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='23.98 fps, '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='23.98 tbr, '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='1k tbn, '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='23.98 tbc'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' (default)'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' Metadata: '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' BPS : '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='2002867'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' DURATION : '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='01:33:34.901000000'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' NUMBER_OF_FRAMES: '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='134623'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' NUMBER_OF_BYTES : '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='1405737592'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' _STATISTICS_WRITING_APP: '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='mkvmerge v73.0.0 ('25 or 6 to 4') 64-bit'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' _STATISTICS_WRITING_DATE_UTC: '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='2023-05-26 00:14:27'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' _STATISTICS_TAGS: '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' Stream #0:1'} LogMessage{executionId=3001, level=AV_LOG_INFO, text='(hin)'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=': Audio: eac3, 48000 Hz, 5.1, fltp'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' Metadata: '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' title : '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='हिन्दी (भारत) [Dolby Digital Plus 5.1]'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' BPS : '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='640000'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' DURATION : '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='01:33:44.896000000'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' NUMBER_OF_FRAMES: '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='175778'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' NUMBER_OF_BYTES : '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='449991680'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' _STATISTICS_WRITING_APP: '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='mkvmerge v73.0.0 ('25 or 6 to 4') 64-bit'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' _STATISTICS_WRITING_DATE_UTC: '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='2023-05-26 00:14:27'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' _STATISTICS_TAGS: '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' Stream #0:2'} LogMessage{executionId=3001, level=AV_LOG_INFO, text='(eng)'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=': Audio: aac, 48000 Hz, 5.1, fltp'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' (default)'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' Metadata: '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' BPS : '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='224000'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' DURATION : '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='01:33:34.933000000'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' NUMBER_OF_FRAMES: '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='263200'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' NUMBER_OF_BYTES : '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='157218134'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' _STATISTICS_WRITING_APP: '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='mkvmerge v73.0.0 ('25 or 6 to 4') 64-bit'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' _STATISTICS_WRITING_DATE_UTC: '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='2023-05-26 00:14:27'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' _STATISTICS_TAGS: '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='Output #0, matroska, to '/storage/emulated/0/Movies/Video_Cutter/Video/Video_Sample_1.mkv': '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' Metadata: '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' encoder : '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='Lavf58.48.100'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' Stream #0:0'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=': Video: hevc, yuv420p10le(tv), 1920x800 [SAR 1:1 DAR 12:5], q=2-31'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=', '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='23.98 fps, '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='23.98 tbr, '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='1k tbn, '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='1k tbc'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' (default)'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' Metadata: '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' BPS : '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='2002867'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' DURATION : '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='01:33:34.901000000'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' NUMBER_OF_FRAMES: '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='134623'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' NUMBER_OF_BYTES : '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='1405737592'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' _STATISTICS_WRITING_APP: '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='mkvmerge v73.0.0 ('25 or 6 to 4') 64-bit'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' _STATISTICS_WRITING_DATE_UTC: '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='2023-05-26 00:14:27'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' _STATISTICS_TAGS: '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' Stream #0:1'} LogMessage{executionId=3001, level=AV_LOG_INFO, text='(eng)'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=': Audio: aac ([255][0][0][0] / 0x00FF), 48000 Hz, 5.1, fltp'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' (default)'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' Metadata: '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' BPS : '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='224000'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' DURATION : '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='01:33:34.933000000'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' NUMBER_OF_FRAMES: '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='263200'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' NUMBER_OF_BYTES : '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='157218134'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' _STATISTICS_WRITING_APP: '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='mkvmerge v73.0.0 ('25 or 6 to 4') 64-bit'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' _STATISTICS_WRITING_DATE_UTC: '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='2023-05-26 00:14:27'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' _STATISTICS_TAGS: '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='Stream mapping: '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' Stream #0:0 -> #0:0'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' (copy)'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' Stream #0:2 -> #0:1'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' (copy)'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='Press [q] to stop, [?] for help '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='frame= 2752 fps=0.0 q=-1.0 size= 27904kB time=00:01:53.27 bitrate=2018.0kbits/s speed= 226x '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='frame= 6148 fps=6147 q=-1.0 size= 60672kB time=00:04:14.69 bitrate=1951.5kbits/s speed= 255x '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='frame= 9703 fps=6453 q=-1.0 size= 93952kB time=00:06:43.04 bitrate=1909.6kbits/s speed= 268x '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='frame=12932 fps=6454 q=-1.0 size= 129280kB time=00:08:57.63 bitrate=1969.8kbits/s speed= 268x '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='frame=15750 fps=6287 q=-1.0 size= 167424kB time=00:10:55.16 bitrate=2093.4kbits/s speed= 262x '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='frame=19587 fps=6512 q=-1.0 size= 200448kB time=00:13:35.37 bitrate=2013.9kbits/s speed= 271x '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='frame=23710 fps=6753 q=-1.0 size= 232704kB time=00:16:27.15 bitrate=1931.1kbits/s speed= 281x '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='frame=27150 fps=6761 q=-1.0 size= 267776kB time=00:18:50.64 bitrate=1940.2kbits/s speed= 282x '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='frame=30300 fps=6710 q=-1.0 size= 304128kB time=00:21:02.30 bitrate=1973.7kbits/s speed= 280x '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='frame=32411 fps=6754 q=-1.0 Lsize= 323110kB time=00:22:29.98 bitrate=1960.7kbits/s speed= 281x '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='video:285470kB audio:36961kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: '} LogMessage{executionId=3001, level=AV_LOG_INFO, text='0.210583%'} LogMessage{executionId=3001, level=AV_LOG_INFO, text=' '}

@TipsBox
Copy link
Author

TipsBox commented Aug 27, 2023

Issue is not with time value in log, it is only when using Statistics time value.
As you can see in above logs,
time value is correct (Constantly increases) when it is returned in format hh:mm:ss But not when it is returned as Statistics.time (double value).

@TipsBox
Copy link
Author

TipsBox commented Aug 27, 2023

I will add statistics of same session for both ffmpeg and ffmpeg-kit.

@TipsBox
Copy link
Author

TipsBox commented Aug 27, 2023

statistics for ffmpeg

Statistics{executionId=3001, videoFrameNumber=3308, videoFps=0.0, videoQuality=0.0, size=34340864, time=136229, bitrate=2016.6551321671598, speed=272.1646039426978} Statistics{executionId=3001, videoFrameNumber=6823, videoFps=6819.215, videoQuality=0.0, size=68157440, time=283002, bitrate=1926.6984685620596, speed=282.8450101433721} Statistics{executionId=3001, videoFrameNumber=10278, videoFps=6844.22, videoQuality=0.0, size=103284736, time=427023, bitrate=1934.9727953763615, speed=284.3587692981346} Statistics{executionId=3001, videoFrameNumber=13343, videoFps=6665.7905, videoQuality=0.0, size=134742016, time=554959, bitrate=1942.3707481093197, speed=277.24203699829184} Statistics{executionId=3001, videoFrameNumber=16020, videoFps=6383.556, videoQuality=0.0, size=174325760, time=666427, bitrate=2092.6614317847266, speed=265.55394267100087} Statistics{executionId=3001, videoFrameNumber=19963, videoFps=6631.726, videoQuality=0.0, size=207618048, time=830864, bitrate=1999.0568661056443, speed=276.0137390549373} Statistics{executionId=3001, videoFrameNumber=23926, videoFps=6811.8687, videoQuality=0.0, size=239861760, time=996155, bitrate=1926.3007062153981, speed=283.611005427683} Statistics{executionId=3001, videoFrameNumber=27278, videoFps=6798.3945, videoQuality=0.0, size=275775488, time=1136015, bitrate=1942.055258073177, speed=283.12480367929743} Statistics{executionId=3001, videoFrameNumber=30412, videoFps=6739.591, videoQuality=0.0, size=313524224, time=1266873, bitrate=1979.830489717596, speed=280.7511994735859} Statistics{executionId=3001, videoFrameNumber=32411, videoFps=6802.8, videoQuality=0.0, size=330864350, time=1349989, bitrate=1960.6936056516015, speed=283.351483395187}

statistics for ffmpeg-kit

Statistics{sessionId=1, videoFrameNumber=0, videoFps=0.0, videoQuality=-1.0, size=0, time=1801.0, bitrate=-0.0, speed=-600333.3120990306} Statistics{sessionId=1, videoFrameNumber=1901, videoFps=0.0, videoQuality=-1.0, size=18350080, time=17669.0, bitrate=1890.0802121824665, speed=155.32557559523292} Statistics{sessionId=1, videoFrameNumber=3557, videoFps=3556.79, videoQuality=-1.0, size=35651584, time=26661.0, bitrate=1944.7069909519232, speed=146.65234625060629} Statistics{sessionId=1, videoFrameNumber=5678, videoFps=3785.1516, videoQuality=-1.0, size=57409536, time=55322.0, bitrate=1951.6929483856163, speed=156.87380313864583} Statistics{sessionId=1, videoFrameNumber=6804, videoFps=3401.6921, videoQuality=-1.0, size=68157440, time=42106.0, bitrate=1932.8178769682318, speed=141.04023870024997} Statistics{sessionId=1, videoFrameNumber=7894, videoFps=3157.3271, videoQuality=-1.0, size=80478208, time=27780.0, bitrate=1964.2005735554335, speed=131.1006725226111} Statistics{sessionId=1, videoFrameNumber=9169, videoFps=3056.0469, videoQuality=-1.0, size=91488256, time=20730.0, bitrate=1922.3755627347464, speed=126.89810983725404} Statistics{sessionId=1, videoFrameNumber=11155, videoFps=3186.8643, videoQuality=-1.0, size=116129792, time=43525.0, bitrate=2004.2895981878, speed=132.4241407549321} Statistics{sessionId=1, videoFrameNumber=12224, videoFps=3053.0378, videoQuality=-1.0, size=127664128, time=28239.0, bitrate=2009.513288039682, speed=126.93659048295726} Statistics{sessionId=1, videoFrameNumber=13643, videoFps=3028.987, videoQuality=-1.0, size=137101312, time=27397.0, bitrate=1933.0565653325625, speed=125.97215710089026} Statistics{sessionId=1, videoFrameNumber=14539, videoFps=2902.3784, videoQuality=-1.0, size=150994944, time=4751.0, bitrate=1997.4494494428286, speed=120.72469087903521} Statistics{sessionId=1, videoFrameNumber=15534, videoFps=2819.5332, videoQuality=-1.0, size=166985728, time=46245.0, bitrate=2067.150730760006, speed=117.2981319301716} Statistics{sessionId=1, videoFrameNumber=16559, videoFps=2752.1296, videoQuality=-1.0, size=178520064, time=29082.0, bitrate=2072.5552430625094, speed=114.52641844380476} Statistics{sessionId=1, videoFrameNumber=17785, videoFps=2721.3828, videoQuality=-1.0, size=188481536, time=20132.0, bitrate=2037.2748212481017, speed=113.25176185518839} Statistics{sessionId=1, videoFrameNumber=19013, videoFps=2702.5198, videoQuality=-1.0, size=199491584, time=11396.0, bitrate=2016.6044205429394, speed=112.48952859307103} Statistics{sessionId=1, videoFrameNumber=20490, videoFps=2718.9333, videoQuality=-1.0, size=211288064, time=13114.0, bitrate=1981.3348649770137, speed=113.20450017096691} Statistics{sessionId=1, videoFrameNumber=21892, videoFps=2724.2112, videoQuality=-1.0, size=220725248, time=11653.0, bitrate=1936.9233513189777, speed=113.44487531200866} Statistics{sessionId=1, videoFrameNumber=23049, videoFps=2700.1003, videoQuality=-1.0, size=230948864, time=59759.0, bitrate=1925.0571362185715, speed=112.43202060459986} Statistics{sessionId=1, videoFrameNumber=24142, videoFps=2667.1338, videoQuality=-1.0, size=241958912, time=45306.0, bitrate=1925.454832657917, speed=111.0631107009134} Statistics{sessionId=1, videoFrameNumber=25131, videoFps=2630.3657, videoQuality=-1.0, size=252706816, time=26608.0, bitrate=1931.6253344136487, speed=109.5444571630944} Statistics{sessionId=1, videoFrameNumber=26573, videoFps=2642.959, videoQuality=-1.0, size=267386880, time=26767.0, bitrate=1932.7419773086838, speed=110.07939590484638} Statistics{sessionId=1, videoFrameNumber=27635, videoFps=2618.1848, videoQuality=-1.0, size=280494080, time=10928.0, bitrate=1949.6898502773415, speed=109.04079345969636} Statistics{sessionId=1, videoFrameNumber=28792, videoFps=2604.403, videoQuality=-1.0, size=295174144, time=59183.0, bitrate=1969.16830208567, speed=108.47304555967156} Statistics{sessionId=1, videoFrameNumber=29807, videoFps=2578.1055, videoQuality=-1.0, size=306970624, time=41551.0, bitrate=1977.9815666049965, speed=107.38582467295988} Statistics{sessionId=1, videoFrameNumber=31176, videoFps=2584.725, videoQuality=-1.0, size=318767104, time=38703.0, bitrate=1963.6027883203474, speed=107.67225246528237} Statistics{sessionId=1, videoFrameNumber=32289, videoFps=2568.433, videoQuality=-1.0, size=329777152, time=25168.0, bitrate=1961.2548142685523, speed=107.00158022538052} Statistics{sessionId=1, videoFrameNumber=32411, videoFps=2561.8552, videoQuality=-1.0, size=330864230, time=29989.0, bitrate=1960.6928945346963, speed=106.70686881735863}

@TipsBox
Copy link
Author

TipsBox commented Aug 27, 2023

Adding screenshot for clear readability.

statistics for ffmpeg

FFmpeg

statistics for ffmpeg-kit

FFmpegKit

@TipsBox
Copy link
Author

TipsBox commented Aug 27, 2023

Check only time value for both.

@tanersener
Copy link
Collaborator

tanersener commented Aug 27, 2023

Logs attached don't contain information needed to analyse the issue. As I stated in my first post, logs from both ffmpeg and ffmpeg-kit must be shared to analyse the behaviour.

@TipsBox
Copy link
Author

TipsBox commented Aug 28, 2023

I think i have not explained you properly, apology for that.
Above i have added 4 things.

Logs for both ffmpeg and ffmpeg-kit
and same goes for statistics, for both ffmpeg and ffmpeg-kit

Let me add link to point you directly to there.
ffmpeg logs
#804 (comment)

ffmpeg-kit logs
#804 (comment)

ffmpeg and ffmpeg-kit statistics
#804 (comment)

Please check time value only.

@tanersener
Copy link
Collaborator

frame= 1 fps=0.0 q=-1.0 size= 1kB time=-00:00:01.22 bitrate=N/A speed=N/A
frame= 2360 fps=0.0 q=-1.0 size= 17664kB time=00:01:37.42 bitrate=1485.3kbits/s speed= 195x
frame= 3383 fps=3382 q=-1.0 size= 25600kB time=00:02:20.13 bitrate=1496.5kbits/s speed= 140x
frame= 4546 fps=3030 q=-1.0 size= 36608kB time=00:03:08.43 bitrate=1591.5kbits/s speed= 126x
frame= 5515 fps=2757 q=-1.0 size= 47104kB time=00:03:48.94 bitrate=1685.4kbits/s speed= 114x
frame= 6617 fps=2647 q=-1.0 size= 57600kB time=00:04:34.98 bitrate=1716.0kbits/s speed= 110x
frame= 7596 fps=2532 q=-1.0 size= 68864kB time=00:05:15.90 bitrate=1785.8kbits/s speed= 105x
frame= 8520 fps=2434 q=-1.0 size= 80128kB time=00:05:54.28 bitrate=1852.8kbits/s speed= 101x
frame= 9454 fps=2361 q=-1.0 size= 92672kB time=00:06:33.27 bitrate=1930.4kbits/s speed=98.2x
frame=10577 fps=2348 q=-1.0 size= 103168kB time=00:07:20.25 bitrate=1919.7kbits/s speed=97.7x
frame=11637 fps=2325 q=-1.0 size= 111360kB time=00:08:04.39 bitrate=1883.3kbits/s speed=96.8x
frame=12612 fps=2291 q=-1.0 size= 121088kB time=00:08:44.98 bitrate=1889.5kbits/s speed=95.4x
frame=13932 fps=2320 q=-1.0 size= 131072kB time=00:09:39.96 bitrate=1851.4kbits/s speed=96.6x
frame=15030 fps=2310 q=-1.0 size= 140288kB time=00:10:26.02 bitrate=1835.8kbits/s speed=96.2x
frame=16216 fps=2314 q=-1.0 size= 150784kB time=00:11:15.30 bitrate=1829.1kbits/s speed=96.4x
frame=17398 fps=2317 q=-1.0 size= 158208kB time=00:12:04.73 bitrate=1788.3kbits/s speed=96.5x
frame=18267 fps=2277 q=-1.0 size= 168960kB time=00:12:40.72 bitrate=1819.5kbits/s speed=94.8x
frame=19558 fps=2295 q=-1.0 size= 180992kB time=00:13:34.69 bitrate=1819.9kbits/s speed=95.6x
frame=20290 fps=2286 q=-1.0 Lsize= 187591kB time=00:14:04.99 bitrate=1818.6kbits/s speed=95.2x
video:164029kB audio:23137kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.227124%

Logs above are printed by ffmpeg. We call them console logs, console output, ffmpeg logs, ffmpeg output. They are needed to analyse this issue. They are not provided.

Screenshots, log objects can be easy to capture. But they are not easy to understand. Use text data please.

@TipsBox
Copy link
Author

TipsBox commented Aug 28, 2023

First i have added output generated from session.getAllLogsAsString() for ffmpeg-kit.
As i was not able to find same for ffmpeg So i used FFmpegKitConfig.enableLogCallback() for ffmpeg-kit and Config.enableLogCallback() for ffmpeg and shared here.

Still I don't understand. Where i went wrong ?
Sorry i am asking this, But Can you please tell me what exactly i need to share here and how can i get it for both ffmpeg and ffmpeg-kit ?

Just to make sure i get it right, ffmpeg and ffmpeg-kit are two different project, right ?
Do correct me if i am wrong ?

@tanersener
Copy link
Collaborator

First i have added output generated from session.getAllLogsAsString() for ffmpeg-kit.

See my next message. The output of session.getAllLogsAsString() gives ffmpeg output and it doesn't correlate with statistics generated by ffmpeg-kit. They must be captured for the same session.

As i was not able to find same for ffmpeg So i used FFmpegKitConfig.enableLogCallback() for ffmpeg-kit and Config.enableLogCallback() for ffmpeg and shared here.

You enable LogCallbacks two times, technically do the same thing, then call one of them ffmpeg and the other one ffmpeg-kit.

Just to make sure i get it right, ffmpeg and ffmpeg-kit are two different project, right ?
Do correct me if i am wrong ?

You're mixing up three projects: ffmpeg, mobile-ffmpeg and ffmpeg-kit. mobile-ffmpeg is the old name of ffmpeg-kit. It can be said that ffmpeg-kit = mobile-ffmpeg. mobile-ffmpeg is not supported anymore so I don't refer to mobile-ffmpeg when I say ffmpeg. I mean the logs generated by ffmpeg.

I shared which methods gives you the ffmpeg output above. What you need to do is share ffmpeg output and statistics for the same session. So that we can compare the numbers with each other. Please don't share a screenshot, don't share Statistics objects or Log objects. Just Statistics.getTime() is enough.

@TipsBox
Copy link
Author

TipsBox commented Aug 29, 2023

ffmpeg output from session.getAllLogsAsString() and Statistics from again same from session.statistics on success

ffmpeg output

ffmpeg version n6.0 Copyright (c) 2000-2023 the FFmpeg developers
built with Android (7155654, based on r399163b1) clang version 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315dfbea7c137aa2e6d362dbb457e388158d)
configuration: --cross-prefix=aarch64-linux-android- --sysroot=/Users/sue/Library/Android/sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/darwin-x86_64/sysroot --prefix=/Users/sue/Projects/arthenica/ffmpeg-kit/prebuilt/android-arm64/ffmpeg --pkg-config=/opt/homebrew/bin/pkg-config --enable-version3 --arch=aarch64 --cpu=armv8-a --target-os=android --enable-neon --enable-asm --enable-inline-asm --ar=aarch64-linux-android-ar --cc=aarch64-linux-android24-clang --cxx=aarch64-linux-android24-clang++ --ranlib=aarch64-linux-android-ranlib --strip=aarch64-linux-android-strip --nm=aarch64-linux-android-nm --extra-libs='-L/Users/sue/Projects/arthenica/ffmpeg-kit/prebuilt/android-arm64/cpu-features/lib -lndk_compat' --disable-autodetect --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --disable-static --enable-shared --enable-pthreads --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --disable-xmm-clobber-test --disable-debug --enable-lto --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-videotoolbox --disable-audiotoolbox --disable-appkit --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gmp --enable-gnutls --enable-libmp3lame --enable-libass --enable-iconv --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxml2 --enable-libopencore-amrnb --enable-libshine --enable-libspeex --enable-libdav1d --enable-libkvazaar --enable-libilbc --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libtwolame --disable-sdl2 --enable-libvo-amrwbenc --enable-libzimg --disable-openssl --enable-zlib --enable-mediacodec
libavutil 58. 2.100 / 58. 2.100
libavcodec 60. 3.100 / 60. 3.100
libavformat 60. 3.100 / 60. 3.100
libavdevice 60. 1.100 / 60. 1.100
libavfilter 9. 3.100 / 9. 3.100
libswscale 7. 1.100 / 7. 1.100
libswresample 4. 10.100 / 4. 10.100
Input #0, matroska,webm, from '/storage/emulated/0/Movies/Video_Sample.mkv':
Metadata:
encoder : libebml v1.4.4 + libmatroska v1.7.1
creation_time : 2023-05-26T00:14:27.000000Z
Duration: 01:33:44.90, start: 0.000000, bitrate: 2865 kb/s
Stream #0:0: Video: hevc, yuv420p10le(tv), 1920x800 [SAR 1:1 DAR 12:5], 23.98 fps, 23.98 tbr, 1k tbn (default)
Metadata:
BPS : 2002867
DURATION : 01:33:34.901000000
NUMBER_OF_FRAMES: 134623
NUMBER_OF_BYTES : 1405737592
_STATISTICS_WRITING_APP: mkvmerge v73.0.0 ('25 or 6 to 4') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2023-05-26 00:14:27
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(hin): Audio: eac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
Metadata:
title : हिन्दी (भारत) [Dolby Digital Plus 5.1]
BPS : 640000
DURATION : 01:33:44.896000000
NUMBER_OF_FRAMES: 175778
NUMBER_OF_BYTES : 449991680
_STATISTICS_WRITING_APP: mkvmerge v73.0.0 ('25 or 6 to 4') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2023-05-26 00:14:27
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2(eng): Audio: aac, 48000 Hz, 5.1, fltp (default)
Metadata:
BPS : 224000
DURATION : 01:33:34.933000000
NUMBER_OF_FRAMES: 263200
NUMBER_OF_BYTES : 157218134
_STATISTICS_WRITING_APP: mkvmerge v73.0.0 ('25 or 6 to 4') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2023-05-26 00:14:27
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Output #0, matroska, to '/storage/emulated/0/Movies/VC/Video/Video_Sample_1.mkv':
Metadata:
encoder : Lavf60.3.100
Stream #0:0: Video: hevc, yuv420p10le(tv), 1920x800 [SAR 1:1 DAR 12:5], q=2-31, 23.98 fps, 23.98 tbr, 1k tbn (default)
Metadata:
BPS : 2002867
DURATION : 01:33:34.901000000
NUMBER_OF_FRAMES: 134623
NUMBER_OF_BYTES : 1405737592
_STATISTICS_WRITING_APP: mkvmerge v73.0.0 ('25 or 6 to 4') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2023-05-26 00:14:27
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(eng): Audio: aac ([255][0][0][0] / 0x00FF), 48000 Hz, 5.1, fltp (default)
Metadata:
BPS : 224000
DURATION : 01:33:34.933000000
NUMBER_OF_FRAMES: 263200
NUMBER_OF_BYTES : 157218134
_STATISTICS_WRITING_APP: mkvmerge v73.0.0 ('25 or 6 to 4') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2023-05-26 00:14:27
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:2 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 0 fps=0.0 q=-1.0 size= 0kB time=-00:00:02.01 bitrate= -0.0kbits/s speed=N/A
frame= 2411 fps=0.0 q=-1.0 size= 22784kB time=00:01:38.86 bitrate=1888.0kbits/s speed= 198x
frame= 3294 fps=3294 q=-1.0 size= 29952kB time=00:02:15.72 bitrate=1807.8kbits/s speed= 136x
frame= 4187 fps=2791 q=-1.0 size= 38656kB time=00:02:52.82 bitrate=1832.3kbits/s speed= 115x
frame= 5334 fps=2661 q=-1.0 size= 47616kB time=00:03:40.65 bitrate=1767.8kbits/s speed= 110x
frame= 6382 fps=2548 q=-1.0 size= 55552kB time=00:04:24.53 bitrate=1720.3kbits/s speed= 106x
frame= 7299 fps=2429 q=-1.0 size= 64256kB time=00:05:02.50 bitrate=1740.1kbits/s speed= 101x
frame= 8581 fps=2448 q=-1.0 size= 73728kB time=00:05:56.09 bitrate=1696.1kbits/s speed= 102x
frame= 9549 fps=2384 q=-1.0 size= 83712kB time=00:06:36.35 bitrate=1730.2kbits/s speed= 99x
frame=10309 fps=2286 q=-1.0 size= 91392kB time=00:07:08.20 bitrate=1748.4kbits/s speed= 95x
frame=11380 fps=2270 q=-1.0 size= 100608kB time=00:07:52.87 bitrate=1742.9kbits/s speed=94.3x
frame=12376 fps=2243 q=-1.0 size= 108800kB time=00:08:34.37 bitrate=1732.8kbits/s speed=93.2x
frame=13406 fps=2228 q=-1.0 size= 116224kB time=00:09:17.40 bitrate=1708.1kbits/s speed=92.6x
frame=14247 fps=2180 q=-1.0 size= 125184kB time=00:09:52.34 bitrate=1731.3kbits/s speed=90.6x
frame=15214 fps=2160 q=-1.0 size= 136192kB time=00:10:32.68 bitrate=1763.4kbits/s speed=89.8x
frame=15894 fps=2107 q=-1.0 size= 144128kB time=00:11:01.05 bitrate=1786.1kbits/s speed=87.6x
frame=16798 fps=2088 q=-1.0 size= 152064kB time=00:11:38.73 bitrate=1782.8kbits/s speed=86.9x
frame=17702 fps=2069 q=-1.0 size= 163328kB time=00:12:16.47 bitrate=1816.7kbits/s speed=86.1x
frame=18441 fps=2036 q=-1.0 size= 171520kB time=00:12:47.27 bitrate=1831.3kbits/s speed=84.7x
frame=19247 fps=2014 q=-1.0 size= 177664kB time=00:13:20.79 bitrate=1817.5kbits/s speed=83.8x
frame=20213 fps=2010 q=-1.0 size= 186368kB time=00:14:01.23 bitrate=1814.9kbits/s speed=83.7x
frame=21077 fps=1997 q=-1.0 size= 195584kB time=00:14:37.27 bitrate=1826.4kbits/s speed=83.1x
frame=21867 fps=1979 q=-1.0 Lsize= 205886kB time=00:15:09.99 bitrate=1853.4kbits/s speed=82.3x
video:180492kB audio:24936kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.223491%

===================================================================

Statistics.time value

sessionId=1, videoFrameNumber=0, videoFps=0.0, videoQuality=-1.0, size=0, time=2016.0, bitrate=-0.0, speed=-671999.9762307861
sessionId=1, videoFrameNumber=2411, videoFps=0.0, videoQuality=-1.0, size=23330816, time=38860.0, bitrate=1887.9883471575965, speed=197.71248143654128
sessionId=1, videoFrameNumber=3294, videoFps=3293.8948, videoQuality=-1.0, size=30670848, time=15724.0, bitrate=1807.836373817453, speed=135.71966401601358
sessionId=1, videoFrameNumber=4187, videoFps=2791.2664, videoQuality=-1.0, size=39583744, time=52823.0, bitrate=1832.3368533123485, speed=115.21256813910978
sessionId=1, videoFrameNumber=5334, videoFps=2660.8071, videoQuality=-1.0, size=48758784, time=40652.0, bitrate=1767.8075521635878, speed=110.06981886202547
sessionId=1, videoFrameNumber=6382, videoFps=2547.9824, videoQuality=-1.0, size=56885248, time=24535.0, bitrate=1720.3091613586105, speed=105.61430924843222
sessionId=1, videoFrameNumber=7299, videoFps=2429.0737, videoQuality=-1.0, size=65798144, time=2509.0, bitrate=1740.0644344465784, speed=100.67361265832227
sessionId=1, videoFrameNumber=8581, videoFps=2448.1973, videoQuality=-1.0, size=75497472, time=56097.0, bitrate=1696.1102620915087, speed=101.59604974439759
sessionId=1, videoFrameNumber=9549, videoFps=2384.1936, videoQuality=-1.0, size=85721088, time=36354.0, bitrate=1730.1924643122059, speed=98.96163349168663
sessionId=1, videoFrameNumber=10309, videoFps=2286.3315, videoQuality=-1.0, size=93585408, time=8205.0, bitrate=1748.4225172522506, speed=94.96736960626565
sessionId=1, videoFrameNumber=11380, videoFps=2269.6467, videoQuality=-1.0, size=103022592, time=52877.0, bitrate=1742.9072168872667, speed=94.3114011818419
sessionId=1, videoFrameNumber=12376, videoFps=2242.8616, videoQuality=-1.0, size=111411200, time=34370.0, bitrate=1732.7791278651555, speed=93.21757277534653
sessionId=1, videoFrameNumber=13406, videoFps=2227.6611, videoQuality=-1.0, size=119013376, time=17400.0, bitrate=1708.1216505202726, speed=92.62257933854174
sessionId=1, videoFrameNumber=14247, videoFps=2180.27, videoQuality=-1.0, size=128188416, time=52343.0, bitrate=1731.272806465173, speed=90.64839059170532
sessionId=1, videoFrameNumber=15214, videoFps=2160.2478, videoQuality=-1.0, size=139460608, time=32684.0, bitrate=1763.415645092969, speed=89.83529491202728
sessionId=1, videoFrameNumber=15894, videoFps=2106.8154, videoQuality=-1.0, size=147587072, time=1057.0, bitrate=1786.0737818372697, speed=87.62583494762279
sessionId=1, videoFrameNumber=16798, videoFps=2088.0796, videoQuality=-1.0, size=155713536, time=38733.0, bitrate=1782.8101549518915, speed=86.85618505808552
sessionId=1, videoFrameNumber=17702, videoFps=2069.2922, videoQuality=-1.0, size=167247872, time=16471.0, bitrate=1816.7490315300943, speed=86.09048053140606
sessionId=1, videoFrameNumber=18441, videoFps=2036.2665, videoQuality=-1.0, size=175636480, time=47276.0, bitrate=1831.273023006063, speed=84.72308591038224
sessionId=1, videoFrameNumber=19247, videoFps=2014.0292, videoQuality=-1.0, size=181927936, time=20792.0, bitrate=1817.4800547458017, speed=83.79583742740014
sessionId=1, videoFrameNumber=20213, videoFps=2009.938, videoQuality=-1.0, size=190840832, time=1239.0, bitrate=1814.85482247019, speed=83.6510287224272
sessionId=1, videoFrameNumber=21077, videoFps=1996.5804, videoQuality=-1.0, size=200278016, time=37271.0, bitrate=1826.3730682993055, speed=83.1020624253795
sessionId=1, videoFrameNumber=21867, videoFps=1978.6143, videoQuality=-1.0, size=210827766, time=9997.0, bitrate=1853.4370201220443, speed=82.34019652828833

@tanersener tanersener added bug Something isn't working all-platforms and removed needs-analysis We don't know that this is. It must be investigated further android Affect Android platform labels Aug 29, 2023
@tanersener
Copy link
Collaborator

Thanks, it looks like the hours value is dropped by the Statistics. That's the problem. There must be a bug inside ffmpeg-kit.

@tanersener
Copy link
Collaborator

This issue is fixed on version 6.0-1 for Android, on 6.0.1 for Flutter and on 6.0.1 for React Native.

For Apple platforms 6.0 release is patched. Clean your pod cache and try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
all-platforms bug Something isn't working fixed-in-v6.0-1 library Affects the library v6.0
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

3 participants