[mythtv-users] Another issue w/ Mythfrontend v32 on the Nvidia Shield

Peter Bennett pb.mythtv at gmail.com
Sat Apr 25 15:22:12 UTC 2020



On 4/24/20 7:48 PM, Michael wrote:
> Hello Again,
>
>
> I am still working through several issues I have found since upgrading 
> my shield to v31.
>
>
> Last night, I was watching video and the video would frequently 
> stop.   If I press pause/unpause, it would start to play again. 
> However, if I just left it paused, it would eventually give this 
> message:  Video Frame Buffering Failed Too Many Times..    The freezes 
> happen randomly every 5-10 seconds making it frustrating to watch.
>
>
> Here are the frontend log messages.
>
>
> 4-24 15:53:18.744   314   339 I mfe     : mythplayer.cpp:789:OpenFile  
> Player(3): Opening 'myth://Videos@host/TV/<show>.mkv'
> 04-24 15:53:19.445   314   339 I mfe     : 
> decoders/avformatdecoder.cpp:2037:ScanStreams  AFD: codec AAC has 2 
> channels
> 04-24 15:53:19.446   314   339 I mfe     : 
> decoders/avformatdecoder.cpp:2539:OpenAVCodec  AFD: Opened codec 
> 0x2e1868fe00, id(AAC) type(Audio)
> 04-24 15:53:19.446   314   339 I mfe     : 
> opengl/mythmediacodecinterop.cpp:102:Initialise MediaCodecInterop: 
> Created Android Surface
> 04-24 15:53:19.446   314   339 I mfe     : 
> decoders/mythmediacodeccontext.cpp:210:InitialiseDecoder MediaCodec: 
> Created MediaCodec hardware device context
> 04-24 15:53:19.446   314   339 I mfe     : 
> decoders/avformatdecoder.cpp:2449:ScanStreams  AFD: Using mediacodec 
> for video decoding
> 04-24 15:53:19.446   314   339 I mfe     : 
> decoders/avformatdecoder.cpp:2539:OpenAVCodec  AFD: Opened codec 
> 0x2e18690300, id(H264) type(Video)
> 04-24 15:53:19.447   314   339 I mfe     : 
> audio/audiooutputbase.cpp:775:Reconfigure  AOBase: Opening audio 
> device 'AudioTrack:' ch 6(2) sr 48000 sf 32 bit floating point reenc 0
> 04-24 15:53:19.547   314   339 I mfe     : 
> opengl/mythopenglinterop.cpp:159:GetInteropType  OpenGLInterop: 
> Rendering supported for frame type 'MediaCodec' with MediaCodec Surface
> 04-24 15:53:19.547   314   339 I mfe     : 
> opengl/mythpainteropengl.cpp:74:ClearCache  Clearing OpenGL painter 
> cache.
> 04-24 15:53:19.648   314   339 I mfe     : 
> mythvideoout.cpp:394:SetDeinterlacing  VideoOutput: SetDeinterlacing 
> (Doublerate 1): Single Medium|CPU|GLSL|DRIVER Double 
> Medium|CPU|GLSL|DRIVER
> 04-24 15:53:19.648   314   339 I mfe     : 
> tv_play.cpp:5743:StartPlayer  TV::StartPlayer(): Created player.
> 04-24 15:53:19.648   314   339 I mfe     : 
> tv_play.cpp:2439:HandleStateChange  TV::HandleStateChange(): Changing 
> from None to WatchingVideo
> 04-24 15:53:19.648   314   339 I mfe     : 
> tv_play.cpp:2525:HandleStateChange  TV::HandleStateChange(): Main UI 
> disabled.
> 04-24 15:53:19.649   314   339 I mfe     : tv_play.cpp:391:StartTV  
> TV::StartTV(): Entering main playback loop.
> 04-24 15:53:19.649   314   339 I mfe     : 
> screensaver-android.cpp:28:Disable  ScreenSaverAndroid: disable
> 04-24 15:53:19.649   314   339 I mfe     : 
> screensaver-android.cpp:30:Disable  ScreenSaverAndroid: disable 1
> 04-24 15:53:19.749   314   339 W mfe     : 
> opengl/mythopenglvideo.cpp:516:SetupFrameFormat  GLVid: New frame 
> format: None:None 1920x1080 (Tex: 2D) -> MediaCodec:RGBA32 1920x1080 
> (Tex: OES)
> 04-24 15:53:19.749   314   339 W mfe     : 
> opengl/mythmediacodecinterop.cpp:159:Acquire  MediaCodecInterop: Timed 
> out waiting for frame update
> 04-24 15:53:20.350   314   339 I mfe     : 
> mythplayer.cpp:2025:PrebufferEnoughFrames  Player(3): Waited 104ms for 
> video buffers AAAAAAUP
> 04-24 15:53:20.751   314   339 W mfe     : 
> opengl/mythmediacodecinterop.cpp:159:Acquire  MediaCodecInterop: Timed 
> out waiting for frame update
> 04-24 15:53:21.353   314   339 W mfe     : 
> opengl/mythmediacodecinterop.cpp:159:Acquire  MediaCodecInterop: Timed 
> out waiting for frame update
> 04-24 15:53:25.959   314   339 W mfe     : 
> opengl/mythmediacodecinterop.cpp:159:Acquire  MediaCodecInterop: Timed 
> out waiting for frame update
> 04-24 15:53:30.464   314   339 W mfe     : 
> opengl/mythmediacodecinterop.cpp:159:Acquire  MediaCodecInterop: Timed 
> out waiting for frame update
> 04-24 15:53:33.770   314   339 W mfe     : 
> opengl/mythmediacodecinterop.cpp:159:Acquire  MediaCodecInterop: Timed 
> out waiting for frame update
> 04-24 15:53:36.974   314   339 W mfe     : 
> opengl/mythmediacodecinterop.cpp:159:Acquire  MediaCodecInterop: Timed 
> out waiting for frame update
> 04-24 15:53:37.274   314   339 W mfe     : 
> opengl/mythmediacodecinterop.cpp:159:Acquire  MediaCodecInterop: Timed 
> out waiting for frame update
> 04-24 15:53:39.578   314   339 W mfe     : 
> opengl/mythmediacodecinterop.cpp:159:Acquire  MediaCodecInterop: Timed 
> out waiting for frame update
> 04-24 15:53:42.282   314   339 W mfe     : 
> opengl/mythmediacodecinterop.cpp:159:Acquire  MediaCodecInterop: Timed 
> out waiting for frame update
> 04-24 15:53:44.085   314   339 W mfe     : 
> opengl/mythmediacodecinterop.cpp:159:Acquire  MediaCodecInterop: Timed 
> out waiting for frame update
> 04-24 15:53:46.188   314   339 W mfe     : 
> opengl/mythmediacodecinterop.cpp:159:Acquire  MediaCodecInterop: Timed 
> out waiting for frame update
> 04-24 15:53:48.291   314   339 W mfe     : 
> opengl/mythmediacodecinterop.cpp:159:Acquire  MediaCodecInterop: Timed 
> out waiting for frame update
> 04-24 15:53:48.792   314   339 W mfe     : 
> opengl/mythmediacodecinterop.cpp:159:Acquire  MediaCodecInterop: Timed 
> out waiting for frame update
> 04-24 15:53:50.795   314   339 W mfe     : 
> opengl/mythmediacodecinterop.cpp:159:Acquire  MediaCodecInterop: Timed 
> out waiting for frame update
> 04-24 15:53:53.399   314   339 W mfe     : 
> opengl/mythmediacodecinterop.cpp:159:Acquire  MediaCodecInterop: Timed 
> out waiting for frame update
> 04-24 15:53:55.302   314   339 W mfe     : 
> opengl/mythmediacodecinterop.cpp:159:Acquire  MediaCodecInterop: Timed 
> out waiting for frame update
> 04-24 15:53:58.607   314   339 W mfe     : 
> opengl/mythmediacodecinterop.cpp:159:Acquire  MediaCodecInterop: Timed 
> out waiting for frame update
> 04-24 15:54:00.510   314   339 W mfe     : 
> opengl/mythmediacodecinterop.cpp:159:Acquire  MediaCodecInterop: Timed 
> out waiting for frame update
> 04-24 15:54:00.711   314   339 W mfe     : 
> opengl/mythmediacodecinterop.cpp:159:Acquire  MediaCodecInterop: Timed 
> out waiting for frame update
> 04-24 15:54:02.213   314   339 I mfe     : 
> mythplayer.cpp:2025:PrebufferEnoughFrames  Player(3): Waited 105ms for 
> video buffers AAAAPUAA
> 04-24 15:54:02.313   314   339 I mfe     : 
> mythplayer.cpp:2025:PrebufferEnoughFrames  Player(3): Waited 210ms for 
> video buffers AAAAPUAA
> 04-24 15:54:02.414   314   339 I mfe     : 
> mythplayer.cpp:2025:PrebufferEnoughFrames  Player(3): Waited 315ms for 
> video buffers AAAAPUAA
> 04-24 15:54:02.514   314   339 I mfe     : 
> mythplayer.cpp:2025:PrebufferEnoughFrames  Player(3): Waited 419ms for 
> video buffers AAAAPUAA
> 04-24 15:54:02.615   314   339 I mfe     : 
> mythplayer.cpp:2025:PrebufferEnoughFrames  Player(3): Waited 520ms for 
> video buffers AAAAPUAA
> 04-24 15:54:02.715   314   339 I mfe     : 
> mythplayer.cpp:2025:PrebufferEnoughFrames  Player(3): Waited 625ms for 
> video buffers AAAAPUAA
> 04-24 15:54:02.816   314   339 I mfe     : 
> mythplayer.cpp:2025:PrebufferEnoughFrames  Player(3): Waited 727ms for 
> video buffers AAAAPUAA
> 04-24 15:54:02.916   314   339 I mfe     : 
> mythplayer.cpp:2025:PrebufferEnoughFrames  Player(3): Waited 832ms for 
> video buffers AAAAPUAA
> 04-24 15:54:03.016   314   339 I mfe     : 
> mythplayer.cpp:2014:PrebufferEnoughFrames  Player(3): To see more 
> buffering messages use -v playback
> 04-24 15:54:32.056   314   339 E mfe     : 
> mythplayer.cpp:2072:PrebufferEnoughFrames  Player(3): Waited too long 
> for decoder to fill video buffers. Exiting..
> 04-24 15:54:32.157   314   339 I mfe     : 
> tv_play.cpp:2187:HandleStateChange  TV::HandleStateChange(): 
> Attempting to change from WatchingVideo to None
> 04-24 15:54:32.257   314   339 W mfe     : 
> mythplayer.cpp:3123:PauseDecoder  Player(3): Waited 100ms for decoder 
> to pause
> 04-24 15:54:42.104   314   339 W mfe     : 
> mythplayer.cpp:3123:PauseDecoder  Player(3): Waited 100ms for decoder 
> to pause
> 04-24 15:54:42.204   314   339 W mfe     : 
> mythplayer.cpp:3123:PauseDecoder  Player(3): Waited 100ms for decoder 
> to pause
> 04-24 15:54:42.204   314   339 I mfe     : 
> opengl/mythopenglinterop.cpp:265:DeleteTextures  OpenGLInterop: 
> Deleted 1 textures in 1 groups
> 04-24 15:54:42.206   314   339 I mfe     : 
> tv_play.cpp:2439:HandleStateChange  TV::HandleStateChange(): Changing 
> from WatchingVideo to None
> 04-24 15:54:42.206   314   339 I mfe     : tv_play.cpp:393:StartTV  
> TV::StartTV(): Exiting main playback loop.
> 04-24 15:54:42.206   314   339 I mfe     : 
> screensaver-android.cpp:50:Restore  ScreenSaverAndroid: restore
> 04-24 15:54:42.207   314   339 I mfe     : 
> screensaver-android.cpp:52:Restore  ScreenSaverAndroid: restore 1
>
>
> The same video seems to play fine with leanfrontend or plex on the 
> shield.
>
>
> I tried changing the audio read ahead to 200 or 300 to see if that 
> would help, but the issue remained the same.
>
>
> Any thoughts on this?
>
>
> Michael

The "interop" stuff was added in v31 by Mark Kendall and I am afraid I 
do not understand it. I suggest you bring this to Mark's attention.

In the meantime as a workaround you can try changing the playback 
profile to use "mediacodec decode-only" or "standard".

Peter


More information about the mythtv-users mailing list