Missing center audio channel on 5.1 decode

Hi there,

In my setup I have a Vero 4K connected with the TV with HDMI for just image and connected to my audio system with SPDIF for just audio. My audio device is able to decode DTS and AC3 audio. For other formats I have to rely on Vero 4K to do the decoding. This always use to work just great with my Raspberry Pi with OSMC installed.

Anyway, now when I play a movie with let’s say FLAC 5.1 audio, which cannot be decoded by my audio system, then I hear some audio, but not all channels. It sounds like I hear only the rear channels, through the front speakers. But it could also be that I have all channels except the center channel. There is no speech, because the center channel is missing. When I switch the decoded audio to 2.0 or even 4.1 channels, then all works fine. When using passthrough then it’s also working fine.

Any suggestions on how to fix this would be highly appreciated :slight_smile:

Thanks :blush:

Similar to this?

From the movie playback interface, does toggling e.g. “stereo downmix” on and off, restore the full 5.1 channel output?

Do you have the “Player → Videos → Adjust display refresh rate” set to “on start/stop”, or perhaps “always”? Does the problem go away after setting it to “off”?

Thanks for your answer :slight_smile:

I’m not sure if it’s related. Actually in my case I don’t want any downmixing or upmixing, since the source is 5.1 channels and my audio system is also 5.1 channels. So I guess the Vero should just decode it and play it as is over SPDIF.

During playback, switching stereo upmix on (and off) does not bring back full 5.1 audio, unfortunately.

I have it set to off, the default setting. Changing it does not affect the issue.

Hi,

FLAC can’t be passed through, so it needs to be decoded and passed as LPCM.

Have you selected HDMI output instead of PCM (which is default) and configured your audio settings properly?

Some devices also don’t handle LPCM for multiple channels properly. So enabling AC3 transcoding will definitely resolve this for you, and you won’t hear a difference in audio quality.

Make sure Expert Settings is enabled so you can see everything

Sam

Hi Sam,

Thanks for your answer :blush:

[quote=“sam_nazarko, post:4, topic:37112, full:true”]
FLAC can’t be passed through, so it needs to be decoded and passed as LPCM.[/quote]

Yes I understand. This was just an example of a stream with transcoding being used. My problem exists on every audio stream with more than two channels, that is being transcoded by Vero. So when I disable passthrough completely and change the number of channels to 5.1 then all (5.1 or 7.1) audio streams are bad, including plain DTS and AC3 streams.

Passthrough fixes this problem for DTS and AC3 streams, but not for others, which are not available for passthrough, or just not supported by my audio device.

Yes I’m using the AML-M8AUDIO, HDMI device. I’ve tried a lot of settings and combinations, but I cannot get it to work without downmixing the streams to an even number. By the way, making it 4.1 does seem to work for speech (center channel), but it still doesn’t give me surround sound.

I’m pretty sure that my audio device is not the problem, because on Raspberry Pi with the latest OSMC version and a HifiBerry Digi+ I have no problems at all, transcoding and passthrough both work without any issues.

This will likely be a configuration issue.
LPCM5.1/7.1 works fine here.

Please can you post a screenshot of expert mode audio settings and debug log?
I’d also like to see the output of cat /sys/class/amhdmitx/amhdmitx0/aud_cap

I get

CodingType MaxChannels SamplingFreq SampleSize
PCM, 2 ch, 32/44.1/48/88.2/96/176.4/192 kHz, 16/20/24 bit
PCM, 6 ch, 32/44.1/48/88.2/96/176.4/192 kHz, 16/20/24 bit
PCM, 8 ch, 32/44.1/48/88.2/96/176.4/192 kHz, 16/20/24 bit
AC-3, 6 ch, 32/44.1/48 kHz, 16/24 bit
DTS, 6 ch, 32/44.1/48/88.2/96 kHz,  bit
Dobly_Digital+, 8 ch, 44.1/48 kHz,  bit
MAT, 8 ch, 48/96/192 kHz,  bit
DTS-HD, 8 ch, 44.1/48/88.2/96/176.4/192 kHz, 16 bit

on my test setup

Sam

And hereby the debug log when starting the movie (bad audio):

