Hi ,
I have an issue with my libreelec installation when watching TV.
My configuration is:
Raspberry Pi 4 (4GB)
Libreelec 9.1.501
Kodi Leia 18.4
Audio Video Receiver connected via HDMI
TVHeadend backend
The problem occurs when playing a stream from tvheadend using the tvheadend plugin. After the appearence of the following error message in the kodi.log:
One does not notice that there is a problem, everything keeps playing. But when you switch channels or stop the playback, all you get is a blank screen.
However, in the background the stream keeps on playing (in the tvheadend backend the stream is still active).
To me it seems that there is an problem in the way the error (status=3 EINVAL) is handled by the software.
In my case it mainly occurs when playing an video stream with AC3 audio enabled. If I switch to MP2 audio the problem occurs less frequent, but in that case I have no multi-channel audio anymore.
I do have a log with debugging information, but it is approx 45 MB in size. So please let me know what you want me to do with it.
The logfile contains the following info at the point the stream is stopped:
2019-09-24 15:13:30.427 T:3011279328 DEBUG: HandleKey: stop (0xf0bc) pressed, action is Stop
2019-09-24 15:13:30.427 T:3011279328 NOTICE: CVideoPlayer::CloseFile()
2019-09-24 15:13:30.427 T:3011279328 DEBUG: DeleteRenderer - deleting renderer
2019-09-24 15:13:30.427 T:3011279328 DEBUG: CMMALRenderer::~CMMALRenderer
2019-09-24 15:13:30.428 T:3011279328 DEBUG: CMMALRenderer:Big GrinestroyDeinterlace
2019-09-24 15:13:30.432 T:3011279328 DEBUG: CMMALRenderer::UnInitMMAL
2019-09-24 15:13:30.433 T:2718200688 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - Dropped packet with unknown stream index 1004
2019-09-24 15:13:30.435 T:2718200688 DEBUG: Previous line repeats 1 times.
2019-09-24 15:13:30.435 T:2718200688 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - Dropped packet with unknown stream index 1001
2019-09-24 15:13:30.435 T:2718200688 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - Dropped packet with unknown stream index 1004
2019-09-24 15:13:30.435 T:2718200688 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - Dropped packet with unknown stream index 1001
2019-09-24 15:13:30.436 T:2718200688 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - Dropped packet with unknown stream index 1002
2019-09-24 15:13:30.437 T:2519708528 DEBUG: Previous line repeats 5 times.
2019-09-24 15:13:30.437 T:2519708528 DEBUG: CMMALVideo::dec_input_port_cb port:0x9c3b30c0 buffer 0x9f7d27d0, len 0 cmd:0
2019-09-24 15:13:30.437 T:2519708528 DEBUG: CMMALVideo::dec_output_port_cb - omvb:0x9c9d76f8 mmal:0xafd47a70 len:128 dts:-9223372036854.775 pts:932.416 flags:30004:30000 pool:0x9c54d2ec 1920x1080 (1920x1088) 1920x1080 (1920x1088) enc:OPQV
2019-09-24 15:13:30.437 T:2486977392 DEBUG: CMMALVideo::GetPicture - ret(3) pics(0) inputs(1) slept(14) queued(0.16) (932.54:932.42) full(0) flags(0) preroll(0) eos(0 46555/-1)
2019-09-24 15:13:30.437 T:2519708528 DEBUG: CMMALPool::Configure pool:0x9c9c6cc0 1920x1080 (1920x1088) pix:-1 size:128 fmt:OPQV
2019-09-24 15:13:30.447 T:2502923120 DEBUG: CMMALPool::~CMMALPool Destroying pool 0x9b248230 for port vc.ril.image_fx:out:0(I420)
2019-09-24 15:13:30.447 T:2519708528 DEBUG: CMMALVideo::dec_output_port_cb - omvb:0x9c9d78d0 mmal:0x9c763100 len:128 dts:-9223372036854.775 pts:932.456 flags:30004:30000 pool:0x9c54d2ec 1920x1080 (1920x1088) 1920x1080 (1920x1088) enc:OPQV
2019-09-24 15:13:30.447 T:2519708528 DEBUG: CMMALPool::Configure pool:0x9c9c6cc0 1920x1080 (1920x1088) pix:-1 size:128 fmt:OPQV
2019-09-24 15:13:30.461 T:2502923120 DEBUG: CMMALRenderer::Run - stopping
2019-09-24 15:13:30.461 T:2502923120 DEBUG: Thread MMALProcess 2502923120 terminating
2019-09-24 15:13:30.461 T:3011279328 NOTICE: VideoPlayer: waiting for threads to exit
2019-09-24 15:13:30.461 T:2486977392 DEBUG: CMMALVideo::SetCodecControl 0->40000000
2019-09-24 15:13:30.462 T:2486977392 DEBUG: CMMALVideo::AddData - 0x9f7d27d0 1296 /0 dts:932.516 pts:932.556 flags:4 ready_queue(2)
2019-09-24 15:13:30.462 T:2486977392 INFO: CMMALVideo::GetPicture dts:0.000 pts:932.416 flags:0:30004 MMALBuffer:0xafd47a70 mmal_buffer:0x9c9d76f8
2019-09-24 15:13:30.462 T:2486977392 DEBUG: CMMALVideo::GetPicture - ret(4) pics(1) inputs(0) slept( 0) queued(0.10) (932.56:932.46) full(0) flags(40000000) preroll(0) eos(0 46556/-1)
2019-09-24 15:13:30.462 T:2519708528 DEBUG: CMMALVideo::dec_input_port_cb port:0x9c3b30c0 buffer 0x9f7d27d0, len 0 cmd:0
2019-09-24 15:13:30.484 T:2486977392 INFO: CMMALVideo::GetPicture dts:0.000 pts:932.456 flags:0:30004 MMALBuffer:0x9c763100 mmal_buffer:0x9c9d78d0
2019-09-24 15:13:30.484 T:2486977392 DEBUG: CMMALVideo::GetPicture - ret(4) pics(0) inputs(1) slept( 0) queued(0.10) (932.56:932.46) full(0) flags(40000000) preroll(0) eos(0 46556/-1)
2019-09-24 15:13:30.488 T:2416960368 NOTICE: CVideoPlayer::OnExit()
2019-09-24 15:13:30.488 T:2416960368 NOTICE: Closing stream player 1
2019-09-24 15:13:30.489 T:2416960368 NOTICE: Waiting for audio thread to exit
2019-09-24 15:13:30.491 T:2718200688 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - Dropped packet with unknown stream index 1001
2019-09-24 15:13:30.491 T:2718200688 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - Dropped packet with unknown stream index 1004
2019-09-24 15:13:30.491 T:2718200688 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - Dropped packet with unknown stream index 1001
2019-09-24 15:13:30.491 T:2718200688 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - Dropped packet with unknown stream index 1004
2019-09-24 15:13:30.492 T:2718200688 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - Dropped packet with unknown stream index 1001
Display More
From the log file you might also conclude that the stream is still playing (the dropped packet lines).
I hope someone can have a look at this issue, because restarting kodi for every channel switch is not a nice option:).
I also have a Raspberry Pi 3B+ which does not have the problem.
Kind regards