pi@retropie4:~/dev/mdk $ ./test -c:v "MMAL" v_calle.mp4 MDK 0.10.0 (git 7a075dab) - Multimedia Development Kit. Copyright (c) 2016-2020 WangBin(QtAV author) Build for: Raspberry Pi ARMv6; Clang8.0.1 (branches/release_80)GCC4.2.1; libc++9000; 02:01:20 Sep 29 2020 Registered audio backends: ALSA ALSA device name: bcm2835 Headphones ALSA device id: bcm2835 Headphones ALSA subdevice name: subdevice #0 Registered audio backends: ALSA ALSA device name: bcm2835 Headphones ALSA device id: bcm2835 Headphones ALSA subdevice name: subdevice #1 setLoop(1000), now 0/0 0x193c810 virtual void mdk::abi::MediaControlPush::setState(mdk::abi::PlaybackState)@596 requested state 0=>1, current state 0 0x193cb20 FrameReaderImpl.start(0, ...) start frame reader thread: 2973750320 try to load av module: /usr/local/lib/libffmpeg.so.4 Selected avformat runtime version: 58.58.100 (build: 58.58.100), license: LGPL version 2.1 or later Selected avformat runtime configuration: --extra-version=QtAV --disable-doc --disable-debug --enable-shared --enable-runtime-cpudetect --enable-avresample --disable-postproc --ranlib=llvm-ranlib-8 --nm=llvm-nm-8 --ar=llvm-ar-8 --toolchain=hardened --enable-cross-compile --target-os=linux --arch=armv6 --sysroot='$SYSROOT' --cc=clang-8 --enable-pic --extra-cflags='-Wa,--noexecstack -fdata-sections -ffunction-sections -fstack-protector-strong --target=arm-linux-gnueabihf -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -marm -mfloat-abi=hard -iwithsysroot /opt/vc/include -iwithsysroot /opt/vc/include/IL' --extra-ldflags='-s -fuse-ld=lld -Wl,--gc-sections --target=arm-linux-gnueabihf -L$SYSROOT/opt/vc/lib -Wl,-rpath-link,$SYSROOT/opt/vc/lib' --extra-libs=-lrt --disable-stripping --enable-small --disable-avresample --disable-filters --enable-filter='*fade,*fifo,*format,*resample,aeval,all*,atempo,color*,convolution,crop,draw*,eq*,framerate,*_cuda,*_qsv,*_vaapi,*v4l2*,hw*,null,scale,volume' --disable-muxers --disable-encoders --disable-decoders --enable-decoder='*sub*,*text*,*web*,aac*,*ac3*,alac*,ape,ass,cc_dec,cook,dca,eac3*,truehd,ff*,*yuv*,flv,flac,gif,h26[3-4]*,hevc*,mp[1-3]*,*peg*,mlp,mpl2,nellymoser,opus,pcm*,*png*,rawvideo,rv*,sami,srt,ssa,v210*,vc1*,vorbis,vp[6-9]*,wm*,wrapped_avframe' --disable-demuxers --enable-demuxer='*sub*,*text*,*ac3,*ac,*peg*,*web*,ape,ass,avi,concat,dts*,*dash*,*flv,gif,hls,h264,hevc,kux,xv,matroska,mlv,mov,mp3,mxf,nsv,nut,ogg,pcm*,rawvideo,rt*p,spdif,srt,vc1,v210*,wav,*pipe,image2' --disable-parsers --enable-parser='*sub*,aac*,ac3,cook,flac,h26[3-4],hevc,m*,opus,rv*,vc1,vorbis,vp[8-9]' --disable-avdevice --enable-omx-rpi --enable-mmal --enable-encoder='aac,ff*,*yuv*,gif,h26[3-4]*,hevc*,mjpeg,*png,mpeg[2-4]*,nellymoser,nvenc*,opus,pcm*,rawvideo,vorbis,vp[7-9],wrapped_avframe' --enable-muxer='dash,fifo,flv,gif,h264,hevc,hls,image2,*jpeg,matroska,mov,mp4,mpegts,nu*,og*,pcm*,rawvideo,spdif,wav,webm,*pipe' avio_enum_protocols0xb018a5d4 Trying MediaIO FFmpeg for protocol "" 0xb0a009f0 open url: v_calle.mp4 0xb0a009f0url open error Trying MediaIO FFmpeg for protocol "" 0xb0a009f0 open url: v_calle.mp4 0xb0a009f0url open error Failed to create io for url. io: 0xb0a009f0, open: 0 Selected avutil runtime version: 56.59.100 (build: 56.59.100), license: LGPL version 2.1 or later av_dict_set0xb01f6d2c before avformat_open_input. io: (nil)(/pb: (nil), url: v_calle.mp4 FFmpeg/Libav runtime git-2020-09-18-6401a5d-QtAV after avformat_open_input. pb: 0xb0a09fe0, iformat: 0xb0292c58 context flags: 2097152, input format flags: 67141632 Selected avcodec runtime version: 58.106.100 (build: 58.106.100), license: LGPL version 2.1 or later avcodec_get_name0xafe46f10 unsupported ffmpeg sw pixel formats: uyyvyy411 bayer_bggr8 bayer_rggb8 bayer_gbrg8 bayer_grbg8 bayer_bggr16le bayer_bggr16be bayer_rggb16le bayer_rggb16be bayer_gbrg16le bayer_gbrg16be bayer_grbg16le bayer_grbg16be x2rgb10le x2rgb10be supported ffmpeg sw pixel formats count: 167 Format: mov,mp4,m4a,3gp,3g2,mj2, range: 0 +60100ms, bitrate: 2159661, size: 0 Metadata: iTunMOVI: studiostudiocastnamedirectorsnameproducersnamecodirectorsnamecodirectorscreenwritersname hd_video: 0 episode_sort: 0 season_number: 0 compatible_brands: mp42 major_brand: mp42 minor_version: 512 media_type: 9 creation_time: 2018-12-22T10:48:14.000000Z Streams: 2 Audio: stream#1, range: 0 +59977ms, frames: 2583 codec: aac tag: 'mp4a' profile: 1 level: -99, sample size: 0/16, f32p stereo(2) @44100Hz, bitrate: 126749 extra data(2): 12 10 Metadata: handler_name: SoundHandler language: eng creation_time: 2018-12-22T10:48:14.000000Z Video: stream#0, range: 33 +60100ms, frames: 1803 codec: h264 tag: 'avc1' profile: 77 level: 41, sample size: 8/24, yuv420p, bpc:8, bpp:12(8,8,8), bitrate: 2025632, 854x480, fps: 30, bframes: 1 extra data(40): 01 42 00 1E FF E1 00 19 67 4D 40 29 E9 81 B0 7B CD E0 22 00 00 03 00 02 00 00 03 00 78 1E 30 62 70 01 00 04 68 EF BC 80 Metadata: encoder: h264 handler_name: VideoHandler language: eng creation_time: 2018-12-22T10:48:14.000000Z ***buffering progress 0%*** ++++++++++++BUFFERING START++++++++++++ 0x193cb20 updateState: 1 starting decode loop thread mdk.audio.dec#1@2945446960 starting decode loop thread mdk.video.dec#0@2937054256 audio stream#1 starting decoding loop from decoder index 0... creating audio decoder: FFmpeg... opening audio decoder: FFmpeg Codec list: aac 'AAC decoder' aac_fixed Selected: aac opening ffmpeg audio decoder: aac ... video stream#0 starting decoding loop from decoder index 0... creating video decoder: MMAL... opening video decoder: MMAL Codec list: h264 'H264 Decoder' h264_v4l2m2m 'h264_v4l2m2m_decoder' h264_mmal 'mmal_h264_dec' Selected: h264_mmal opening ffmpeg video decoder: h264_mmal ... h264_mmal codec pixel format list: mmal (selected) yuv420p AVCodec.Audio[aac.] decoder: 1 Single threads aac f32p, stereo @44100Hz ***buffering progress 100%*** ++++++++++++BUFFERING END++++++++++++ audio stream#1 sending 1 invalid AOT frame @0.023000s 0x193c810 1st audio frame @0.023 0x193c810 seek end audio frame @0.023 mesa VC4/6 driver is used, disable mmal 0-copy rendering buffer pool no avctx->hw_device_ctx Selected avfilter runtime version: 7.87.100 (build: 7.87.100), license: LGPL version 2.1 or later AudioRenderer format: f32, stereo @44100Hz, requested: f32p, stereo @44100Hz AudioRenderer format changed and reinitialize virtual bool mdk::abi::AudioBackendALSA::close() @214 AudioBackendALSA ERROR@216>>> snd_pcm_drop(pcm_) (fffffffb): Input/output error no hw frame native buffer pool. force copy back hwdec copy back using sw output pixel format w/o hwcontext transfer api. buffer time(us): 10068~743039, period time(us): 10068~743039, perdiods: 0~74 snd_pcm_hw_params_set_buffer_time_near 92864 snd_pcm_hw_params_set_buffer_time_near ret 92857 buffer_size dt: 5804, request periods: 16 snd_pcm_hw_params_set_periods_near 16 snd_pcm_hw_params_set_periods_near ret 9 period size: 444, time: 10068 Using audio backend: ALSA 0x193c810 ao opened: 1, reopen: 1, bad ao: 0 audio filter graph: +-----------+ | src |default--[44100Hz fltp:stereo]--swr:default | (abuffer) | +-----------+ +---------------+ swr:default--[44100Hz flt:stereo]--default| dst | | (abuffersink) | +---------------+ +-------------+ src:default--[44100Hz fltp:stereo]--default| swr |default--[44100Hz flt:stereo]--dst:default | (aresample) | +-------------+ bad delay. written: 46 - delay = -45 bad delay. written: 46 - delay = -45 >>>>>>>>1st audio frame (after seek) rendered: 1, ao: 46, a: 23, delta: 23 +0.023220 audio stream#1 AOT frame is sent AVCodec.Video[h264_mmal.] decoder: 1 Single threads h264 yuv420p, bpc:8, bpp:12(8,8,8) 854x480 [FFmpeg:h264_mmal] Changing output format. video stream#0 sending 1 invalid AOT frame @0.400000s 0x193c810 1st video frame to render @0.4 , sync time: 0.12 0-track seek end video frame @0.4 0x193c810 1st video frame to render @0.4 , sync time: 0.12 video stream#0 AOT frame is sent VideoRenderer WxH=500.000000x500.000000 500.000000x500.000000 update transform 2d. scale: (1.000000, 0.562061), orientation: 0 m: mat<4, 4>( 1 0 0 0 0 0.562061 0 0 0 0 1 0 0 0 0 1 ) dso.load: libMali.sotest: 1 libMali.so test load result (nil)... dso.load: libEGL.so.1test: 1 libEGL.so.1 test load result 0xb6f3b128... dso path: /usr/lib/arm-linux-gnueabihf/libEGL.so.1 ThreadLocal >, std::__1::hash, std::__1::equal_to, std::__1::allocator > > > > >::Data::Data() thread: 3069386768 T *ThreadLocal >, std::__1::hash, std::__1::equal_to, std::__1::allocator > > > > >::get() const allocate and initialize ThreadLocal data new Context object 0x19a8610(0) for native context handle 0x1927760 ctx->api_: 0x1999f20 probing gl context... native: (nil) EGL_VERSION: 1.4 EGL_VENDOR: Mesa Project EGL_CLIENT_APIS: OpenGL OpenGL_ES Current EGL dso path: /usr/lib/arm-linux-gnueabihf/libEGL_mesa.so.0 resolving gl common functions... ThreadLocal::Data::Data() thread: 3069386768 T *ThreadLocal::get() const allocate and initialize ThreadLocal data ThreadLocal::Data::Data() thread: 3069386768 T *ThreadLocal::get() const allocate and initialize ThreadLocal data select gl api resolver for EGL|OpenGL|OpenGLES using opengl api resolver: EGL probing gl client context... major_: 0 GL_VENDOR: Broadcom GL_RENDERER: V3D 4.2 GL_VERSION: 2.1 Mesa 19.3.2 GL_SHADING_LANGUAGE_VERSION: 1.20 EGL_ANDROID_blob_cache EGL_EXT_buffer_age EGL_EXT_client_extensions EGL_EXT_device_base EGL_EXT_device_enumeration EGL_EXT_device_query EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers EGL_EXT_pixel_format_float EGL_EXT_platform_base EGL_EXT_platform_wayland EGL_EXT_platform_x11 EGL_KHR_cl_event2 EGL_KHR_client_get_all_proc_addresses EGL_KHR_config_attribs EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_debug EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_no_config_context EGL_KHR_reusable_sync EGL_KHR_surfaceless_context EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_drm_image EGL_MESA_image_dma_buf_export EGL_MESA_platform_gbm EGL_MESA_platform_surfaceless EGL_MESA_query_driver EGL_WL_bind_wayland_display GL_AMD_conservative_depth GL_AMD_multi_draw_indirect GL_AMD_shader_trinary_minmax GL_AMD_texture_texture4 GL_APPLE_packed_pixels GL_ARB_ES2_compatibility GL_ARB_ES3_compatibility GL_ARB_arrays_of_arrays GL_ARB_base_instance GL_ARB_buffer_storage GL_ARB_clear_buffer_object GL_ARB_color_buffer_float GL_ARB_compressed_texture_pixel_storage GL_ARB_compute_shader GL_ARB_compute_variable_group_size GL_ARB_conservative_depth GL_ARB_copy_buffer GL_ARB_debug_output GL_ARB_depth_buffer_float GL_ARB_depth_texture GL_ARB_draw_buffers GL_ARB_draw_elements_base_vertex GL_ARB_draw_indirect GL_ARB_draw_instanced GL_ARB_explicit_attrib_location GL_ARB_explicit_uniform_location GL_ARB_fragment_coord_conventions GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_framebuffer_no_attachments GL_ARB_framebuffer_object GL_ARB_framebuffer_sRGB GL_ARB_get_program_binary GL_ARB_get_texture_sub_image GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_instanced_arrays GL_ARB_internalformat_query GL_ARB_internalformat_query2 GL_ARB_invalidate_subdata GL_ARB_map_buffer_alignment GL_ARB_map_buffer_range GL_ARB_multi_bind GL_ARB_multi_draw_indirect GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_occlusion_query2 GL_ARB_parallel_shader_compile GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_program_interface_query GL_ARB_provoking_vertex GL_ARB_robustness GL_ARB_sampler_objects GL_ARB_separate_shader_objects GL_ARB_shader_atomic_counter_ops GL_ARB_shader_atomic_counters GL_ARB_shader_bit_encoding GL_ARB_shader_image_load_store GL_ARB_shader_image_size GL_ARB_shader_objects GL_ARB_shader_storage_buffer_object GL_ARB_shader_texture_lod GL_ARB_shading_language_100 GL_ARB_shading_language_420pack GL_ARB_shading_language_packing GL_ARB_shadow GL_ARB_stencil_texturing GL_ARB_sync GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_float GL_ARB_texture_gather GL_ARB_texture_mirrored_repeat GL_ARB_texture_multisample GL_ARB_texture_non_power_of_two GL_ARB_texture_query_levels GL_ARB_texture_query_lod GL_ARB_texture_rectangle GL_ARB_texture_rg GL_ARB_texture_rgb10_a2ui GL_ARB_texture_stencil8 GL_ARB_texture_storage GL_ARB_texture_storage_multisample GL_ARB_texture_swizzle GL_ARB_transform_feedback2 GL_ARB_transform_feedback_instanced GL_ARB_transpose_matrix GL_ARB_uniform_buffer_object GL_ARB_vertex_array_object GL_ARB_vertex_attrib_binding GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_window_pos GL_ATI_blend_equation_separate GL_ATI_draw_buffers GL_ATI_fragment_shader GL_ATI_separate_stencil GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_EXT_EGL_sync GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_equation_separate GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_copy_texture GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_framebuffer_object GL_EXT_framebuffer_sRGB GL_EXT_gpu_program_parameters GL_EXT_gpu_shader4 GL_EXT_multi_draw_arrays GL_EXT_packed_depth_stencil GL_EXT_packed_float GL_EXT_packed_pixels GL_EXT_pixel_buffer_object GL_EXT_point_parameters GL_EXT_provoking_vertex GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shader_integer_mix GL_EXT_shadow_funcs GL_EXT_stencil_two_side GL_EXT_stencil_wrap GL_EXT_subtexture GL_EXT_texture GL_EXT_texture3D GL_EXT_texture_array GL_EXT_texture_buffer_object GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_integer GL_EXT_texture_lod_bias GL_EXT_texture_object GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_texture_sRGB_decode GL_EXT_texture_shared_exponent GL_EXT_texture_snorm GL_EXT_texture_swizzle GL_EXT_transform_feedback GL_EXT_vertex_array GL_IBM_multimode_draw_arrays GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat GL_INGR_blend_func_separate GL_KHR_context_flush_control GL_KHR_debug GL_KHR_no_error GL_KHR_parallel_shader_compile GL_KHR_texture_compression_astc_ldr GL_KHR_texture_compression_astc_sliced_3d GL_MESA_pack_invert GL_MESA_shader_integer_functions GL_MESA_texture_signed_rgba GL_MESA_window_pos GL_NV_blend_square GL_NV_fog_distance GL_NV_light_max_exponent GL_NV_packed_depth_stencil GL_NV_primitive_restart GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_NV_texture_rectangle GL_OES_EGL_image GL_OES_read_format GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_SUN_multi_draw_arrays 16 bit texture channel depth: 16 OpenGL Context thread: 3069386768 OpenGL2.1 No profile, EGL140, GLSL120 Features PBO: 1, RG texture: 1, 16bit texture: 1 resolving gl extensions... select gl api resolver for EGL|OpenGL|OpenGLES using opengl api resolver: EGL context version: 210 glBindRenderbufferEXT @0xb66bba44 glBindFramebufferEXT @0xb66bb7d4 glGenRenderbuffersEXT @0xb66c3ebc glGenFramebuffersEXT @0xb66c3bfc glDeleteFramebuffersEXT @0xb66c0038 glDeleteRenderbuffersEXT @0xb66c03d4 glCheckFramebufferStatusEXT @0xb66bcadc glFramebufferRenderbufferEXT @0xb66c3434 glFramebufferTexture2DEXT @0xb66c3614 glGetFramebufferAttachmentParameterivEXT @0xb66c5418 glGetRenderbufferParameterivEXT @0xb66c7ce8 glRenderbufferStorageEXT @0xb66d5100 glEGLImageTargetTexture2DOES @0xb66c1afc glGenVertexArraysAPPLE @0xb66c40a4 glBindVertexArrayAPPLE @0xb66bbcd8 glDeleteVertexArraysAPPLE @0xb66c063c glTexStorage2DEXT @0xb66d92e4 glMapBufferRangeEXT @0xb66cc708 glRenderbufferStorageMultisampleAPPLE @0xb66d519c glBlitFramebufferEXT @0xb66bc734 glInvalidateFramebuffer @0xb66cad9c gl api resolved. thread@ 3069386768 get Context 0x19a8610/0x1927760 has no local data for key 0x193efe8, create 1(0x199e868) 0x19a8610Context::setLocalData local data count: 1 unknown, tile: 128x128, bpc:0, bpp:0() => yuv420p, bpc:8, bpp:12(8,8,8) get Context 0x19a8610/0x1927760 has no local data for key 0x19964e8, create 1(0x1997498) 0x19a8610Context::setLocalData local data count: 2 texture created: 3 plane linesize 0: padded = 864, effective = 854. theoretical plane size: 854x480. coordinate crop: 0.987269 texture created: 4 plane linesize 1: padded = 432, effective = 427. theoretical plane size: 427x240. coordinate crop: 0.986111 texture created: 5 plane linesize 2: padded = 432, effective = 427. theoretical plane size: 427x240. coordinate crop: 0.986111 crop_w=1.000000=>0.986111 bpp 2, bpc: 8. gl texture parameters: R8 | RED | UNSIGNED_BYTE R8 | RED | UNSIGNED_BYTE R8 | RED | UNSIGNED_BYTE frame color: smpte170m unknown bt470bg narrow. gamma: 2.200000, signal peak: 1.000000 - output color: bt709 bt709 unknown full. gamma: 2.200000, signal peak: 1.000000 rgb primaries matrix: mat<3, 3>( 0.939142 0.0505189 0.0103387 0.0111757 0.97229 0.0165344 -0.007682 -0.00439911 1.01208 ) color transform: mat<4, 4>( 1.16438 0 1.59603 -0.874202 1.16438 -0.391762 -0.812968 0.531668 1.16438 2.01723 0 -1.08563 0 0 0 1 ) EQ: mat<4, 4>( 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 ) material changed: (nil)=>0x985 planar: 1, alpha: 0, texture 2d: 1, external: 0, rg biplane: 0, 16=>8: 0, xyz: 0, primaries diff: 1, trc: 1=>1, tone map: 0 bind attribute: a_Position => 0 bind attribute: a_TexCoords0 => 1 uniform locations: u_Texture0: 2 u_Texture1: 3 u_Texture2: 4 u_Matrix: 0, u_TexMatrix: 1 update built-in uniforms EQ: mat<4, 4>( 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 ) uniform cb.u_colorMatrix: 5 uniform cb.u_GammaIn: 6 uniform cb.u_primMatrix: 7 uniform cb.u_GammaOut: 8 updating geometry... creating vbo... video queue#0 setMin(0) audio queue#1 setMin(0) 0x193cb20 read packet error. sending Packet::End for packet queue in each decoding loop... url: v_calle.mp4 ... 0x193cb20 #video stream#0 end semaphore acquire