Support for HDMI 1 port (i.e. both ports)
#16
(2019-10-06, 15:44)cocodude Wrote:
(2019-10-05, 16:39)armyofme Wrote: So this dual hdmi issue on Pi4 is an issue with Kodi on all platforms, osmc and libreelec too? I've just had to switch back to using one hdmi port in order to get the best sound. Be great once we can use both ports but I realise that maybe somewhere down the line yet. 

I'm absolutely not an expert in Kodi, but I think it's unlikely to be a general problem in Kodi. I think Kodi can indeed support multiple ports, but only output video on one output at a time (or mirroring) - honestly, this is fine and actually I think it's unrelated.

What we really need is for Kodi to be able to "see" two HDMI ports. Then, hopefully, we can just choose HDMI1 for the passthrough sound output; decoded sound will still go through on HDMI0, just like video.

I believe that what's needed to be done is to change the file xbmc/cores/AudioEngine/Sinks/AESinkPi.cpp as that's where the HDMI ports appear to be enumerated, and it's Pi specific. I'm hoping just copying the block in EnumerateDevicesEx for the HDMI device (renaming to HDMI1) would work. It's a bit of a guess though, and I bet there's something more complicated to do. 

Fingers crossed! Please let me know how you get on.
Reply
#17
(2019-10-06, 22:50)armyofme Wrote: Fingers crossed! Please let me know how you get on. 

I don't have the time to get a cross compiler working (or even native) I'm afraid to actually test this.

It's really just a stab in the dark; I know nothing about Kodi's internals, just that this vaguely makes sense.

So, if somebody could test this themselves, it would be appreciated.
Reply
#18
hello

I have checked quickly in AESinkPi.cpp
strncpy(reinterpret_cast<char*>(audioDest.sName), "hdmi", strlen("hdmi") + 1);
mx_err = m_omx_render.SetConfig(OMX_IndexConfigBrcmAudioDestination, &audioDest);

I am not sure OMXplayer manages hdmi1...I have also tried to understand xbmc/platform/linux/OMXCore.cpp, but it's too low level...

May be a kodi developper could help us to compile with an hardcoded value in a first time ?
Reply
#19
Smile 
This has now been achieved in the latest nightly of Libreelec - I now have passthrough on the second hdmi! Hoping it won't be long before it's also working on the Raspberry OS too
Reply
#20
(2020-07-25, 12:55)armyofme Wrote: This has now been achieved in the latest nightly of Libreelec - I now have passthrough on the second hdmi! Hoping it won't be long before it's also working on the Raspberry OS too
Super merci ! I can't wait and I am going to compile
Reply
#21
Hello,
I have tested the last test version Kodi19, my AVR is detected on hdmi1 like an alsa device but there is no sound at all. Any idea ?
xml:

2020-03-06 12:38:57.808 T:904 INFO <general>: Device 6 2020-03-06 12:38:57.808 T:904 INFO <general>: m_deviceName : hdmi:CARD=vc4hdmi1,DEV=0 2020-03-06 12:38:57.808 T:904 INFO <general>: m_displayName : vc4-hdmi1 2020-03-06 12:38:57.808 T:904 INFO <general>: m_displayNameExtra: HCG *Harman_AVR* on HDMI 2020-03-06 12:38:57.808 T:904 INFO <general>: m_deviceType : AE_DEVTYPE_HDMI 2020-03-06 12:38:57.808 T:904 INFO <general>: m_channels : FL, FR, LFE, FC, BL, BR, BC, BLOC, BROC 2020-03-06 12:38:57.808 T:904 INFO <general>: m_sampleRates : 32000,44100,48000,88200,96000,176400,192000 2020-03-06 12:38:57.808 T:904 INFO <general>: m_dataFormats : AE_FMT_RAW,AE_FMT_S24NE3,AE_FMT_S24NE4,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_S16BE,AE_FMT_U8,AE_FMT_RAW 2020-03-06 12:38:57.808 T:904 INFO <general>: m_streamTypes : STREAM_TYPE_AC3,STREAM_TYPE_DTSHD,STREAM_TYPE_DTSHD_MA,STREAM_TYPE_DTSHD_CORE,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTS_512,STREAM_TYPE_EAC3,STREAM_TYPE_TRUEHD

Full logs:
http://ix.io/2yUQ
Reply
#22
I have the same problem.
Reply
#23
(2020-09-28, 00:19)philbio Wrote: I have the same problem.
I finally bought an audio hdmi extractor : now I have a 4K tv, and audio HD (DD,DD+,DTS-HD MA (librelec beta required), Dolby true HD) on my old AVR hdmi 1.3. Be carefull because the extractor sends the HD audio on the TV even if the TV does not support it in EDID informations.

the 30$ extractor: https://fr.aliexpress.com/item/4001255791111.html
Reply
#24
(2020-09-28, 00:19)philbio Wrote: I have the same problem.
Not sure if this has been reported elsewhere but I've just tried the latest nightly build (LibreELEC-RPi4.arm-9.80-nightly-20201023-636e32e.img.gz) and not only is HDMI1 using passthrough audio with video on HDMI0 but 3D is also working! Thought I must have been imagining this at first so had a cup of coffee and tried again - it was still working.

Just to clarify:
HDMI0 -> 3D projector
HDMI1 -> Onkyo TX-SR577

I haven't tested previous builds to this one so don't know how long it has been working.

Good luck.
Reply
#25
(2020-10-23, 17:50)Reddog999 Wrote: Not sure if this has been reported elsewhere but I've just tried the latest nightly build (LibreELEC-RPi4.arm-9.80-nightly-20201023-636e32e.img.gz) and not only is HDMI1 using passthrough audio with video on HDMI0 but 3D is also working! Thought I must have been imagining this at first so had a cup of coffee and tried again - it was still working.

 "3D" is a pretty broad category of stuff.