00:55:28.288 T:4110807040   DEBUG: Loading settings for nfs://10.0.0.1/The.Invisible.Guest.mkv
00:55:28.300 T:4110807040   DEBUG: CPlayerCoreFactory::GetPlayers(nfs://10.0.0.1/The.Invisible.Guest.mkv)
00:55:28.301 T:4110807040   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules
00:55:28.301 T:4110807040   DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: system rules
00:55:28.301 T:4110807040   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: mms/udp
00:55:28.301 T:4110807040   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout
00:55:28.301 T:4110807040   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtmp
00:55:28.301 T:4110807040   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtsp
00:55:28.301 T:4110807040   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams
00:55:28.301 T:4110807040   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvd
00:55:28.301 T:4110807040   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdimage
00:55:28.301 T:4110807040   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf
00:55:28.301 T:4110807040   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: nsv
00:55:28.301 T:4110807040   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: radio
00:55:28.301 T:4110807040   DEBUG: CPlayerCoreFactory::GetPlayers: matched 0 rules with players
00:55:28.301 T:4110807040   DEBUG: CPlayerCoreFactory::GetPlayers: adding videodefaultplayer (VideoPlayer)
00:55:28.301 T:4110807040   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=0
00:55:28.301 T:4110807040   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
00:55:28.303 T:4110807040   DEBUG: CPlayerCoreFactory::GetPlayers: added 1 players
00:55:28.306 T:4110807040   DEBUG: Radio UECP (RDS) Processor - new CDVDRadioRDSData
00:55:28.307 T:4110807040  NOTICE: VideoPlayer: Opening: nfs://10.0.0.1/The.Invisible.Guest.mkv
00:55:28.307 T:4110807040 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
00:55:28.307 T:4110807040   DEBUG: LinuxRendererGL: Cleaning up GL resources
00:55:28.307 T:3527873520   DEBUG: Thread VideoPlayer start, auto delete: false
00:55:28.307 T:3527873520  NOTICE: Creating InputStream
00:55:28.310 T:3527873520   DEBUG: SECTION:LoadDLL(libnfs.so.8)
00:55:28.311 T:3527873520   DEBUG: Loading: libnfs.so.8
00:55:28.345 T:3527873520   DEBUG: NFS: Context for 10.0.0.1/media not open - get a new context.
00:55:28.411 T:3527873520   DEBUG: NFS: Connected to server 10.0.0.1 and export /media
00:55:28.411 T:3527873520   DEBUG: NFS: chunks: r/w 1048576/1048576
00:55:28.459 T:3527873520   DEBUG: CNFSFile::Open - opened The.Invisible.Guest.mkv
00:55:28.478 T:3527873520   DEBUG: ScanForExternalSubtitles: Searching for subtitles...
00:55:28.489 T:3527873520   DEBUG: ScanForExternalSubtitles: END (total time: 11 ms)
00:55:28.489 T:3527873520  NOTICE: Creating Demuxer
00:55:28.500 T:3527873520   DEBUG: Open - probing detected format [matroska,webm]
00:55:28.506 T:3527873520   DEBUG: Open - avformat_find_stream_info starting
00:55:28.566 T:3527873520   DEBUG: Open - av_find_stream_info finished
00:55:28.566 T:3527873520    INFO: ffmpeg[D24713F0]: Input #0, matroska,webm, nfs://10.0.0.1/The.Invisible.Guest.mk':
00:55:28.566 T:3527873520    INFO: ffmpeg[D24713F0]:   Metadata:
00:55:28.567 T:3527873520    INFO: ffmpeg[D24713F0]:     encoder         : libebml v1.3.1 + libmatroska v1.4.2
00:55:28.567 T:3527873520    INFO: ffmpeg[D24713F0]:     creation_time   : 2017-05-05 13:44:54
00:55:28.567 T:3527873520    INFO: ffmpeg[D24713F0]:   Duration: 01:46:20.04, start: 0.000000, bitrate: 11769 kb/s
00:55:28.567 T:3527873520    INFO: ffmpeg[D24713F0]:     Chapter #0:0: start 0.000000, end 175.175000
00:55:28.567 T:3527873520    INFO: ffmpeg[D24713F0]:     Metadata:
00:55:28.567 T:3527873520    INFO: ffmpeg[D24713F0]:       title           : 00:00:00.000
00:55:28.567 T:3527873520    INFO: ffmpeg[D24713F0]:     Chapter #0:1: start 175.175000, end 798.339000
00:55:28.567 T:3527873520    INFO: ffmpeg[D24713F0]:     Metadata:
00:55:28.567 T:3527873520    INFO: ffmpeg[D24713F0]:       title           : 00:02:55.175
00:55:28.567 T:3527873520    INFO: ffmpeg[D24713F0]:     Chapter #0:2: start 798.339000, end 1423.839000
00:55:28.567 T:3527873520    INFO: ffmpeg[D24713F0]:     Metadata:
00:55:28.567 T:3527873520    INFO: ffmpeg[D24713F0]:       title           : 00:13:18.339
00:55:28.567 T:3527873520    INFO: ffmpeg[D24713F0]:     Chapter #0:3: start 1423.839000, end 1803.385000
00:55:28.567 T:3527873520    INFO: ffmpeg[D24713F0]:     Metadata:
00:55:28.567 T:3527873520    INFO: ffmpeg[D24713F0]:       title           : 00:23:43.839
00:55:28.567 T:3527873520    INFO: ffmpeg[D24713F0]:     Chapter #0:4: start 1803.385000, end 2298.755000
00:55:28.567 T:3527873520    INFO: ffmpeg[D24713F0]:     Metadata:
00:55:28.567 T:3527873520    INFO: ffmpeg[D24713F0]:       title           : 00:30:03.385
00:55:28.568 T:3527873520    INFO: ffmpeg[D24713F0]:     Chapter #0:5: start 2298.755000, end 2883.798000
00:55:28.568 T:3527873520    INFO: ffmpeg[D24713F0]:     Metadata:
00:55:28.568 T:3527873520    INFO: ffmpeg[D24713F0]:       title           : 00:38:18.755
00:55:28.568 T:3527873520    INFO: ffmpeg[D24713F0]:     Chapter #0:6: start 2883.798000, end 3153.942000
00:55:28.568 T:3527873520    INFO: ffmpeg[D24713F0]:     Metadata:
00:55:28.568 T:3527873520    INFO: ffmpeg[D24713F0]:       title           : 00:48:03.798
00:55:28.568 T:3527873520    INFO: ffmpeg[D24713F0]:     Chapter #0:7: start 3153.942000, end 3623.370000
00:55:28.568 T:3527873520    INFO: ffmpeg[D24713F0]:     Metadata:
00:55:28.568 T:3527873520    INFO: ffmpeg[D24713F0]:       title           : 00:52:33.942
00:55:28.568 T:3527873520    INFO: ffmpeg[D24713F0]:     Chapter #0:8: start 3623.370000, end 4251.122000
00:55:28.568 T:3527873520    INFO: ffmpeg[D24713F0]:     Metadata:
00:55:28.568 T:3527873520    INFO: ffmpeg[D24713F0]:       title           : 01:00:23.370
00:55:28.568 T:3527873520    INFO: ffmpeg[D24713F0]:     Chapter #0:9: start 4251.122000, end 4690.811000
00:55:28.568 T:3527873520    INFO: ffmpeg[D24713F0]:     Metadata:
00:55:28.568 T:3527873520    INFO: ffmpeg[D24713F0]:       title           : 01:10:51.122
00:55:28.568 T:3527873520    INFO: ffmpeg[D24713F0]:     Chapter #0:10: start 4690.811000, end 5114.818000
00:55:28.568 T:3527873520    INFO: ffmpeg[D24713F0]:     Metadata:
00:55:28.569 T:3527873520    INFO: ffmpeg[D24713F0]:       title           : 01:18:10.811
00:55:28.569 T:3527873520    INFO: ffmpeg[D24713F0]:     Chapter #0:11: start 5114.818000, end 5576.529000
00:55:28.569 T:3527873520    INFO: ffmpeg[D24713F0]:     Metadata:
00:55:28.569 T:3527873520    INFO: ffmpeg[D24713F0]:       title           : 01:25:14.818
00:55:28.569 T:3527873520    INFO: ffmpeg[D24713F0]:     Chapter #0:12: start 5576.529000, end 6087.039000
00:55:28.569 T:3527873520    INFO: ffmpeg[D24713F0]:     Metadata:
00:55:28.569 T:3527873520    INFO: ffmpeg[D24713F0]:       title           : 01:32:56.529
00:55:28.569 T:3527873520    INFO: ffmpeg[D24713F0]:     Chapter #0:13: start 6087.039000, end 6380.040000
00:55:28.569 T:3527873520    INFO: ffmpeg[D24713F0]:     Metadata:
00:55:28.569 T:3527873520    INFO: ffmpeg[D24713F0]:       title           : 01:41:27.039
00:55:28.569 T:3527873520    INFO: ffmpeg[D24713F0]:     Stream #0:0(eng): Video: h264 (High), yuv420p, 1920x808 [SAR 1:1 DAR 240:101], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
00:55:28.569 T:3527873520    INFO: ffmpeg[D24713F0]:     Metadata:
00:55:28.569 T:3527873520    INFO: ffmpeg[D24713F0]:       BPS             : 8707015
00:55:28.569 T:3527873520    INFO: ffmpeg[D24713F0]:       BPS-eng         : 8707015
00:55:28.570 T:3527873520    INFO: ffmpeg[D24713F0]:       DURATION        : 01:46:19.999000000
00:55:28.570 T:3527873520    INFO: ffmpeg[D24713F0]:       DURATION-eng    : 01:46:19.999000000
00:55:28.570 T:3527873520    INFO: ffmpeg[D24713F0]:       NUMBER_OF_FRAMES: 152967
00:55:28.570 T:3527873520    INFO: ffmpeg[D24713F0]:       NUMBER_OF_FRAMES-eng: 152967
00:55:28.570 T:3527873520    INFO: ffmpeg[D24713F0]:       NUMBER_OF_BYTES : 6943844048
00:55:28.570 T:3527873520    INFO: ffmpeg[D24713F0]:       NUMBER_OF_BYTES-eng: 6943844048
00:55:28.570 T:3527873520    INFO: ffmpeg[D24713F0]:       _STATISTICS_WRITING_APP: mkvmerge v8.3.0 ('Over the Horizon') 64bit
00:55:28.570 T:3527873520    INFO: ffmpeg[D24713F0]:       _STATISTICS_WRITING_APP-eng: mkvmerge v8.3.0 ('Over the Horizon') 64bit
00:55:28.570 T:3527873520    INFO: ffmpeg[D24713F0]:       _STATISTICS_WRITING_DATE_UTC: 2017-05-05 13:44:54
00:55:28.570 T:3527873520    INFO: ffmpeg[D24713F0]:       _STATISTICS_WRITING_DATE_UTC-eng: 2017-05-05 13:44:54
00:55:28.570 T:3527873520    INFO: ffmpeg[D24713F0]:       _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
00:55:28.570 T:3527873520    INFO: ffmpeg[D24713F0]:       _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
00:55:28.570 T:3527873520    INFO: ffmpeg[D24713F0]:     Stream #0:1(spa): Audio: flac, 48000 Hz, 5.1(side), s32 (24 bit) (default)
00:55:28.570 T:3527873520    INFO: ffmpeg[D24713F0]:     Metadata:
00:55:28.570 T:3527873520    INFO: ffmpeg[D24713F0]:       BPS             : 3060109
00:55:28.570 T:3527873520    INFO: ffmpeg[D24713F0]:       BPS-eng         : 3060109
00:55:28.571 T:3527873520    INFO: ffmpeg[D24713F0]:       DURATION        : 01:46:20.040000000
00:55:28.571 T:3527873520    INFO: ffmpeg[D24713F0]:       DURATION-eng    : 01:46:20.040000000
00:55:28.571 T:3527873520    INFO: ffmpeg[D24713F0]:       NUMBER_OF_FRAMES: 74767
00:55:28.571 T:3527873520    INFO: ffmpeg[D24713F0]:       NUMBER_OF_FRAMES-eng: 74767
00:55:28.571 T:3527873520    INFO: ffmpeg[D24713F0]:       NUMBER_OF_BYTES : 2440452534
00:55:28.571 T:3527873520    INFO: ffmpeg[D24713F0]:       NUMBER_OF_BYTES-eng: 2440452534
00:55:28.571 T:3527873520    INFO: ffmpeg[D24713F0]:       _STATISTICS_WRITING_APP: mkvmerge v8.3.0 ('Over the Horizon') 64bit
00:55:28.571 T:3527873520    INFO: ffmpeg[D24713F0]:       _STATISTICS_WRITING_APP-eng: mkvmerge v8.3.0 ('Over the Horizon') 64bit
00:55:28.571 T:3527873520    INFO: ffmpeg[D24713F0]:       _STATISTICS_WRITING_DATE_UTC: 2017-05-05 13:44:54
00:55:28.571 T:3527873520    INFO: ffmpeg[D24713F0]:       _STATISTICS_WRITING_DATE_UTC-eng: 2017-05-05 13:44:54
00:55:28.571 T:3527873520    INFO: ffmpeg[D24713F0]:       _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
00:55:28.571 T:3527873520    INFO: ffmpeg[D24713F0]:       _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
00:55:28.571 T:3527873520    INFO: ffmpeg[D24713F0]:     Stream #0:2(eng): Subtitle: subrip (default) (forced)
00:55:28.571 T:3527873520    INFO: ffmpeg[D24713F0]:     Metadata:
00:55:28.571 T:3527873520    INFO: ffmpeg[D24713F0]:       title           : forced
00:55:28.572 T:3527873520    INFO: ffmpeg[D24713F0]:       BPS             : 58
00:55:28.572 T:3527873520    INFO: ffmpeg[D24713F0]:       BPS-eng         : 58
00:55:28.572 T:3527873520    INFO: ffmpeg[D24713F0]:       DURATION        : 01:39:33.676000000
00:55:28.572 T:3527873520    INFO: ffmpeg[D24713F0]:       DURATION-eng    : 01:39:33.676000000
00:55:28.572 T:3527873520    INFO: ffmpeg[D24713F0]:       NUMBER_OF_FRAMES: 1227
00:55:28.572 T:3527873520    INFO: ffmpeg[D24713F0]:       NUMBER_OF_FRAMES-eng: 1227
00:55:28.572 T:3527873520    INFO: ffmpeg[D24713F0]:       NUMBER_OF_BYTES : 43699
00:55:28.572 T:3527873520    INFO: ffmpeg[D24713F0]:       NUMBER_OF_BYTES-eng: 43699
00:55:28.572 T:3527873520    INFO: ffmpeg[D24713F0]:       _STATISTICS_WRITING_APP: mkvmerge v8.3.0 ('Over the Horizon') 64bit
00:55:28.572 T:3527873520    INFO: ffmpeg[D24713F0]:       _STATISTICS_WRITING_APP-eng: mkvmerge v8.3.0 ('Over the Horizon') 64bit
00:55:28.572 T:3527873520    INFO: ffmpeg[D24713F0]:       _STATISTICS_WRITING_DATE_UTC: 2017-05-05 13:44:54
00:55:28.572 T:3527873520    INFO: ffmpeg[D24713F0]:       _STATISTICS_WRITING_DATE_UTC-eng: 2017-05-05 13:44:54
00:55:28.572 T:3527873520    INFO: ffmpeg[D24713F0]:       _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
00:55:28.572 T:3527873520    INFO: ffmpeg[D24713F0]:       _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
00:55:28.573 T:3527873520   DEBUG: CDVDDemuxFFmpeg::AddStream ID: 0
00:55:28.573 T:3527873520   DEBUG: CDVDDemuxFFmpeg::AddStream ID: 1
00:55:28.573 T:3527873520   DEBUG: CDVDDemuxFFmpeg::AddStream ID: 2
00:55:28.573 T:3527873520  NOTICE: Opening stream: 0 source: 256
00:55:28.573 T:3527873520  NOTICE: Creating video codec with codec id: 28
00:55:28.573 T:3527873520   DEBUG: FactoryCodec - Video: amcodec - Opening
00:55:28.573 T:3527873520    INFO: CBitstreamConverter::Open bitstream to annexb init
00:55:28.573 T:3527873520   DEBUG: SECTION:LoadDLL(libamplayer.so)
00:55:28.575 T:3527873520   DEBUG: Loading: libamplayer.so
00:55:28.575 T:3527873520   ERROR: Unable to load libamplayer.so, reason: libamplayer.so: cannot open shared object file: No such file or directory
00:55:28.575 T:3527873520   DEBUG: Dll libamplayer.so was not found in path
00:55:28.575 T:3527873520 WARNING: CAMLCodec::CAMLCodec libamplayer.so not found, trying libamcodec.so instead
00:55:28.575 T:3527873520   DEBUG: SECTION:LoadDLL(libamcodec.so)
00:55:28.577 T:3527873520   DEBUG: Loading: libamcodec.so
00:55:28.579 T:3527873520    INFO: DVDVideoCodecAmlogic: Opened Amlogic Codec
00:55:28.579 T:3527873520   DEBUG: FactoryCodec - Video: am-h264 - Opened
00:55:28.579 T:3527873520   DEBUG: CVideoPlayerVideo::OpenStream - open stream with codec id: 28
00:55:28.580 T:3527873520  NOTICE: Creating video thread
00:55:28.580 T:3328205808   DEBUG: Thread VideoPlayerVideo start, auto delete: false
00:55:28.580 T:3527873520  NOTICE: Opening stream: 1 source: 256
00:55:28.580 T:3328205808  NOTICE: running thread: video_thread
00:55:28.580 T:3527873520  NOTICE: Finding audio codec for: 86028
00:55:28.580 T:3328205808   DEBUG: CAMLCodec::SetSpeed, speed(1000)
00:55:28.580 T:3527873520   DEBUG: FactoryCodec - Audio: passthrough - Opening
00:55:28.580 T:3527873520   DEBUG: FactoryCodec - Audio: passthrough - Failed
00:55:28.580 T:3527873520   DEBUG: FactoryCodec - Audio: FFmpeg - Opening
00:55:28.580 T:3527873520   DEBUG: FactoryCodec - Audio: FFmpeg - Opened
00:55:28.580 T:3527873520  NOTICE: Creating audio thread
00:55:28.580 T:3485930480   DEBUG: Thread VideoPlayerAudio start, auto delete: false
00:55:28.580 T:3527873520  NOTICE: Opening stream: 2 source: 256
00:55:28.580 T:3485930480  NOTICE: running thread: CVideoPlayerAudio::Process()
00:55:28.580 T:3527873520   DEBUG: FactoryCodec - Overlay: Text Subtitle Decoder - Opening
00:55:28.581 T:3527873520   DEBUG: FactoryCodec - Overlay: Text Subtitle Decoder - Opened
00:55:28.581 T:3527873520   DEBUG: ReadEditDecisionLists - Checking for edit decision lists (EDL) on local drive or remote share for: nfs://10.0.0.1/The.Invisible.Guest.mkv
00:55:28.582 T:3527873520   DEBUG: Process - Start position set to last stopped position: 817927
00:55:28.620 T:3527873520   DEBUG: SeekTime - seek ended up on time 818192
00:55:28.620 T:3527873520   DEBUG: Process - starting demuxer from: 817927
00:55:28.620 T:3527873520   DEBUG: OnPlayBackStarted: play state was 1, starting 1
00:55:28.621 T:4110807040   DEBUG: PlayFile: OpenFile succeed, play state 2
00:55:28.621 T:4110807040   DEBUG: OnPlayBackStarted: play state was 2, starting 0
00:55:28.621 T:3328205808   DEBUG: CVideoPlayerVideo - video decoder returned error
00:55:28.626 T:3527873520   DEBUG: CVideoPlayer::SetCaching - caching state 2
00:55:28.626 T:3328205808   DEBUG: CAMLCodec::SetSpeed, speed(0)
00:55:28.627 T:3527873520   DEBUG: CDVDClock::SetSpeedAdjust - adjusted:0.000000
00:55:28.631 T:3485930480   DEBUG: CDVDAudio::Pause - pausing audio stream
00:55:28.633 T:4110799856   DEBUG: CAnnouncementManager - Announcement: OnPlay from xbmc
00:55:28.633 T:4110799856   DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnPlay
00:55:28.634 T:4110799856   DEBUG: UPnP: Building didl for object 'nfs://10.0.0.1/The.Invisible.Guest.mkv'
00:55:28.636 T:3469153264   DEBUG: CGUIInfoManager::SetCurrentMovie(nfs://10.0.0.1/The.Invisible.Guest.mkv)
00:55:28.649 T:3469153264   DEBUG: GetMovieId (nfs://10.0.0.1/The.Invisible.Guest.mkv), query = select idMovie from movie where idFile=355
00:55:28.668 T:3328205808   DEBUG: CVideoPlayerVideo - video decoder returned error
00:55:28.669 T:3328205808    INFO: CVideoPlayerVideo - Stillframe left, switching to normal playback
00:55:28.670 T:3328205808   DEBUG: codecid_to_vformat, id(28) -> vformat(2)
00:55:28.670 T:3328205808   DEBUG: codec_tag_to_vdec_type, codec_tag(28) -> vdec_type(4)
00:55:28.670 T:3328205808   DEBUG: CAMLCodec::OpenDecoder hints.width(1920), hints.height(808), hints.codec(28), hints.codec_tag(0)
00:55:28.670 T:3328205808   DEBUG: CAMLCodec::OpenDecoder hints.fpsrate(24000), hints.fpsscale(1001), video_rate(4004)
00:55:28.670 T:3328205808   DEBUG: CAMLCodec::OpenDecoder hints.aspect(2.376238), video_ratio.num(1), video_ratio.den(1)
00:55:28.670 T:3328205808   DEBUG: CAMLCodec::OpenDecoder hints.orientation(0), hints.forced_aspect(1), hints.extrasize(39)
00:55:28.709 T:3485930480  NOTICE: Creating audio stream (codec id: 86028, channels: 6, sample rate: 48000, no pass-through)
00:55:28.709 T:3485930480   DEBUG: CVideoPlayerAudio:: synctype set to 0: clock feedback
00:55:28.711 T:4070568944    INFO: CActiveAESink::OpenSink - initialize sink
00:55:28.711 T:4070568944   DEBUG: CActiveAESink::OpenSink - trying to open device ALSA:hdmi:CARD=AMLM8AUDIO,DEV=0
00:55:28.711 T:4070568944    INFO: CAESinkALSA::Initialize - Attempting to open device "@:CARD=AMLM8AUDIO,DEV=0"
00:55:28.714 T:3328205808  NOTICE: CAMLCodec::OpenDecoder - using V4L2 pts format: 64Bit
00:55:28.718 T:4070568944    INFO: CAESinkALSA::Initialize - Opened device "surround51:CARD=AMLM8AUDIO,DEV=0"
00:55:28.725 T:4070568944    INFO: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
00:55:28.725 T:4070568944    INFO: CAESinkALSA::InitializeHW - Using data format AE_FMT_S32NE
00:55:28.725 T:4070568944   DEBUG: CAESinkALSA::InitializeHW - Request: periodSize 2048, bufferSize 9600
00:55:28.747 T:4070568944   DEBUG: CAESinkALSA::InitializeHW - Got: periodSize 128, bufferSize 9600
00:55:28.747 T:4070568944   DEBUG: Audio Driver reports too low periodSize 128 - will use 2 fragments
00:55:28.747 T:4070568944   DEBUG: CAESinkALSA::InitializeHW - Setting timeout to 200 ms
00:55:28.747 T:4070568944   DEBUG: CAESinkALSA::GetChannelLayout - Input Channel Count: 6 Output Channel Count: 8
00:55:28.747 T:4070568944   DEBUG: CAESinkALSA::GetChannelLayout - Requested Layout: FL,FR,FC,LFE,SL,SR
00:55:28.747 T:4070568944   DEBUG: CAESinkALSA::GetChannelLayout - Got Layout: FL,FR,SL,SR,FC,LFE,BL,BR (ALSA: none)
00:55:28.748 T:4070568944   DEBUG: CActiveAESink::OpenSink - ALSA Initialized:
00:55:28.748 T:4070568944   DEBUG:   Output Device : AML-M8AUDIO
00:55:28.748 T:4070568944   DEBUG:   Sample Rate   : 48000
00:55:28.748 T:4070568944   DEBUG:   Sample Format : AE_FMT_S32NE
00:55:28.748 T:4070568944   DEBUG:   Channel Count : 8
00:55:28.748 T:4070568944   DEBUG:   Channel Layout: FL,FR,SL,SR,FC,LFE,BL,BR
00:55:28.748 T:4070568944   DEBUG:   Frames        : 256
00:55:28.748 T:4070568944   DEBUG:   Frame Size    : 32
00:55:28.755 T:4081054704   DEBUG: CActiveAE::ClearDiscardedBuffers - buffer pool deleted
00:55:28.766 T:3527873520   DEBUG: Previous line repeats 1 times.
00:55:28.767 T:3527873520   DEBUG: CVideoPlayer::HandleMessages - player started 1
00:55:28.854 T:3328205808   DEBUG: DVDVideoCodecAmlogic: detected new framerate(23.976024), video_rate(4004)
00:55:29.103 T:3328205808   DEBUG: CRenderManager::Configure - change configuration. 1920x808. display: 1920x808. framerate: 23.98. format: AMLCODEC
00:55:29.116 T:4110807040   DEBUG: DeleteRenderer - deleting renderer
00:55:29.116 T:4110807040   DEBUG: LinuxRendererGL: Cleaning up GL resources
00:55:29.116 T:4110807040   DEBUG: CRenderManager::Configure - 4
00:55:29.117 T:4110807040   DEBUG: CAMLCodec::SetVideo3dMode:mode3d(0x0)
00:55:29.117 T:4110807040   DEBUG: CAMLCodec::SetVideoRect:display(0,0,1920,1080)
00:55:29.117 T:4110807040   DEBUG: CAMLCodec::SetVideoRect:gui(0,0,1920,1080)
00:55:29.117 T:4110807040   DEBUG: CAMLCodec::SetVideoRect:m_dst_rect(0,136,1919,808)
00:55:29.117 T:4110807040   DEBUG: CAMLCodec::SetVideoRect:dst_rect(0,136,1919,808)
00:55:29.117 T:4110807040   DEBUG: CAMLCodec::SetVideoRect:m_stereo_mode(0)
00:55:29.117 T:4110807040   DEBUG: CAMLCodec::SetVideoRect:m_stereo_view(0)
00:55:29.117 T:4110807040   DEBUG: Activating window ID: 12005
00:55:29.117 T:4110807040   DEBUG: ------ Window Deinit (Home.xml) ------
00:55:29.118 T:4110807040   DEBUG: ------ Window Init (VideoFullScreen.xml) ------
00:55:29.119 T:3527873520   DEBUG: CVideoPlayer::HandleMessages - player started 2
00:55:29.119 T:3527873520   DEBUG: CVideoPlayer::SetCaching - caching state 3
00:55:29.119 T:3527873520   DEBUG: CDVDClock::SetSpeedAdjust - adjusted:0.000000
00:55:29.119 T:3527873520   DEBUG: CVideoPlayer::SetCaching - caching state 0
00:55:29.119 T:3527873520   DEBUG: CDVDClock::SetSpeedAdjust - adjusted:0.000000
00:55:29.119 T:3527873520   DEBUG: VideoPlayer::Sync - Audio - pts: 818431000.000000, cache: 349388.637159, totalcache: 600000.023842
00:55:29.119 T:3527873520   DEBUG: VideoPlayer::Sync - Video - pts: 818192000.000000, cache: 50000.000000, totalcache: 100000.000000
00:55:29.120 T:3485930480   DEBUG: CVideoPlayerAudio - CDVDMsg::GENERAL_RESYNC(818081611.362841)
00:55:29.120 T:3485930480   DEBUG: CDVDAudio::Resume - resume audio stream
00:55:29.120 T:4081054704   DEBUG: ActiveAE - start sync of audio stream
00:55:29.142 T:3328205808   DEBUG: CVideoPlayerVideo - CDVDMsg::GENERAL_RESYNC(818081611.362841)
00:55:29.216 T:4110807040   DEBUG: CAMLCodec::SetVideo3dMode:mode3d(0x0)
00:55:29.216 T:4110807040   DEBUG: CAMLCodec::SetVideoRect:display(0,0,1920,1080)
00:55:29.216 T:4110807040   DEBUG: CAMLCodec::SetVideoRect:gui(0,0,1920,1080)
00:55:29.216 T:4110807040   DEBUG: CAMLCodec::SetVideoRect:m_dst_rect(0,136,1920,808)
00:55:29.216 T:4110807040   DEBUG: CAMLCodec::SetVideoRect:dst_rect(0,136,1920,808)
00:55:29.217 T:4110807040   DEBUG: CAMLCodec::SetVideoRect:m_stereo_mode(0)
00:55:29.217 T:4110807040   DEBUG: CAMLCodec::SetVideoRect:m_stereo_view(0)
00:55:29.223 T:4081054704   DEBUG: ActiveAE::SyncStream - average error of -23.984433, start adjusting
00:55:29.223 T:4081054704   DEBUG: ActiveAE::SyncStream - average error -18.984433 below threshold of 30.000000

cat /sys/class/amhdmitx/amhdmitx0/aud_cap gives me the following output:

PCM, 2 ch, 32/44.1/48 kHz, 16/20/24 bit
AC-3, 6 ch, 32/44.1/48 kHz,  bit```

Thanks for your effort so far!

Your receiver is not adverting support for 5.1 or 7.1 PCM.

PCM, 6 ch, 32/44.1/48/88.2/96/176.4/192 kHz, 16/20/24 bit
PCM, 8 ch, 32/44.1/48/88.2/96/176.4/192 kHz, 16/20/24 bit

is missing.

Do you have another TV we can quickly plug in to as a test?

cat /sys/class/amhdmitx/amhdmitx0/rawedid will give you the raw EDID and let me check that there isn’t a problem with the parsing of the EDID, and what capabilities are really being reported.

Temporary workaround for now would be to enable 5.1 AC3 transcoding as your device reports it as supported.

Yes :slight_smile: My TV is quite crap, that is way I’m using a seperate amplifier :wink:

Not at this hour of the day, but tomorrow I could plug it in a newer television at the office, without my audio device though.

cat /sys/class/amhdmitx/amhdmitx0/rawedid gives me the following output:

00ffffffffffff004dd901a4010101010113010380a05a780a0dc9a05747982712484c21080081800101010101010101010101010101023a801871382d40582c450040846300001e011d007251d01e206e28550040846300001e000000fc00534f4e592054560a2020202020000000fd00303e0e460f000a202020202020010902032cf0501f101405130412111615030207060120260907071507508301000068030c00100080000fe2007b023a80d072382d40102c458040846300001e011d00bc52d01e20b828554040846300001e011d8018711c1620582c250040846300009e011d80d0721c1620102c258040846300009e000000000000000000000073

Yes that seems to work fine :smile:

I guess the difference between Vero and the HifiBerry Digi+ is that Vero is reading the HDMI properties and using them for SPDIF output as well, while HifiBerry is a seperate device. If this is the case then we should maybe tell Vero to ignore the advertised capabilities and just send whatever we tell him to send?

The EDID doesn’t validate properly, which doesn’t help.

Understood, will be interested in knowing.

Yes, that’s correct.

Late here as well, but some thoughts:

  • Try setting channels to Fixed, not Optimized.

Otherwise we can look in to allowing you to force either an EDID or specific audio settings.

Sam