Skip to content

A three second gray screen is bug?

Hello, when I switch from one surface to another surface when I play video, there will be a short grey mosaic of three seconds. Is this bug? If it isn't how to solve this,Can you give me some ideas

-------------------------------------------log----------------------------------------------

> 05-30 20:08:38.970 5120-6581/com.yyl.vlc D/VLC: [9f959130/19b5] libvlc decoder: toggling resume
> 05-30 20:08:38.970 5120-5661/com.yyl.vlc D/VLC: [b378feb0/161d] libvlc decoder: toggling resume
> 05-30 20:08:38.980 5120-5120/com.yyl.vlc I/VlcPlayer: StateChanged   =0
>     Paused
> 05-30 20:08:39.035 5120-5120/com.yyl.vlc I/VlcPlayer: onSurfaceTextureDestroyed
> 05-30 20:08:39.037 5120-5660/com.yyl.vlc D/VLC: [9f959130/161c] libvlc decoder: killing decoder fourcc `h264'
>     [9f959130/161c] libvlc decoder: removing module "avcodec"
> 05-30 20:08:39.040 5120-6576/com.yyl.vlc W/art: Native thread exiting without having called DetachCurrentThread (maybe it's going to use a pthread_key_create destructor?): Thread[28,tid=6576,Native,Thread*=0x98fa9f00,peer=0x12e9b0a0,"AWindowHandler"]
> 05-30 20:08:39.043 5120-5660/com.yyl.vlc D/VLC: [aedca490/161c] libvlc generic: saving a free vout
> 05-30 20:08:39.044 5120-5660/com.yyl.vlc D/VLC: [aedca490/161c] libvlc generic: reusing provided vout
>     [97a50230/161c] libvlc video output: destroying useless vout
> 05-30 20:08:39.044 5120-6589/com.yyl.vlc D/VLC: [9e7d2e30/19bd] libvlc vout display: removing module "gles2"
> 05-30 20:08:39.044 5120-6589/com.yyl.vlc E/BufferQueueProducer: [SurfaceTexture-0-5120-3] dequeueBuffer: BufferQueue has been abandoned
> 05-30 20:08:39.044 5120-6589/com.yyl.vlc W/Adreno-EGLSUB: <DequeueBuffer:721>: dequeue native buffer fail: No such device, buffer=0x0, handle=0x0
> 05-30 20:08:39.044 5120-6589/com.yyl.vlc W/Adreno-ES20: <core_glFinish:23>: GL_OUT_OF_MEMORY
> 05-30 20:08:39.045 5120-5120/com.yyl.vlc I/VlcPlayer: Vout0
>     event.type=278
> 05-30 20:08:39.053 5120-6589/com.yyl.vlc D/VLC: [9e9bf730/19bd] libvlc gl: removing module "egl_android"
> 05-30 20:08:39.055 5120-6589/com.yyl.vlc W/art: Native thread exiting without having called DetachCurrentThread (maybe it's going to use a pthread_key_create destructor?): Thread[29,tid=6589,Native,Thread*=0x970fa000,peer=0x12ea00a0,"AWindowHandler"]
> 05-30 20:08:39.056 5120-5660/com.yyl.vlc D/VLC: [97af0030/161c] libvlc spu text: removing module "freetype"
> 05-30 20:08:39.057 5120-5660/com.yyl.vlc D/VLC: [97af16b0/161c] libvlc scale: removing module "yuvp"
>     [97af0a30/161c] libvlc scale: removing module "swscale"

> 05-30 20:15:44.606 5120-5661/com.yyl.vlc W/VLC: [b3494930/161d] libvlc audio output: playback way too late (219692): flushing buffers
> 05-30 20:15:44.608 5120-7382/com.yyl.vlc D/VLC: [97af0a30/1cd6] libvlc decoder: available software decoder output format 0 (yuv420p)
> 05-30 20:15:44.610 5120-5661/com.yyl.vlc D/VLC: [9f958730/161d] libvlc audio resampler: Using 'cr32s' engine
> 05-30 20:15:44.610 5120-7382/com.yyl.vlc D/VLC: [97af02b0/1cd6] libvlc spu text: looking for text renderer module matching "any": 1 candidates
> 05-30 20:15:44.614 5120-5661/com.yyl.vlc W/VLC: [b3494930/161d] libvlc audio output: playback way too early (-437682): playing silence
> 05-30 20:15:44.614 5120-7382/com.yyl.vlc D/VLC: [97ab5830/1cd6] libvlc stream: creating access: file:///system/etc/fonts.xml
>     [97ab5830/1cd6] libvlc stream:  (path: /system/etc/fonts.xml)
> 05-30 20:15:44.614 5120-5661/com.yyl.vlc D/VLC: [b3494930/161d] libvlc audio output: inserting 21008 zeroes
> 05-30 20:15:44.614 5120-7382/com.yyl.vlc D/VLC: [97ab5830/1cd6] libvlc stream: looking for access module matching "file": 20 candidates
>     [97ab5830/1cd6] libvlc stream: using access module "filesystem"
>     [97ab58f0/1cd6] libvlc stream: looking for stream_filter module matching "prefetch,cache_read": 26 candidates
> 05-30 20:15:44.615 5120-7382/com.yyl.vlc D/VLC: [97ab58f0/1cd6] libvlc stream: Using stream method for AStream*
>     [97ab58f0/1cd6] libvlc stream: starting pre-buffering
>     [97ab58f0/1cd6] libvlc stream: received first data after 0 ms
>     [97ab58f0/1cd6] libvlc stream: pre-buffering done 1024 bytes in 0s - 5235 KiB/s
>     [97ab58f0/1cd6] libvlc stream: using stream_filter module "cache_read"
>     [97ab59b0/1cd6] libvlc stream: looking for stream_filter module matching "any": 26 candidates
> 05-30 20:15:44.616 5120-7382/com.yyl.vlc D/VLC: [97ab59b0/1cd6] libvlc stream: Trying Lua scripts in /data/user/0/com.yyl.vlc/app_vlc/.share/lua/playlist
>     [97ab59b0/1cd6] libvlc stream: Trying Lua scripts in /data/app/com.yyl.vlc-1/lib/arm/vlc/lua/playlist
>     [97ab59b0/1cd6] libvlc stream: Trying Lua scripts in /system/usr/share/lua/playlist
>     [97ab59b0/1cd6] libvlc stream: no stream_filter modules matched
>     [a9bae990/1cd6] libvlc xml reader: looking for xml reader module matching "any": 1 candidates
> 05-30 20:15:44.617 5120-7382/com.yyl.vlc D/VLC: [a9bae990/1cd6] libvlc xml reader: using xml reader module "xml"
> 05-30 20:15:44.623 5120-7382/com.yyl.vlc D/VLC: [97ab58f0/1cd6] libvlc stream: removing module "cache_read"
>     [97ab5830/1cd6] libvlc stream: removing module "filesystem"
> 05-30 20:15:44.625 5120-7382/com.yyl.vlc D/VLC: [97af02b0/1cd6] libvlc spu text: using text renderer module "freetype"
>     [97af1bb0/1cd6] libvlc scale: looking for video converter module matching "any": 16 candidates
> 05-30 20:15:44.631 5120-7382/com.yyl.vlc D/VLC: [97af1bb0/1cd6] libvlc scale: 32x32 (32x32) chroma: YUVA -> 16x16 (16x16) chroma: RGBA with scaling using Bicubic (good quality)
>     [97af1bb0/1cd6] libvlc scale: using video converter module "swscale"
>     [97af2830/1cd6] libvlc scale: looking for video converter module matching "any": 16 candidates
>     [97af2830/1cd6] libvlc scale: YUVP to YUVA converter
>     [97af2830/1cd6] libvlc scale: using video converter module "yuvp"
> 05-30 20:15:44.632 5120-7382/com.yyl.vlc D/VLC: [a9d42f30/1cd6] libvlc video output: Deinterlacing available
>     [a9d42f30/1cd6] libvlc video output: deinterlace -1, mode auto, is_needed 0
>     [a9d93b30/1cd6] libvlc window: looking for vout window module matching "any": 1 candidates
> 05-30 20:15:44.633 5120-7382/com.yyl.vlc D/VLC: [a9d93b30/1cd6] libvlc window: InitJNIFields success
>     [a9d93b30/1cd6] libvlc window: resized to 1080x607
> 05-30 20:15:44.637 5120-7382/com.yyl.vlc D/VLC: [a9d93b30/1cd6] libvlc window: using vout window module "android_window"
> 05-30 20:15:44.637 5120-7389/com.yyl.vlc D/VLC: [a9d42f30/1cdd] libvlc video output: Opening vout display wrapper
>     [9e7d2e30/1cdd] libvlc vout display: looking for vout display module matching "gles2,none": 5 candidates
> 05-30 20:15:44.637 5120-7389/com.yyl.vlc E/VLC: [a9d93b30/1cdd] libvlc window: request 1 not implemented
> 05-30 20:15:44.638 5120-7389/com.yyl.vlc D/VLC: [9e7d2e30/1cdd] libvlc vout display: VoutDisplayEvent 'resize' 1080x607
>     [9f064230/1cdd] libvlc gl: looking for opengl es2 module matching "any": 1 candidates
> 05-30 20:15:44.639 5120-7389/com.yyl.vlc D/VLC: [9f064230/1cdd] libvlc gl: EGL version 1.4 Android META-EGL by Android
>     [9f064230/1cdd] libvlc gl:  extensions: EGL_KHR_get_all_proc_addresses EGL_ANDROID_presentation_time EGL_KHR_swap_buffers_with_damage EGL_KHR_image EGL_KHR_image_base EGL_KHR_lock_surface EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_fence_sync EGL_KHR_create_context EGL_EXT_create_context_robustness EGL_ANDROID_image_native_buffer EGL_KHR_wait_sync EGL_ANDROID_recordable EGL_KHR_partial_update 
> 05-30 20:15:44.649 5120-7389/com.yyl.vlc D/VLC: [9f064230/1cdd] libvlc gl: using opengl es2 module "egl_android"
> 05-30 20:15:44.663 5120-7389/com.yyl.vlc D/VLC: [9e7d2e30/1cdd] libvlc vout display: using vout display module "gles2"
> 05-30 20:15:44.665 5120-7389/com.yyl.vlc D/VLC: [a9d42f30/1cdd] libvlc video output: original format sz 640x386, of (0,0), vsz 640x360, 4cc I420, sar 1:1, msk r0x0 g0x0 b0x0
> 05-30 20:15:44.665 5120-7389/com.yyl.vlc E/VLC: [a9d93b30/1cdd] libvlc window: request 0 not implemented
>     [a9d93b30/1cdd] libvlc window: request 0 not implemented
> 05-30 20:15:44.666 5120-7382/com.yyl.vlc D/VLC: [97af02b0/1cd6] libvlc spu text: removing module "freetype"
>     [97af02b0/1cd6] libvlc spu text: looking for text renderer module matching "any": 1 candidates
>     [97ab5770/1cd6] libvlc stream: creating access: file:///system/etc/fonts.xml
> 05-30 20:15:44.666 5120-7389/com.yyl.vlc E/VLC: [a9d93b30/1cdd] libvlc window: request 1 not implemented
> 05-30 20:15:44.666 5120-7382/com.yyl.vlc D/VLC: [97ab5770/1cd6] libvlc stream:  (path: /system/etc/fonts.xml)
>     [97ab5770/1cd6] libvlc stream: looking for access module matching "file": 20 candidates
> 05-30 20:15:44.667 5120-7382/com.yyl.vlc D/VLC: [97ab5770/1cd6] libvlc stream: using access module "filesystem"
>     [97ab5830/1cd6] libvlc stream: looking for stream_filter module matching "prefetch,cache_read": 26 candidates
>     [97ab5830/1cd6] libvlc stream: Using stream method for AStream*
>     [97ab5830/1cd6] libvlc stream: starting pre-buffering
>     [97ab5830/1cd6] libvlc stream: received first data after 0 ms
>     [97ab5830/1cd6] libvlc stream: pre-buffering done 1024 bytes in 0s - 11494 KiB/s
>     [97ab5830/1cd6] libvlc stream: using stream_filter module "cache_read"
>     [97ab59b0/1cd6] libvlc stream: looking for stream_filter module matching "any": 26 candidates
>     [97ab59b0/1cd6] libvlc stream: Trying Lua scripts in /data/user/0/com.yyl.vlc/app_vlc/.share/lua/playlist
>     [97ab59b0/1cd6] libvlc stream: Trying Lua scripts in /data/app/com.yyl.vlc-1/lib/arm/vlc/lua/playlist
>     [97ab59b0/1cd6] libvlc stream: Trying Lua scripts in /system/usr/share/lua/playlist
>     [97ab59b0/1cd6] libvlc stream: no stream_filter modules matched
>     [a9bae990/1cd6] libvlc xml reader: looking for xml reader module matching "any": 1 candidates
>     [a9bae990/1cd6] libvlc xml reader: using xml reader module "xml"
> 05-30 20:15:44.672 5120-7382/com.yyl.vlc D/VLC: [97ab5830/1cd6] libvlc stream: removing module "cache_read"
>     [97ab5770/1cd6] libvlc stream: removing module "filesystem"
>     [97af02b0/1cd6] libvlc spu text: using text renderer module "freetype"
> 05-30 20:15:44.672 5120-5120/com.yyl.vlc I/VlcPlayer: Vout1
> 05-30 20:15:45.134 5120-7389/com.yyl.vlc D/VLC: [a9d42f30/1cdd] libvlc video output: picture might be displayed late (missing 5 ms)
> 05-30 20:15:45.672 5120-7389/com.yyl.vlc D/VLC: [9e7d2e30/1cdd] libvlc vout display: auto hiding mouse cursor
> 05-30 20:15:45.672 5120-7389/com.yyl.vlc E/VLC: [a9d93b30/1cdd] libvlc window: request 3 not implemented
> 05-30 20:15:47.606 5120-5660/com.yyl.vlc D/VLC: [a97d6830/161c] libvlc input: EOF reached
> 05-30 20:15:47.854 5120-5660/com.yyl.vlc D/VLC: [a97d6830/161c] libvlc input: waiting decoder fifos to empty
> 05-30 20:15:47.955 5120-5660/com.yyl.vlc D/VLC: [a97d6830/161c] libvlc input: waiting decoder fifos to empty
Edited by yuyunlong