What was the format of the video file? (e.g. from mediainfo)
What for format projector reported (resolution/framerate). Did you need to press a button for 3D on remote?
Reply
#26
(2020-10-23, 18:40)popcornmix Wrote:
(2020-10-23, 17:50)Reddog999 Wrote: Not sure if this has been reported elsewhere but I've just tried the latest nightly build (LibreELEC-RPi4.arm-9.80-nightly-20201023-636e32e.img.gz) and not only is HDMI1 using passthrough audio with video on HDMI0 but 3D is also working! Thought I must have been imagining this at first so had a cup of coffee and tried again - it was still working.

 "3D" is a pretty broad category of stuff.
What was the format of the video file? (e.g. from mediainfo)
What for format projector reported (resolution/framerate). Did you need to press a button for 3D on remote?
I've tried a few different 3D files but they were all SBS or TAB since I re-encoded all my FP 3D videos when I was unable to get any audio through my AV receiver - long story.

Getting it to display 3D was a bit convoluted as clicking on preferred mode didn't work so I tried clicking Monoscopic/2D which gave the display showing the 2 views side by side and then I changed my projector setting from 2D to 3D + SBS. This changed the screen to a single 3D view. My projector has a 2D to 3D conversion but that was greyed out in the menu so I don't think it was doing that.

My projector doesn't give much info other than 1920 x 1080 at 60Hz refresh rate.

Let me know if you want me to try any tests - or if I'm wasting your time with something that has always worked in this way.

Typical Medeainfo:

Code:
General
Unique ID                                : 223597863792850606838938455669362387426 (0xA83761D3CB369CE79DAD8A4E8BE3E9E2)
Complete name                            : Y:\Movies\3D\Lichtmond.2.Universe.Of.Light.2012.3D.HSBS.ENG.DTS.GER.DTS.mkv
Format                                   : Matroska
Format version                           : Version 3 / Version 2
File size                                : 5.68 GiB
Duration                                 : 53mn 1s
Overall bit rate                         : 15.3 Mbps
Encoded date                             : UTC 2012-10-04 21:46:14
Writing application                      : mkvmerge v5.8.0 ('No Sleep / Pillow') built on Sep  2 2012 15:37:04
Writing library                          : libebml v1.2.3 + libmatroska v1.3.0

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : [email protected]
MultiView_Count                          : 2
MultiView_Layout                         : Side by Side (left eye first)
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 53mn 1s
Bit rate                                 : 12.0 Mbps
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.242
Stream size                              : 4.45 GiB (78%)
Title                                    : Lichtmond.2.Universe.Of.Light.2012.3D.H-SBS.x264.ENG.DTS.GER.DTS-HD
Writing library                          : x264 core 128 r2216 198a7ea
Encoding settings                        : cabac=1 / ref=4 / deblock=1:-3:-3 / analyse=0x3:0x113 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=32 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=18 / lookahead_threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=6 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=18.0 / qcomp=0.60 / qpmin=10 / qpmax=69 / qpstep=4 / vbv_maxrate=40000 / vbv_bufsize=30000 / crf_max=0.0 / nal_hrd=none / ip_ratio=1.40 / aq=1:1.00
Default                                  : Yes
Forced                                   : No

Audio #1
ID                                       : 2
Format                                   : DTS
Format/Info                              : Digital Theater Systems
Mode                                     : 16
Format settings, Endianness              : Big
Codec ID                                 : A_DTS
Duration                                 : 53mn 1s
Bit rate mode                            : Constant
Bit rate                                 : 1 509 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Frame rate                               : 93.750 fps (512 spf)
Bit depth                                : 24 bits
Compression mode                         : Lossy
Stream size                              : 572 MiB (10%)
Language                                 : English
Default                                  : Yes
Forced                                   : No

Audio #2
ID                                       : 3
Format                                   : DTS
Format/Info                              : Digital Theater Systems
Mode                                     : 16
Format settings, Endianness              : Big
Codec ID                                 : A_DTS
Duration                                 : 53mn 1s
Bit rate mode                            : Constant
Bit rate                                 : 1 509 Kbps
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Frame rate                               : 93.750 fps (512 spf)
Bit depth                                : 24 bits
Compression mode                         : Lossy
Stream size                              : 572 MiB (10%)
Language                                 : German
Default                                  : No
Forced                                   : N
Reply
#27
Hi all,

Everything is now working fine on the last libreelec beta 4 !
Reply
#28
(2021-06-15, 14:11)yapooze Wrote: Hi all,

Everything is now working fine on the last libreelec beta 4 !

Just bought a new TV and my amp (Marantz SR 7007) does not pass through HDR. 
So as I understand from all these posts, I could attach a HDMI cable from HDMI0 to the TV and get 4K HDR. And attach another HDMI cable from HDMI1 to the receiver and get passthrough (Dolby True HD, DTS HD MSTR audio, etc)?
Only works on liberelec or also on OSMC?
Reply
#29
Bought an extra cable and it works on libreelec, but not on OSMC (yet).
Reply
#30
With libreelec work with mixed HDMI 2.0/1.4?
HDMI0 -> video 4k@60hz HDR10     -> TV HDMI 2.0
HDMI1 -> Only audio (passthrough)  -> old AV reciver HDMI 1.4
LG OLED 55E8 - M9702(oppo 203) -  Dinobot U5PVR(Enigma 2) - Meccol KI pro(COREelec) - Sony PS5
AndroidPremiumPlayer blog - HI - Frequency Switcher 
Reply

Logout Mark Read Team Forum Stats Members Help
Support for HDMI 1 port (i.e. both ports)0