Hi guys,
I have the same issuer as KlotX. The difference is that I have another configuration:
Raspberry Pi 4 (4GB)
Kodi Leia 18.4
Audio Video Receiver connected via HDMI
TVHeadend backend
The problem occurs when playing a tv-stream from tvheadend using the tvheadend plugin. It is exactly as KlotX mentions. After the appearence of the following message in the kodi.log:
Quote:ERROR: CMMALVideo::dec_control_port_cb Error (status=3 EINVAL)
the stream keeps playing. You do not notice that there is a problem. But when you want to switch channels or stop the playback all you get is a blank screen.
So it looks like there is an error in the way the error (status=2 EINVAL) is handled by the software.
In my case it only occurs when playing an video stream with AC3 audio enabled. If I switch to MP2 the problem does not occur, but the I have no multi-channel audio anymore.
I do have a log with debugging information, but is approx 45 MB in size. In the previous posts there seems to be an issue with the size of the log file. 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:
Quote: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:estroyDeinterlace
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
So it looks like the stream is still playing (the dropped packet lines)?
I am rather dissapointed because on my Raspberry Pi 3B+ this problem did not occur.
Can someone have a look at the problem?