wang-bin / fvp

Flutter video player plugin for all desktop+mobile platforms. download prebuilt examples from github actions. https://pub.dev/packages/fvp
BSD 3-Clause "New" or "Revised" License
197 stars 31 forks source link

RTSP video live streaming stutters on iOS and macOS, while it works fine on Android with fvp or fijkplayer and macOS with mpv #54

Closed Nicoeevee closed 11 months ago

Nicoeevee commented 1 year ago

Describe the bug RTSP video live streaming stutters on iOS and macOS, while it works fine on Android with fvp or fijkplayer and macOS with mpv

Expected behavior Video streaming plays smoothly on iOS and macOS.

Log Add

import 'package:logging/logging.dart';
import 'package:intl/intl.dart';

add the following lines before registerWith()

  Logger.root.level = Level.ALL;
  final df = DateFormat("HH:mm:ss.SSS");
  Logger.root.onRecord.listen((record) {
    print('${record.loggerName}.${record.level.name}: ${df.format(record.time)}: ${record.message}');
  });

flutter doctor -v

Mac-mini ~ % flutter doctor -v
[✓] Flutter (Channel stable, 3.16.0, on macOS 14.1.1 23B81 darwin-arm64, locale
    zh-Hans-CN)
    • Flutter version 3.16.0 on channel stable at
      /Users/macmini/Documents/lib/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision db7ef5bf9f (7 天前), 2023-11-15 11:25:44 -0800
    • Engine revision 74d16627b9
    • Dart version 3.2.0
    • DevTools version 2.28.2

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at /Users/macmini/Library/Android/sdk
    • Platform android-33, build-tools 33.0.2
    • ANDROID_HOME = /Users/macmini/Library/Android/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A507
    • CocoaPods version 1.14.2

[✓] Android Studio (version 2022.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      17.0.6+0-17.0.6b829.9-10027231)

[✓] IntelliJ IDEA Ultimate Edition (version 2023.2.5)
    • IntelliJ at /Users/macmini/Applications/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 76.3.4
    • Dart plugin version 232.10248

[✓] Connected device (3 available)
    • Pixel 5 (mobile)    • 09011FDD4000SW            • android-arm64  • Android
      14 (API 34)
    • iPhone (mobile) • 00008110-0011042E0A79401E • ios            • iOS
      17.1.1 21B91
    • macOS (desktop)     • macos                     • darwin-arm64   • macOS
      14.1.1 23B81 darwin-arm64

fvp config

  fvp.registerWith(
      options: {
        'lowLatency': 2,
      },
    );

Android works fine, no stutters

