xbmc / xbmc

Kodi is an award-winning free and open source home theater/media center software and entertainment hub for digital media. With its beautiful interface and powerful skinning engine, it's available for Android, BSD, Linux, macOS, iOS, tvOS and Windows.
https://kodi.tv/
Other
18.25k stars 6.28k forks source link

No sound on tv switch off/on #25364

Open MMan1982 opened 2 months ago

MMan1982 commented 2 months ago

Bug report

Describe the bug

While playing switching off tv,playback paused(cec setting) and when switch on again and press play will be no sound! When i restart the same media again sometimes came back. Clean install,kodi 21,raspbian latest.

Expected Behavior

It work with sound.

Actual Behavior

No sound.

Possible Fix

To Reproduce

Start Playing. Switch off tv. Switch on tv,resume playing.

  1. Start playing
  2. Switch off tv while playing
  3. Switch on tv,resume playing.

Debuglog

The debuglog can be found here:

Screenshots

Here are some links or screenshots to help explain the problem:

Additional context or screenshots (if appropriate)

Here is some additional context or explanation that might help:

Your Environment

Used Operating system: Raspbian latest,clean install kodi.log

note: Once the issue is made we require you to update it with new information or Kodi versions should that be required. Team Kodi will consider your problem report however, we will not make any promises the problem will be solved.

aik commented 1 month ago

Same with amazon firestick 4k max + Sony TV KD-55X9300D + Kodi v21.0. Either restarting kodi helps, or going to audio settings of the current media and switching "passthrough" (which, I suspect, just a kick for the kodi audio subsystem). I am attaching the log but the only meaningful things there seem to be:

2024-07-23 22:48:33.594 T:5685    error <general>: CDVDVideoCodecAndroidMediaCodec::Open Failed to create Android MediaCodec
2024-07-23 22:48:33.818 T:5685    error <general>: ffmpeg[0x9a5bd430]: [NULL] low_delay flag set incorrectly, clearing it
2024-07-23 22:48:33.833 T:5701    error <general>: ffmpeg[0x0]: [mpeg4] low_delay flag set incorrectly, clearing it
2024-07-23 22:48:40.635 T:7183    error <general>: AddOnLog: pvr.hts: unable to connect to 127.0.0.1:9982
...
2024-07-23 22:49:11.093 T:5902    error <general>: CDVDVideoCodecAndroidMediaCodec::Open Failed to create Android MediaCodec
2024-07-23 22:49:11.241 T:5907    error <general>: ProcessDecoderOutput - failed to create audio renderer
2024-07-23 22:49:13.153 T:7183    error <general>: AddOnLog: pvr.hts: unable to connect to 127.0.0.1:9982
...
2024-07-23 22:49:35.748 T:5902    error <general>: CDVDVideoCodecAndroidMediaCodec::Open Failed to create Android MediaCodec
2024-07-23 22:49:35.996 T:5902    error <general>: ffmpeg[0x9a5bfc30]: [NULL] low_delay flag set incorrectly, clearing it
2024-07-23 22:49:36.003 T:6030    error <general>: ffmpeg[0x0]: [mpeg4] low_delay flag set incorrectly, clearing it

kodi.log