Posts by chook55

    I tried autostart.sh on LE10. I worked once but the TV display stopped on next boot after upgrading the config file. I removed the autostart.sh file and rebooted but still had problems so did and upgrade to same version which fixed things.

    I did a version upgrade using the Nightly LibreELEC-RPi4.arm-10.0-nightly-20210502-8f609ae today. I played some music and noticed it did not play the next track as expected. I checked the setting in Player/Music and could see it was set to play next track automatically. I set it off then on again. Still the next track would no play automatically. I did a reboot and it's still the same.

    "Play Next Song Automatically" still not working on LibreELEC-RPi4.arm-10.0-nightly-210503. Toggled settings once again but not working.

    regards

    Chook

    Noted.

    cheers

    Chook

    Update: I found a problem in my rig. There is a small power jack and cable that powers the Targus USB Hub. It could be that this was not firmly in the socket and could be losing power intermittently. Its not a tight fit so now I've secured it with a rubber band. The only device in the hub is the 3.5" HDD. Ill check tomorrow to see if this indeed was the problem. How annoying.

    Info: I just tested LibreElec nightly 20210224 at 4k 30Hz and blanking occurred while viewing a 4K video (same one). Its not occuring at Full HD resolution. So It was not the power to the hub that was causing the issue. I'll reconfigure and do testing next opportunity.

    I just received my 2.0b rated HDMI cable. I replaced the 1.4 rated HDMI cable and did a 10 minute test at 4k 30Hz on 720P HEVC and a 4K H264 video known to produce problems. After 10m viewing on each I witness ZERO screen blanks. So for AU$25 the problem is solved. I didn't need to remove the 4K rated HDMI / toslink splitter so I'm pleased.

    Best regards

    chook

    chook55 thanks a lot for the info!

    As suspected the 5.1ch AVR is preventing truehd/atmos and DTS HD passthrough from working. That's a known bug in the linux kernel drivers, I'm still thinking about how to best solve or workaround that. A fix will follow, just can't tell when :)

    so long,

    Hias

    The linux kernel seems to handle 8 to 6 channel reduction OK. Maybe an option for message flags popping up saying "AV device not HD capable" etc or "Optimise audio setting?" via prompt..

    chook55 on a second glance I noticed that your AVR doesn't support truehd/dts-hd, only AC3 and DTS - so keep the HD passtrhough options disabled, only enable AC3 and DTS

    so long,

    Hias

    Thanks, all playing as it should. Both TV and AMP are playing properly.

    lolek FYI: today's nightly build LibreELEC-RPi4.arm-9.80-nightly-20210226-e12ff43.tar includes the ALSA buffer size change mentioned above.

    Please give that a try, if you still get drop-outs and buffer underrun entries in kodi log test with buffermode 1.

    so long,

    Hias

    I have updated to LibreELEC-RPi4.arm-9.80-nightly-20210226-e12ff43.tar. I'm running at 1080P screen setting. I have 5.1 audio channels with pass-through enabled but not encoding which works on 2.0 channel setting only. . All the Dolby samples work as they should even HD audio. However there is one that did work a month ago but no longer plays sound through my TV or Amp. I've posted the media-info data here.

    General

    Unique ID : 189688238917226230182892306850293502700 (0x8EB4A03DCAD84192A6F0AD43F93C52EC)

    Complete name : D:\Music\THX\DATASAT_51_71_DTS-HD_MA-thedigitaltheater.mkv

    Format : Matroska

    Format version : Version 4

    File size : 241 MiB

    Duration : 51 s 35 ms

    Overall bit rate mode : Variable

    Overall bit rate : 39.5 Mb/s

    Encoded date : UTC 2015-10-19 22:12:49

    Writing application : mkvmerge v8.3.0 ('Over the Horizon') 64bit

    Writing library : libebml v1.3.1 + libmatroska v1.4.2

    Video

    ID : 1

    Format : AVC

    Format/Info : Advanced Video Codec

    Format profile : [email protected]

    Format settings : CABAC / 2 Ref Frames

    Format settings, CABAC : Yes

    Format settings, Reference fra : 2 frames

    Codec ID : V_MPEG4/ISO/AVC

    Duration : 48 s 382 ms

    Bit rate mode : Variable

    Bit rate : 28.8 Mb/s

    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.578

    Stream size : 166 MiB (69%)

    Default : Yes

    Forced : No

    Audio #1

    ID : 2

    Format : DTS XLL

    Format/Info : Digital Theater Systems

    Commercial name : DTS-HD Master Audio

    Codec ID : A_DTS

    Duration : 50 s 998 ms

    Bit rate mode : Variable

    Bit rate : 4 431 kb/s

    Channel(s) : 6 channels

    Channel layout : C L R Ls Rs LFE

    Sampling rate : 48.0 kHz

    Frame rate : 93.750 FPS (512 SPF)

    Bit depth : 24 bits

    Compression mode : Lossless

    Stream size : 26.9 MiB (11%)

    Default : Yes

    Forced : No

    Audio #2

    ID : 3

    Format : DTS XLL

    Format/Info : Digital Theater Systems

    Commercial name : DTS-HD Master Audio

    Codec ID : A_DTS

    Duration : 50 s 998 ms

    Bit rate mode : Variable

    Bit rate : 5 538 kb/s

    Channel(s) : 8 channels

    Channel layout : C L R LFE Lb Rb Lss Rss

    Sampling rate : 48.0 kHz

    Frame rate : 93.750 FPS (512 SPF)

    Bit depth : 24 bits

    Compression mode : Lossless

    Stream size : 33.7 MiB (14%)

    Default : No

    Forced : No

    Audio #3

    ID : 4

    Format : PCM

    Format settings : Big / Signed

    Codec ID : A_PCM/INT/BIG

    Duration : 51 s 35 ms

    Bit rate mode : Constant

    Bit rate : 2 304 kb/s

    Channel(s) : 2 channels

    Sampling rate : 48.0 kHz

    Frame rate : 200.000 FPS (240 SPF)

    Bit depth : 24 bits

    Stream size : 14.0 MiB (6%)

    Default : No

    Forced : No

    Here are a score or so of lines from the 01_Kodi.log I recorded just now.

    Music/Music/THX/DATASAT_51_71_DTS-HD_MA-thedigitaltheater.mkv

    2021-02-27 12:41:24.439 T:1911 INFO <general>: Creating InputStream

    2021-02-27 12:41:24.473 T:1911 INFO <general>: Creating Demuxer

    2021-02-27 12:41:24.577 T:1911 INFO <general>: Opening stream: 0 source: 256

    2021-02-27 12:41:24.577 T:1911 INFO <general>: [WHITELIST] Searching the whitelist for: width: 1920, height: 1080, fps: 23.976, 3D: false

    2021-02-27 12:41:24.578 T:1911 INFO <general>: Display resolution ADJUST : 1920x1080 @ 23.976025 Hz (40) (w e i g h t: 0.000)

    2021-02-27 12:41:24.652 T:989 INFO <general>: VideoPlayer: OnLostDisplay received

    2021-02-27 12:41:24.652 T:989 WARNING <general>: CDVDMessageQueue(audio)::Put MSGQ_NOT_INITIALIZED

    2021-02-27 12:41:24.652 T:989 WARNING <general>: CDVDMessageQueue(video)::Put MSGQ_NOT_INITIALIZED

    2021-02-27 12:41:24.652 T:989 INFO <general>: GLES: Maximum texture width: 4096

    2021-02-27 12:41:24.686 T:1911 INFO <general>: Creating video codec with codec id: 27

    2021-02-27 12:41:24.686 T:1911 INFO <general>: CDVDVideoCodecDRMPRIME::Open - using decoder V4L2 mem2mem H.264 decoder wrapper

    2021-02-27 12:41:24.701 T:1911 INFO <general>: Creating video thread

    2021-02-27 12:41:24.701 T:1912 INFO <general>: running thread: video_thread

    2021-02-27 12:41:24.701 T:1911 INFO <general>: Opening stream: 1 source: 256

    2021-02-27 12:41:24.701 T:1911 INFO <general>: Finding audio codec for: 86020

    2021-02-27 12:41:24.702 T:1911 INFO <general>: Creating audio thread

    2021-02-27 12:41:24.702 T:1913 INFO <general>: running thread: CVideoPlayerAudio::Process()

    2021-02-27 12:41:24.766 T:989 INFO <general>: VideoPlayer: OnResetDisplay received

    2021-02-27 12:41:24.807 T:1913 INFO <general>: CAEStreamParser::SyncDTS - dtsHD MA stream detected (8 channels, 48000Hz, 16bit BE, period: 8192, syncword: 0x41a29547, target rate: 0x18, framesize 2080))

    2021-02-27 12:41:24.807 T:1913 INFO <general>: Creating audio stream (codec id: 86020, channels: 8, sample rate: 48000, pass-through)

    2021-02-27 12:41:24.835 T:1004 INFO <general>: CActiveAESink::OpenSink - initialize sink

    2021-02-27 12:41:25.036 T:1004 INFO <general>: CAESinkALSA::Initialize - Attempting to open device "hdmi:CARD=vc4hdmi0,DEV=0"

    2021-02-27 12:41:25.042 T:1004 INFO <general>: CAESinkALSA::Initialize - Opened device "hdmi:CARD=vc4hdmi0,DEV=0,AES0=0x06,AES1=0x82,AES2=0x00,AES3=0x09"

    2021-02-27 12:41:25.043 T:1004 INFO <general>: CAESinkALSA::InitializeHW - Unable to open the required number of channels

    2021-02-27 12:41:25.046 T:1004 INFO <general>: CAESinkALSA::Initialize - could not open required number of channels

    2021-02-27 12:41:25.049 T:1004 INFO <general>: CAESinkALSA::Initialize - Attempting to open device "default"

    2021-02-27 12:41:25.056 T:1004 INFO <general>: CAESinkALSA - Unable to open device "default:AES0=0x06,AES1=0x82,AES2=0x00,AES3=0x09" for playback

    2021-02-27 12:41:25.058 T:1004 INFO <general>: CAESinkALSA::Initialize - Opened device "default"

    2021-02-27 12:41:25.060 T:1004 INFO <general>: CAESinkALSA::InitializeHW - Unable to open the required number of channels

    2021-02-27 12:41:25.069 T:1004 INFO <general>: CAESinkALSA::Initialize - could not open required number of channels

    2021-02-27 12:41:25.070 T:1004 ERROR <general>: CActiveAESink::OpenSink - no sink was returned

    2021-02-27 12:41:25.070 T:1003 ERROR <general>: ActiveAE::InitSink - returned error

    2021-02-27 12:41:25.071 T:1003 WARNING <general>: CActiveAE::StateMachine - signal: 11 from port: OutputControlPort not handled for state: 2

    2021-02-27 12:41:25.071 T:1003 WARNING <general>: CActiveAE::StateMachine - signal: 12 from port: OutputControlPort not handled for state: 2

    2021-02-27 12:41:25.577 T:1913 ERROR <general>: CAEStreamInfo::GetDuration - invalid stream type

    2021-02-27 12:41:25.602 T:989 INFO <general>: Skipped 1048 duplicate messages..

    2021-02-27 12:41:25.602 T:989 INFO <general>: [WHITELIST] Searching the whitelist for: width: 1920, height: 1080, fps: 23.976, 3D: false

    2021-02-27 12:41:25.602 T:1003 ERROR <general>: CAEStreamInfo::GetDuration - invalid stream type

    2021-02-27 12:41:25.603 T:989 INFO <general>: Skipped 15 duplicate messages..

    2021-02-27 12:41:25.603 T:989 INFO <general>: Display resolution ADJUST : 1920x1080 @ 23.976025 Hz (40) (w e i g h t: -0.000)

    2021-02-27 12:41:25.603 T:1003 ERROR <general>: CAEStreamInfo::GetDuration - invalid stream type

    2021-02-27 12:41:25.728 T:1003 INFO <general>: Skipped 3914 duplicate messages..

    2021-02-27 12:41:25.728 T:1003 WARNING <general>: ActiveAE - large audio sync error: 5007.251593

    2021-02-27 12:41:25.729 T:1003 ERROR <general>: CAEStreamInfo::GetDuration - invalid stream type

    2021-02-27 12:41:25.729 T:1003 INFO <general>: Skipped 1 duplicate messages..

    2021-02-27 12:41:25.729 T:1003 WARNING <general>: ActiveAE - large audio sync error: 5016.844500

    2021-02-27 12:41:25.729 T:1003 ERROR <general>: CAEStreamInfo::GetDuration - invalid stream type

    2021-02-27 12:41:25.729 T:1003 INFO <general>: Skipped 1 duplicate messages.. etc etc.

    The source has 8 channels I have 6.

    Good luck and thanks.

    chook55 there's nothing suspicious in the logs you emailed me and I also couldn't reproduce the issue here.

    As I wrote before check your cabling - contact issues, bad cables / adapters are the number one cause of the issues you described. I'd recommend starting with a direct connection from your RPi to your TV, try also a different, known good HDMI cable, leaving the argon case and HDMI splitter out of the chain - they are all potential sources of issues.

    so long,

    Hias

    Noted.

    cheers

    Chook

    Update: I found a problem in my rig. There is a small power jack and cable that powers the Targus USB Hub. It could be that this was not firmly in the socket and could be losing power intermittently. Its not a tight fit so now I've secured it with a rubber band. The only device in the hub is the 3.5" HDD. Ill check tomorrow to see if this indeed was the problem. How annoying.

    Info: I just tested LibreElec nightly 20210224 at 4k 30Hz and blanking occurred while viewing a 4K video (same one). Its not occuring at Full HD resolution. So It was not the power to the hub that was causing the issue. I'll reconfigure and do testing next opportunity.

    The Enable Transcode option may only appear if you have 2.0 output configured - as otherwise it is assumed that you'd prefer the higher quality PCM 5.1 output option I think. (The 2.0/5.1/7.1 output setting is really your PCM/analogue output config and isn't related to your passthrough/bitstream speaker config).

    If you are using Toslink or ARC which is similarly limited to PCM 2.0 and SPDIF/Toslink bandwidth DD/AC3 (and in some cases DTS) then configuring for 2.0 should bring up the option for transcoding to DD/AC3 underneath the Bitstream DD/AC3 option.

    Indeed. Doing a reset to defaults changed the speaker setup from 5.1 to 2.0. If I change it, the trans-code option disappears. My Amp is a Marantz SR5500 so the cleanest way of getting DTS is via TOSLINK. I go to a "HDMI to toslink" splitter which goes directly to the amp in one channel and the TV in another. The HDMI continues to the TV which has a toslink output also. The TV can output to it's internal speaker and optical but can only pass DTS when on an optical only output. LGOLED55PTA . Thanks for the info.

    Change the settings level to advanced or expert and you'll see the options in Settings->System->Audio

    so long,

    Hias

    The encode option wasn't displayed in advanced or expert profile in the passthru section until I did a return to default values. To my surprise it appeared. bug maybe? Anyhow The transcoding works well. Just an observation. the screen blanks momentarily when changing settings.

    Thanks again.

    Chook

    With optical out only AC3 and DTS passthrough is supported. The mediainfo shows it's not a dolby digital but an AAC audio track - that can't be passed through at all, you have to enable AC3 transcoding (then kodi will transcode AAC to AC3 and you get 5.1 sound with your receiver).

    so long,

    Hias

    How does one enable AAC to AC3 transcoding on the RPi4 LibreElec Nightlies? The option is not apparent. Do I need to install a plugin?

    are you using LE10 nightlies ?

    I'm using nightlies. The Argonone fan stopped working a year or more ago when the nightlies switched to Python3. The power button still works but fan no longer works. The heat sink is good enough to prevent the RPi from going over 55°C under normal circumstances so have not been particularly worried. Thanks for your development work. It's a great project. Seeing it nudge towards "10" is fascinating. The 210218 release is very close.