W/libOpenSLES(10538): Leaving Object::GetInterface (SL_RESULT_FEATURE_UNSUPPORTED)
W/libOpenSLES(10538): Leaving Object::GetInterface (SL_RESULT_FEATURE_UNSUPPORTED)
I/flutter (10538): fvp.FINE: 2023-11-22 16:22:43.544789: 266923155 player-5476376650331665712 create(rtsp://192.168.169.1:554)
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.560510: default0xb40000743cbbdf70 new FrameReader...
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.560869: Registered audio backends: OpenSL AudioTrack null
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.561063: OpenSL extensions: ANDROID_SDK_LEVEL_34
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.561270: default0xb40000743cbb1450 new FrameReader...
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.561451: Registered audio backends: OpenSL AudioTrack null
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.561644: OpenSL extensions: ANDROID_SDK_LEVEL_34
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.561835: 0xb40000739cbe9700mdk::Player::Player()
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.562024: player property: avio.protocol_whitelist = file,rtmp,http,https,tls,rtp,tcp,udp,crypto,httpproxy,data,concatf,concat,subfile
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.562229: player property: avformat.rtsp_transport = tcp
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.563568: video decoders: "AMediaCodec", "FFmpeg"
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.563808: video decoders: "AMediaCodec", "FFmpeg"
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.564023: player property: avformat.fflags = +nobuffer
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.564223: player property: avformat.fpsprobesize = 0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.564415: default FrameReader0xb40000743cbbdf70 state: 0=>0=>0, 0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.564609: default0xb40000743cbbdf70 virtual void mdk::FrameReader::stop(), current state: 0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.564803: default FrameReader0xb40000743cbbdf70 state: 0=>0=>0, 0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.565013: default0xb40000743cbbdf70 virtual void mdk::FrameReader::stop(), current state: 0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.565209: 0xb40000746cbb86e0 MediaControl.prepare(0, ...) rtsp://192.168.169.1:554
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.565427: default 0xb40000743cbbdf70 FrameReader.start(0, ...)
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.565629: default 0xb40000743cbbdf70 FrameReader::update MediaStatus 0=>0X2
I/flutter (10538): fvp.FINE: 2023-11-22 16:22:43.575198: 904620417 player-5476376650331665712 onMediaStatus: MediaStatus(noMedia) => MediaStatus(+loading)
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.578574: default FrameReader0xb40000743cbbdf70 state: 0=>0=>1, 0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.578947: default FrameReader0xb40000743cbbdf70 state: 0=>1=>1, 0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.579214: start frame reader thread: 492265028784
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.579464: try to load av module: /data/app/~~cQYhoueOqTDxa7fhc3latA==/com.example.app-Jh2I0cblPNYhYKzXB2R2pA==/lib/arm64/libffmpeg.so
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.579657: ffmpeg loaded: /data/app/~~cQYhoueOqTDxa7fhc3latA==/com.example.app-Jh2I0cblPNYhYKzXB2R2pA==/lib/arm64/libffmpeg.so
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.579860: FFmpeg/Libav runtime git-2023-10-29-1056575-avbuild
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.580057: Selected avutil runtime version: 58.28.100 (build: 58.28.100), license: LGPL version 2.1 or later
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.580264: Selected avutil runtime configuration: --extra-version=avbuild --disable-doc --disable-debug --disable-static --enable-shared --enable-runtime-cpudetect --enable-mediacodec --enable-jni --disable-vulkan --disable-v4l2-m2m --disable-indevs --enable-indev=android_camera --disable-outdevs --disable-postproc --ar=llvm-ar --ranlib=llvm-ranlib --nm=llvm-nm --strip=llvm-strip --target-os=android --arch=arm64 --enable-cross-compile --cross-prefix=aarch64-linux-android- --pkg-config=pkg-config --cc=clang --extra-ldexeflags='-Wl,--gc-sections -Wl,-z,nocopyreloc -pie -fPIE ' --enable-lto --enable-pic --extra-cflags='-Wa,--noexecstack -fdata-sections -ffunction-sections -fstack-protector-strong -ffast-math -fstrict-aliasing --target=aarch64-none-linux-android21' --extra-ldflags='-Wl,--gc-sections -Wl,-z,relro -Wl,-z,now --sysroot /usr/local/lib/android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64//sysroot -fuse-ld=lld -rtlib=compiler-rt --target=aarch64-none-linux-and
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.580548: global option: ffmpeg.configuration = --extra-version=avbuild --disable-doc --disable-debug --disable-static --enable-shared --enable-runtime-cpudetect --enable-mediacodec --enable-jni --disable-vulkan --disable-v4l2-m2m --disable-indevs --enable-indev=android_camera --disable-outdevs --disable-postproc --ar=llvm-ar --ranlib=llvm-ranlib --nm=llvm-nm --strip=llvm-strip --target-os=android --arch=arm64 --enable-cross-compile --cross-prefix=aarch64-linux-android- --pkg-config=pkg-config --cc=clang --extra-ldexeflags='-Wl,--gc-sections -Wl,-z,nocopyreloc -pie -fPIE ' --enable-lto --enable-pic --extra-cflags='-Wa,--noexecstack -fdata-sections -ffunction-sections -fstack-protector-strong -ffast-math -fstrict-aliasing --target=aarch64-none-linux-android21' --extra-ldflags='-Wl,--gc-sections -Wl,-z,relro -Wl,-z,now --sysroot /usr/local/lib/android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/linux-x86_64//sysroot -fuse-ld=lld -rtlib=compiler-rt --target=aarch64-none-linux-andr
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.580830: global option: ffmpeg.version = 6
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.581042: av_dict_set0x7275f66fd0
I/flutter (10538): mdk.WARNING: 2023-11-22 16:22:43.581555: Failed to create io for url. io: 0x0, open: false
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.581769: default 0xb40000743cbbdf70 FrameReader::update MediaStatus 0X2=>0X2
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.581974: Selected avcodec runtime version: 60.30.102 (build: 60.30.102), license: LGPL version 2.1 or later
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.582169: av_packet_alloc0x7275d77278
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.582378: Selected avformat runtime version: 60.15.101 (build: 60.15.101), license: LGPL version 2.1 or later
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.582572: avformat_alloc_context0x7275ec6734
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.582796: before avformat_open_input. io: 0x0(/pb: 0x0, url: rtsp://192.168.169.1:554
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.582987: FFmpeg/Libav runtime git-2023-10-29-1056575-avbuild
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.926486: after avformat_open_input. pb: 0x0, iformat: 0x7276065ed8 context flags: 2097216, input format flags: 1
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.926729: [FFmpeg:aac] invalid sampling rate index 13
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:43.926883: [FFmpeg:rtsp] Failed to open codec in avformat_find_stream_info
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.520204: [FFmpeg:rtsp] Could not find codec parameters for stream 0 (Audio: aac, 44100 Hz, 0 channels, fltp): unspecified number of channels
I/flutter (10538): Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.520517: supports 205 ffmpeg sw pixel formats. unsupported: uyyvyy411 x2rgb10be x2bgr10be p212be p212le p412be p412le gbrap14be gbrap14le
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.520697: Format: rtsp, range: 233 +0ms, bitrate: 0, size: 0
I/flutter (10538): Streams: 2
I/flutter (10538):  Video:
I/flutter (10538):   stream#1, range: 233 +0ms, frames: 0
I/flutter (10538):   codec: h264 tag: 0 profile: 100 level: 51, yuv420p, bpc:8, bpp:12(8,8,8), channels:(1,1,1), map: 0 1 2 0, bitrate: 0, 960x540, fps: 30, bframes: 0, range: Full
I/flutter (10538):   extra data(40): 00 00 00 01 00 00 00 01 67 64 00 33 AC EA 0F 01 15 EE 6C 80 00 01 F4 00 00 75 30 42 00 00 00 01 00 00 00 01 68 EE 3C B0
I/flutter (10538):  Audio:
I/flutter (10538):   stream#0, range: 0 +0ms, frames: 0
I/flutter (10538):   codec: aac tag: 0 profile: -99 level: -99, sample size: 0/0, block align: 0, frame_size: 0, f32p mono(1) @44100Hz, bitrate: 0
I/flutter (10538):   extra data(5): 0E 80 56 E5 00
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.520878: default FrameReader0xb40000743cbbdf70 request to pause 1, loaded: 0.
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.521040: default FrameReader0xb40000743cbbdf70 state: 0=>1=>2, 0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.521209: default FrameReader0xb40000743cbbdf70 state requested: 2, current: 0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.521403: 0xb40000746cbb86e0 prepared callback is invoked
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.548997: default 0xb40000743cbbdf70 FrameReader::update MediaStatus 0X2=>0X4
I/flutter (10538): fvp.FINE: 2023-11-22 16:22:49.549665: 904620417 player-5476376650331665712 onMediaStatus: MediaStatus(+loading) => MediaStatus(+loaded)
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.551584: ***buffering progress 0%***
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.551864: default 0xb40000743cbbdf70 FrameReader::update MediaStatus 0X4=>0X14
I/flutter (10538): fvp.FINE: 2023-11-22 16:22:49.552102: 904620417 player-5476376650331665712 onMediaStatus: MediaStatus(+loaded) => MediaStatus(+loaded+buffering)
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.552337: ++++++++++++BUFFERING START++++++++++++
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.552492:
I/flutter (10538): fvp.FINE: 2023-11-22 16:22:49.553582: 904620417 player-5476376650331665712 onEvent: reader.buffering 0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.555404: 0 pkt duration: 0.033333,  duration:4867, dy_duration_delta=0=>33, live_eos_timeout=5000
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.555627: 0 pkt duration: 0.033333,  duration:4867, dy_duration_delta=0=>33, live_eos_timeout=5000
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.555781: default FrameReader0xb40000743cbbdf70 state: 0=>2=>1, 1
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.555902: default FrameReader0xb40000743cbbdf70 update state: 0=>1
I/flutter (10538): fvp.FINE: 2023-11-22 16:22:49.566629: 904620417 player-5476376650331665712 onPlaybackStateChanged: PlaybackState.stopped => PlaybackState.playing
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.566990: default FrameReader0xb40000743cbbdf70 state: 1=>1=>2, 1
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.567170: default FrameReader0xb40000743cbbdf70 update state: 1=>2
I/flutter (10538): fvp.FINE: 2023-11-22 16:22:49.567368: 904620417 player-5476376650331665712 onPlaybackStateChanged: PlaybackState.playing => PlaybackState.paused
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.567679: starting decode loop thread mdk.vdec1@492087786672
I/flutter (10538): fvp.FINE: 2023-11-22 16:22:49.567835: 904620417 player-5476376650331665712 onEvent: thread.video 1
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.567990: video stream#1 starting decoding loop from decoder index 0...
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.568121: creating video decoder: AMediaCodec...
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.568278: opening video decoder: AMediaCodec...
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.568404: CodecForMimeType: video/avc, profile: 8, level: -1
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.568540: 492087786672 JMI: JNI Modern Interface. Version 0.1.0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.568664: Rendering thread @492086746288
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.568784: 0xb40000739cc5a760 start RenderLoop
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.568901: 0xb4000073ccc69290->PlatformSurface::Event::NativeHandle: 0x0>>>0x7fc497498c
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.569029: auto mdk::VideoPresenter::VideoPresenter()::(anonymous class)::operator()(PlatformSurface *) const: 0x0=>0xb4000074ecc49f50 RenderAPI.type: 1
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.569160: createRenderContext of RenderAPI::Type 1 from surface 0xb4000073ccc69290 with extra native res 0x0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.569339: ThreadLocal<bool>::Data::Data() thread: 492086746288
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.569471: T *ThreadLocal<bool>::get() const allocate and initialize ThreadLocal data
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.569601: ThreadLocal<UGL::opengl::Context::Config>::Data::Data() thread: 492086746288
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.569721: T *ThreadLocal<UGL::opengl::Context::Config>::get() const allocate and initialize ThreadLocal data
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.604311: creating internal shared offscreen context for type: EGL|OpenGL|OpenGLES
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.604578: creating EGL context from window: 0x0 with shared context: 0x0 extra: 0x0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.604703: dso.load: libEGL.sotest: true
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.604818: libEGL.so test load result 0x58560a1a330e3d61...
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.604943: initialize EGL display from eglGetDisplay()
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.605079: creating surfaceless offscreen context... WARNING: client api may not support surfaceless context. Can be disabled by setting environment var EGL_SURFACELESS=0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.605202: Try to create context for OpenGL ES 3
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.605311: creating EGL context from window: 0xb40000744cbfe950 with shared context: 0xb4000073ecbfa890 extra: 0x0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.605434: initialize EGL display from eglGetDisplay()
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.605542: Try to create context for OpenGL ES 3
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.605658: ThreadLocal<UGL::opengl::platform::GLContext *>::Data::Data() thread: 492086746288
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.605788: T *ThreadLocal<UGL::opengl::platform::GLContext *>::get() const allocate and initialize ThreadLocal data
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.605909: ++++++++++onContextCreated+++++++++++
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.606062: PlatformSurface::Event::Resize
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.606195: PlatformSurface::Event::Resize
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.606613: setLoop(0), now 0/0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.606766: 0xb40000746cbb86e0 virtual void mdk::MediaControlPush::setState(PlaybackState)@1008 requested state 2=>2, current state 2. status: 0X14
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.606892: default FrameReader0xb40000743cbbdf70 request to pause 1, loaded: 4.
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.607008: default FrameReader0xb40000743cbbdf70 state: 2=>2=>2, 0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.607122: 0xb40000746cbb86e0 virtual void mdk::MediaControlPush::setState(PlaybackState)@1008 requested state 2=>1, current state 2. status: 0X14
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.607236: default FrameReader0xb40000743cbbdf70 request to pause 0, loaded: 4.
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.607364: default FrameReader0xb40000743cbbdf70 state: 2=>2=>1, 0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.607487: default FrameReader0xb40000743cbbdf70 state requested: 1, current: 2
W/VideoCapabilities(10538): Unrecognized level 1879048707 for video/x-vnd.on2.vp8
W/VideoCapabilities(10538): Unrecognized profile 1879048704 for video/x-vnd.on2.vp8
W/VideoCapabilities(10538): Unrecognized level 1879048707 for video/x-vnd.on2.vp8
W/VideoCapabilities(10538): Unrecognized profile 1879048704 for video/x-vnd.on2.vp8
W/VideoCapabilities(10538): Unsupported mime image/vnd.android.heic
W/VideoCapabilities(10538): Unrecognized level 1879048707 for video/x-vnd.on2.vp8
W/VideoCapabilities(10538): Unrecognized profile 1879048704 for video/x-vnd.on2.vp8
W/VideoCapabilities(10538): Unrecognized level 1879048707 for video/x-vnd.on2.vp8
W/VideoCapabilities(10538): Unrecognized profile 1879048704 for video/x-vnd.on2.vp8
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.677030: default FrameReader0xb40000743cbbdf70 state: 2=>1=>1, 1
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.677289: default FrameReader0xb40000743cbbdf70 update state: 2=>1
I/flutter (10538): fvp.FINE: 2023-11-22 16:22:49.677439: 904620417 player-5476376650331665712 onPlaybackStateChanged: PlaybackState.paused => PlaybackState.playing
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.770075: MediaCodecInfo name: c2.android.aac.decoder, mime: audio/mp4a-latm
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.770283: MediaCodecInfo name: OMX.google.aac.decoder, mime: audio/mp4a-latm
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.771074: MediaCodecInfo name: c2.android.amrnb.decoder, mime: audio/3gpp
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.771218: MediaCodecInfo name: OMX.google.amrnb.decoder, mime: audio/3gpp
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.771348: MediaCodecInfo name: c2.android.amrwb.decoder, mime: audio/amr-wb
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.771472: MediaCodecInfo name: OMX.google.amrwb.decoder, mime: audio/amr-wb
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.771612: MediaCodecInfo name: c2.android.flac.decoder, mime: audio/flac
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.771734: MediaCodecInfo name: OMX.google.flac.decoder, mime: audio/flac
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.771877: MediaCodecInfo name: c2.android.g711.alaw.decoder, mime: audio/g711-alaw
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.771996: MediaCodecInfo name: OMX.google.g711.alaw.decoder, mime: audio/g711-alaw
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.772124: MediaCodecInfo name: c2.android.g711.mlaw.decoder, mime: audio/g711-mlaw
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.772237: MediaCodecInfo name: OMX.google.g711.mlaw.decoder, mime: audio/g711-mlaw
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.772354: MediaCodecInfo name: c2.android.gsm.decoder, mime: audio/gsm
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.772467: MediaCodecInfo name: OMX.google.gsm.decoder, mime: audio/gsm
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.772581: MediaCodecInfo name: c2.android.mp3.decoder, mime: audio/mpeg
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.772726: MediaCodecInfo name: OMX.google.mp3.decoder, mime: audio/mpeg
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.772844: MediaCodecInfo name: c2.android.opus.decoder, mime: audio/opus
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.772973: MediaCodecInfo name: OMX.google.opus.decoder, mime: audio/opus
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.773101: MediaCodecInfo name: c2.android.raw.decoder, mime: audio/raw
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.773220: MediaCodecInfo name: OMX.google.raw.decoder, mime: audio/raw
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.773330: MediaCodecInfo name: c2.android.vorbis.decoder, mime: audio/vorbis
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.773440: MediaCodecInfo name: OMX.google.vorbis.decoder, mime: audio/vorbis
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.773566: MediaCodecInfo name: c2.qti.avc.decoder, mime: video/avc video/avc -profile: 8
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.773691: profileLevels count: 5
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.773819: profile: 1 level: 262144
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.773950: profile: 65536 level: 262144
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.774078: profile: 2 level: 262144
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.774198: profile: 8 level: 262144
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.774316:  [Match].
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.774436: MediaCodecInfo name: OMX.qcom.video.decoder.avc, mime: video/avc video/avc -profile: 8
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.774557: profileLevels count: 5
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.774680: profile: 1 level: 262144
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.774798: profile: 65536 level: 262144
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.774910: profile: 2 level: 262144
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.775020: profile: 8 level: 262144
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.775141:  [Match].
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.775289: MediaCodecInfo name: c2.qti.avc.decoder.low_latency, mime: video/avc video/avc -profile: 8
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.775405: profileLevels count: 5
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.775526: profile: 1 level: 262144
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.775646: profile: 65536 level: 262144
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.775768: profile: 2 level: 262144
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.775888: profile: 8 level: 262144
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.792088:  [Match].
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.792320: MediaCodecInfo name: c2.qti.avc.decoder.secure, mime: video/avc video/avc -profile: 8
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.792492: profileLevels count: 5
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.792609: profile: 1 level: 262144
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.792786: profile: 65536 level: 262144
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.792911: profile: 2 level: 262144
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.793033: profile: 8 level: 262144
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.793166:  [Match].
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.793284: MediaCodecInfo name: OMX.qcom.video.decoder.avc.secure, mime: video/avc video/avc -profile: 8
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.793409: profileLevels count: 5
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.793527: profile: 1 level: 262144
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.793644: profile: 65536 level: 262144
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.793760: profile: 2 level: 262144
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.793893: profile: 8 level: 262144
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.794019:  [Match].
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.794143: MediaCodecInfo name: c2.qti.hevc.decoder, mime: video/hevc
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.794266: MediaCodecInfo name: OMX.qcom.video.decoder.hevc, mime: video/hevc
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.794390: MediaCodecInfo name: c2.qti.hevc.decoder.low_latency, mime: video/hevc
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.794507: MediaCodecInfo name: c2.qti.hevc.decoder.secure, mime: video/hevc
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.794628: MediaCodecInfo name: OMX.qcom.video.decoder.hevc.secure, mime: video/hevc
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.794754: MediaCodecInfo name: c2.qti.vp8.decoder, mime: video/x-vnd.on2.vp8
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.794878: MediaCodecInfo name: OMX.qcom.video.decoder.vp8, mime: video/x-vnd.on2.vp8
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.795018: MediaCodecInfo name: c2.qti.vp9.decoder, mime: video/x-vnd.on2.vp9
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.795142: MediaCodecInfo name: OMX.qcom.video.decoder.vp9, mime: video/x-vnd.on2.vp9
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.795259: MediaCodecInfo name: c2.qti.vp9.decoder.secure, mime: video/x-vnd.on2.vp9
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.795382: MediaCodecInfo name: c2.android.av1.decoder, mime: video/av01
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.795502: MediaCodecInfo name: c2.android.avc.decoder, mime: video/avc video/avc -profile: 8
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.795621: profileLevels count: 5
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.795742: profile: 65536 level: 65536
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.795859: profile: 1 level: 65536
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.802790: profile: 2 level: 65536
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.803048: profile: 524288 level: 65536
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.803200: profile: 8 level: 65536
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.803331:  [Match].
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.803493: MediaCodecInfo name: OMX.google.h264.decoder, mime: video/avc video/avc -profile: 8
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.803625: profileLevels count: 5
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.804023: profile: 65536 level: 65536
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.804177: profile: 1 level: 65536
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.804296: profile: 2 level: 65536
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.804410: profile: 524288 level: 65536
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.804520: profile: 8 level: 65536
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.804649:  [Match].
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.804770: MediaCodecInfo name: c2.android.h263.decoder, mime: video/3gpp
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.804890: MediaCodecInfo name: OMX.google.h263.decoder, mime: video/3gpp
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.805027: MediaCodecInfo name: c2.android.hevc.decoder, mime: video/hevc
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.805149: MediaCodecInfo name: OMX.google.hevc.decoder, mime: video/hevc
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.805270: MediaCodecInfo name: c2.android.mpeg4.decoder, mime: video/mp4v-es
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.805392: MediaCodecInfo name: OMX.google.mpeg4.decoder, mime: video/mp4v-es
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.805517: MediaCodecInfo name: c2.android.vp8.decoder, mime: video/x-vnd.on2.vp8
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.805639: MediaCodecInfo name: OMX.google.vp8.decoder, mime: video/x-vnd.on2.vp8
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.805777: MediaCodecInfo name: c2.android.vp9.decoder, mime: video/x-vnd.on2.vp9
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.805897: MediaCodecInfo name: OMX.google.vp9.decoder, mime: video/x-vnd.on2.vp9
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.806049: found codecs count: 7 | 0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.806170: video/avc AMediaCodec_createCodecByName: c2.qti.avc.decoder
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.806292: AMediaCodec *ndk::AMediaCodec_createCodecByName(const char *) via ndk: true
D/CCodec  (10538): allocate(c2.qti.avc.decoder)
I/Codec2Client(10538): Available Codec2 services: "default" "software"
I/CCodec  (10538): setting up 'default' as default (vendor) store
I/CCodec  (10538): Created component [c2.qti.avc.decoder]
D/CCodecConfig(10538): read media type: video/avc
D/ReflectedParamUpdater(10538): ignored struct field vendor.qti-ext-dec-panscan.window
D/ReflectedParamUpdater(10538): extent() != 1 for single value type: output.buffers.pool-ids.values
D/ReflectedParamUpdater(10538): extent() != 1 for single value type: vendor.qti-ext-dec-info-misr.misr_info_top_field.misr_dpb_luma
D/ReflectedParamUpdater(10538): extent() != 1 for single value type: vendor.qti-ext-dec-info-misr.misr_info_top_field.misr_dpb_chroma
D/ReflectedParamUpdater(10538): extent() != 1 for single value type: vendor.qti-ext-dec-info-misr.misr_info_top_field.misr_opb_luma
D/ReflectedParamUpdater(10538): extent() != 1 for single value type: vendor.qti-ext-dec-info-misr.misr_info_top_field.misr_opb_chroma
D/ReflectedParamUpdater(10538): extent() != 1 for single value type: vendor.qti-ext-dec-info-misr.misr_info_bottom_field.misr_dpb_luma
D/ReflectedParamUpdater(10538): extent() != 1 for single value type: vendor.qti-ext-dec-info-misr.misr_info_bottom_field.misr_dpb_chroma
D/ReflectedParamUpdater(10538): extent() != 1 for single value type: vendor.qti-ext-dec-info-misr.misr_info_bottom_field.misr_opb_luma
D/ReflectedParamUpdater(10538): extent() != 1 for single value type: vendor.qti-ext-dec-info-misr.misr_info_bottom_field.misr_opb_chroma
D/CCodecConfig(10538): ignoring local param raw.size (0xd2001800) as it is already supported
D/CCodecConfig(10538): ignoring local param default.color (0x5200180b) as it is already supported
D/CCodecConfig(10538): ignoring local param raw.hdr-static-info (0xd200180a) as it is already supported
I/CCodecConfig(10538): query failed after returning 17 values (BAD_INDEX)
D/CCodecConfig(10538): c2 config diff is Dict {
D/CCodecConfig(10538):   c2::i32 algo.priority.value = -1
D/CCodecConfig(10538):   c2::float algo.rate.value = 30
D/CCodecConfig(10538):   c2::u32 algo.secure-mode.value = 0
D/CCodecConfig(10538):   c2::float coded.frame-rate.value = 30
D/CCodecConfig(10538):   c2::u32 coded.pl.level = 0
D/CCodecConfig(10538):   c2::u32 coded.pl.profile = 20484
D/CCodecConfig(10538):   c2::u32 coded.vui.color.matrix = 255
D/CCodecConfig(10538):   c2::u32 coded.vui.color.primaries = 0
D/CCodecConfig(10538):   c2::u32 coded.vui.color.range = 0
D/CCodecConfig(10538):   c2::u32 coded.vui.color.transfer = 255
D/CCodecConfig(10538):   c2::u32 default.color.matrix = 255
D/CCodecConfig(10538):   c2::u32 default.color.primaries = 0
D/CCodecConfig(10538):   c2::u32 default.color.range = 0
D/CCodecConfig(10538):   c2::u32 default.color.transfer = 255
D/CCodecConfig(10538):   c2::u32 input.buffers.max-size.value = 13271040
D/CCodecConfig(10538):   c2::u32 input.delay.value = 0
D/CCodecConfig(10538):   string input.media-type.value = "video/avc"
D/CCodecConfig(10538):   c2::u32 output.delay.value = 18
D/CCodecConfig(10538):   string output.media-type.value = "video/raw"
D/CCodecConfig(10538):   c2::u32 raw.color.matrix = 255
D/CCodecConfig(10538):   c2::u32 raw.color.primaries = 0
D/CCodecConfig(10538):   c2::u32 raw.color.range = 0
D/CCodecConfig(10538):   c2::u32 raw.color.transfer = 255
D/CCodecConfig(10538):   c2::float raw.hdr-static-info.mastering.blue.x = 0
D/CCodecConfig(10538):   c2::float raw.hdr-static-info.mastering.blue.y = 0
D/CCodecConfig(10538):   c2::float raw.hdr-static-info.master
W/ColorUtils(10538): expected specified color aspects (0:0:255:255)
D/MediaCodec(10538): flushMediametrics
D/SurfaceUtils(10538): connecting to surface 0xb40000744cbf3f00, reason connectToSurface
I/MediaCodec(10538): [c2.qti.avc.decoder] setting surface generation to 10790913
D/SurfaceUtils(10538): disconnecting from surface 0xb40000744cbf3f00, reason connectToSurface(reconnect)
D/SurfaceUtils(10538): connecting to surface 0xb40000744cbf3f00, reason connectToSurface(reconnect)
D/CCodec  (10538): [c2.qti.avc.decoder] buffers are bound to CCodec for this session
D/CCodecConfig(10538): no c2 equivalents for native-window
D/CCodecConfig(10538): no c2 equivalents for flags
D/CCodecConfig(10538): c2 config diff is   c2::i32 algo.priority.value = 0
D/CCodecConfig(10538):   c2::u32 raw.size.height = 540
D/CCodecConfig(10538):   c2::u32 raw.size.width = 960
W/Codec2Client(10538): query -- param skipped: index = 1107298332.
D/CCodec  (10538): encoding statistics level = 0
D/CCodec  (10538): setup formats input: AMessage(what = 0x00000000) = {
D/CCodec  (10538):   int32_t feature-secure-playback = 0
D/CCodec  (10538):   int32_t frame-rate = 30
D/CCodec  (10538):   int32_t height = 540
D/CCodec  (10538):   int32_t max-input-size = 13271040
D/CCodec  (10538):   string mime = "video/avc"
D/CCodec  (10538):   int32_t priority = 0
D/CCodec  (10538):   int32_t profile = 8
D/CCodec  (10538):   int32_t width = 960
D/CCodec  (10538):   Rect crop(0, 0, 959, 539)
D/CCodec  (10538): }
D/CCodec  (10538): setup formats output: AMessage(what = 0x00000000) = {
D/CCodec  (10538):   int32_t android._color-format = 0
D/CCodec  (10538):   int32_t android._video-scaling = 1
D/CCodec  (10538):   int32_t android._dataspace = 260
D/CCodec  (10538):   int32_t color-standard = 130817
D/CCodec  (10538):   int32_t color-range = 2
D/CCodec  (10538):   int32_t color-transfer = 65791
D/CCodec  (10538):   int32_t sar-height = 1
D/CCodec  (10538):   int32_t rotation-degrees = 0
D/CCodec  (10538):   Buffer hdr-static-info = {
D/CCodec  (10538):     00000000:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  ................
D/CCodec  (10538):     00000010:  00 00 00 00 00 00 00 00  00                       .........
D/CCodec  (10538):   }
D/CCodec  (10538):   int32_t sar-width = 1
D/CCodec  (10538):   Rect crop(0, 0, 959, 539)
D/CCodec  (10538):   int32_t width = 960
D/CCodec  (10538):   int32_t feature-secure-playback = 0
D/CCodec  (10538):   int32_t frame-rate = 30
D/CCodec  (10538):   int32_t height = 540
D/CCodec  (10538):   int32_t max-height = 2160
D/CCodec  (10538):   int32_t max-width = 4096
D/CCodec  (10538):   string mime = "video/raw"
D/CCodec  (10538):   int32_t priority = 0
D/CCodec  (10538):   int32_t color-format = 2130708361
D/CCodec  (10538): }
I/CCodecConfig(10538): query failed after returning 17 values (BAD_INDEX)
W/Codec2Client(10538): query -- param skipped: index = 1342179345.
W/Codec2Client(10538): query -- param skipped: index = 2415921170.
W/Codec2Client(10538): query -- param skipped: index = 1610614798.
D/CCodecBufferChannel(10538): [c2.qti.avc.decoder#842] Query input allocators returned 0 params => BAD_INDEX (6)
D/C2Store (10538): Using ION
D/CCodecBufferChannel(10538): [c2.qti.avc.decoder#842] Created input block pool with allocatorID 16 => poolID 17 - OK (0)
D/CCodecBufferChannel(10538): [c2.qti.avc.decoder#842] Query output allocators returned 0 params => BAD_INDEX (6)
D/CCodecBufferChannel(10538): [c2.qti.avc.decoder#842] Query output surface allocator returned 0 params => BAD_INDEX (6)
I/CCodecBufferChannel(10538): [c2.qti.avc.decoder#842] Created output block pool with allocatorID 18 => poolID 241 - OK
D/CCodecBufferChannel(10538): [c2.qti.avc.decoder#842] Configured output block pool ids 241 => OK
D/Codec2-OutputBufferQueue(10538): remote graphic buffer migration 0/0
D/Codec2Client(10538): setOutputSurface -- failed to set consumer usage (6/BAD_INDEX)
D/Codec2Client(10538): setOutputSurface -- generation=10790913 consumer usage=0x900
D/Codec2Client(10538): Surface configure completed
D/CCodecBufferChannel(10538): [c2.qti.avc.decoder#842] Ignoring stale input buffer done callback: last flush index = 0, frameIndex = 0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.887736: set h264 csd-0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.887999: using AImageReader: true
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.888141: AMediaCodec selected video codec name: c2.qti.avc.decoder
I/flutter (10538): fvp.FINE: 2023-11-22 16:22:49.888396: 904620417 player-5476376650331665712 onEvent: decoder.video 0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.888547: decode stored recovery packets: 0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.888697: ***buffering progress 100%***
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.888835: default 0xb40000743cbbdf70 FrameReader::update MediaStatus 0X14=>0X124
I/flutter (10538): fvp.FINE: 2023-11-22 16:22:49.889043: 904620417 player-5476376650331665712 onMediaStatus: MediaStatus(+loaded+buffering) => MediaStatus(+loaded+prepared+buffered)
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.889513: ++++++++++++BUFFERING END++++++++++++
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.889677:
I/flutter (10538): fvp.FINE: 2023-11-22 16:22:49.889859: 904620417 player-5476376650331665712 onEvent: reader.buffering 100
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.890706: video stream#1 1st packet@5.100000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.890922: video stream#1 1st packet@5.133000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.891108: video stream#1 1st packet@5.166000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.891242: video stream#1 1st packet@5.200000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.891382: video stream#1 1st packet@5.233000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.891534: video stream#1 1st packet@5.266000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.891660: video stream#1 1st packet@5.300000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.891785: video stream#1 1st packet@5.333000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.891919: video stream#1 1st packet@5.366000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.892058: video stream#1 1st packet@5.400000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.892204: video stream#1 1st packet@5.433000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.892337: video stream#1 1st packet@5.466000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.892462: video stream#1 1st packet@5.500000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.892590: video stream#1 1st packet@5.533000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.892741: video stream#1 1st packet@5.566000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.892868: video stream#1 1st packet@5.600000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.928002: video stream#1 1st packet@5.633000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.951916: video stream#1 1st packet@5.666000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:49.984227: video stream#1 1st packet@5.700000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.017336: video stream#1 1st packet@5.733000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.053063: video stream#1 1st packet@5.766000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.114566: video stream#1 1st packet@5.800000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
D/CCodecConfig(10538): c2 config diff is   c2::u32 output.delay.value = 22
D/CCodecConfig(10538):   c2::u32 raw.crop.height = 540
D/CCodecConfig(10538):   c2::u32 raw.crop.left = 0
D/CCodecConfig(10538):   c2::u32 raw.crop.top = 0
D/CCodecConfig(10538):   c2::u32 raw.crop.width = 960
D/Codec2-OutputBufferQueue(10538): set max dequeue count 25 from update
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.699670: AMEDIACODEC_INFO_OUTPUT_FORMAT_CHANGED
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.699940: MediaFormat: android._color-format: int32(0), android._video-scaling: int32(1), android._dataspace: int32(260), color-standard: int32(130817), color-range: int32(2), color-transfer: int32(65791), sar-height: int32(1), rotation-degrees: int32(0), hdr-static-info: data, sar-width: int32(1), crop: Rect(0, 0, 959, 539), width: int32(960), feature-secure-playback: int32(0), frame-rate: int32(30), height: int32(540), max-height: int32(2160), max-width: int32(4096), mime: string(video/raw), priority: int32(0), color-format: int32(2130708361)}
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.700120: unknown, bpc:0, bpp:0(), channels:(), map: 0 0 0 0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.700280: size: 960x540, bytes: 960x540
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.720712: video stream#1 sending 1 invalid AOT frame @5.833000s. seeking: 0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.721072: 0xb40000746cbb86e0 1st video frame to render @5.833000s, sync time: 0.849000
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.721279: VideoRenderer clear buffered frames
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.721480: 0-track seek end video frame @5.833000 seek_pos_: -1
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.721667: video stream#1 AOT frame is sent
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.721895: VideoRenderer WxH=960.000000x540.000000 960.000000x540.000000, frame: 960x540
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.722109: update transform 2d. scale: (1.000000, 1.000000), orientation: 0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.722332: m: mat<4, 4>(
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.722508: 1  0  0  0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.722839: 0  1  0  0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.723136: 0  0  1  0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.723387: 0  0  0  1
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.723605: )
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.723800: ThreadLocal<std::unordered_map<const void *, std::unique_ptr<UGL::opengl::Context>>>::Data::Data() thread: 492086746288
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.723997: T *ThreadLocal<std::unordered_map<const void *, std::unique_ptr<UGL::opengl::Context>>>::get() const allocate and initialize ThreadLocal data
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.724215: new Context object 0xb40000748cc2b5d0(0) for native context handle 0xb4000074ccbcb820
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.725067: ctx->api_: 0xb40000731cca83b0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.725485: probing gl context... native: 0x0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.725658: EGL_VERSION: 1.5 Android META-EGL
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.725804: EGL_VENDOR: Android
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.725931: EGL_CLIENT_APIS: OpenGL_ES
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.726075: resolving gl common functions...
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.726203: select gl api resolver for EGL|OpenGL|OpenGLES
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.726329: using opengl api resolver: EGL
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.734825: probing gl client context... major_: 0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.735101: GL_VENDOR: Qualcomm
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.735310: GL_RENDERER: Adreno (TM) 620
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.735514: GL_VERSION: OpenGL ES 3.2 V@0490.0 (GIT@4783c89, I46ff5fc46f, 1606807783) (Date:11/30/20)
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.735662: GL_SHADING_LANGUAGE_VERSION: OpenGL ES GLSL ES 3.20
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.735802: EGL_ANDROID_GLES_layers EGL_ANDROID_front_buffer_auto_refresh EGL_ANDROID_get_frame_timestamps EGL_ANDROID_get_native_client_buffer EGL_ANDROID_image_native_buffer EGL_ANDROID_native_fence_sync EGL_ANDROID_presentation_time EGL_ANDROID_recordable EGL_ANGLE_platform_angle EGL_EXT_client_extensions EGL_EXT_create_context_robustness EGL_EXT_gl_colorspace_bt2020_hlg EGL_EXT_gl_colorspace_bt2020_linear EGL_EXT_gl_colorspace_bt2020_pq EGL_EXT_gl_colorspace_display_p3 EGL_EXT_gl_colorspace_display_p3_linear EGL_EXT_gl_colorspace_display_p3_passthrough EGL_EXT_gl_colorspace_scrgb EGL_EXT_gl_colorspace_scrgb_linear EGL_EXT_image_gl_colorspace EGL_EXT_pixel_format_float EGL_EXT_protected_content EGL_EXT_surface_CTA861_3_metadata EGL_EXT_surface_SMPTE2086_metadata EGL_EXT_yuv_surface EGL_IMG_context_priority EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.736570: OpenGL Context thread: 492086746288
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.736776: OpenGL ES3.2 No profile, EGL150, GLSL320
I/flutter (10538): Features PBO: 1, RG texture: 1, 16bit texture: 1
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.736910: resolving gl extensions...
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.737042: select gl api resolver for EGL|OpenGL|OpenGLES
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.737168: using opengl api resolver: EGL
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.737289: context version: 320
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.737409: extension resolved: glMapBufferOES
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.737532:
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.737668: gl api resolved. thread@ 492086746288
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.737784:
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.737922: 0xb40000748cc2b5d0/0xb4000074ccbcb820 Context::setLocalData local data 0xb4000074ccbd0d30 for key: 0x2. size: 1
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.738070: 0xb40000748cc2b5d0/0xb4000074ccbcb820 Context::setLocalData local data 0xb4000074ccbd1f30 for key: 0x3. size: 2
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.738265: 0xb4000074ecc406b0mdk::GLVideoRenderer::Private::Renderers::Renderers()
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.738410: 0xb40000748cc2b5d0/0xb4000074ccbcb820 Context::setLocalData local data 0xb4000074ccbd24d0 for key: 0x0. size: 3
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.738548: 0xb40000748cc2b5d0/0xb4000074ccbcb820 Context::setLocalData local data 0xb4000074ccbd0e50 for key: 0x1. size: 4
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.738682: AHardwareBuffer from AImageReader Surface to EGLImage
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.738816: unknown, bpc:0, bpp:0(), channels:(), map: 0 0 0 0 => mapped rgba, bpc:8, bpp:32(32), channels:(4), map: 0 1 2 3
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.738952:  RGBA8 |  RGBA | UNSIGNED_BYTE
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.739095: frame color: BT709 sRGB RGB Limited. gamma: 0.000000, signal peak: 1.000000
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.739223:  -
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.739380: output color: BT709 UNSPECIFIED RGB Full. gamma: 2.200000, signal peak: 1.000000
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.739520: rgb primaries matrix: mat<3, 3>(
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.739647: 1  0  0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.739774: 0  1  0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.739902: 0  0  1
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.740038: )
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.740182: color transform: mat<4, 4>(
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.740312: 1  0  0  0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.740480: 0  1  0  0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.740616: 0  0  1  0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.740762: 0  0  0  1
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.740891: )
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.741023: EQ: mat<4, 4>(
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.741158: 1  0  0  0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.741307: 0  1  0  0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.741439: 0  0  1  0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.741565: 0  0  0  1
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.741694: )
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.741823: material changed: 0x0=>0xa0a
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.741965: planar: 0, alpha: 1, texture 2d: 0, external: 1, rg semi-planar: 0, 16=>8: 0, xyz: 0, generic packed yuv: 0, cocgsy: 0, primaries diff: 0, trc: 2=>1, tone map: 0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.742110: bind attribute: a_Position => 0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.742241: bind attribute: a_TexCoords0 => 1
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.742428: uniform locations:
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.742556: u_Texture0: 6
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.742719: u_Matrix: 0, u_TexMatrix: 1
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.742835: update built-in uniforms
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.742961: EQ: mat<4, 4>(
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.743087: 1  0  0  0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.743211: 0  1  0  0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.743335: 0  0  1  0
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.743479: 0  0  0  1
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.743605: )
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.743728: uniform cb.u_colorMatrix: 2
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.743859: uniform cb.u_ScaleA: -1
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.743987: uniform cb.u_GammaOut: 4
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.744112: uniform cb.u_SdrWhite: -1
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.744249: creating vbo...
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:50.744376: creating vao...
I/flutter (10538): fvp.FINE: 2023-11-22 16:22:50.744547: 904620417 player-5476376650331665712 onEvent: render.video 5833
D/BufferPoolAccessor2.0(10538): bufferpool2 0xb40000739cc57948 : 4(53084160 size) total buffers - 4(53084160 size) used buffers - 1/5 (recycle/alloc) - 4/143 (fetch/transfer)
D/BufferPoolAccessor2.0(10538): evictor expired: 1, evicted: 1
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:55.152547: 0 pkt duration: 0.034367,  duration:10633, dy_duration_delta=33=>34, live_eos_timeout=5000
I/flutter (10538): mdk.INFO: 2023-11-22 16:22:55.152930: 0 pkt duration: 0.034367,  duration:10633, dy_duration_delta=33=>34, live_eos_timeout=5000
D/BufferPoolAccessor2.0(10538): bufferpool2 0xb40000739cc57948 : 4(53084160 size) total buffers - 4(53084160 size) used buffers - 1/5 (recycle/alloc) - 4/295 (fetch/transfer)
D/BufferPoolAccessor2.0(10538): bufferpool2 0xb40000739cc57948 : 4(53084160 size) total buffers - 4(53084160 size) used buffers - 1/5 (recycle/alloc) - 4/445 (fetch/transfer)

MacOS mpv works fine, no stutters

Mac-mini ~ % mpv rtsp://192.168.169.1:554
[ffmpeg/audio] aac: invalid sampling rate index 13
[ffmpeg/demuxer] rtsp: Failed to open codec in avformat_find_stream_info
[ffmpeg/demuxer] rtsp: Could not find codec parameters for stream 0 (Audio: aac, 44100 Hz, 0 channels, fltp): unspecified number of channels
[ffmpeg/demuxer] Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
 (+) Video --vid=1 (h264 960x540 30.000fps)
 (+) Audio --aid=1 (aac 1ch 44100Hz)
[ffmpeg/audio] aac: invalid sampling rate index 13
Could not open codec.
Decoder init failed for aac
[ffmpeg/audio] aac_fixed: invalid sampling rate index 13
Could not open codec.
Decoder init failed for aac_fixed
[ffmpeg/audio] aac_at: AudioToolbox init error: -50
Could not open codec.
Decoder init failed for aac_at
Failed to initialize a decoder for codec 'aac'.
Audio: no audio
No video PTS! Making something up. Using 30.000000 FPS.
VO: [libmpv] 960x540 yuv420p
Invalid video timestamp: 0.000000 -> 0.000000
V: 00:00:09 / 00:00:11 (88%)
[ffmpeg/video] h264: Increasing reorder buffer to 1
V: 00:00:24 / 00:00:25 (94%)

Exiting... (Quit)

MacOS ffplay not work

Mac-mini ~ % ffplay -v verbose "rtsp://192.168.169.1:554"
ffplay version 6.0 Copyright (c) 2003-2023 the FFmpeg developers
  built with Apple clang version 15.0.0 (clang-1500.0.40.1)
  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/6.0_1 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags='-Wl,-ld_classic' --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-audiotoolbox --enable-neon
  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
  libpostproc    57.  1.100 / 57.  1.100
Initialized metal renderer.
[tcp @ 0x600002c220a0] Starting connection attempt to 192.168.169.1 port 554
[tcp @ 0x600002c220a0] Successfully connected to 192.168.169.1 port 554
[rtsp @ 0x14d810fb0] SDP:
v=0
a=type:broadcast
a=control:*
a=range:npt=0-
m=audio 0 RTP/AVP 96
b=AS:96
c=IN IP4 0.0.0.0
a=rtpmap:96 MPEG4-GENERIC/0/0
a=fmtp:96 streamtype=5;profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=0e8056e500
a=control:track1
m=video 0 RTP/AVP 97
b=AS:1000
c=IN IP4 0.0.0.0
a=rtpmap:97 H264/90000
a=fmtp:97 profile-level-id=640033;packetization-mode=1;sprop-parameter-sets=AAAAAWdkADOs6g8BFe5sgAAB9AAAdTBC,AAAAAWjuPLA=
a=control:track2

[rtsp @ 0x14d810fb0] Nonmatching transport in server replyB f=0/0
rtsp://192.168.169.1:554: Invalid data found when processing input

Android fijkplayer works fine, no stutters

I/flutter (28277): dataSource: rtsp://192.168.169.1:554
I/flutter (28277): startPlay
D/J4A     (28277): J4ALoader: OK: 'android.os.Build$VERSION' loaded
D/J4A     (28277): J4ALoader: OK: 'android.os.Build' loaded
D/J4A     (28277): J4ALoader: OK: 'java.nio.Buffer' loaded
D/J4A     (28277): J4ALoader: OK: 'java.nio.ByteBuffer' loaded
D/J4A     (28277): J4ALoader: OK: 'java.util.ArrayList' loaded
I/J4A     (28277): API-Level: 34
D/J4A     (28277): J4ALoader: OK: 'android.media.AudioTrack' loaded
D/J4A     (28277): J4ALoader: OK: 'android.media.MediaCodec$BufferInfo' loaded
D/J4A     (28277): J4ALoader: OK: 'android.media.MediaCodec' loaded
D/J4A     (28277): J4ALoader: OK: 'android.media.MediaFormat' loaded
D/J4A     (28277): J4ALoader: OK: 'android.media.PlaybackParams' loaded
D/J4A     (28277): J4ALoader: OK: 'android.os.Bundle' loaded
D/J4A     (28277): J4ALoader: OK: 'tv.danmaku.ijk.media.player.misc.IMediaDataSource' loaded
D/J4A     (28277): J4ALoader: OK: 'tv.danmaku.ijk.media.player.misc.IAndroidIO' loaded
D/J4A     (28277): J4ALoader: OK: 'tv.danmaku.ijk.media.player.misc.MediaCodecSurface' loaded
D/J4A     (28277): J4ALoader: OK: 'tv.danmaku.ijk.media.player.IjkMediaPlayer' loaded
D/IJKMEDIA(28277): ijkmediaplayer version :
D/IJKMEDIA(28277): IjkMediaPlayer_native_init
D/IJKMEDIA(28277): IjkMediaPlayer_native_setup
I/IJKMEDIA(28277): av_version_info: ff4.0--ijk0.8.8--20211030--926
I/IJKMEDIA(28277): ijk_version_info:
D/IJKMEDIA(28277): ffpipeline_create_from_android()
D/IJKMEDIA(28277): ijkmp_set_inject_opaque(0x34a6)
D/IJKMEDIA(28277): ijkmp_set_inject_opaque()=void
D/IJKMEDIA(28277): ijkmp_set_ijkio_inject_opaque(0x34a6)
D/IJKMEDIA(28277): ijkmp_set_ijkio_inject_opaque()=void
D/IJKMEDIA(28277): ijkmp_android_set_mediacodec_select_callback()
D/IJKMEDIA(28277): ffpipeline_set_mediacodec_select_callback
D/IJKMEDIA(28277): ijkmp_android_set_mediacodec_select_callback()=void
D/IJKMEDIA(28277): IjkMediaPlayer_setOptionLong
D/IJKMEDIA(28277): IjkMediaPlayer_setOptionLong
W/WindowOnBackDispatcher(28277): OnBackInvokedCallback is not enabled for the application.
W/WindowOnBackDispatcher(28277): Set 'android:enableOnBackInvokedCallback="true"' in the application manifest.
I/flutter (28277): [inf] 2023-11-22 11:50:33.438158 [fijk] create player id:2
I/flutter (28277): [inf] 2023-11-22 11:50:33.440280 [fijk] FijkPlayer{id:2} setOption k:rtsp_transport, v:tcp
I/flutter (28277): [inf] 2023-11-22 11:50:33.440739 [fijk] FijkPlayer{id:2} setOption k:auth_type, v:basic
I/flutter (28277): [inf] 2023-11-22 11:50:33.441124 [fijk] FijkPlayer{id:2} setOption k:rtsp_flags, v:prefer_tcp
D/IJKMEDIA(28277): IjkMediaPlayer_setOption
I/flutter (28277): [inf] 2023-11-22 11:50:33.441462 [fijk] FijkPlayer{id:2} setOption k:fast, v:1
I/flutter (28277): [inf] 2023-11-22 11:50:33.441743 [fijk] FijkPlayer{id:2} setOption k:analyzeduration, v:1
I/flutter (28277): [inf] 2023-11-22 11:50:33.442017 [fijk] FijkPlayer{id:2} setOption k:analyzemaxduration, v:100
D/IJKMEDIA(28277): IjkMediaPlayer_setOption
I/flutter (28277): [inf] 2023-11-22 11:50:33.442392 [fijk] FijkPlayer{id:2} setOption k:probesize, v:100
I/flutter (28277): [inf] 2023-11-22 11:50:33.442697 [fijk] FijkPlayer{id:2} setOption k:max-buffer-size, v:0
I/flutter (28277): [inf] 2023-11-22 11:50:33.442971 [fijk] FijkPlayer{id:2} setOption k:flush_packets, v:0
D/IJKMEDIA(28277): IjkMediaPlayer_setOption
I/flutter (28277): [inf] 2023-11-22 11:50:33.443243 [fijk] FijkPlayer{id:2} setOption k:framedrop, v:1
I/flutter (28277): [inf] 2023-11-22 11:50:33.443584 [fijk] FijkPlayer{id:2} setOption k:packet-buffering, v:0
D/IJKMEDIA(28277): IjkMediaPlayer_setOptionLong
I/flutter (28277): [inf] 2023-11-22 11:50:33.443851 [fijk] FijkPlayer{id:2} setOption k:start-on-prepared, v:1
I/flutter (28277): [inf] 2023-11-22 11:50:33.444149 [fijk] FijkPlayer{id:2} setOption k:fflags, v:nobuffer
I/flutter (28277): [inf] 2023-11-22 11:50:33.444463 [fijk] FijkPlayer{id:2} setOption k:reconnect, v:5
D/IJKMEDIA(28277): IjkMediaPlayer_setOptionLong
I/flutter (28277): [inf] 2023-11-22 11:50:33.444749 [fijk] FijkPlayer{id:2} setOption k:framedrop, v:5
I/flutter (28277): [inf] 2023-11-22 11:50:33.445026 [fijk] FijkPlayer{id:2} setOption k:request-screen-on, v:1
D/IJKMEDIA(28277): IjkMediaPlayer_setOptionLong
D/IJKMEDIA(28277): IjkMediaPlayer_setOptionLong
D/IJKMEDIA(28277): IjkMediaPlayer_setOptionLong
D/IJKMEDIA(28277): IjkMediaPlayer_setOptionLong
D/IJKMEDIA(28277): IjkMediaPlayer_setOptionLong
D/IJKMEDIA(28277): IjkMediaPlayer_setOptionLong
D/IJKMEDIA(28277): IjkMediaPlayer_setOptionLong
D/IJKMEDIA(28277): IjkMediaPlayer_setOption
D/IJKMEDIA(28277): IjkMediaPlayer_setOptionLong
D/IJKMEDIA(28277): IjkMediaPlayer_setOptionLong
I/flutter (28277): [inf] 2023-11-22 11:50:33.527726 [fijk] FijkPlayer{id:2} setOption k:request-audio-focus, v:1
I/flutter (28277): [inf] 2023-11-22 11:50:33.542586 [fijk] FijkPlayer{id:2} invoke setDataSource rtsp://192.168.169.1:554
D/IJKMEDIA(28277): IjkMediaPlayer_setDataSourceAndHeaders
V/IJKMEDIA(28277): setDataSource: path rtsp://192.168.169.1:554
D/IJKMEDIA(28277): ijkmp_set_data_source(url="rtsp://192.168.169.1:554")
D/IJKMEDIA(28277): ijkmp_set_data_source(url="rtsp://192.168.169.1:554")=0
I/flutter (28277): [inf] 2023-11-22 11:50:33.551631 [fijk] FijkPlayer{id:2} state changed to FijkState.initialized <= FijkState.idle
I/flutter (28277): [inf] 2023-11-22 11:50:33.555282 [fijk] FijkPlayer{id:2} invoke prepareAsync and start #1
I/flutter (28277): [inf] 2023-11-22 11:50:33.555534 [fijk] FijkPlayer{id:2} setOption k:start-on-prepared, v:1
D/IJKMEDIA(28277): IjkMediaPlayer_setOptionLong
D/IJKMEDIA(28277): IjkMediaPlayer_prepareAsync
D/IJKMEDIA(28277): ijkmp_prepare_async()
W/IJKMEDIA(28277): remove 'timeout' option for rtmp.
I/IJKMEDIA(28277): ===== versions =====
I/IJKMEDIA(28277): ijkplayer    :
I/IJKMEDIA(28277): FFmpeg       : ff4.0--ijk0.8.8--20211030--926
I/IJKMEDIA(28277): libavutil    : 56.14.100
I/IJKMEDIA(28277): libavcodec   : 58.18.100
I/IJKMEDIA(28277): libavformat  : 58.12.100
I/IJKMEDIA(28277): libswscale   : 5.1.100
I/IJKMEDIA(28277): libswresample: 3.1.100
I/IJKMEDIA(28277): ===== options =====
I/IJKMEDIA(28277): player-opts : enable-position-notify       = 1
I/IJKMEDIA(28277): player-opts : packet-buffering             = 0
I/IJKMEDIA(28277): player-opts : fast                         = 1
I/IJKMEDIA(28277): player-opts : reconnect                    = 5
I/IJKMEDIA(28277): player-opts : framedrop                    = 5
I/IJKMEDIA(28277): player-opts : fflags                       = nobuffer
I/IJKMEDIA(28277): player-opts : start-on-prepared            = 1
I/IJKMEDIA(28277): format-opts : ijkapplication               = -5476376651405315952
I/IJKMEDIA(28277): format-opts : ijkiomanager                 = -5476376650331600000
I/IJKMEDIA(28277): format-opts : rtsp_transport               = tcp
I/IJKMEDIA(28277): format-opts : auth_type                    = basic
I/IJKMEDIA(28277): format-opts : rtsp_flags                   = prefer_tcp
I/IJKMEDIA(28277): format-opts : analyzeduration              = 1
I/IJKMEDIA(28277): format-opts : analyzemaxduration           = 100
I/IJKMEDIA(28277): format-opts : probesize                    = 100
I/IJKMEDIA(28277): format-opts : max-buffer-size              = 0
I/IJKMEDIA(28277): format-opts : flush_packets                = 0
I/IJKMEDIA(28277): ===================
I/IJKMEDIA(28277): SDL_RunThread: [28650] ff_msg_loop
D/IJKMEDIA(28277): message_loop
D/IJKMEDIA(28277): FFP_MSG_FLUSH:
D/IJKMEDIA(28277): ijkmp_prepare_async()=0
I/IJKMEDIA(28277): SDL_RunThread: [28651] ff_vout
I/IJKMEDIA(28277): SDL_RunThread: [28660] ff_read
W/IJKMEDIA(28277): remove 'timeout' option for rtmp.
I/IJKMEDIA(28277): cur ipv4 c_ipaddr = 192.168.169.1
I/IJKMEDIA(28277): tcp did open uri = tcp://192.168.169.1:554?timeout=0, ip =  port = 0
I/flutter (28277): [inf] 2023-11-22 11:50:33.564828 [fijk] FijkPlayer{id:2} state changed to FijkState.asyncPreparing <= FijkState.initialized
I/flutter (28277): [inf] 2023-11-22 11:50:33.565358 [fijk] FijkPlayer{id:2} invoke prepareAsync and start #1 -> done
I/flutter (28277): [inf] 2023-11-22 11:50:33.565843 [fijk] FijkPlayer{id:2} state changed to FijkState.initialized <= FijkState.idle
I/flutter (28277): [inf] 2023-11-22 11:50:33.566420 [fijk] FijkPlayer{id:2} state changed to FijkState.asyncPreparing <= FijkState.initialized
E/IJKMEDIA(28277): Option ijkapplication not found.
D/IJKMEDIA(28277): FFP_MSG_OPEN_INPUT:
E/IJKMEDIA(28277): invalid sampling rate index 13
W/IJKMEDIA(28277): Failed to open codec in avformat_find_stream_info
W/IJKMEDIA(28277): Stream #1: not enough frames to estimate rate; consider increasing probesize
I/IJKMEDIA(28277): decoding for stream 1 failed
I/IJKMEDIA(28277): max_frame_duration: 10.000
I/IJKMEDIA(28277): Input #0, rtsp, from 'rtsp://192.168.169.1:554':
I/IJKMEDIA(28277):   Duration:
I/IJKMEDIA(28277): N/A
I/IJKMEDIA(28277): , start:
I/IJKMEDIA(28277): 0.000000
I/IJKMEDIA(28277): , bitrate:
I/IJKMEDIA(28277): N/A
I/IJKMEDIA(28277):
D/IJKMEDIA(28277): FFP_MSG_FIND_STREAM_INFO:
I/IJKMEDIA(28277):     Stream #0:0
I/IJKMEDIA(28277): : Audio: aac, 44100 Hz, 1 channels, fltp
I/IJKMEDIA(28277):
I/IJKMEDIA(28277):     Stream #0:1
I/IJKMEDIA(28277): : Video: h264, yuvj420p(pc, progressive), 960x540
I/IJKMEDIA(28277): ,
I/IJKMEDIA(28277): 30 tbr,
I/IJKMEDIA(28277): 90k tbn,
I/IJKMEDIA(28277): 60 tbc
I/IJKMEDIA(28277):
E/IJKMEDIA(28277): invalid sampling rate index 13
I/IJKMEDIA(28277): VideoCodec: avcodec, h264
W/IJKMEDIA(28277): fps: 30.000000 (normal)
D/IJKMEDIA(28277): FFP_MSG_COMPONENT_OPEN:
I/IJKMEDIA(28277): SDL_RunThread: [28681] ff_video_dec
D/IJKMEDIA(28277): FFP_MSG_VIDEO_SIZE_CHANGED: 960, 540
D/IJKMEDIA(28277): FFP_MSG_SAR_CHANGED: 0, 1
D/IJKMEDIA(28277): ijkmp_get_msg: FFP_MSG_PREPARED
D/IJKMEDIA(28277): FFP_MSG_PREPARED:
D/IJKMEDIA(28277): FFP_MSG_VIDEO_ROTATION_CHANGED: 0
I/FIJKPLAYER(28277): audioFocus request state:false
I/flutter (28277): [inf] 2023-11-22 11:50:34.331888 [fijk] FijkPlayer{id:2} prepared duration 0:00:00.000000
I/flutter (28277): [inf] 2023-11-22 11:50:34.332172 [fijk] FijkPlayer{id:2} setupSurface
I/flutter (28277): [inf] 2023-11-22 11:50:34.332986 [fijk] FijkPlayer{id:2} rotate degree 0
I/flutter (28277): [inf] 2023-11-22 11:50:34.333518 [fijk] FijkPlayer{id:2} size changed (960.0, 540.0)
I/flutter (28277): [inf] 2023-11-22 11:50:34.334379 [fijk] FijkPlayer{id:2} setupSurface
I/flutter (28277): [inf] 2023-11-22 11:50:34.335096 [fijk] FijkPlayer{id:2} state changed to FijkState.prepared <= FijkState.asyncPreparing
I/flutter (28277): [inf] 2023-11-22 11:50:34.335435 [fijk] FijkPlayer{id:2} setupSurface
I/flutter (28277): [inf] 2023-11-22 11:50:34.336097 [fijk] FijkPlayer{id:2} state changed to FijkState.started <= FijkState.prepared
I/flutter (28277): [inf] 2023-11-22 11:50:34.336418 [fijk] FijkPlayer{id:2} setupSurface
D/IJKMEDIA(28277): IjkMediaPlayer_setVideoSurface
D/IJKMEDIA(28277): ijkmp_set_android_surface(surface=0x7fc49741bc)
D/IJKMEDIA(28277): ffpipeline_set_surface()
D/IJKMEDIA(28277): ijkmp_set_android_surface(surface=0x7fc49741bc)=void
I/flutter (28277): [inf] 2023-11-22 11:50:34.344334 [fijk] view setup, vid:1
I/flutter (28277): [inf] 2023-11-22 11:50:34.344923 [fijk] view setup, vid:1
I/flutter (28277): [inf] 2023-11-22 11:50:34.345469 [fijk] view setup, vid:1
I/flutter (28277): [inf] 2023-11-22 11:50:34.345644 [fijk] view setup, vid:1
D/IJKMEDIA(28277): SDL_VoutFFmpeg_CreateOverlay(w=960, h=540, fmt=RV32(0x32335652, dp=0xb40000740cbbf8b0)
D/IJKMEDIA(28277): FFP_MSG_VIDEO_SIZE_CHANGED: 960, 540
I/flutter (28277): [inf] 2023-11-22 11:50:34.473182 [fijk] FijkPlayer{id:2} size changed (960.0, 540.0)
D/IJKMEDIA(28277): Video: first frame decoded
D/IJKMEDIA(28277): FFP_MSG_VIDEO_DECODED_START:
D/IJKMEDIA(28277): ANativeWindow_setBuffersGeometry: w=1, h=1, f=(0x1) => w=960, h=540, f=RV32(0x32335652)
I/IJKMEDIA(28277): first video frame rendered, ret 0
D/IJKMEDIA(28277): FFP_MSG_VIDEO_RENDERING_START:
I/tv.danmaku.ijk.media.player.IjkMediaPlayer(28277): Info: MEDIA_INFO_VIDEO_RENDERING_START
I/flutter (28277): [inf] 2023-11-22 11:50:34.498852 [fijk] FijkPlayer{id:2} video rendering started
D/IJKMEDIA(28277): SDL_VoutFFmpeg_CreateOverlay(w=960, h=540, fmt=RV32(0x32335652, dp=0xb40000740cbbf8b0)
D/IJKMEDIA(28277): FFP_MSG_VIDEO_SIZE_CHANGED: 960, 540
I/flutter (28277): [inf] 2023-11-22 11:50:34.509275 [fijk] FijkPlayer{id:2} size changed (960.0, 540.0)
D/IJKMEDIA(28277): SDL_VoutFFmpeg_CreateOverlay(w=960, h=540, fmt=RV32(0x32335652, dp=0xb40000740cbbf8b0)
D/IJKMEDIA(28277): FFP_MSG_VIDEO_SIZE_CHANGED: 960, 540
I/flutter (28277): [inf] 2023-11-22 11:50:34.539055 [fijk] FijkPlayer{id:2} size changed (960.0, 540.0)
I/flutter (28277): RtspPlayerView build
I/flutter (28277): dataSource: rtsp://192.168.169.1:554
I/flutter (28277): startPlay
I/flutter (28277): isAudio UI: true
I/flutter (28277): [inf] 2023-11-22 11:50:36.427132 [fijk] FijkPlayer{id:2} setOption k:request-screen-on, v:1
I/flutter (28277): [inf] 2023-11-22 11:50:36.432006 [fijk] FijkPlayer{id:2} setOption k:request-audio-focus, v:1
I/flutter (28277): [err] 2023-11-22 11:50:36.433711 [fijk] FijkPlayer{id:2} setDataSource invalid state:FijkState.started
I/flutter (28277): setDataSource error: Bad state: setDataSource on invalid state FijkState.started

iOS fijkplayer works fine, no stutters

flutter: dataSource: rtsp://192.168.169.1:554
flutter: startPlay
flutter: [inf] 2023-11-22 16:47:00.411508 [fijk] create player id:1
flutter: [inf] 2023-11-22 16:47:00.412067 [fijk] FijkPlayer{id:1} setOption k:rtsp_transport, v:tcp
flutter: [inf] 2023-11-22 16:47:00.412138 [fijk] FijkPlayer{id:1} setOption k:auth_type, v:basic
flutter: [inf] 2023-11-22 16:47:00.412186 [fijk] FijkPlayer{id:1} setOption k:rtsp_flags, v:prefer_tcp
flutter: [inf] 2023-11-22 16:47:00.412235 [fijk] FijkPlayer{id:1} setOption k:fast, v:1
flutter: [inf] 2023-11-22 16:47:00.412276 [fijk] FijkPlayer{id:1} setOption k:analyzeduration, v:1
flutter: [inf] 2023-11-22 16:47:00.412315 [fijk] FijkPlayer{id:1} setOption k:analyzemaxduration, v:100
flutter: [inf] 2023-11-22 16:47:00.412355 [fijk] FijkPlayer{id:1} setOption k:probesize, v:100
flutter: [inf] 2023-11-22 16:47:00.412400 [fijk] FijkPlayer{id:1} setOption k:max-buffer-size, v:0
flutter: [inf] 2023-11-22 16:47:00.412440 [fijk] FijkPlayer{id:1} setOption k:flush_packets, v:0
flutter: [inf] 2023-11-22 16:47:00.412478 [fijk] FijkPlayer{id:1} setOption k:framedrop, v:1
flutter: [inf] 2023-11-22 16:47:00.412521 [fijk] FijkPlayer{id:1} setOption k:packet-buffering, v:0
flutter: [inf] 2023-11-22 16:47:00.412560 [fijk] FijkPlayer{id:1} setOption k:start-on-prepared, v:1
flutter: [inf] 2023-11-22 16:47:00.412599 [fijk] FijkPlayer{id:1} setOption k:fflags, v:nobuffer
flutter: [inf] 2023-11-22 16:47:00.412636 [fijk] FijkPlayer{id:1} setOption k:reconnect, v:5
flutter: [inf] 2023-11-22 16:47:00.412673 [fijk] FijkPlayer{id:1} setOption k:framedrop, v:5
flutter: [inf] 2023-11-22 16:47:00.412709 [fijk] FijkPlayer{id:1} setOption k:request-screen-on, v:1
flutter: [inf] 2023-11-22 16:47:00.412900 [fijk] FijkPlayer{id:1} setOption k:request-audio-focus, v:1
flutter: [inf] 2023-11-22 16:47:00.413189 [fijk] FijkPlayer{id:1} invoke setDataSource rtsp://192.168.169.1:554
flutter: [inf] 2023-11-22 16:47:00.413701 [fijk] FijkPlayer{id:1} state changed to FijkState.initialized <= FijkState.idle
flutter: [inf] 2023-11-22 16:47:00.414403 [fijk] FijkPlayer{id:1} invoke prepareAsync and start #1
flutter: [inf] 2023-11-22 16:47:00.414437 [fijk] FijkPlayer{id:1} setOption k:start-on-prepared, v:1
flutter: [inf] 2023-11-22 16:47:00.415366 [fijk] FijkPlayer{id:1} state changed to FijkState.asyncPreparing <= FijkState.initialized
flutter: [inf] 2023-11-22 16:47:00.415449 [fijk] FijkPlayer{id:1} invoke prepareAsync and start #1 -> done
flutter: [inf] 2023-11-22 16:47:00.415527 [fijk] FijkPlayer{id:1} state changed to FijkState.initialized <= FijkState.idle
flutter: [inf] 2023-11-22 16:47:00.415582 [fijk] FijkPlayer{id:1} state changed to FijkState.asyncPreparing <= FijkState.initialized
flutter: [inf] 2023-11-22 16:47:01.523538 [fijk] FijkPlayer{id:1} rotate degree 0
flutter: [inf] 2023-11-22 16:47:01.523772 [fijk] FijkPlayer{id:1} size changed (960.0, 540.0)
flutter: [inf] 2023-11-22 16:47:01.524550 [fijk] FijkPlayer{id:1} prepared duration 0:00:00.000000
flutter: [inf] 2023-11-22 16:47:01.524609 [fijk] FijkPlayer{id:1} setupSurface
flutter: [inf] 2023-11-22 16:47:01.524773 [fijk] FijkPlayer{id:1} state changed to FijkState.prepared <= FijkState.asyncPreparing
flutter: [inf] 2023-11-22 16:47:01.524877 [fijk] FijkPlayer{id:1} setupSurface
flutter: [inf] 2023-11-22 16:47:01.524995 [fijk] FijkPlayer{id:1} state changed to FijkState.started <= FijkState.prepared
flutter: [inf] 2023-11-22 16:47:01.525058 [fijk] FijkPlayer{id:1} setupSurface
flutter: [inf] 2023-11-22 16:47:01.525183 [fijk] view setup, vid:1
flutter: [inf] 2023-11-22 16:47:01.525351 [fijk] view setup, vid:1
flutter: [inf] 2023-11-22 16:47:01.525407 [fijk] view setup, vid:1
flutter: [inf] 2023-11-22 16:47:01.552207 [fijk] FijkPlayer{id:1} size changed (960.0, 540.0)
flutter: [inf] 2023-11-22 16:47:01.554392 [fijk] FijkPlayer{id:1} size changed (960.0, 540.0)
flutter: [inf] 2023-11-22 16:47:01.556554 [fijk] FijkPlayer{id:1} size changed (960.0, 540.0)
flutter: [inf] 2023-11-22 16:47:01.561897 [fijk] FijkPlayer{id:1} video rendering started
flutter: RtspPlayerView build
flutter: dataSource: rtsp://192.168.169.1:554
flutter: startPlay
flutter: isAudio UI: true
flutter: [inf] 2023-11-22 16:47:04.506437 [fijk] FijkPlayer{id:1} setOption k:request-screen-on, v:1
flutter: [inf] 2023-11-22 16:47:04.511653 [fijk] FijkPlayer{id:1} setOption k:request-audio-focus, v:1
flutter: [err] 2023-11-22 16:47:04.514241 [fijk] FijkPlayer{id:1} setDataSource invalid state:FijkState.started
flutter: setDataSource error: Bad state: setDataSource on invalid state FijkState.started

iOS stutters

flutter: fvp.FINE: 2023-11-22 16:36:31.944634: 678798977 player4413136496 create(rtsp://192.168.169.1:554)
flutter: mdk.INFO: 2023-11-22 16:36:31.949499: default0x1070b3440 new FrameReader...
flutter: mdk.INFO: 2023-11-22 16:36:31.949552: Registered audio backends: AudioQueue OpenAL null
flutter: mdk.INFO: 2023-11-22 16:36:31.949586: default0x1070b42c0 new FrameReader...
flutter: mdk.INFO: 2023-11-22 16:36:31.949617: Registered audio backends: AudioQueue OpenAL null
flutter: mdk.INFO: 2023-11-22 16:36:31.949647: 0x1070b20a0mdk::Player::Player()
flutter: mdk.INFO: 2023-11-22 16:36:31.949679: player property: avio.protocol_whitelist = file,rtmp,http,https,tls,rtp,tcp,udp,crypto,httpproxy,data,concatf,concat,subfile
flutter: mdk.INFO: 2023-11-22 16:36:31.949714: player property: avformat.rtsp_transport = tcp
flutter: mdk.INFO: 2023-11-22 16:36:31.949745: video decoders: "VT", "FFmpeg"
flutter: mdk.INFO: 2023-11-22 16:36:31.949773: video decoders: "VT", "FFmpeg"
flutter: mdk.INFO: 2023-11-22 16:36:31.949802: player property: avformat.fflags = +nobuffer
flutter: mdk.INFO: 2023-11-22 16:36:31.949829: player property: avformat.fpsprobesize = 0
flutter: mdk.INFO: 2023-11-22 16:36:31.949857: default FrameReader0x1070b3440 state: 0=>0=>0, 0
flutter: mdk.INFO: 2023-11-22 16:36:31.949885: default0x1070b3440 virtual void mdk::FrameReader::stop(), current state: 0
flutter: mdk.INFO: 2023-11-22 16:36:31.949912: default FrameReader0x1070b3440 state: 0=>0=>0, 0
flutter: mdk.INFO: 2023-11-22 16:36:31.949942: default0x1070b3440 virtual void mdk::FrameReader::stop(), current state: 0
flutter: mdk.INFO: 2023-11-22 16:36:31.949971: AudioQueueStart ERROR: 0
flutter: mdk.INFO: 2023-11-22 16:36:31.949998: 0x1650e9800 MediaControl.prepare(0, ...) rtsp://192.168.169.1:554
flutter: mdk.INFO: 2023-11-22 16:36:31.950026: default 0x1070b3440 FrameReader.start(0, ...)
flutter: mdk.INFO: 2023-11-22 16:36:31.950058: default 0x1070b3440 FrameReader::update MediaStatus 0=>0X2
flutter: fvp.FINE: 2023-11-22 16:36:31.950928: 709899619 player4413136496 onMediaStatus: MediaStatus(noMedia) => MediaStatus(+loading)
flutter: mdk.INFO: 2023-11-22 16:36:31.951257: default FrameReader0x1070b3440 state: 0=>0=>1, 0
flutter: mdk.INFO: 2023-11-22 16:36:31.951296: default FrameReader0x1070b3440 state: 0=>1=>1, 0
flutter: mdk.INFO: 2023-11-22 16:36:31.951343: start frame reader thread: 0x16c6c7000
flutter: mdk.INFO: 2023-11-22 16:36:31.951373: FFmpeg/Libav runtime git-2023-10-29-1056575-avbuild
flutter: mdk.INFO: 2023-11-22 16:36:31.951401: Selected avutil runtime version: 58.28.100 (build: 58.28.100), license: LGPL version 2.1 or later
flutter: mdk.INFO: 2023-11-22 16:36:31.951432: Selected avutil runtime configuration: --extra-version=avbuild --disable-doc --disable-debug --enable-runtime-cpudetect --disable-programs --disable-vulkan --disable-avdevice --enable-libxml2 --disable-postproc --install_name_dir='@rpath' --enable-cross-compile --arch=arm64 --target-os=darwin --cc=clang --sysroot=/Applications/Xcode_14.2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.2.sdk --enable-lto --enable-pic --extra-cflags='-I=/usr/include/libxml2 -arch arm64 -miphoneos-version-min=7.0' --extra-ldflags='-arch arm64 -miphoneos-version-min=7.0 -Wl,-dead_strip' --enable-small --disable-outdevs --disable-filters --enable-filter='*null*,afade,*fifo,*format,*resample,aeval,allrgb,allyuv,atempo,pan,*bars,color,*key,crop,draw*,eq*,framerate,*_qsv,*_vaapi,*v4l2*,hw*,scale,volume,test*' --disable-muxers --disable-encoders --disable-decoders --disable-demuxers --enable-wolfssl --disable-avdevice --enable-decoder='*sub*,movtext,*web*,aac*,*ac3*,alac*,ape,ass,av1*,ccaption,cfhd,cook,dca,dnxhd,eac3*,exr,truehd,ff*,*yuv*,flv,flac,gif,h26[3-4]*,hevc*,hap,mp[1-3]*,prores,*peg*,mlp,mpl2,nellymoser,opus,pcm*,qtrle,*png*,tiff,rawvideo,rv*,sami,srt,ssa,v210*,vc1*,vorbis,vp[6-9]*,wm*,wrapped_avframe' --enable-demuxer='*sub*,*ac3,*ac,*peg*,*web*,au,ape,ass,avi,concat,dnxhd,dts*,*dash*,*flv,gif,hls,h264,hevc,kux,matroska,mov,mp3,mxf,ogg,pcm*,rawvideo,rt*p,spdif,srt,vc1,v210*,wav,*pipe,image2' --enable-encoder='aac,cfhd,dnxhd,exr,ff*,*yuv*,gif,h26[3-4]*,av1*,hevc*,mjpeg*,*png,opus,pcm*,prores*,rawvideo,spdif,speedhq,*jpeg,*png,tiff,vp[8-9]*,wrapped_avframe' --enable-muxer='*jpeg,dnxhd,fifo,flv,gif,hls,h264,hevc,image2,mov,mp4,mpegts,matroska,null,og*,pcm*,rawvideo,spdif,*pipe,*segment,webm,wav'
flutter: mdk.INFO: 2023-11-22 16:36:31.951575: global option: ffmpeg.configuration = --extra-version=avbuild --disable-doc --disable-debug --enable-runtime-cpudetect --disable-programs --disable-vulkan --disable-avdevice --enable-libxml2 --disable-postproc --install_name_dir='@rpath' --enable-cross-compile --arch=arm64 --target-os=darwin --cc=clang --sysroot=/Applications/Xcode_14.2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.2.sdk --enable-lto --enable-pic --extra-cflags='-I=/usr/include/libxml2 -arch arm64 -miphoneos-version-min=7.0' --extra-ldflags='-arch arm64 -miphoneos-version-min=7.0 -Wl,-dead_strip' --enable-small --disable-outdevs --disable-filters --enable-filter='*null*,afade,*fifo,*format,*resample,aeval,allrgb,allyuv,atempo,pan,*bars,color,*key,crop,draw*,eq*,framerate,*_qsv,*_vaapi,*v4l2*,hw*,scale,volume,test*' --disable-muxers --disable-encoders --disable-decoders --disable-demuxers --enable-wolfssl --disable-avdevice --enable-decoder='*sub*,movtext,*web*,aac*,*ac3*,alac*,ape,ass,av1*,ccaption,cfhd,cook,dca,dnxhd,eac3*,exr,truehd,ff*,*yuv*,flv,flac,gif,h26[3-4]*,hevc*,hap,mp[1-3]*,prores,*peg*,mlp,mpl2,nellymoser,opus,pcm*,qtrle,*png*,tiff,rawvideo,rv*,sami,srt,ssa,v210*,vc1*,vorbis,vp[6-9]*,wm*,wrapped_avframe' --enable-demuxer='*sub*,*ac3,*ac,*peg*,*web*,au,ape,ass,avi,concat,dnxhd,dts*,*dash*,*flv,gif,hls,h264,hevc,kux,matroska,mov,mp3,mxf,ogg,pcm*,rawvideo,rt*p,spdif,srt,vc1,v210*,wav,*pipe,image2' --enable-encoder='aac,cfhd,dnxhd,exr,ff*,*yuv*,gif,h26[3-4]*,av1*,hevc*,mjpeg*,*png,opus,pcm*,prores*,rawvideo,spdif,speedhq,*jpeg,*png,tiff,vp[8-9]*,wrapped_avframe' --enable-muxer='*jpeg,dnxhd,fifo,flv,gif,hls,h264,hevc,image2,mov,mp4,mpegts,matroska,null,og*,pcm*,rawvideo,spdif,*pipe,*segment,webm,wav'
flutter: mdk.INFO: 2023-11-22 16:36:31.951682: global option: ffmpeg.version = 6
flutter: mdk.INFO: 2023-11-22 16:36:31.951717: av_dict_set0x1079889cc
flutter: mdk.WARNING: 2023-11-22 16:36:31.951792: Failed to create io for url. io: 0x0, open: false
flutter: mdk.INFO: 2023-11-22 16:36:31.951825: default 0x1070b3440 FrameReader::update MediaStatus 0X2=>0X2
flutter: mdk.INFO: 2023-11-22 16:36:31.951855: Selected avcodec runtime version: 60.30.102 (build: 60.30.102), license: LGPL version 2.1 or later
flutter: mdk.INFO: 2023-11-22 16:36:31.951887: av_packet_alloc0x1076fc10c
flutter: mdk.INFO: 2023-11-22 16:36:31.951916: Selected avformat runtime version: 60.15.101 (build: 60.15.101), license: LGPL version 2.1 or later
flutter: mdk.INFO: 2023-11-22 16:36:31.951950: avformat_alloc_context0x10767ece0
flutter: mdk.INFO: 2023-11-22 16:36:31.951997: before avformat_open_input. io: 0x0(/pb: 0x0, url: rtsp://192.168.169.1:554
flutter: mdk.INFO: 2023-11-22 16:36:31.952244: FFmpeg/Libav runtime git-2023-10-29-1056575-avbuild
flutter: mdk.INFO: 2023-11-22 16:36:32.340132: after avformat_open_input. pb: 0x0, iformat: 0x107bd2700 context flags: 2097216, input format flags: 1
flutter: mdk.INFO: 2023-11-22 16:36:32.343293: [FFmpeg:aac] invalid sampling rate index 13
flutter: mdk.INFO: 2023-11-22 16:36:32.343679: [FFmpeg:rtsp] Failed to open codec in avformat_find_stream_info
flutter: mdk.INFO: 2023-11-22 16:36:37.938329: [FFmpeg:rtsp] Could not find codec parameters for stream 0 (Audio: aac, 44100 Hz, 0 channels, fltp): unspecified number of channels
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
flutter: mdk.INFO: 2023-11-22 16:36:37.940314: supports 205 ffmpeg sw pixel formats. unsupported: uyyvyy411 x2rgb10be x2bgr10be p212be p212le p412be p412le gbrap14be gbrap14le
flutter: mdk.INFO: 2023-11-22 16:36:37.940578: Format: rtsp, range: 234 +0ms, bitrate: 0, size: 0
Streams: 2
 Video:
  stream#1, range: 234 +0ms, frames: 0
  codec: h264 tag: 0 profile: 100 level: 51, yuv420p, bpc:8, bpp:12(8,8,8), channels:(1,1,1), map: 0 1 2 0, bitrate: 0, 960x540, fps: 29.8333, bframes: 0, range: Full
  extra data(40): 00 00 00 01 00 00 00 01 67 64 00 33 AC EA 0F 01 15 EE 6C 80 00 01 F4 00 00 75 30 42 00 00 00 01 00 00 00 01 68 EE 3C B0
 Audio:
  stream#0, range: 0 +0ms, frames: 0
  codec: aac tag: 0 profile: -99 level: -99, sample size: 0/0, block align: 0, frame_size: 0, f32p mono(1) @44100Hz, bitrate: 0
  extra data(5): 0E 80 56 E5 00
flutter: mdk.INFO: 2023-11-22 16:36:37.940769: default FrameReader0x1070b3440 request to pause 1, loaded: 0.
flutter: mdk.INFO: 2023-11-22 16:36:37.940911: default FrameReader0x1070b3440 state: 0=>1=>2, 0
flutter: mdk.INFO: 2023-11-22 16:36:37.941052: default FrameReader0x1070b3440 state requested: 2, current: 0
flutter: mdk.INFO: 2023-11-22 16:36:37.941199: 142 AudioBackendAudioQueue ERROR>>> AudioQueuePause(queue_): -50
flutter: mdk.INFO: 2023-11-22 16:36:37.941332:
flutter: mdk.INFO: 2023-11-22 16:36:37.941472: 0x1650e9800 prepared callback is invoked
flutter: mdk.INFO: 2023-11-22 16:36:37.961679: default 0x1070b3440 FrameReader::update MediaStatus 0X2=>0X4
flutter: fvp.FINE: 2023-11-22 16:36:37.961978: 709899619 player4413136496 onMediaStatus: MediaStatus(+loading) => MediaStatus(+loaded)
flutter: mdk.INFO: 2023-11-22 16:36:37.962743: ***buffering progress 0%***
flutter: mdk.INFO: 2023-11-22 16:36:37.962853: default 0x1070b3440 FrameReader::update MediaStatus 0X4=>0X14
flutter: mdk.INFO: 2023-11-22 16:36:37.962941: 142 AudioBackendAudioQueue ERROR>>> AudioQueuePause(queue_): -50
flutter: mdk.INFO: 2023-11-22 16:36:37.963036:
flutter: fvp.FINE: 2023-11-22 16:36:37.963127: 709899619 player4413136496 onMediaStatus: MediaStatus(+loaded) => MediaStatus(+loaded+buffering)
flutter: mdk.INFO: 2023-11-22 16:36:37.963231: ++++++++++++BUFFERING START++++++++++++
flutter: mdk.INFO: 2023-11-22 16:36:37.963306:
flutter: fvp.FINE: 2023-11-22 16:36:37.963891: 709899619 player4413136496 onEvent: reader.buffering 0
flutter: mdk.INFO: 2023-11-22 16:36:38.768049: 0 pkt duration: 0.033333,  duration:4866, dy_duration_delta=0=>33, live_eos_timeout=5000
flutter: mdk.INFO: 2023-11-22 16:36:38.768498: 0 pkt duration: 0.033333,  duration:4866, dy_duration_delta=0=>33, live_eos_timeout=5000
flutter: mdk.INFO: 2023-11-22 16:36:38.768751: default FrameReader0x1070b3440 state: 0=>2=>1, 1
flutter: mdk.INFO: 2023-11-22 16:36:38.769003: default FrameReader0x1070b3440 update state: 0=>1
flutter: fvp.FINE: 2023-11-22 16:36:38.770341: 709899619 player4413136496 onPlaybackStateChanged: PlaybackState.stopped => PlaybackState.playing
flutter: mdk.INFO: 2023-11-22 16:36:38.770841: default FrameReader0x1070b3440 state: 1=>1=>2, 1
flutter: mdk.INFO: 2023-11-22 16:36:38.771028: default FrameReader0x1070b3440 update state: 1=>2
flutter: fvp.FINE: 2023-11-22 16:36:38.771203: 709899619 player4413136496 onPlaybackStateChanged: PlaybackState.playing => PlaybackState.paused
flutter: mdk.INFO: 2023-11-22 16:36:38.771569: starting decode loop thread mdk.vdec1@0x16c7df000
flutter: fvp.FINE: 2023-11-22 16:36:38.771777: 709899619 player4413136496 onEvent: thread.video 1
flutter: mdk.INFO: 2023-11-22 16:36:38.771991: video stream#1 starting decoding loop from decoder index 0...
flutter: mdk.INFO: 2023-11-22 16:36:38.880960: creating video decoder: VT...
flutter: mdk.INFO: 2023-11-22 16:36:38.881786: Try to use IOSurface OpenGL(ES) interop: true
flutter: mdk.INFO: 2023-11-22 16:36:38.882128: opening video decoder: VideoToolbox...
flutter: mdk.INFO: 2023-11-22 16:36:38.882433: codec 'avc1' for VT
flutter: mdk.INFO: 2023-11-22 16:36:38.882525: setLoop(0), now 0/0
flutter: mdk.INFO: 2023-11-22 16:36:38.882614: 0x1650e9800 virtual void mdk::MediaControlPush::setState(mdk::PlaybackState)@1013 requested state 2=>2, current state 2. status: 0X14
flutter: mdk.INFO: 2023-11-22 16:36:38.882709: 142 AudioBackendAudioQueue ERROR>>> AudioQueuePause(queue_): -50
flutter: mdk.INFO: 2023-11-22 16:36:38.882793:
flutter: mdk.INFO: 2023-11-22 16:36:38.882874: default FrameReader0x1070b3440 request to pause 1, loaded: 4.
flutter: mdk.INFO: 2023-11-22 16:36:38.883012: default FrameReader0x1070b3440 state: 2=>2=>2, 0
flutter: mdk.INFO: 2023-11-22 16:36:38.883274: 0x1650e9800 virtual void mdk::MediaControlPush::setState(mdk::PlaybackState)@1013 requested state 2=>1, current state 2. status: 0X14
flutter: mdk.INFO: 2023-11-22 16:36:38.883542: AudioQueueStart ERROR: 0
flutter: mdk.INFO: 2023-11-22 16:36:38.883808: default FrameReader0x1070b3440 request to pause 0, loaded: 4.
flutter: mdk.INFO: 2023-11-22 16:36:38.884086: default FrameReader0x1070b3440 state: 2=>2=>1, 0
flutter: mdk.INFO: 2023-11-22 16:36:38.884347: default FrameReader0x1070b3440 state requested: 1, current: 2
flutter: mdk.INFO: 2023-11-22 16:36:38.884574: default FrameReader0x1070b3440 state: 2=>1=>1, 1
flutter: mdk.INFO: 2023-11-22 16:36:38.884762: default FrameReader0x1070b3440 update state: 2=>1
flutter: fvp.FINE: 2023-11-22 16:36:38.885918: 709899619 player4413136496 onPlaybackStateChanged: PlaybackState.paused => PlaybackState.playing
flutter: mdk.INFO: 2023-11-22 16:36:39.252223: VT hardware decode support: 1
flutter: mdk.INFO: 2023-11-22 16:36:39.252604: bad level detected in stream
flutter: mdk.INFO: 2023-11-22 16:36:39.252710: NALU count: 4
flutter: mdk.INFO: 2023-11-22 16:36:39.252801: 0: 4+0, unused
flutter: mdk.INFO: 2023-11-22 16:36:39.252884: 1: 8+20, SPS
flutter: mdk.INFO: 2023-11-22 16:36:39.252976: 2: 32+0, unused
flutter: mdk.INFO: 2023-11-22 16:36:39.253074: 3: 36+4, PPS
flutter: mdk.INFO: 2023-11-22 16:36:39.253271: virtual bool mdk::VideoToolboxDecoder::open()207 ERROR>>> CMVideoFormatDescriptionCreateFromH264ParameterSets(kCFAllocatorDefault, ps_count, ps.data(), ps_len.data(), nalu_header_len_, &fmtdesc_): -12712
flutter: mdk.INFO: 2023-11-22 16:36:39.253420:
flutter: mdk.INFO: 2023-11-22 16:36:39.253518: 0x107084798UGL::opengl::Context::Local<mdk::CVBufferPool::ctx_res_t>::~Local() [T = mdk::CVBufferPool::ctx_res_t, DT = mdk::CVBufferPool::ctx_res_t]0x0 count: 0
flutter: mdk.INFO: 2023-11-22 16:36:39.254400: 0x107084758virtual mdk::NativeVideoBufferPool::~NativeVideoBufferPool()
flutter: mdk.WARNING: 2023-11-22 16:36:39.256871: ERROR! failed to setup decoder: video
flutter: fvp.FINE: 2023-11-22 16:36:39.257170: 709899619 player4413136496 onEvent: decoder.video -1
flutter: mdk.INFO: 2023-11-22 16:36:39.257321: 0x1650e9800 1st video frame to render @0.000000s, sync time: 0.000000
flutter: mdk.INFO: 2023-11-22 16:36:39.257430: unsupported pixel format for Metal: unknown, bpc:0, bpp:0(), channels:(), map: 0 0 0 0
flutter: mdk.INFO: 2023-11-22 16:36:39.262811: 0-track seek end video frame @0.000000 seek_pos_: -1
flutter: mdk.INFO: 2023-11-22 16:36:39.263049: 0x1650e9800 1st video frame to render @-1.000000s, sync time: 0.000000
flutter: mdk.INFO: 2023-11-22 16:36:39.263203: invalid video frame @-1.000000
flutter: mdk.INFO: 2023-11-22 16:36:39.263293: try the next decoder if available
flutter: mdk.INFO: 2023-11-22 16:36:39.263377: video stream#1 starting decoding loop from decoder index 1...
flutter: mdk.INFO: 2023-11-22 16:36:39.263484: creating video decoder: FFmpeg...
flutter: mdk.INFO: 2023-11-22 16:36:39.263563: opening video decoder: FFmpeg...
flutter: mdk.INFO: 2023-11-22 16:36:39.263685: opening ffmpeg video decoder: h264 ...
flutter: mdk.INFO: 2023-11-22 16:36:39.270541: AVCodec.Video[h264.] decoder: 7 Frame threads
flutter: mdk.INFO: 2023-11-22 16:36:39.270779: h264 yuv420p, bpc:8, bpp:12(8,8,8), channels:(1,1,1), map: 0 1 2 0 960x540
flutter: fvp.FINE: 2023-11-22 16:36:39.270941: 709899619 player4413136496 onEvent: decoder.video 0
flutter: mdk.INFO: 2023-11-22 16:36:39.271047: decode stored recovery packets: 0
flutter: mdk.INFO: 2023-11-22 16:36:39.271156: ***buffering progress 100%***
flutter: mdk.INFO: 2023-11-22 16:36:39.271242: default 0x1070b3440 FrameReader::update MediaStatus 0X14=>0X124
flutter: mdk.INFO: 2023-11-22 16:36:39.271385: AudioQueueStart ERROR: 0
flutter: fvp.FINE: 2023-11-22 16:36:39.271508: 709899619 player4413136496 onMediaStatus: MediaStatus(+loaded+buffering) => MediaStatus(+loaded+prepared+buffered)
flutter: mdk.INFO: 2023-11-22 16:36:39.271986: ++++++++++++BUFFERING END++++++++++++
flutter: mdk.INFO: 2023-11-22 16:36:39.272795:
flutter: fvp.FINE: 2023-11-22 16:36:39.272975: 709899619 player4413136496 onEvent: reader.buffering 100
flutter: mdk.INFO: 2023-11-22 16:36:39.273253: video stream#1 1st packet@5.100000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:36:39.273395: video stream#1 1st packet@5.134000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:36:39.273563: video stream#1 1st packet@5.167000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:36:39.273645: video stream#1 1st packet@5.200000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:36:39.273726: video stream#1 1st packet@5.234000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:36:39.273793: video stream#1 1st packet@5.267000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:36:39.273859: video stream#1 1st packet@5.300000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:36:39.273935: video stream#1 1st packet@5.334000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:36:39.274027: video stream#1 1st packet@5.367000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:36:39.274124: video stream#1 1st packet@5.400000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:36:39.274213: video stream#1 1st packet@5.434000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:36:39.274317: video stream#1 1st packet@5.467000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:36:39.274408: video stream#1 1st packet@5.500000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:36:39.274501: video stream#1 1st packet@5.534000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:36:39.274588: video stream#1 1st packet@5.567000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:36:39.274651: video stream#1 1st packet@5.600000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:36:39.274723: video stream#1 1st packet@5.634000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:36:39.274806: video stream#1 1st packet@5.667000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:36:39.274889: video stream#1 1st packet@5.700000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:36:39.274956: video stream#1 1st packet@5.734000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:36:39.275018: video stream#1 1st packet@5.767000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:36:39.275079: video stream#1 1st packet@5.800000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:36:39.275140: h264 codec pixel format list: (expected yuvj420p)
flutter: mdk.INFO: 2023-11-22 16:36:39.275203: videotoolbox_vld
flutter: mdk.INFO: 2023-11-22 16:36:39.275263: yuvj420p (selected)
flutter: mdk.INFO: 2023-11-22 16:36:39.275324: yuvj420p using avcodec software decoder...
flutter: mdk.INFO: 2023-11-22 16:36:39.293353: video stream#1 sending 1 invalid AOT frame @5.834000s. seeking: 0
flutter: mdk.INFO: 2023-11-22 16:36:39.293554: 0x1650e9800 1st video frame to render @5.834000s, sync time: 0.000000
flutter: mdk.INFO: 2023-11-22 16:36:39.293882: VideoRenderer clear buffered frames
flutter: mdk.INFO: 2023-11-22 16:36:39.294030: 0-track seek end video frame @5.834000 seek_pos_: -1
flutter: mdk.INFO: 2023-11-22 16:36:39.294118: 0x1650e9800 1st video frame to render @5.834000s, sync time: 0.000000
flutter: mdk.INFO: 2023-11-22 16:36:39.294208: VideoRenderer WxH=960.000000x540.000000 960.000000x540.000000, frame: 960x540
flutter: mdk.INFO: 2023-11-22 16:36:39.294288: update transform 2d. scale: (1.000000, 1.000000), orientation: 0
flutter: mdk.INFO: 2023-11-22 16:36:39.294364: m: mat<4, 4>(
flutter: mdk.INFO: 2023-11-22 16:36:39.294421: 1  0  0  0
flutter: mdk.INFO: 2023-11-22 16:36:39.294493: 0  1  0  0
flutter: mdk.INFO: 2023-11-22 16:36:39.294548: 0  0  1  0
flutter: mdk.INFO: 2023-11-22 16:36:39.294609: 0  0  0  1
flutter: mdk.INFO: 2023-11-22 16:36:39.294671: )
flutter: mdk.INFO: 2023-11-22 16:36:39.294733: channel map: mat<4, 4>(
flutter: mdk.INFO: 2023-11-22 16:36:39.294789: 1  0  0  0
flutter: mdk.INFO: 2023-11-22 16:36:39.294836: 0  1  0  0
flutter: mdk.INFO: 2023-11-22 16:36:39.294890: 0  0  1  0
flutter: mdk.INFO: 2023-11-22 16:36:39.294940: 0  0  0  1
flutter: mdk.INFO: 2023-11-22 16:36:39.294983: )
flutter: mdk.INFO: 2023-11-22 16:36:39.295033: frame format: yuv420p, bpc:8, bpp:12(8,8,8), channels:(1,1,1), map: 0 1 2 0
flutter: mdk.INFO: 2023-11-22 16:36:39.295102: Metal pixel format 0: MTLPixelFormatR8Unorm
flutter: mdk.INFO: 2023-11-22 16:36:39.295153: Metal pixel format 1: MTLPixelFormatR8Unorm
flutter: mdk.INFO: 2023-11-22 16:36:39.295231: Metal pixel format 2: MTLPixelFormatR8Unorm
flutter: mdk.INFO: 2023-11-22 16:36:39.295275: frame color: UNSPECIFIED UNSPECIFIED UNSPECIFIED Full. gamma: 2.200000, signal peak: 1.000000
flutter: mdk.INFO: 2023-11-22 16:36:39.295321:  -
flutter: mdk.INFO: 2023-11-22 16:36:39.295385: output color: BT709 UNSPECIFIED RGB Full. gamma: 2.200000, signal peak: 1.000000
flutter: mdk.INFO: 2023-11-22 16:36:39.295431: rgb primaries matrix: mat<3, 3>(
flutter: mdk.INFO: 2023-11-22 16:36:39.295484: 1  4.08422e-09  1.90629e-09
flutter: mdk.INFO: 2023-11-22 16:36:39.295534: -1.97514e-08  1  4.36139e-09
flutter: mdk.INFO: 2023-11-22 16:36:39.295578: 2.49444e-09  3.82445e-09  1
flutter: mdk.INFO: 2023-11-22 16:36:39.295636: )
flutter: mdk.INFO: 2023-11-22 16:36:39.295682: color transform: mat<4, 4>(
flutter: mdk.INFO: 2023-11-22 16:36:39.295739: 1  0  1.5748  -0.7874
flutter: mdk.INFO: 2023-11-22 16:36:39.295821: 1  -0.187324  -0.468124  0.327724
flutter: mdk.INFO: 2023-11-22 16:36:39.295872: 1  1.8556  0  -0.9278
flutter: mdk.INFO: 2023-11-22 16:36:39.295918: 0  0  0  1
flutter: mdk.INFO: 2023-11-22 16:36:39.295979: )
flutter: mdk.INFO: 2023-11-22 16:36:39.296040: EQ: mat<4, 4>(
flutter: mdk.INFO: 2023-11-22 16:36:39.296100: 1  0  0  0
flutter: mdk.INFO: 2023-11-22 16:36:39.296238: 0  1  0  0
flutter: mdk.INFO: 2023-11-22 16:36:39.296526: 0  0  1  0
flutter: mdk.INFO: 2023-11-22 16:36:39.296729: 0  0  0  1
flutter: mdk.INFO: 2023-11-22 16:36:39.296833: )
flutter: fvp.FINE: 2023-11-22 16:36:39.298896: 709899619 player4413136496 onEvent: render.video 5834
flutter: mdk.INFO: 2023-11-22 16:36:39.299915: video stream#1 AOT frame is sent
flutter: mdk.INFO: 2023-11-22 16:36:40.406802: 0 pkt duration: 0.034367,  duration:7300, dy_duration_delta=33=>34, live_eos_timeout=5000
flutter: mdk.INFO: 2023-11-22 16:36:40.407565: 0 pkt duration: 0.034367,  duration:7300, dy_duration_delta=33=>34, live_eos_timeout=5000

MacOS stutters

flutter: fvp.FINE: 2023-11-22 16:39:52.331315: 543715643 player5687276640 create(rtsp://192.168.169.1:554)
flutter: mdk.INFO: 2023-11-22 16:39:52.424090: default0x152fee910 new FrameReader...
flutter: mdk.INFO: 2023-11-22 16:39:52.424171: Registered audio backends: AudioQueue OpenAL null
flutter: mdk.INFO: 2023-11-22 16:39:52.424221: default0x152fefca0 new FrameReader...
flutter: mdk.INFO: 2023-11-22 16:39:52.424266: Registered audio backends: AudioQueue OpenAL null
flutter: mdk.INFO: 2023-11-22 16:39:52.424295: 0x152fdc6d0mdk::Player::Player()
flutter: mdk.INFO: 2023-11-22 16:39:52.424320: player property: avio.protocol_whitelist = file,rtmp,http,https,tls,rtp,tcp,udp,crypto,httpproxy,data,concatf,concat,subfile
flutter: mdk.INFO: 2023-11-22 16:39:52.424347: player property: avformat.rtsp_transport = tcp
flutter: mdk.INFO: 2023-11-22 16:39:52.424371: video decoders: "VT", "FFmpeg"
flutter: mdk.INFO: 2023-11-22 16:39:52.424394: video decoders: "VT", "FFmpeg"
flutter: mdk.INFO: 2023-11-22 16:39:52.424417: player property: avformat.fflags = +nobuffer
flutter: mdk.INFO: 2023-11-22 16:39:52.424440: player property: avformat.fpsprobesize = 0
flutter: mdk.INFO: 2023-11-22 16:39:52.424463: default FrameReader0x152fee910 state: 0=>0=>0, 0
flutter: mdk.INFO: 2023-11-22 16:39:52.424486: default0x152fee910 virtual void mdk::FrameReader::stop(), current state: 0
flutter: mdk.INFO: 2023-11-22 16:39:52.424512: default FrameReader0x152fee910 state: 0=>0=>0, 0
flutter: mdk.INFO: 2023-11-22 16:39:52.424534: default0x152fee910 virtual void mdk::FrameReader::stop(), current state: 0
flutter: mdk.INFO: 2023-11-22 16:39:52.425132: AudioQueueStart ERROR: 0
flutter: mdk.INFO: 2023-11-22 16:39:52.425172: 0x132050e00 MediaControl.prepare(0, ...) rtsp://192.168.169.1:554
flutter: mdk.INFO: 2023-11-22 16:39:52.425202: default 0x152fee910 FrameReader.start(0, ...)
flutter: mdk.INFO: 2023-11-22 16:39:52.425228: default 0x152fee910 FrameReader::update MediaStatus 0=>0X2
flutter: fvp.FINE: 2023-11-22 16:39:52.426414: 366526897 player5687276640 onMediaStatus: MediaStatus(noMedia) => MediaStatus(+loading)
flutter: mdk.INFO: 2023-11-22 16:39:52.426944: default FrameReader0x152fee910 state: 0=>0=>1, 0
flutter: mdk.INFO: 2023-11-22 16:39:52.427080: default FrameReader0x152fee910 state: 0=>1=>1, 0
flutter: mdk.INFO: 2023-11-22 16:39:52.427193: start frame reader thread: 0x2ce087000
flutter: mdk.INFO: 2023-11-22 16:39:52.427336: FFmpeg/Libav runtime git-2023-10-29-1056575-avbuild
flutter: mdk.INFO: 2023-11-22 16:39:52.427368: Selected avutil runtime version: 58.28.100 (build: 58.28.100), license: LGPL version 2.1 or later
flutter: mdk.INFO: 2023-11-22 16:39:52.427400: Selected avutil runtime configuration: --extra-version=avbuild --disable-doc --disable-debug --disable-static --enable-shared --enable-runtime-cpudetect --disable-vulkan --enable-libxml2 --disable-libxcb --disable-xlib --disable-postproc --enable-cross-compile --arch=arm64 --target-os=darwin --install_name_dir='@rpath' --cc=clang --sysroot=/Applications/Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk --enable-lto --enable-pic --extra-cflags='-I=/usr/include/libxml2 -arch arm64 -mmacosx-version-min=11.0' --extra-ldflags='-arch arm64 -mmacosx-version-min=11.0 -Wl,-dead_strip -Wl,-rpath,@loader_path -Wl,-rpath,@executable_path/../Frameworks -Wl,-rpath,@loader_path/Libraries -Wl,-rpath,@loader_path/../lib' --enable-small --disable-outdevs --disable-filters --enable-filter='*null*,afade,*fifo,*format,*resample,aeval,allrgb,allyuv,atempo,pan,*bars,color,*key,crop,draw*,eq*,framerate,*_qsv,*_vaapi,*v4l2*,hw*,scale,volume,test*' --disable-muxers --disable-encoders --disable-decoders --disable-demuxers --enable-decoder='*sub*,movtext,*web*,aac*,*ac3*,alac*,ape,ass,av1*,ccaption,cfhd,cook,dca,dnxhd,eac3*,exr,truehd,ff*,*yuv*,flv,flac,gif,h26[3-4]*,hevc*,hap,mp[1-3]*,prores,*peg*,mlp,mpl2,nellymoser,opus,pcm*,qtrle,*png*,tiff,rawvideo,rv*,sami,srt,ssa,v210*,vc1*,vorbis,vp[6-9]*,wm*,wrapped_avframe' --enable-demuxer='*sub*,*ac3,*ac,*peg*,*web*,au,ape,ass,avi,concat,dnxhd,dts*,*dash*,*flv,gif,hls,h264,hevc,kux,matroska,mov,mp3,mxf,ogg,pcm*,rawvideo,rt*p,spdif,srt,vc1,v210*,wav,*pipe,image2,mlv,nsv,nut' --enable-encoder='aac,cfhd,dnxhd,exr,ff*,*yuv*,gif,h26[3-4]*,av1*,hevc*,mjpeg*,*png,opus,pcm*,prores*,rawvideo,spdif,speedhq,*jpeg,*png,tiff,vp[8-9]*,wrapped_avframe,*nvenc,*qsv,*v4l2m2m,*vaapi,vorbis' --enable-muxer='*jpeg,dnxhd,fifo,flv,gif,hls,h264,hevc,image2,mov,mp4,mpegts,matroska,null,og*,pcm*,rawvideo,spdif,*pipe,*segment,webm,wav,dash,nu*'
flutter: mdk.INFO: 2023-11-22 16:39:52.427449: global option: ffmpeg.configuration = --extra-version=avbuild --disable-doc --disable-debug --disable-static --enable-shared --enable-runtime-cpudetect --disable-vulkan --enable-libxml2 --disable-libxcb --disable-xlib --disable-postproc --enable-cross-compile --arch=arm64 --target-os=darwin --install_name_dir='@rpath' --cc=clang --sysroot=/Applications/Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk --enable-lto --enable-pic --extra-cflags='-I=/usr/include/libxml2 -arch arm64 -mmacosx-version-min=11.0' --extra-ldflags='-arch arm64 -mmacosx-version-min=11.0 -Wl,-dead_strip -Wl,-rpath,@loader_path -Wl,-rpath,@executable_path/../Frameworks -Wl,-rpath,@loader_path/Libraries -Wl,-rpath,@loader_path/../lib' --enable-small --disable-outdevs --disable-filters --enable-filter='*null*,afade,*fifo,*format,*resample,aeval,allrgb,allyuv,atempo,pan,*bars,color,*key,crop,draw*,eq*,framerate,*_qsv,*_vaapi,*v4l2*,hw*,scale,volume,test*' --disable-muxers --disable-encoders --disable-decoders --disable-demuxers --enable-decoder='*sub*,movtext,*web*,aac*,*ac3*,alac*,ape,ass,av1*,ccaption,cfhd,cook,dca,dnxhd,eac3*,exr,truehd,ff*,*yuv*,flv,flac,gif,h26[3-4]*,hevc*,hap,mp[1-3]*,prores,*peg*,mlp,mpl2,nellymoser,opus,pcm*,qtrle,*png*,tiff,rawvideo,rv*,sami,srt,ssa,v210*,vc1*,vorbis,vp[6-9]*,wm*,wrapped_avframe' --enable-demuxer='*sub*,*ac3,*ac,*peg*,*web*,au,ape,ass,avi,concat,dnxhd,dts*,*dash*,*flv,gif,hls,h264,hevc,kux,matroska,mov,mp3,mxf,ogg,pcm*,rawvideo,rt*p,spdif,srt,vc1,v210*,wav,*pipe,image2,mlv,nsv,nut' --enable-encoder='aac,cfhd,dnxhd,exr,ff*,*yuv*,gif,h26[3-4]*,av1*,hevc*,mjpeg*,*png,opus,pcm*,prores*,rawvideo,spdif,speedhq,*jpeg,*png,tiff,vp[8-9]*,wrapped_avframe,*nvenc,*qsv,*v4l2m2m,*vaapi,vorbis' --enable-muxer='*jpeg,dnxhd,fifo,flv,gif,hls,h264,hevc,image2,mov,mp4,mpegts,matroska,null,og*,pcm*,rawvideo,spdif,*pipe,*segment,webm,wav,dash,nu*'
flutter: mdk.INFO: 2023-11-22 16:39:52.427496: global option: ffmpeg.version = 6
flutter: mdk.INFO: 2023-11-22 16:39:52.427522: av_dict_set0x1031c0268
flutter: mdk.WARNING: 2023-11-22 16:39:52.427590: Failed to create io for url. io: 0x0, open: false
flutter: mdk.INFO: 2023-11-22 16:39:52.427866: default 0x152fee910 FrameReader::update MediaStatus 0X2=>0X2
flutter: mdk.INFO: 2023-11-22 16:39:52.427941: Selected avcodec runtime version: 60.30.102 (build: 60.30.102), license: LGPL version 2.1 or later
flutter: mdk.INFO: 2023-11-22 16:39:52.428077: av_packet_alloc0x10300dc68
flutter: mdk.INFO: 2023-11-22 16:39:52.428123: Selected avformat runtime version: 60.15.101 (build: 60.15.101), license: LGPL version 2.1 or later
flutter: mdk.INFO: 2023-11-22 16:39:52.428152: avformat_alloc_context0x10313b948
flutter: mdk.INFO: 2023-11-22 16:39:52.428178: before avformat_open_input. io: 0x0(/pb: 0x0, url: rtsp://192.168.169.1:554
flutter: mdk.INFO: 2023-11-22 16:39:52.428245: FFmpeg/Libav runtime git-2023-10-29-1056575-avbuild
flutter: mdk.INFO: 2023-11-22 16:39:52.671193: after avformat_open_input. pb: 0x0, iformat: 0x10343fee0 context flags: 2097216, input format flags: 1
flutter: mdk.INFO: 2023-11-22 16:39:52.671746: [FFmpeg:aac] invalid sampling rate index 13
flutter: mdk.INFO: 2023-11-22 16:39:52.671851: [FFmpeg:rtsp] Failed to open codec in avformat_find_stream_info
flutter: mdk.INFO: 2023-11-22 16:39:58.463588: [FFmpeg:rtsp] Could not find codec parameters for stream 0 (Audio: aac, 44100 Hz, 0 channels, fltp): unspecified number of channels
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
flutter: mdk.INFO: 2023-11-22 16:39:58.463844: supports 205 ffmpeg sw pixel formats. unsupported: uyyvyy411 x2rgb10be x2bgr10be p212be p212le p412be p412le gbrap14be gbrap14le
flutter: mdk.INFO: 2023-11-22 16:39:58.463933: Format: rtsp, range: 233 +0ms, bitrate: 0, size: 0
Streams: 2
 Video:
  stream#1, range: 233 +0ms, frames: 0
  codec: h264 tag: 0 profile: 100 level: 51, yuv420p, bpc:8, bpp:12(8,8,8), channels:(1,1,1), map: 0 1 2 0, bitrate: 0, 960x540, fps: 30, bframes: 0, range: Full
  extra data(40): 00 00 00 01 00 00 00 01 67 64 00 33 AC EA 0F 01 15 EE 6C 80 00 01 F4 00 00 75 30 42 00 00 00 01 00 00 00 01 68 EE 3C B0
 Audio:
  stream#0, range: 0 +0ms, frames: 0
  codec: aac tag: 0 profile: -99 level: -99, sample size: 0/0, block align: 0, frame_size: 0, f32p mono(1) @44100Hz, bitrate: 0
  extra data(5): 0E 80 56 E5 00

flutter: mdk.INFO: 2023-11-22 16:39:58.463979: default FrameReader0x152fee910 request to pause 1, loaded: 0.
flutter: mdk.INFO: 2023-11-22 16:39:58.464013: default FrameReader0x152fee910 state: 0=>1=>2, 0
flutter: mdk.INFO: 2023-11-22 16:39:58.464045: default FrameReader0x152fee910 state requested: 2, current: 0
flutter: mdk.INFO: 2023-11-22 16:39:58.464077: 142 AudioBackendAudioQueue ERROR>>> AudioQueuePause(queue_): -50
flutter: mdk.INFO: 2023-11-22 16:39:58.464108:
flutter: mdk.INFO: 2023-11-22 16:39:58.464137: 0x132050e00 prepared callback is invoked
flutter: mdk.INFO: 2023-11-22 16:39:58.471498: default 0x152fee910 FrameReader::update MediaStatus 0X2=>0X4
flutter: fvp.FINE: 2023-11-22 16:39:58.471577: 366526897 player5687276640 onMediaStatus: MediaStatus(+loading) => MediaStatus(+loaded)
flutter: mdk.INFO: 2023-11-22 16:39:58.471963: ***buffering progress 0%***
flutter: mdk.INFO: 2023-11-22 16:39:58.472001: default 0x152fee910 FrameReader::update MediaStatus 0X4=>0X14
flutter: mdk.INFO: 2023-11-22 16:39:58.472031: 142 AudioBackendAudioQueue ERROR>>> AudioQueuePause(queue_): -50
flutter: mdk.INFO: 2023-11-22 16:39:58.472058:
flutter: fvp.FINE: 2023-11-22 16:39:58.472094: 366526897 player5687276640 onMediaStatus: MediaStatus(+loaded) => MediaStatus(+loaded+buffering)
flutter: mdk.INFO: 2023-11-22 16:39:58.472134: ++++++++++++BUFFERING START++++++++++++
flutter: mdk.INFO: 2023-11-22 16:39:58.472196:
flutter: fvp.FINE: 2023-11-22 16:39:58.472534: 366526897 player5687276640 onEvent: reader.buffering 0
flutter: mdk.INFO: 2023-11-22 16:39:58.472968: 0 pkt duration: 0.034367,  duration:4900, dy_duration_delta=0=>34, live_eos_timeout=5000
flutter: mdk.INFO: 2023-11-22 16:39:58.473053: 0 pkt duration: 0.034367,  duration:4900, dy_duration_delta=0=>34, live_eos_timeout=5000
flutter: mdk.INFO: 2023-11-22 16:39:58.473084: default FrameReader0x152fee910 state: 0=>2=>1, 1
flutter: mdk.INFO: 2023-11-22 16:39:58.473113: default FrameReader0x152fee910 update state: 0=>1
flutter: fvp.FINE: 2023-11-22 16:39:58.473631: 366526897 player5687276640 onPlaybackStateChanged: PlaybackState.stopped => PlaybackState.playing
flutter: mdk.INFO: 2023-11-22 16:39:58.473804: default FrameReader0x152fee910 state: 1=>1=>2, 1
flutter: mdk.INFO: 2023-11-22 16:39:58.473840: default FrameReader0x152fee910 update state: 1=>2
flutter: fvp.FINE: 2023-11-22 16:39:58.473884: 366526897 player5687276640 onPlaybackStateChanged: PlaybackState.playing => PlaybackState.paused
flutter: mdk.INFO: 2023-11-22 16:39:58.473919: starting decode loop thread mdk.vdec1@0x16eed3000
flutter: fvp.FINE: 2023-11-22 16:39:58.473949: 366526897 player5687276640 onEvent: thread.video 1
flutter: mdk.INFO: 2023-11-22 16:39:58.473978: video stream#1 starting decoding loop from decoder index 0...
flutter: mdk.INFO: 2023-11-22 16:39:58.474007: creating video decoder: VT...
flutter: mdk.INFO: 2023-11-22 16:39:58.474119: Try to use IOSurface OpenGL(ES) interop: true
flutter: mdk.INFO: 2023-11-22 16:39:58.474247: opening video decoder: VideoToolbox...
flutter: mdk.INFO: 2023-11-22 16:39:58.474328: codec 'avc1' for VT
flutter: mdk.INFO: 2023-11-22 16:39:58.480330: setLoop(0), now 0/0
flutter: mdk.INFO: 2023-11-22 16:39:58.480479: 0x132050e00 virtual void mdk::MediaControlPush::setState(mdk::PlaybackState)@1013 requested state 2=>2, current state 2. status: 0X14
flutter: mdk.INFO: 2023-11-22 16:39:58.480565: 142 AudioBackendAudioQueue ERROR>>> AudioQueuePause(queue_): -50
flutter: mdk.INFO: 2023-11-22 16:39:58.480625:
flutter: mdk.INFO: 2023-11-22 16:39:58.480685: default FrameReader0x152fee910 request to pause 1, loaded: 4.
flutter: mdk.INFO: 2023-11-22 16:39:58.480739: default FrameReader0x152fee910 state: 2=>2=>2, 0
flutter: mdk.INFO: 2023-11-22 16:39:58.480791: 0x132050e00 virtual void mdk::MediaControlPush::setState(mdk::PlaybackState)@1013 requested state 2=>1, current state 2. status: 0X14
flutter: mdk.INFO: 2023-11-22 16:39:58.480905: AudioQueueStart ERROR: 0
flutter: mdk.INFO: 2023-11-22 16:39:58.481022: default FrameReader0x152fee910 request to pause 0, loaded: 4.
flutter: mdk.INFO: 2023-11-22 16:39:58.481075: default FrameReader0x152fee910 state: 2=>2=>1, 0
flutter: mdk.INFO: 2023-11-22 16:39:58.481125: default FrameReader0x152fee910 state requested: 1, current: 2
flutter: mdk.INFO: 2023-11-22 16:39:58.487487: VT hardware decode support: 1
flutter: mdk.INFO: 2023-11-22 16:39:58.487564: bad level detected in stream
flutter: mdk.INFO: 2023-11-22 16:39:58.487598: NALU count: 4
flutter: mdk.INFO: 2023-11-22 16:39:58.487640: 0: 4+0, unused
flutter: mdk.INFO: 2023-11-22 16:39:58.487668: 1: 8+20, SPS
flutter: mdk.INFO: 2023-11-22 16:39:58.487698: 2: 32+0, unused
flutter: mdk.INFO: 2023-11-22 16:39:58.487724: 3: 36+4, PPS
flutter: mdk.INFO: 2023-11-22 16:39:58.488144: virtual bool mdk::VideoToolboxDecoder::open()207 ERROR>>> CMVideoFormatDescriptionCreateFromH264ParameterSets(kCFAllocatorDefault, ps_count, ps.data(), ps_len.data(), nalu_header_len_, &fmtdesc_): -12712
flutter: mdk.INFO: 2023-11-22 16:39:58.488317:
flutter: mdk.INFO: 2023-11-22 16:39:58.488404: 0x15407d360UGL::opengl::Context::Local<mdk::CVBufferPool::ctx_res_t>::~Local() [T = mdk::CVBufferPool::ctx_res_t, DT = mdk::CVBufferPool::ctx_res_t]0x0 count: 0
flutter: mdk.INFO: 2023-11-22 16:39:58.488689: 0x15407d328virtual mdk::NativeVideoBufferPool::~NativeVideoBufferPool()
flutter: mdk.WARNING: 2023-11-22 16:39:58.488750: ERROR! failed to setup decoder: video
flutter: fvp.FINE: 2023-11-22 16:39:58.488916: 366526897 player5687276640 onEvent: decoder.video -1
flutter: mdk.INFO: 2023-11-22 16:39:58.488986: 0x132050e00 1st video frame to render @0.000000s, sync time: 0.000000
flutter: mdk.INFO: 2023-11-22 16:39:58.489017: unsupported pixel format for Metal: unknown, bpc:0, bpp:0(), channels:(), map: 0 0 0 0
flutter: mdk.INFO: 2023-11-22 16:39:58.489058: 0-track seek end video frame @0.000000 seek_pos_: -1
flutter: mdk.INFO: 2023-11-22 16:39:58.489086: 0x132050e00 1st video frame to render @-1.000000s, sync time: 0.000000
flutter: mdk.INFO: 2023-11-22 16:39:58.489113: invalid video frame @-1.000000
flutter: mdk.INFO: 2023-11-22 16:39:58.489139: try the next decoder if available
flutter: mdk.INFO: 2023-11-22 16:39:58.489170: video stream#1 starting decoding loop from decoder index 1...
flutter: mdk.INFO: 2023-11-22 16:39:58.489200: creating video decoder: FFmpeg...
flutter: mdk.INFO: 2023-11-22 16:39:58.489233: opening video decoder: FFmpeg...
flutter: mdk.INFO: 2023-11-22 16:39:58.489261: opening ffmpeg video decoder: h264 ...
flutter: mdk.INFO: 2023-11-22 16:39:58.490145: AVCodec.Video[h264.] decoder: 9 Frame threads
flutter: mdk.INFO: 2023-11-22 16:39:58.490201: h264 yuv420p, bpc:8, bpp:12(8,8,8), channels:(1,1,1), map: 0 1 2 0 960x540
flutter: fvp.FINE: 2023-11-22 16:39:58.490243: 366526897 player5687276640 onEvent: decoder.video 0
flutter: mdk.INFO: 2023-11-22 16:39:58.490277: decode stored recovery packets: 0
flutter: mdk.INFO: 2023-11-22 16:39:58.490303: ***buffering progress 100%***
flutter: mdk.INFO: 2023-11-22 16:39:58.490328: default 0x152fee910 FrameReader::update MediaStatus 0X14=>0X124
flutter: mdk.INFO: 2023-11-22 16:39:58.490361: AudioQueueStart ERROR: 0
flutter: fvp.FINE: 2023-11-22 16:39:58.490403: 366526897 player5687276640 onMediaStatus: MediaStatus(+loaded+buffering) => MediaStatus(+loaded+prepared+buffered)
flutter: mdk.INFO: 2023-11-22 16:39:58.490509: ++++++++++++BUFFERING END++++++++++++
flutter: mdk.INFO: 2023-11-22 16:39:58.490538:
flutter: fvp.FINE: 2023-11-22 16:39:58.490563: 366526897 player5687276640 onEvent: reader.buffering 100
flutter: mdk.INFO: 2023-11-22 16:39:58.490740: video stream#1 1st packet@5.133000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:39:58.490767: video stream#1 1st packet@5.167000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:39:58.552054: default FrameReader0x152fee910 state: 2=>1=>1, 1
flutter: mdk.INFO: 2023-11-22 16:39:58.552133: default FrameReader0x152fee910 update state: 2=>1
flutter: fvp.FINE: 2023-11-22 16:39:58.552186: 366526897 player5687276640 onPlaybackStateChanged: PlaybackState.paused => PlaybackState.playing
flutter: mdk.INFO: 2023-11-22 16:39:58.552353: video stream#1 1st packet@5.200000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:39:58.552383: video stream#1 1st packet@5.233000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:39:58.560955: video stream#1 1st packet@5.267000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:39:58.584877: video stream#1 1st packet@5.300000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:39:58.695046: video stream#1 1st packet@5.333000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:39:58.706613: video stream#1 1st packet@5.367000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:39:58.706741: video stream#1 1st packet@5.400000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:39:58.713762: video stream#1 1st packet@5.433000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:39:58.826182: video stream#1 1st packet@5.467000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:39:58.826268: video stream#1 1st packet@5.500000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:39:58.829564: video stream#1 1st packet@5.533000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:39:58.866638: video stream#1 1st packet@5.567000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:39:58.911248: video stream#1 1st packet@5.600000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:39:58.928256: video stream#1 1st packet@5.633000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:39:58.947264: video stream#1 1st packet@5.667000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:39:58.981930: video stream#1 1st packet@5.700000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:39:59.013659: video stream#1 1st packet@5.733000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:39:59.046680: video stream#1 1st packet@5.767000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:39:59.080377: video stream#1 1st packet@5.800000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:39:59.115113: video stream#1 1st packet@5.833000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-22 16:39:59.162876: h264 codec pixel format list: (expected yuvj420p)
flutter: mdk.INFO: 2023-11-22 16:39:59.162957: videotoolbox_vld
flutter: mdk.INFO: 2023-11-22 16:39:59.162993: yuvj420p (selected)
flutter: mdk.INFO: 2023-11-22 16:39:59.163021: yuvj420p using avcodec software decoder...
flutter: mdk.INFO: 2023-11-22 16:39:59.414512: video stream#1 sending 1 invalid AOT frame @5.867000s. seeking: 0
flutter: mdk.INFO: 2023-11-22 16:39:59.414603: 0x132050e00 1st video frame to render @5.867000s, sync time: 0.000000
flutter: mdk.INFO: 2023-11-22 16:39:59.414681: VideoRenderer clear buffered frames
flutter: mdk.INFO: 2023-11-22 16:39:59.414718: 0-track seek end video frame @5.867000 seek_pos_: -1
flutter: mdk.INFO: 2023-11-22 16:39:59.414750: 0x132050e00 1st video frame to render @5.867000s, sync time: 0.000000
flutter: mdk.INFO: 2023-11-22 16:39:59.414919: VideoRenderer WxH=960.000000x540.000000 960.000000x540.000000, frame: 960x540
flutter: mdk.INFO: 2023-11-22 16:39:59.414957: update transform 2d. scale: (1.000000, 1.000000), orientation: 0
flutter: mdk.INFO: 2023-11-22 16:39:59.414990: m: mat<4, 4>(
flutter: mdk.INFO: 2023-11-22 16:39:59.415021: 1  0  0  0
flutter: mdk.INFO: 2023-11-22 16:39:59.415053: 0  1  0  0
flutter: mdk.INFO: 2023-11-22 16:39:59.415083: 0  0  1  0
flutter: mdk.INFO: 2023-11-22 16:39:59.415113: 0  0  0  1
flutter: mdk.INFO: 2023-11-22 16:39:59.415142: )
flutter: mdk.INFO: 2023-11-22 16:39:59.415176: channel map: mat<4, 4>(
flutter: mdk.INFO: 2023-11-22 16:39:59.415205: 1  0  0  0
flutter: mdk.INFO: 2023-11-22 16:39:59.415235: 0  1  0  0
flutter: mdk.INFO: 2023-11-22 16:39:59.415264: 0  0  1  0
flutter: mdk.INFO: 2023-11-22 16:39:59.415294: 0  0  0  1
flutter: mdk.INFO: 2023-11-22 16:39:59.415322: )
flutter: mdk.INFO: 2023-11-22 16:39:59.415352: frame format: yuv420p, bpc:8, bpp:12(8,8,8), channels:(1,1,1), map: 0 1 2 0
flutter: mdk.INFO: 2023-11-22 16:39:59.415383: Metal pixel format 0: MTLPixelFormatR8Unorm
flutter: mdk.INFO: 2023-11-22 16:39:59.415414: Metal pixel format 1: MTLPixelFormatR8Unorm
flutter: mdk.INFO: 2023-11-22 16:39:59.415442: Metal pixel format 2: MTLPixelFormatR8Unorm
flutter: mdk.INFO: 2023-11-22 16:39:59.416722: frame color: UNSPECIFIED UNSPECIFIED UNSPECIFIED Full. gamma: 2.200000, signal peak: 1.000000
flutter: mdk.INFO: 2023-11-22 16:39:59.416785:  -
flutter: mdk.INFO: 2023-11-22 16:39:59.416823: output color: BT709 UNSPECIFIED RGB Full. gamma: 2.200000, signal peak: 1.000000
flutter: mdk.INFO: 2023-11-22 16:39:59.416857: rgb primaries matrix: mat<3, 3>(
flutter: mdk.INFO: 2023-11-22 16:39:59.416919: 1  4.08422e-09  1.90629e-09
flutter: mdk.INFO: 2023-11-22 16:39:59.416970: -1.97514e-08  1  4.36139e-09
flutter: mdk.INFO: 2023-11-22 16:39:59.417118: 2.49444e-09  3.82445e-09  1
flutter: mdk.INFO: 2023-11-22 16:39:59.417171: )
flutter: mdk.INFO: 2023-11-22 16:39:59.417207: color transform: mat<4, 4>(
flutter: mdk.INFO: 2023-11-22 16:39:59.417245: 1  0  1.5748  -0.7874
flutter: mdk.INFO: 2023-11-22 16:39:59.417276: 1  -0.187324  -0.468124  0.327724
flutter: mdk.INFO: 2023-11-22 16:39:59.417308: 1  1.8556  0  -0.9278
flutter: mdk.INFO: 2023-11-22 16:39:59.417337: 0  0  0  1
flutter: mdk.INFO: 2023-11-22 16:39:59.417366: )
flutter: mdk.INFO: 2023-11-22 16:39:59.417397: EQ: mat<4, 4>(
flutter: mdk.INFO: 2023-11-22 16:39:59.417427: 1  0  0  0
flutter: mdk.INFO: 2023-11-22 16:39:59.417516: 0  1  0  0
flutter: mdk.INFO: 2023-11-22 16:39:59.417654: 0  0  1  0
flutter: mdk.INFO: 2023-11-22 16:39:59.417693: 0  0  0  1
flutter: mdk.INFO: 2023-11-22 16:39:59.417722: )
flutter: fvp.FINE: 2023-11-22 16:39:59.417797: 366526897 player5687276640 onEvent: render.video 5867
flutter: mdk.INFO: 2023-11-22 16:39:59.417907: video stream#1 AOT frame is sent
wang-bin commented 1 year ago

'VT' decoder open error, and software decoder is used. Can you add 'VideoToolbox' after 'VT' and try again? https://github.com/wang-bin/fvp/blob/master/lib/src/video_player_mdk.dart#L135-L136

Nicoeevee commented 1 year ago

'VT' decoder open error, and software decoder is used. Can you add 'VideoToolbox' after 'VT' and try again? https://github.com/wang-bin/fvp/blob/master/lib/src/video_player_mdk.dart#L135-L136

the config

fvp.registerWith(
      options: {
        'video.decoders': switch (defaultTargetPlatform) {
          TargetPlatform.windows => ['MFT:d3d=11', "D3D11", 'CUDA', 'FFmpeg'],
          TargetPlatform.macOS => ['VT', 'VideoToolbox', 'FFmpeg'],
          TargetPlatform.iOS => ['VT', 'VideoToolbox', 'FFmpeg'],
          TargetPlatform.linux => ['VAAPI', 'CUDA', 'VDPAU', 'FFmpeg'],
          TargetPlatform.android => ['AMediaCodec', 'FFmpeg'],
          TargetPlatform.fuchsia => ['auto'],
        },
        'lowLatency': 2,
      },

It doesn't seem to work, the live streaming is still stuttering.

iOS stutters

flutter: fvp.FINE: 2023-11-23 10:28:20.407429: 144110156 player4417346832 create(rtsp://192.168.169.1:554)
flutter: mdk.INFO: 2023-11-23 10:28:20.412535: default0x1074b7040 new FrameReader...
flutter: mdk.INFO: 2023-11-23 10:28:20.412593: Registered audio backends: AudioQueue OpenAL null
flutter: mdk.INFO: 2023-11-23 10:28:20.412629: default0x1074964c0 new FrameReader...
flutter: mdk.INFO: 2023-11-23 10:28:20.412664: Registered audio backends: AudioQueue OpenAL null
flutter: mdk.INFO: 2023-11-23 10:28:20.412698: 0x1074b5f40mdk::Player::Player()
flutter: mdk.INFO: 2023-11-23 10:28:20.412735: player property: avio.protocol_whitelist = file,rtmp,http,https,tls,rtp,tcp,udp,crypto,httpproxy,data,concatf,concat,subfile
flutter: mdk.INFO: 2023-11-23 10:28:20.412765: player property: avformat.rtsp_transport = tcp
flutter: mdk.INFO: 2023-11-23 10:28:20.412794: video decoders: "VT", "VideoToolbox", "FFmpeg"
flutter: mdk.INFO: 2023-11-23 10:28:20.412824: video decoders: "VT", "VideoToolbox", "FFmpeg"
flutter: mdk.INFO: 2023-11-23 10:28:20.412851: player property: avformat.fflags = +nobuffer
flutter: mdk.INFO: 2023-11-23 10:28:20.412879: player property: avformat.fpsprobesize = 0
flutter: mdk.INFO: 2023-11-23 10:28:20.412908: default FrameReader0x1074b7040 state: 0=>0=>0, 0
flutter: mdk.INFO: 2023-11-23 10:28:20.412937: default0x1074b7040 virtual void mdk::FrameReader::stop(), current state: 0
flutter: mdk.INFO: 2023-11-23 10:28:20.412966: default FrameReader0x1074b7040 state: 0=>0=>0, 0
flutter: mdk.INFO: 2023-11-23 10:28:20.412995: default0x1074b7040 virtual void mdk::FrameReader::stop(), current state: 0
flutter: mdk.INFO: 2023-11-23 10:28:20.413023: AudioQueueStart ERROR: 0
flutter: mdk.INFO: 2023-11-23 10:28:20.413060: 0x12382ae00 MediaControl.prepare(0, ...) rtsp://192.168.169.1:554
flutter: mdk.INFO: 2023-11-23 10:28:20.413099: default 0x1074b7040 FrameReader.start(0, ...)
flutter: mdk.INFO: 2023-11-23 10:28:20.413137: default 0x1074b7040 FrameReader::update MediaStatus 0=>0X2
flutter: fvp.FINE: 2023-11-23 10:28:20.414038: 961490308 player4417346832 onMediaStatus: MediaStatus(noMedia) => MediaStatus(+loading)
flutter: mdk.INFO: 2023-11-23 10:28:20.414406: default FrameReader0x1074b7040 state: 0=>0=>1, 0
flutter: mdk.INFO: 2023-11-23 10:28:20.414446: default FrameReader0x1074b7040 state: 0=>1=>1, 0
flutter: mdk.INFO: 2023-11-23 10:28:20.414478: start frame reader thread: 0x16c023000
flutter: mdk.INFO: 2023-11-23 10:28:20.414522: FFmpeg/Libav runtime git-2023-10-29-1056575-avbuild
flutter: mdk.INFO: 2023-11-23 10:28:20.414553: Selected avutil runtime version: 58.28.100 (build: 58.28.100), license: LGPL version 2.1 or later
flutter: mdk.INFO: 2023-11-23 10:28:20.414585: Selected avutil runtime configuration: --extra-version=avbuild --disable-doc --disable-debug --enable-runtime-cpudetect --disable-programs --disable-vulkan --disable-avdevice --enable-libxml2 --disable-postproc --install_name_dir='@rpath' --enable-cross-compile --arch=arm64 --target-os=darwin --cc=clang --sysroot=/Applications/Xcode_14.2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.2.sdk --enable-lto --enable-pic --extra-cflags='-I=/usr/include/libxml2 -arch arm64 -miphoneos-version-min=7.0' --extra-ldflags='-arch arm64 -miphoneos-version-min=7.0 -Wl,-dead_strip' --enable-small --disable-outdevs --disable-filters --enable-filter='*null*,afade,*fifo,*format,*resample,aeval,allrgb,allyuv,atempo,pan,*bars,color,*key,crop,draw*,eq*,framerate,*_qsv,*_vaapi,*v4l2*,hw*,scale,volume,test*' --disable-muxers --disable-encoders --disable-decoders --disable-demuxers --enable-wolfssl --disable-avdevice --enable-decoder='*sub*,movtext,*web*,aac*,*ac3*,alac*,ape,ass,av1*,ccaption,cfhd,cook,dca,dnxhd,eac3*,exr,truehd,ff*,*yuv*,flv,flac,gif,h26[3-4]*,hevc*,hap,mp[1-3]*,prores,*peg*,mlp,mpl2,nellymoser,opus,pcm*,qtrle,*png*,tiff,rawvideo,rv*,sami,srt,ssa,v210*,vc1*,vorbis,vp[6-9]*,wm*,wrapped_avframe' --enable-demuxer='*sub*,*ac3,*ac,*peg*,*web*,au,ape,ass,avi,concat,dnxhd,dts*,*dash*,*flv,gif,hls,h264,hevc,kux,matroska,mov,mp3,mxf,ogg,pcm*,rawvideo,rt*p,spdif,srt,vc1,v210*,wav,*pipe,image2' --enable-encoder='aac,cfhd,dnxhd,exr,ff*,*yuv*,gif,h26[3-4]*,av1*,hevc*,mjpeg*,*png,opus,pcm*,prores*,rawvideo,spdif,speedhq,*jpeg,*png,tiff,vp[8-9]*,wrapped_avframe' --enable-muxer='*jpeg,dnxhd,fifo,flv,gif,hls,h264,hevc,image2,mov,mp4,mpegts,matroska,null,og*,pcm*,rawvideo,spdif,*pipe,*segment,webm,wav'
flutter: mdk.INFO: 2023-11-23 10:28:20.414703: global option: ffmpeg.configuration = --extra-version=avbuild --disable-doc --disable-debug --enable-runtime-cpudetect --disable-programs --disable-vulkan --disable-avdevice --enable-libxml2 --disable-postproc --install_name_dir='@rpath' --enable-cross-compile --arch=arm64 --target-os=darwin --cc=clang --sysroot=/Applications/Xcode_14.2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.2.sdk --enable-lto --enable-pic --extra-cflags='-I=/usr/include/libxml2 -arch arm64 -miphoneos-version-min=7.0' --extra-ldflags='-arch arm64 -miphoneos-version-min=7.0 -Wl,-dead_strip' --enable-small --disable-outdevs --disable-filters --enable-filter='*null*,afade,*fifo,*format,*resample,aeval,allrgb,allyuv,atempo,pan,*bars,color,*key,crop,draw*,eq*,framerate,*_qsv,*_vaapi,*v4l2*,hw*,scale,volume,test*' --disable-muxers --disable-encoders --disable-decoders --disable-demuxers --enable-wolfssl --disable-avdevice --enable-decoder='*sub*,movtext,*web*,aac*,*ac3*,alac*,ape,ass,av1*,ccaption,cfhd,cook,dca,dnxhd,eac3*,exr,truehd,ff*,*yuv*,flv,flac,gif,h26[3-4]*,hevc*,hap,mp[1-3]*,prores,*peg*,mlp,mpl2,nellymoser,opus,pcm*,qtrle,*png*,tiff,rawvideo,rv*,sami,srt,ssa,v210*,vc1*,vorbis,vp[6-9]*,wm*,wrapped_avframe' --enable-demuxer='*sub*,*ac3,*ac,*peg*,*web*,au,ape,ass,avi,concat,dnxhd,dts*,*dash*,*flv,gif,hls,h264,hevc,kux,matroska,mov,mp3,mxf,ogg,pcm*,rawvideo,rt*p,spdif,srt,vc1,v210*,wav,*pipe,image2' --enable-encoder='aac,cfhd,dnxhd,exr,ff*,*yuv*,gif,h26[3-4]*,av1*,hevc*,mjpeg*,*png,opus,pcm*,prores*,rawvideo,spdif,speedhq,*jpeg,*png,tiff,vp[8-9]*,wrapped_avframe' --enable-muxer='*jpeg,dnxhd,fifo,flv,gif,hls,h264,hevc,image2,mov,mp4,mpegts,matroska,null,og*,pcm*,rawvideo,spdif,*pipe,*segment,webm,wav'
flutter: mdk.INFO: 2023-11-23 10:28:20.414780: global option: ffmpeg.version = 6
flutter: mdk.INFO: 2023-11-23 10:28:20.414807: av_dict_set0x107dd49cc
flutter: mdk.WARNING: 2023-11-23 10:28:20.414865: Failed to create io for url. io: 0x0, open: false
flutter: mdk.INFO: 2023-11-23 10:28:20.414894: default 0x1074b7040 FrameReader::update MediaStatus 0X2=>0X2
flutter: mdk.INFO: 2023-11-23 10:28:20.414922: Selected avcodec runtime version: 60.30.102 (build: 60.30.102), license: LGPL version 2.1 or later
flutter: mdk.INFO: 2023-11-23 10:28:20.414952: av_packet_alloc0x107b4810c
flutter: mdk.INFO: 2023-11-23 10:28:20.414983: Selected avformat runtime version: 60.15.101 (build: 60.15.101), license: LGPL version 2.1 or later
flutter: mdk.INFO: 2023-11-23 10:28:20.415010: avformat_alloc_context0x107acace0
flutter: mdk.INFO: 2023-11-23 10:28:20.415037: before avformat_open_input. io: 0x0(/pb: 0x0, url: rtsp://192.168.169.1:554
flutter: mdk.INFO: 2023-11-23 10:28:20.415755: FFmpeg/Libav runtime git-2023-10-29-1056575-avbuild
flutter: mdk.INFO: 2023-11-23 10:28:20.696088: after avformat_open_input. pb: 0x0, iformat: 0x10801e700 context flags: 2097216, input format flags: 1
flutter: mdk.INFO: 2023-11-23 10:28:20.699459: [FFmpeg:aac] invalid sampling rate index 13
flutter: mdk.INFO: 2023-11-23 10:28:20.699652: [FFmpeg:rtsp] Failed to open codec in avformat_find_stream_info
flutter: mdk.INFO: 2023-11-23 10:28:26.558175: [FFmpeg:rtsp] Could not find codec parameters for stream 0 (Audio: aac, 44100 Hz, 0 channels, fltp): unspecified number of channels
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
flutter: mdk.INFO: 2023-11-23 10:28:26.562264: supports 205 ffmpeg sw pixel formats. unsupported: uyyvyy411 x2rgb10be x2bgr10be p212be p212le p412be p412le gbrap14be gbrap14le
flutter: mdk.INFO: 2023-11-23 10:28:26.562701: Format: rtsp, range: 233 +0ms, bitrate: 0, size: 0
Streams: 2
 Video:
  stream#1, range: 233 +0ms, frames: 0
  codec: h264 tag: 0 profile: 100 level: 51, yuv420p, bpc:8, bpp:12(8,8,8), channels:(1,1,1), map: 0 1 2 0, bitrate: 0, 960x540, fps: 30, bframes: 0, range: Full
  extra data(40): 00 00 00 01 00 00 00 01 67 64 00 33 AC EA 0F 01 15 EE 6C 80 00 01 F4 00 00 75 30 42 00 00 00 01 00 00 00 01 68 EE 3C B0 
 Audio:
  stream#0, range: 0 +0ms, frames: 0
  codec: aac tag: 0 profile: -99 level: -99, sample size: 0/0, block align: 0, frame_size: 0, f32p mono(1) @44100Hz, bitrate: 0
  extra data(5): 0E 80 56 E5 00
flutter: mdk.INFO: 2023-11-23 10:28:26.562935: default FrameReader0x1074b7040 request to pause 1, loaded: 0.
flutter: mdk.INFO: 2023-11-23 10:28:26.563118: default FrameReader0x1074b7040 state: 0=>1=>2, 0
flutter: mdk.INFO: 2023-11-23 10:28:26.563271: default FrameReader0x1074b7040 state requested: 2, current: 0
flutter: mdk.INFO: 2023-11-23 10:28:26.563424: 142 AudioBackendAudioQueue ERROR>>> AudioQueuePause(queue_): -50
flutter: mdk.INFO: 2023-11-23 10:28:26.563557:
flutter: mdk.INFO: 2023-11-23 10:28:26.563739: 0x12382ae00 prepared callback is invoked
flutter: mdk.INFO: 2023-11-23 10:28:26.583578: default 0x1074b7040 FrameReader::update MediaStatus 0X2=>0X4
flutter: fvp.FINE: 2023-11-23 10:28:26.583861: 961490308 player4417346832 onMediaStatus: MediaStatus(+loading) => MediaStatus(+loaded)
flutter: mdk.INFO: 2023-11-23 10:28:26.584793: ***buffering progress 0%***
flutter: mdk.INFO: 2023-11-23 10:28:26.584921: default 0x1074b7040 FrameReader::update MediaStatus 0X4=>0X14
flutter: mdk.INFO: 2023-11-23 10:28:26.585008: 142 AudioBackendAudioQueue ERROR>>> AudioQueuePause(queue_): -50
flutter: mdk.INFO: 2023-11-23 10:28:26.585087:
flutter: fvp.FINE: 2023-11-23 10:28:26.585179: 961490308 player4417346832 onMediaStatus: MediaStatus(+loaded) => MediaStatus(+loaded+buffering)
flutter: mdk.INFO: 2023-11-23 10:28:26.585293: ++++++++++++BUFFERING START++++++++++++
flutter: mdk.INFO: 2023-11-23 10:28:26.585370:
flutter: fvp.FINE: 2023-11-23 10:28:26.585936: 961490308 player4417346832 onEvent: reader.buffering 0
flutter: mdk.INFO: 2023-11-23 10:28:26.590716: 0 pkt duration: 0.034367,  duration:4900, dy_duration_delta=0=>34, live_eos_timeout=5000
flutter: mdk.INFO: 2023-11-23 10:28:26.591012: 0 pkt duration: 0.034367,  duration:4900, dy_duration_delta=0=>34, live_eos_timeout=5000
flutter: mdk.INFO: 2023-11-23 10:28:26.591165: default FrameReader0x1074b7040 state: 0=>2=>1, 1
flutter: mdk.INFO: 2023-11-23 10:28:26.591269: default FrameReader0x1074b7040 update state: 0=>1
flutter: fvp.FINE: 2023-11-23 10:28:26.591966: 961490308 player4417346832 onPlaybackStateChanged: PlaybackState.stopped => PlaybackState.playing
flutter: mdk.INFO: 2023-11-23 10:28:26.592266: default FrameReader0x1074b7040 state: 1=>1=>2, 1
flutter: mdk.INFO: 2023-11-23 10:28:26.592402: default FrameReader0x1074b7040 update state: 1=>2
flutter: fvp.FINE: 2023-11-23 10:28:26.592566: 961490308 player4417346832 onPlaybackStateChanged: PlaybackState.playing => PlaybackState.paused
flutter: mdk.INFO: 2023-11-23 10:28:26.592776: starting decode loop thread mdk.vdec1@0x176407000
flutter: fvp.FINE: 2023-11-23 10:28:26.592880: 961490308 player4417346832 onEvent: thread.video 1
flutter: mdk.INFO: 2023-11-23 10:28:26.592953: video stream#1 starting decoding loop from decoder index 0...
flutter: mdk.INFO: 2023-11-23 10:28:26.597875: creating video decoder: VT...
flutter: mdk.INFO: 2023-11-23 10:28:26.597984: Try to use IOSurface OpenGL(ES) interop: true
flutter: mdk.INFO: 2023-11-23 10:28:26.598051: opening video decoder: VideoToolbox...
flutter: mdk.INFO: 2023-11-23 10:28:26.598112: codec 'avc1' for VT
flutter: mdk.INFO: 2023-11-23 10:28:26.598169: setLoop(0), now 0/0
flutter: mdk.INFO: 2023-11-23 10:28:26.598224: 0x12382ae00 virtual void mdk::MediaControlPush::setState(mdk::PlaybackState)@1013 requested state 2=>2, current state 2. status: 0X14
flutter: mdk.INFO: 2023-11-23 10:28:26.598289: 142 AudioBackendAudioQueue ERROR>>> AudioQueuePause(queue_): -50
flutter: mdk.INFO: 2023-11-23 10:28:26.598345:
flutter: mdk.INFO: 2023-11-23 10:28:26.598412: default FrameReader0x1074b7040 request to pause 1, loaded: 4.
flutter: mdk.INFO: 2023-11-23 10:28:26.598467: default FrameReader0x1074b7040 state: 2=>2=>2, 0
flutter: mdk.INFO: 2023-11-23 10:28:26.598522: 0x12382ae00 virtual void mdk::MediaControlPush::setState(mdk::PlaybackState)@1013 requested state 2=>1, current state 2. status: 0X14
flutter: mdk.INFO: 2023-11-23 10:28:26.598578: AudioQueueStart ERROR: 0
flutter: mdk.INFO: 2023-11-23 10:28:26.598632: default FrameReader0x1074b7040 request to pause 0, loaded: 4.
flutter: mdk.INFO: 2023-11-23 10:28:26.736185: default FrameReader0x1074b7040 state: 2=>2=>1, 0
flutter: mdk.INFO: 2023-11-23 10:28:26.736679: default FrameReader0x1074b7040 state requested: 1, current: 2
flutter: mdk.INFO: 2023-11-23 10:28:27.178950: default FrameReader0x1074b7040 state: 2=>1=>1, 1
flutter: mdk.INFO: 2023-11-23 10:28:27.183065: default FrameReader0x1074b7040 update state: 2=>1
flutter: fvp.FINE: 2023-11-23 10:28:27.183323: 961490308 player4417346832 onPlaybackStateChanged: PlaybackState.paused => PlaybackState.playing
flutter: mdk.INFO: 2023-11-23 10:28:27.610682: VT hardware decode support: 1
flutter: mdk.INFO: 2023-11-23 10:28:27.611126: bad level detected in stream
flutter: mdk.INFO: 2023-11-23 10:28:27.611261: NALU count: 4
flutter: mdk.INFO: 2023-11-23 10:28:27.611360: 0: 4+0, unused
flutter: mdk.INFO: 2023-11-23 10:28:27.611469: 1: 8+20, SPS
flutter: mdk.INFO: 2023-11-23 10:28:27.611583: 2: 32+0, unused
flutter: mdk.INFO: 2023-11-23 10:28:27.611677: 3: 36+4, PPS
flutter: mdk.INFO: 2023-11-23 10:28:27.611785: virtual bool mdk::VideoToolboxDecoder::open()207 ERROR>>> CMVideoFormatDescriptionCreateFromH264ParameterSets(kCFAllocatorDefault, ps_count, ps.data(), ps_len.data(), nalu_header_len_, &fmtdesc_): -12712
flutter: mdk.INFO: 2023-11-23 10:28:27.611936:
flutter: mdk.INFO: 2023-11-23 10:28:27.612051: 0x10770c738UGL::opengl::Context::Local<mdk::CVBufferPool::ctx_res_t>::~Local() [T = mdk::CVBufferPool::ctx_res_t, DT = mdk::CVBufferPool::ctx_res_t]0x0 count: 0
flutter: mdk.INFO: 2023-11-23 10:28:27.612253: 0x10770c6f8virtual mdk::NativeVideoBufferPool::~NativeVideoBufferPool()
flutter: mdk.WARNING: 2023-11-23 10:28:27.612363: ERROR! failed to setup decoder: video
flutter: fvp.FINE: 2023-11-23 10:28:27.612535: 961490308 player4417346832 onEvent: decoder.video -1
flutter: mdk.INFO: 2023-11-23 10:28:27.612659: 0x12382ae00 1st video frame to render @0.000000s, sync time: 0.000000
flutter: mdk.INFO: 2023-11-23 10:28:27.612747: unsupported pixel format for Metal: unknown, bpc:0, bpp:0(), channels:(), map: 0 0 0 0
flutter: mdk.INFO: 2023-11-23 10:28:27.619269: 0-track seek end video frame @0.000000 seek_pos_: -1
flutter: mdk.INFO: 2023-11-23 10:28:27.619466: 0x12382ae00 1st video frame to render @-1.000000s, sync time: 0.000000
flutter: mdk.INFO: 2023-11-23 10:28:27.619566: invalid video frame @-1.000000
flutter: mdk.INFO: 2023-11-23 10:28:27.619649: try the next decoder if available
flutter: mdk.INFO: 2023-11-23 10:28:27.619749: video stream#1 starting decoding loop from decoder index 1...
flutter: mdk.INFO: 2023-11-23 10:28:27.619853: creating video decoder: VideoToolbox...
flutter: mdk.INFO: 2023-11-23 10:28:27.619942: opening video decoder: VideoToolbox...
flutter: mdk.INFO: 2023-11-23 10:28:27.620037: opening ffmpeg video decoder: h264 ...
flutter: mdk.INFO: 2023-11-23 10:28:27.620182: Try to use IOSurface OpenGL(ES) interop: true
flutter: mdk.INFO: 2023-11-23 10:28:27.620318: AVCodec.Video[h264.] decoder: 1 Single threads
flutter: mdk.INFO: 2023-11-23 10:28:27.620448: unsupported avcodec options:  hwcontext=videotoolbox
flutter: mdk.INFO: 2023-11-23 10:28:27.620536: h264 yuv420p, bpc:8, bpp:12(8,8,8), channels:(1,1,1), map: 0 1 2 0 960x540
flutter: fvp.FINE: 2023-11-23 10:28:27.620626: 961490308 player4417346832 onEvent: decoder.video 0
flutter: mdk.INFO: 2023-11-23 10:28:27.620714: decode stored recovery packets: 0
flutter: mdk.INFO: 2023-11-23 10:28:27.620796: ***buffering progress 100%***
flutter: mdk.INFO: 2023-11-23 10:28:27.620873: default 0x1074b7040 FrameReader::update MediaStatus 0X14=>0X124
flutter: mdk.INFO: 2023-11-23 10:28:27.620951: AudioQueueStart ERROR: 0
flutter: fvp.FINE: 2023-11-23 10:28:27.621070: 961490308 player4417346832 onMediaStatus: MediaStatus(+loaded+buffering) => MediaStatus(+loaded+prepared+buffered)
flutter: mdk.INFO: 2023-11-23 10:28:27.621343: ++++++++++++BUFFERING END++++++++++++
flutter: mdk.INFO: 2023-11-23 10:28:27.621481:
flutter: fvp.FINE: 2023-11-23 10:28:27.621714: 961490308 player4417346832 onEvent: reader.buffering 100
flutter: mdk.INFO: 2023-11-23 10:28:27.621943: video stream#1 1st packet@5.133000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:28:27.622246: video stream#1 1st packet@5.167000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:28:27.622350: video stream#1 1st packet@5.200000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:28:27.622494: video stream#1 1st packet@5.233000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:28:27.622636: video stream#1 1st packet@5.267000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:28:27.622770: video stream#1 1st packet@5.300000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:28:27.622919: video stream#1 1st packet@5.333000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:28:27.623054: video stream#1 1st packet@5.367000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:28:27.623178: video stream#1 1st packet@5.400000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:28:27.623282: video stream#1 1st packet@5.433000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:28:27.623363: video stream#1 1st packet@5.467000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:28:27.623444: video stream#1 1st packet@5.500000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:28:27.623524: video stream#1 1st packet@5.533000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:28:27.623604: video stream#1 1st packet@5.567000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:28:27.623681: video stream#1 1st packet@5.600000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:28:27.623758: video stream#1 1st packet@5.633000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:28:27.635995: video stream#1 1st packet@5.667000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:28:27.636222: video stream#1 1st packet@5.700000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:28:27.636334: video stream#1 1st packet@5.733000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:28:27.636432: video stream#1 1st packet@5.767000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:28:27.636521: video stream#1 1st packet@5.800000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:28:27.636603: video stream#1 1st packet@5.833000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:28:27.636894: h264 codec pixel format list: (expected videotoolbox_vld)
flutter: mdk.INFO: 2023-11-23 10:28:27.636984: videotoolbox_vld (selected)
flutter: mdk.INFO: 2023-11-23 10:28:27.637069: yuvj420p
flutter: mdk.INFO: 2023-11-23 10:28:27.638158: no sw format is requested, and no special option is required for hw frames context. using AVHWFramesContext created by avcodec
flutter: mdk.INFO: 2023-11-23 10:28:27.638306: hwdec hw output pixel format: videotoolbox_vld
flutter: fvp.FINE: 2023-11-23 10:28:27.638377: 961490308 player4417346832 onEvent: decoder.video 0
flutter: mdk.INFO: 2023-11-23 10:28:27.704903: video stream#1 sending 1 invalid AOT frame @5.867000s. seeking: 0
flutter: mdk.INFO: 2023-11-23 10:28:27.705016: 0x12382ae00 1st video frame to render @5.867000s, sync time: 0.000000
flutter: mdk.INFO: 2023-11-23 10:28:27.705061: VideoRenderer clear buffered frames
flutter: mdk.INFO: 2023-11-23 10:28:27.705097: 0-track seek end video frame @5.867000 seek_pos_: -1
flutter: mdk.INFO: 2023-11-23 10:28:27.705136: 0x12382ae00 1st video frame to render @5.867000s, sync time: 0.000000
flutter: mdk.INFO: 2023-11-23 10:28:27.705214: VideoRenderer WxH=960.000000x540.000000 960.000000x540.000000, frame: 960x540
flutter: mdk.INFO: 2023-11-23 10:28:27.705257: update transform 2d. scale: (1.000000, 1.000000), orientation: 0
flutter: mdk.INFO: 2023-11-23 10:28:27.705303: m: mat<4, 4>(
flutter: mdk.INFO: 2023-11-23 10:28:27.705343: 1  0  0  0
flutter: mdk.INFO: 2023-11-23 10:28:27.705401: 0  1  0  0
flutter: mdk.INFO: 2023-11-23 10:28:27.705455: 0  0  1  0
flutter: mdk.INFO: 2023-11-23 10:28:27.705500: 0  0  0  1
flutter: mdk.INFO: 2023-11-23 10:28:27.705531: )
flutter: mdk.INFO: 2023-11-23 10:28:27.705577: unknown, bpc:0, bpp:0(), channels:(), map: 0 0 0 0 => mapped nv12, bpc:8, bpp:12(8,16), channels:(1,2), map: 0 1 2 0
flutter: mdk.INFO: 2023-11-23 10:28:27.705626: Metal pixel format 0: MTLPixelFormatR8Unorm
flutter: mdk.INFO: 2023-11-23 10:28:27.705662: Metal pixel format 1: MTLPixelFormatRG8Unorm
flutter: mdk.INFO: 2023-11-23 10:28:27.705719: frame color: UNSPECIFIED UNSPECIFIED UNSPECIFIED Full. gamma: 2.200000, signal peak: 1.000000
flutter: mdk.INFO: 2023-11-23 10:28:27.705756:  -
flutter: mdk.INFO: 2023-11-23 10:28:27.705820: output color: BT709 UNSPECIFIED RGB Full. gamma: 2.200000, signal peak: 1.000000
flutter: mdk.INFO: 2023-11-23 10:28:27.705886: rgb primaries matrix: mat<3, 3>(
flutter: mdk.INFO: 2023-11-23 10:28:27.705935: 1  4.08422e-09  1.90629e-09
flutter: mdk.INFO: 2023-11-23 10:28:27.705978: -1.97514e-08  1  4.36139e-09
flutter: mdk.INFO: 2023-11-23 10:28:27.706035: 2.49444e-09  3.82445e-09  1
flutter: mdk.INFO: 2023-11-23 10:28:27.706084: )
flutter: mdk.INFO: 2023-11-23 10:28:27.706196: color transform: mat<4, 4>(
flutter: mdk.INFO: 2023-11-23 10:28:27.706230: 1  0  1.5748  -0.7874
flutter: mdk.INFO: 2023-11-23 10:28:27.706286: 1  -0.187324  -0.468124  0.327724
flutter: mdk.INFO: 2023-11-23 10:28:27.706320: 1  1.8556  0  -0.9278
flutter: mdk.INFO: 2023-11-23 10:28:27.706438: 0  0  0  1
flutter: mdk.INFO: 2023-11-23 10:28:27.706489: )
flutter: mdk.INFO: 2023-11-23 10:28:27.706576: EQ: mat<4, 4>(
flutter: mdk.INFO: 2023-11-23 10:28:27.706637: 1  0  0  0
flutter: mdk.INFO: 2023-11-23 10:28:27.706677: 0  1  0  0
flutter: mdk.INFO: 2023-11-23 10:28:27.706749: 0  0  1  0
flutter: mdk.INFO: 2023-11-23 10:28:27.706826: 0  0  0  1
flutter: mdk.INFO: 2023-11-23 10:28:27.706876: )
flutter: fvp.FINE: 2023-11-23 10:28:27.711296: 961490308 player4417346832 onEvent: render.video 5867
flutter: mdk.INFO: 2023-11-23 10:28:27.711383: video stream#1 AOT frame is sent

MacOS stutters

flutter: fvp.FINE: 2023-11-23 10:19:33.429439: 976324062 player5116891840 create(rtsp://192.168.169.1:554)
flutter: mdk.INFO: 2023-11-23 10:19:33.531739: default0x133493bb0 new FrameReader...
flutter: mdk.INFO: 2023-11-23 10:19:33.531824: Registered audio backends: AudioQueue OpenAL null 
flutter: mdk.INFO: 2023-11-23 10:19:33.531855: default0x13347ac50 new FrameReader...
flutter: mdk.INFO: 2023-11-23 10:19:33.531884: Registered audio backends: AudioQueue OpenAL null 
flutter: mdk.INFO: 2023-11-23 10:19:33.531911: 0x130fbf2b0mdk::Player::Player()
flutter: mdk.INFO: 2023-11-23 10:19:33.532090: player property: avio.protocol_whitelist = file,rtmp,http,https,tls,rtp,tcp,udp,crypto,httpproxy,data,concatf,concat,subfile
flutter: mdk.INFO: 2023-11-23 10:19:33.532188: player property: avformat.rtsp_transport = tcp
flutter: mdk.INFO: 2023-11-23 10:19:33.532268: video decoders: "VT", "VideoToolbox", "FFmpeg"
flutter: mdk.INFO: 2023-11-23 10:19:33.532317: video decoders: "VT", "VideoToolbox", "FFmpeg"
flutter: mdk.INFO: 2023-11-23 10:19:33.532349: player property: avformat.fflags = +nobuffer
flutter: mdk.INFO: 2023-11-23 10:19:33.532376: player property: avformat.fpsprobesize = 0
flutter: mdk.INFO: 2023-11-23 10:19:33.532400: default FrameReader0x133493bb0 state: 0=>0=>0, 0
flutter: mdk.INFO: 2023-11-23 10:19:33.532424: default0x133493bb0 virtual void mdk::FrameReader::stop(), current state: 0
flutter: mdk.INFO: 2023-11-23 10:19:33.532449: default FrameReader0x133493bb0 state: 0=>0=>0, 0
flutter: mdk.INFO: 2023-11-23 10:19:33.532472: default0x133493bb0 virtual void mdk::FrameReader::stop(), current state: 0
flutter: mdk.INFO: 2023-11-23 10:19:33.532588: AudioQueueStart ERROR: 0
flutter: mdk.INFO: 2023-11-23 10:19:33.532614: 0x171204400 MediaControl.prepare(0, ...) rtsp://192.168.169.1:554
flutter: mdk.INFO: 2023-11-23 10:19:33.532638: default 0x133493bb0 FrameReader.start(0, ...)
flutter: mdk.INFO: 2023-11-23 10:19:33.532662: default 0x133493bb0 FrameReader::update MediaStatus 0=>0X2
flutter: fvp.FINE: 2023-11-23 10:19:33.534180: 622521020 player5116891840 onMediaStatus: MediaStatus(noMedia) => MediaStatus(+loading)
flutter: mdk.INFO: 2023-11-23 10:19:33.534789: default FrameReader0x133493bb0 state: 0=>0=>1, 0
flutter: mdk.INFO: 2023-11-23 10:19:33.534826: default FrameReader0x133493bb0 state: 0=>1=>1, 0
flutter: mdk.INFO: 2023-11-23 10:19:33.534852: start frame reader thread: 0x170c13000
flutter: mdk.INFO: 2023-11-23 10:19:33.534876: FFmpeg/Libav runtime git-2023-10-29-1056575-avbuild
flutter: mdk.INFO: 2023-11-23 10:19:33.534900: Selected avutil runtime version: 58.28.100 (build: 58.28.100), license: LGPL version 2.1 or later
flutter: mdk.INFO: 2023-11-23 10:19:33.534926: Selected avutil runtime configuration: --extra-version=avbuild --disable-doc --disable-debug --disable-static --enable-shared --enable-runtime-cpudetect --disable-vulkan --enable-libxml2 --disable-libxcb --disable-xlib --disable-postproc --enable-cross-compile --arch=arm64 --target-os=darwin --install_name_dir='@rpath' --cc=clang --sysroot=/Applications/Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk --enable-lto --enable-pic --extra-cflags='-I=/usr/include/libxml2 -arch arm64 -mmacosx-version-min=11.0' --extra-ldflags='-arch arm64 -mmacosx-version-min=11.0 -Wl,-dead_strip -Wl,-rpath,@loader_path -Wl,-rpath,@executable_path/../Frameworks -Wl,-rpath,@loader_path/Libraries -Wl,-rpath,@loader_path/../lib' --enable-small --disable-outdevs --disable-filters --enable-filter='*null*,afade,*fifo,*format,*resample,aeval,allrgb,allyuv,atempo,pan,*bars,color,*key,crop,draw*,eq*,framerate,*_qsv,*_vaapi,*v4l2*,hw*,scale,volume,test*' --disable-muxers --disable-encoders --disable-decoders --disable-demuxers --enable-decoder='*sub*,movtext,*web*,aac*,*ac3*,alac*,ape,ass,av1*,ccaption,cfhd,cook,dca,dnxhd,eac3*,exr,truehd,ff*,*yuv*,flv,flac,gif,h26[3-4]*,hevc*,hap,mp[1-3]*,prores,*peg*,mlp,mpl2,nellymoser,opus,pcm*,qtrle,*png*,tiff,rawvideo,rv*,sami,srt,ssa,v210*,vc1*,vorbis,vp[6-9]*,wm*,wrapped_avframe' --enable-demuxer='*sub*,*ac3,*ac,*peg*,*web*,au,ape,ass,avi,concat,dnxhd,dts*,*dash*,*flv,gif,hls,h264,hevc,kux,matroska,mov,mp3,mxf,ogg,pcm*,rawvideo,rt*p,spdif,srt,vc1,v210*,wav,*pipe,image2,mlv,nsv,nut' --enable-encoder='aac,cfhd,dnxhd,exr,ff*,*yuv*,gif,h26[3-4]*,av1*,hevc*,mjpeg*,*png,opus,pcm*,prores*,rawvideo,spdif,speedhq,*jpeg,*png,tiff,vp[8-9]*,wrapped_avframe,*nvenc,*qsv,*v4l2m2m,*vaapi,vorbis' --enable-muxer='*jpeg,dnxhd,fifo,flv,gif,hls,h264,hevc,image2,mov,mp4,mpegts,matroska,null,og*,pcm*,rawvideo,spdif,*pipe,*segment,webm,wav,dash,nu*'
flutter: mdk.INFO: 2023-11-23 10:19:33.534974: global option: ffmpeg.configuration = --extra-version=avbuild --disable-doc --disable-debug --disable-static --enable-shared --enable-runtime-cpudetect --disable-vulkan --enable-libxml2 --disable-libxcb --disable-xlib --disable-postproc --enable-cross-compile --arch=arm64 --target-os=darwin --install_name_dir='@rpath' --cc=clang --sysroot=/Applications/Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk --enable-lto --enable-pic --extra-cflags='-I=/usr/include/libxml2 -arch arm64 -mmacosx-version-min=11.0' --extra-ldflags='-arch arm64 -mmacosx-version-min=11.0 -Wl,-dead_strip -Wl,-rpath,@loader_path -Wl,-rpath,@executable_path/../Frameworks -Wl,-rpath,@loader_path/Libraries -Wl,-rpath,@loader_path/../lib' --enable-small --disable-outdevs --disable-filters --enable-filter='*null*,afade,*fifo,*format,*resample,aeval,allrgb,allyuv,atempo,pan,*bars,color,*key,crop,draw*,eq*,framerate,*_qsv,*_vaapi,*v4l2*,hw*,scale,volume,test*' --disable-muxers --disable-encoders --disable-decoders --disable-demuxers --enable-decoder='*sub*,movtext,*web*,aac*,*ac3*,alac*,ape,ass,av1*,ccaption,cfhd,cook,dca,dnxhd,eac3*,exr,truehd,ff*,*yuv*,flv,flac,gif,h26[3-4]*,hevc*,hap,mp[1-3]*,prores,*peg*,mlp,mpl2,nellymoser,opus,pcm*,qtrle,*png*,tiff,rawvideo,rv*,sami,srt,ssa,v210*,vc1*,vorbis,vp[6-9]*,wm*,wrapped_avframe' --enable-demuxer='*sub*,*ac3,*ac,*peg*,*web*,au,ape,ass,avi,concat,dnxhd,dts*,*dash*,*flv,gif,hls,h264,hevc,kux,matroska,mov,mp3,mxf,ogg,pcm*,rawvideo,rt*p,spdif,srt,vc1,v210*,wav,*pipe,image2,mlv,nsv,nut' --enable-encoder='aac,cfhd,dnxhd,exr,ff*,*yuv*,gif,h26[3-4]*,av1*,hevc*,mjpeg*,*png,opus,pcm*,prores*,rawvideo,spdif,speedhq,*jpeg,*png,tiff,vp[8-9]*,wrapped_avframe,*nvenc,*qsv,*v4l2m2m,*vaapi,vorbis' --enable-muxer='*jpeg,dnxhd,fifo,flv,gif,hls,h264,hevc,image2,mov,mp4,mpegts,matroska,null,og*,pcm*,rawvideo,spdif,*pipe,*segment,webm,wav,dash,nu*'
flutter: mdk.INFO: 2023-11-23 10:19:33.535048: global option: ffmpeg.version = 6
flutter: mdk.INFO: 2023-11-23 10:19:33.535072: av_dict_set0x1022f4268
flutter: mdk.WARNING: 2023-11-23 10:19:33.535161: Failed to create io for url. io: 0x0, open: false
flutter: mdk.INFO: 2023-11-23 10:19:33.535187: default 0x133493bb0 FrameReader::update MediaStatus 0X2=>0X2
flutter: mdk.INFO: 2023-11-23 10:19:33.535293: Selected avcodec runtime version: 60.30.102 (build: 60.30.102), license: LGPL version 2.1 or later
flutter: mdk.INFO: 2023-11-23 10:19:33.535351: av_packet_alloc0x102141c68
flutter: mdk.INFO: 2023-11-23 10:19:33.535406: Selected avformat runtime version: 60.15.101 (build: 60.15.101), license: LGPL version 2.1 or later
flutter: mdk.INFO: 2023-11-23 10:19:33.535433: avformat_alloc_context0x10226f948
flutter: mdk.INFO: 2023-11-23 10:19:33.535486: before avformat_open_input. io: 0x0(/pb: 0x0, url: rtsp://192.168.169.1:554
flutter: mdk.INFO: 2023-11-23 10:19:33.535529: FFmpeg/Libav runtime git-2023-10-29-1056575-avbuild
flutter: mdk.INFO: 2023-11-23 10:19:33.834700: after avformat_open_input. pb: 0x0, iformat: 0x102573ee0 context flags: 2097216, input format flags: 1
flutter: mdk.INFO: 2023-11-23 10:19:33.835316: [FFmpeg:aac] invalid sampling rate index 13
flutter: mdk.INFO: 2023-11-23 10:19:33.835414: [FFmpeg:rtsp] Failed to open codec in avformat_find_stream_info
flutter: mdk.INFO: 2023-11-23 10:19:39.297501: [FFmpeg:rtsp] Could not find codec parameters for stream 0 (Audio: aac, 44100 Hz, 0 channels, fltp): unspecified number of channels
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
flutter: mdk.INFO: 2023-11-23 10:19:39.297789: supports 205 ffmpeg sw pixel formats. unsupported: uyyvyy411 x2rgb10be x2bgr10be p212be p212le p412be p412le gbrap14be gbrap14le
flutter: mdk.INFO: 2023-11-23 10:19:39.297987: Format: rtsp, range: 233 +0ms, bitrate: 0, size: 0
Streams: 2
 Video:
  stream#1, range: 233 +0ms, frames: 0
  codec: h264 tag: 0 profile: 100 level: 51, yuv420p, bpc:8, bpp:12(8,8,8), channels:(1,1,1), map: 0 1 2 0, bitrate: 0, 960x540, fps: 30, bframes: 0, range: Full
  extra data(40): 00 00 00 01 00 00 00 01 67 64 00 33 AC EA 0F 01 15 EE 6C 80 00 01 F4 00 00 75 30 42 00 00 00 01 00 00 00 01 68 EE 3C B0 
 Audio:
  stream#0, range: 0 +0ms, frames: 0
  codec: aac tag: 0 profile: -99 level: -99, sample size: 0/0, block align: 0, frame_size: 0, f32p mono(1) @44100Hz, bitrate: 0
  extra data(5): 0E 80 56 E5 00 

flutter: mdk.INFO: 2023-11-23 10:19:39.298095: default FrameReader0x133493bb0 request to pause 1, loaded: 0.
flutter: mdk.INFO: 2023-11-23 10:19:39.298396: default FrameReader0x133493bb0 state: 0=>1=>2, 0
flutter: mdk.INFO: 2023-11-23 10:19:39.298575: default FrameReader0x133493bb0 state requested: 2, current: 0
flutter: mdk.INFO: 2023-11-23 10:19:39.298603: 142 AudioBackendAudioQueue ERROR>>> AudioQueuePause(queue_): -50
flutter: mdk.INFO: 2023-11-23 10:19:39.298627: 
flutter: mdk.INFO: 2023-11-23 10:19:39.298948: 0x171204400 prepared callback is invoked
flutter: mdk.INFO: 2023-11-23 10:19:39.306362: default 0x133493bb0 FrameReader::update MediaStatus 0X2=>0X4
flutter: fvp.FINE: 2023-11-23 10:19:39.306456: 622521020 player5116891840 onMediaStatus: MediaStatus(+loading) => MediaStatus(+loaded)
flutter: mdk.INFO: 2023-11-23 10:19:39.306834: ***buffering progress 0%***
flutter: mdk.INFO: 2023-11-23 10:19:39.306870: default 0x133493bb0 FrameReader::update MediaStatus 0X4=>0X14
flutter: mdk.INFO: 2023-11-23 10:19:39.306898: 142 AudioBackendAudioQueue ERROR>>> AudioQueuePause(queue_): -50
flutter: mdk.INFO: 2023-11-23 10:19:39.306924: 
flutter: fvp.FINE: 2023-11-23 10:19:39.306954: 622521020 player5116891840 onMediaStatus: MediaStatus(+loaded) => MediaStatus(+loaded+buffering)
flutter: mdk.INFO: 2023-11-23 10:19:39.306994: ++++++++++++BUFFERING START++++++++++++
flutter: mdk.INFO: 2023-11-23 10:19:39.307018: 
flutter: fvp.FINE: 2023-11-23 10:19:39.307416: 622521020 player5116891840 onEvent: reader.buffering 0
flutter: mdk.INFO: 2023-11-23 10:19:39.313806: setLoop(0), now 0/0
flutter: mdk.INFO: 2023-11-23 10:19:39.313861: 0x171204400 virtual void mdk::MediaControlPush::setState(mdk::PlaybackState)@1013 requested state 2=>2, current state 0. status: 0X14
flutter: mdk.INFO: 2023-11-23 10:19:39.313893: 142 AudioBackendAudioQueue ERROR>>> AudioQueuePause(queue_): -50
flutter: mdk.INFO: 2023-11-23 10:19:39.313921: 
flutter: mdk.INFO: 2023-11-23 10:19:39.313972: default FrameReader0x133493bb0 request to pause 1, loaded: 4.
flutter: mdk.INFO: 2023-11-23 10:19:39.314010: default FrameReader0x133493bb0 state: 0=>2=>2, 0
flutter: mdk.INFO: 2023-11-23 10:19:39.314040: 0x171204400 virtual void mdk::MediaControlPush::setState(mdk::PlaybackState)@1013 requested state 2=>1, current state 0. status: 0X14
flutter: mdk.INFO: 2023-11-23 10:19:39.314068: AudioQueueStart ERROR: 0
flutter: mdk.INFO: 2023-11-23 10:19:39.314094: default FrameReader0x133493bb0 request to pause 0, loaded: 4.
flutter: mdk.INFO: 2023-11-23 10:19:39.314128: default FrameReader0x133493bb0 state: 0=>2=>1, 0
flutter: mdk.INFO: 2023-11-23 10:19:39.314153: default FrameReader0x133493bb0 state requested: 1, current: 0
flutter: mdk.INFO: 2023-11-23 10:19:39.333811: 0 pkt duration: 0.033333,  duration:4867, dy_duration_delta=0=>33, live_eos_timeout=5000
flutter: mdk.INFO: 2023-11-23 10:19:39.333888: 0 pkt duration: 0.033333,  duration:4867, dy_duration_delta=0=>33, live_eos_timeout=5000
flutter: mdk.INFO: 2023-11-23 10:19:39.333920: default FrameReader0x133493bb0 state: 0=>1=>1, 1
flutter: mdk.INFO: 2023-11-23 10:19:39.333945: default FrameReader0x133493bb0 update state: 0=>1
flutter: fvp.FINE: 2023-11-23 10:19:39.334153: 622521020 player5116891840 onPlaybackStateChanged: PlaybackState.stopped => PlaybackState.playing
flutter: mdk.INFO: 2023-11-23 10:19:39.334267: default FrameReader0x133493bb0 state: 1=>1=>2, 1
flutter: mdk.INFO: 2023-11-23 10:19:39.334292: default FrameReader0x133493bb0 update state: 1=>2
flutter: fvp.FINE: 2023-11-23 10:19:39.334319: 622521020 player5116891840 onPlaybackStateChanged: PlaybackState.playing => PlaybackState.paused
flutter: mdk.INFO: 2023-11-23 10:19:39.334390: starting decode loop thread mdk.vdec1@0x171d87000
flutter: fvp.FINE: 2023-11-23 10:19:39.334417: 622521020 player5116891840 onEvent: thread.video 1
flutter: mdk.INFO: 2023-11-23 10:19:39.334442: video stream#1 starting decoding loop from decoder index 0...
flutter: mdk.INFO: 2023-11-23 10:19:39.334465: creating video decoder: VT...
flutter: mdk.INFO: 2023-11-23 10:19:39.334490: Try to use IOSurface OpenGL(ES) interop: true
flutter: mdk.INFO: 2023-11-23 10:19:39.334513: opening video decoder: VideoToolbox...
flutter: mdk.INFO: 2023-11-23 10:19:39.334535: codec 'avc1' for VT
flutter: mdk.INFO: 2023-11-23 10:19:39.358960: VT hardware decode support: 1
flutter: mdk.INFO: 2023-11-23 10:19:39.359068: bad level detected in stream
flutter: mdk.INFO: 2023-11-23 10:19:39.359112: NALU count: 4
flutter: mdk.INFO: 2023-11-23 10:19:39.359139: 0: 4+0, unused
flutter: mdk.INFO: 2023-11-23 10:19:39.359165: 1: 8+20, SPS
flutter: mdk.INFO: 2023-11-23 10:19:39.359188: 2: 32+0, unused
flutter: mdk.INFO: 2023-11-23 10:19:39.359211: 3: 36+4, PPS
flutter: mdk.INFO: 2023-11-23 10:19:39.359234: virtual bool mdk::VideoToolboxDecoder::open()207 ERROR>>> CMVideoFormatDescriptionCreateFromH264ParameterSets(kCFAllocatorDefault, ps_count, ps.data(), ps_len.data(), nalu_header_len_, &fmtdesc_): -12712
flutter: mdk.INFO: 2023-11-23 10:19:39.359261: 
flutter: mdk.INFO: 2023-11-23 10:19:39.359293: 0x1330536d0UGL::opengl::Context::Local<mdk::CVBufferPool::ctx_res_t>::~Local() [T = mdk::CVBufferPool::ctx_res_t, DT = mdk::CVBufferPool::ctx_res_t]0x0 count: 0
flutter: mdk.INFO: 2023-11-23 10:19:39.359319: 0x133053698virtual mdk::NativeVideoBufferPool::~NativeVideoBufferPool()
flutter: mdk.WARNING: 2023-11-23 10:19:39.359397: ERROR! failed to setup decoder: video
flutter: fvp.FINE: 2023-11-23 10:19:39.359434: 622521020 player5116891840 onEvent: decoder.video -1
flutter: mdk.INFO: 2023-11-23 10:19:39.359465: 0x171204400 1st video frame to render @0.000000s, sync time: 0.000000
flutter: mdk.INFO: 2023-11-23 10:19:39.359493: unsupported pixel format for Metal: unknown, bpc:0, bpp:0(), channels:(), map: 0 0 0 0
flutter: mdk.INFO: 2023-11-23 10:19:39.359518: 0-track seek end video frame @0.000000 seek_pos_: -1
flutter: mdk.INFO: 2023-11-23 10:19:39.359542: 0x171204400 1st video frame to render @-1.000000s, sync time: 0.000000
flutter: mdk.INFO: 2023-11-23 10:19:39.359565: invalid video frame @-1.000000
flutter: mdk.INFO: 2023-11-23 10:19:39.359590: try the next decoder if available
flutter: mdk.INFO: 2023-11-23 10:19:39.359614: video stream#1 starting decoding loop from decoder index 1...
flutter: mdk.INFO: 2023-11-23 10:19:39.359636: creating video decoder: VideoToolbox...
flutter: mdk.INFO: 2023-11-23 10:19:39.359659: opening video decoder: VideoToolbox...
flutter: mdk.INFO: 2023-11-23 10:19:39.359690: opening ffmpeg video decoder: h264 ...
flutter: mdk.INFO: 2023-11-23 10:19:39.359712: Try to use IOSurface OpenGL(ES) interop: true
flutter: mdk.INFO: 2023-11-23 10:19:39.359735: AVCodec.Video[h264.] decoder: 1 Single threads
flutter: mdk.INFO: 2023-11-23 10:19:39.359758: unsupported avcodec options:  hwcontext=videotoolbox
flutter: mdk.INFO: 2023-11-23 10:19:39.359785: h264 yuv420p, bpc:8, bpp:12(8,8,8), channels:(1,1,1), map: 0 1 2 0 960x540
flutter: fvp.FINE: 2023-11-23 10:19:39.359811: 622521020 player5116891840 onEvent: decoder.video 0
flutter: mdk.INFO: 2023-11-23 10:19:39.359841: decode stored recovery packets: 0
flutter: mdk.INFO: 2023-11-23 10:19:39.359863: ***buffering progress 100%***
flutter: mdk.INFO: 2023-11-23 10:19:39.359885: default 0x133493bb0 FrameReader::update MediaStatus 0X14=>0X124
flutter: mdk.INFO: 2023-11-23 10:19:39.359909: AudioQueueStart ERROR: 0
flutter: fvp.FINE: 2023-11-23 10:19:39.359946: 622521020 player5116891840 onMediaStatus: MediaStatus(+loaded+buffering) => MediaStatus(+loaded+prepared+buffered)
flutter: mdk.INFO: 2023-11-23 10:19:39.360058: ++++++++++++BUFFERING END++++++++++++
flutter: mdk.INFO: 2023-11-23 10:19:39.360082: 
flutter: fvp.FINE: 2023-11-23 10:19:39.360106: 622521020 player5116891840 onEvent: reader.buffering 100
flutter: mdk.INFO: 2023-11-23 10:19:39.360310: video stream#1 1st packet@5.100000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:19:39.363171: default FrameReader0x133493bb0 state: 2=>2=>1, 1
flutter: mdk.INFO: 2023-11-23 10:19:39.363306: default FrameReader0x133493bb0 update state: 2=>1
flutter: fvp.FINE: 2023-11-23 10:19:39.363401: 622521020 player5116891840 onPlaybackStateChanged: PlaybackState.paused => PlaybackState.playing
flutter: mdk.INFO: 2023-11-23 10:19:39.363585: video stream#1 1st packet@5.133000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:19:39.398694: video stream#1 1st packet@5.166000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:19:39.427896: video stream#1 1st packet@5.200000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:19:39.460526: video stream#1 1st packet@5.233000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:19:39.523723: video stream#1 1st packet@5.266000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:19:39.532532: video stream#1 1st packet@5.300000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:19:39.561325: video stream#1 1st packet@5.333000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:19:39.594013: video stream#1 1st packet@5.366000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:19:39.627705: video stream#1 1st packet@5.400000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:19:39.666603: video stream#1 1st packet@5.433000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:19:39.697235: video stream#1 1st packet@5.466000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:19:39.729779: video stream#1 1st packet@5.500000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:19:39.761455: video stream#1 1st packet@5.533000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:19:39.794199: video stream#1 1st packet@5.566000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:19:39.828093: video stream#1 1st packet@5.600000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:19:39.859861: video stream#1 1st packet@5.633000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:19:39.900213: video stream#1 1st packet@5.666000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:19:39.936561: video stream#1 1st packet@5.700000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:19:39.963074: video stream#1 1st packet@5.733000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:19:39.993415: video stream#1 1st packet@5.766000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:19:40.027661: video stream#1 1st packet@5.800000 to be decoded has no key frame, skip!!!!!!!!!!!!!!!!!!!
flutter: mdk.INFO: 2023-11-23 10:19:40.068408: h264 codec pixel format list: (expected videotoolbox_vld)
flutter: mdk.INFO: 2023-11-23 10:19:40.068522: videotoolbox_vld (selected)
flutter: mdk.INFO: 2023-11-23 10:19:40.068580: yuvj420p
flutter: mdk.INFO: 2023-11-23 10:19:40.068625: no sw format is requested, and no special option is required for hw frames context. using AVHWFramesContext created by avcodec
flutter: mdk.INFO: 2023-11-23 10:19:40.068655: hwdec hw output pixel format: videotoolbox_vld
flutter: fvp.FINE: 2023-11-23 10:19:40.068702: 622521020 player5116891840 onEvent: decoder.video 0
flutter: mdk.INFO: 2023-11-23 10:19:40.149131: video stream#1 sending 1 invalid AOT frame @5.833000s. seeking: 0
flutter: mdk.INFO: 2023-11-23 10:19:40.149302: 0x171204400 1st video frame to render @5.833000s, sync time: 0.000000
flutter: mdk.INFO: 2023-11-23 10:19:40.149351: VideoRenderer clear buffered frames
flutter: mdk.INFO: 2023-11-23 10:19:40.149446: 0-track seek end video frame @5.833000 seek_pos_: -1
flutter: mdk.INFO: 2023-11-23 10:19:40.149477: 0x171204400 1st video frame to render @5.833000s, sync time: 0.000000
flutter: mdk.INFO: 2023-11-23 10:19:40.149507: VideoRenderer WxH=960.000000x540.000000 960.000000x540.000000, frame: 960x540
flutter: mdk.INFO: 2023-11-23 10:19:40.149534: update transform 2d. scale: (1.000000, 1.000000), orientation: 0
flutter: mdk.INFO: 2023-11-23 10:19:40.149558: m: mat<4, 4>(
flutter: mdk.INFO: 2023-11-23 10:19:40.149581: 1  0  0  0  
flutter: mdk.INFO: 2023-11-23 10:19:40.149606: 0  1  0  0  
flutter: mdk.INFO: 2023-11-23 10:19:40.149722: 0  0  1  0  
flutter: mdk.INFO: 2023-11-23 10:19:40.149954: 0  0  0  1  
flutter: mdk.INFO: 2023-11-23 10:19:40.149998: )
flutter: mdk.INFO: 2023-11-23 10:19:40.150029: unknown, bpc:0, bpp:0(), channels:(), map: 0 0 0 0 => mapped nv12, bpc:8, bpp:12(8,16), channels:(1,2), map: 0 1 2 0
flutter: mdk.INFO: 2023-11-23 10:19:40.150059: Metal pixel format 0: MTLPixelFormatR8Unorm
flutter: mdk.INFO: 2023-11-23 10:19:40.150084: Metal pixel format 1: MTLPixelFormatRG8Unorm
flutter: mdk.INFO: 2023-11-23 10:19:40.150111: frame color: UNSPECIFIED UNSPECIFIED UNSPECIFIED Full. gamma: 2.200000, signal peak: 1.000000
flutter: mdk.INFO: 2023-11-23 10:19:40.150258:  - 
flutter: mdk.INFO: 2023-11-23 10:19:40.150342: output color: BT709 UNSPECIFIED RGB Full. gamma: 2.200000, signal peak: 1.000000
flutter: mdk.INFO: 2023-11-23 10:19:40.150414: rgb primaries matrix: mat<3, 3>(
flutter: mdk.INFO: 2023-11-23 10:19:40.150469: 1  4.08422e-09  1.90629e-09  
flutter: mdk.INFO: 2023-11-23 10:19:40.150602: -1.97514e-08  1  4.36139e-09  
flutter: mdk.INFO: 2023-11-23 10:19:40.150641: 2.49444e-09  3.82445e-09  1  
flutter: mdk.INFO: 2023-11-23 10:19:40.150665: )
flutter: mdk.INFO: 2023-11-23 10:19:40.150689: color transform: mat<4, 4>(
flutter: mdk.INFO: 2023-11-23 10:19:40.150713: 1  0  1.5748  -0.7874  
flutter: mdk.INFO: 2023-11-23 10:19:40.150736: 1  -0.187324  -0.468124  0.327724  
flutter: mdk.INFO: 2023-11-23 10:19:40.150759: 1  1.8556  0  -0.9278  
flutter: mdk.INFO: 2023-11-23 10:19:40.150781: 0  0  0  1  
flutter: mdk.INFO: 2023-11-23 10:19:40.150802: )
flutter: mdk.INFO: 2023-11-23 10:19:40.150824: EQ: mat<4, 4>(
flutter: mdk.INFO: 2023-11-23 10:19:40.150852: 1  0  0  0  
flutter: mdk.INFO: 2023-11-23 10:19:40.150874: 0  1  0  0  
flutter: mdk.INFO: 2023-11-23 10:19:40.150895: 0  0  1  0  
flutter: mdk.INFO: 2023-11-23 10:19:40.150916: 0  0  0  1  
flutter: mdk.INFO: 2023-11-23 10:19:40.150937: )
flutter: fvp.FINE: 2023-11-23 10:19:40.459135: 622521020 player5116891840 onEvent: render.video 5833
flutter: mdk.INFO: 2023-11-23 10:19:40.459230: video stream#1 AOT frame is sent
flutter: mdk.INFO: 2023-11-23 10:19:45.929449: 0 pkt duration: 0.034367,  duration:11467, dy_duration_delta=33=>34, live_eos_timeout=5000
flutter: mdk.INFO: 2023-11-23 10:19:45.929534: 0 pkt duration: 0.034367,  duration:11467, dy_duration_delta=33=>34, live_eos_timeout=5000
wang-bin commented 1 year ago

'lowLatency' == 2 will drop frames but no log, you can try value 1. Can you record the screen? btw, macOS and iOS are almost the same, so macOS log is enough