Forum
Hifiberry - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Hardware (/forum-7.html)
+--- Forum: Video and Audio (/forum-28.html)
+--- Thread: Hifiberry (/thread-2397.html)

Pages: 1 2 3 4 5 6 7 8 9 10


RE: Hifiberry - Skywatch - 9th Apr, 2016 07:58 PM

(7th Apr, 2016 05:53 PM)Nachteule Wrote:  @Skywatch
Will put this on my todo list

btw, when switching to kernel 4.4 (RPi3 is already running this version), this entry will be obsolete (see also here)

No problem then as all pi here are now 4.4.6 and working fine!

Cheers!

Smile


RE: Hifiberry - Nachteule - 9th Apr, 2016 09:51 PM

(9th Apr, 2016 07:51 PM)Ewoud Bakker Wrote:  Went ahead and just did it.
kodi 15 also gives the glitch so i reintalled latest package.

i'm pretty much out of ideas.

Hmmm, your sound glitches are really terrible.

Sometimes I have similar glitches with i.MX6/Hummingboard pro while watching Live TV, but those glitches are very rare.

Maybe audio buffer becomes empty and Kodi is not able to resync audio stream. You could try to optimize Kodi's video cache (see here) to see if there is any change.


RE: Hifiberry - Ewoud Bakker - 11th Apr, 2016 04:19 PM

Tried the cache thing but didn't help. ALso tried to play around with the PPL setting (sync display) and refresh rates, but that didn't do anything either.

I might just go and get myself an hdmi splitter. I'm not sure if its a hardware or software problem anymore.

any ideas are still welcome


RE: Hifiberry - Ewoud Bakker - 12th Apr, 2016 06:26 PM

Here is a debug log.
http://pastebin.com/PhaDjje4

Its seems that whenever

Terminal
09:39:27 1250.191406 T:1397748656 NOTICE: CDVDPlayerAudio::OutputPacket duplicate 3 packets of duration 32
09:39:28 1250.431519 T:1397748656 NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 32

happens. it starts freaking out.

Also the DVDplayer timeout happens but not always. it might happen after it cant get the audio back on sync. in this case i stopped the video as soon as it glitched out.

Terminal
09:35:09 991.816528 T:1954263040 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED

might be the issue as it happens on all video starts, but do not know what it means.

Any help is appreciated. will search the i-net for answers on "WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED" message.

Thnx in advance


ALso could i try another default player? i know omxplayer doesn't support alsa but maybe something else would be utilized to test if the problem is in DVDplayer?



Tried a test run with the movie Cars. Fiddling with setting concerning the synx playback. let kodi change the resolution and hz on the video so it doesn't need to convert it and put all gpu acceleration to max/unlimited.
no luck yet.

If i wait the glitch out it eventually stops itself and get the audio back.

Code:
12:56:47 1422.798462 T:1396700080 WARNING: COMXImageFile::GetCodingType progressive images not supported by decoder
12:56:47 1422.798584 T:1396700080  NOTICE: LoadJpeg: unable to load special://skin/backgrounds/spring.jpg
12:56:49 1424.947144 T:1396700080   ERROR: Open - failed to open source </media/MediaGate/Media/Tv Shows/Vinyl/Season 01/Vinyl.S01E09.SDTV-FLEET.mkv>
12:57:13 1448.966919 T:1953427456  NOTICE: OMXPlayerUnsuitable OMXPlayer unsuitable due to audio sink
12:57:13 1448.972656 T:1953427456  NOTICE: DVDPlayer: Opening: /media/MediaGate/Media/Movies/Cars.DVDRip.XviD-DiAMOND/CD1/dmd-cars-cd1.avi
12:57:13 1448.972900 T:1953427456 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
12:57:13 1448.976807 T:1265628080  NOTICE: Creating InputStream
12:57:13 1448.988159 T:1265628080  NOTICE: Creating Demuxer
12:57:14 1449.823120 T:1265628080  NOTICE: OMXPlayerUnsuitable OMXPlayer unsuitable due to audio sink
12:57:14 1449.823364 T:1265628080  NOTICE: Opening stream: 0 source: 256
12:57:14 1449.833130 T:1265628080  NOTICE: Creating video codec with codec id: 13
12:57:14 1449.847900 T:1265628080  NOTICE: Creating video thread
12:57:14 1449.848389 T:1265628080  NOTICE: Opening stream: 1 source: 256
12:57:14 1449.848511 T:1611658160  NOTICE: running thread: video_thread
12:57:14 1449.848511 T:1265628080  NOTICE: Finding audio codec for: 86019
12:57:14 1449.848755 T:1265628080  NOTICE: Creating audio thread
12:57:14 1449.848999 T:1354757040  NOTICE: running thread: CDVDPlayerAudio::Process()
12:57:14 1449.849121 T:1265628080  NOTICE: Opening stream: 0 source: 1024
12:57:14 1450.026123 T:1354757040  NOTICE: Creating audio stream (codec id: 86019, channels: 2, sample rate: 48000, pass-through)
12:57:14 1450.027954 T:1354757040  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 32
12:57:14 1450.050415 T:1611658160  NOTICE:  fps: 23.976024, pwidth: 608, pheight: 256, dwidth: 608, dheight: 256
12:57:14 1450.050903 T:1611658160  NOTICE: Display resolution ADJUST : 1920x1080 (1920x1080) @ 23.98 - Full Screen (34) (weight: 0.000)
12:57:14 1450.328979 T:1354757040  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 32
12:57:14 1450.329224 T:1354757040  NOTICE: CDVDPlayerAudio::OutputPacket duplicate 1 packets of duration 32
12:57:14 1450.329346 T:1354757040  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 32
12:58:08 1504.070312 T:1265628080  NOTICE: Previous line repeats 9 times.
12:58:08 1504.070435 T:1265628080   ERROR: CDVDMsgGeneralSynchronize - timeout
12:58:09 1505.436157 T:1354757040   ERROR: Previous line repeats 1 times.
12:58:09 1505.436401 T:1354757040  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 32
12:59:00 1556.231689 T:1265628080  NOTICE: Previous line repeats 7 times.
12:59:00 1556.231812 T:1265628080   ERROR: CDVDMsgGeneralSynchronize - timeout
12:59:00 1556.379150 T:1354757040  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 32
12:59:00 1556.380493 T:1354757040  NOTICE: CDVDPlayerAudio::OutputPacket duplicate 3 packets of duration 32
12:59:00 1556.519409 T:1354757040  NOTICE: Previous line repeats 1 times.
12:59:00 1556.519531 T:1354757040  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 32
12:59:04 1560.585938 T:1265628080  NOTICE: Previous line repeats 8 times.
12:59:04 1560.586060 T:1265628080   ERROR: CDVDMsgGeneralSynchronize - timeout
12:59:05 1560.718994 T:1354757040  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 32
12:59:05 1560.769043 T:1354757040  NOTICE: Previous line repeats 7 times.
12:59:05 1560.769165 T:1354757040  NOTICE: CDVDPlayerAudio::OutputPacket duplicate 1 packets of duration 32
12:59:07 1563.363403 T:1265628080   ERROR: CDVDMsgGeneralSynchronize - timeout
12:59:07 1563.518799 T:1354757040  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 32
12:59:09 1565.610718 T:1265628080  NOTICE: Previous line repeats 7 times.
12:59:09 1565.610840 T:1265628080   ERROR: CDVDMsgGeneralSynchronize - timeout
12:59:10 1565.718506 T:1354757040  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 32
12:59:12 1568.426514 T:1265628080   ERROR: CDVDMsgGeneralSynchronize - timeout
12:59:12 1568.518311 T:1354757040  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 32
12:59:15 1571.525635 T:1265628080  NOTICE: Previous line repeats 7 times.
12:59:15 1571.525757 T:1265628080   ERROR: CDVDMsgGeneralSynchronize - timeout
12:59:16 1571.718018 T:1354757040  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 32
12:59:18 1574.237793 T:1265628080  NOTICE: Previous line repeats 7 times.
12:59:18 1574.237915 T:1265628080   ERROR: CDVDMsgGeneralSynchronize - timeout
12:59:18 1574.317871 T:1354757040  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 32
12:59:19 1575.109497 T:1265628080  NOTICE: Previous line repeats 6 times.
12:59:19 1575.109619 T:1265628080   ERROR: CDVDMsgGeneralSynchronize - timeout
12:59:19 1575.217651 T:1354757040  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 32
12:59:20 1576.324463 T:1265628080   ERROR: CDVDMsgGeneralSynchronize - timeout
12:59:20 1576.517578 T:1354757040  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 32


Hmmmz

i just watched a tv show on hifiberry without passthrough. no glitches and the log shows the same skipping packets only with 21

Code:
16:54:17 9414.638672 T:1953996800  NOTICE: DVDPlayer: Opening: /media/MediaGate/Media/Tv Shows/Castle (2009)/Season 08/Castle.2009.S08E17.SDTV-KILLERS.mkv
16:54:17 9414.638672 T:1953996800 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
16:54:17 9414.642578 T:1322251184  NOTICE: Creating InputStream
16:54:17 9414.677734 T:1322251184  NOTICE: Creating Demuxer
16:54:18 9414.854492 T:1322251184  NOTICE: OMXPlayerUnsuitable OMXPlayer unsuitable due to audio sink
16:54:18 9414.854492 T:1322251184  NOTICE: Opening stream: 0 source: 256
16:54:18 9414.861328 T:1322251184  NOTICE: Creating video codec with codec id: 28
16:54:18 9414.871094 T:1322251184  NOTICE: Creating video thread
16:54:18 9414.871094 T:1297085360  NOTICE: running thread: video_thread
16:54:18 9414.871094 T:1322251184  NOTICE: Opening stream: 1 source: 256
16:54:18 9414.871094 T:1322251184  NOTICE: Finding audio codec for: 86018
16:54:18 9414.877930 T:1322251184  NOTICE: Creating audio thread
16:54:18 9414.878906 T:1271919536  NOTICE: running thread: CDVDPlayerAudio::Process()
16:54:18 9414.880859 T:1271919536  NOTICE: Creating audio stream (codec id: 86018, channels: 2, sample rate: 48000, no pass-through)
16:54:18 9414.881836 T:1271919536  NOTICE: CDVDPlayerAudio::OutputPacket duplicate 4 packets of duration 21
16:54:18 9414.895508 T:1297085360  NOTICE:  fps: 23.976024, pwidth: 720, pheight: 404, dwidth: 720, dheight: 404
16:54:18 9414.895508 T:1297085360  NOTICE: Display resolution USER : 1920x1080 (1920x1080) @ 60.00 - Full Screen (26)
16:54:18 9415.098633 T:1271919536  NOTICE: CDVDPlayerAudio::OutputPacket duplicate 1 packets of duration 21
16:54:18 9415.315430 T:1271919536  NOTICE: Previous line repeats 1 times.
16:54:18 9415.316406 T:1271919536  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 21
16:54:24 9421.135742 T:1271919536  NOTICE: Previous line repeats 10 times.
16:54:24 9421.135742 T:1271919536  NOTICE: CDVDPlayerAudio::OutputPacket duplicate 4 packets of duration 21
16:54:24 9421.215820 T:1271919536  NOTICE: Previous line repeats 3 times.
16:54:24 9421.215820 T:1271919536  NOTICE: CDVDPlayerAudio::OutputPacket duplicate 2 packets of duration 21
17:35:07 11863.915039 T:1322251184  NOTICE: CDVDPlayer::OnExit()
17:35:07 11863.988281 T:1322251184  NOTICE: DVDPlayer: eof, waiting for queues to empty
17:35:07 11863.988281 T:1322251184  NOTICE: Closing stream player 1
17:35:07 11863.988281 T:1322251184  NOTICE: CDVDMessageQueue(audio)::WaitUntilEmpty
17:35:07 11863.995117 T:1322251184  NOTICE: Waiting for audio thread to exit
17:35:07 11864.395508 T:1271919536  NOTICE: thread end: CDVDPlayerAudio::OnExit()
17:35:07 11864.395508 T:1322251184  NOTICE: Closing audio device
17:35:07 11864.395508 T:1322251184  NOTICE: Deleting audio codec
17:35:07 11864.396484 T:1322251184  NOTICE: Closing stream player 2
17:35:07 11864.396484 T:1322251184  NOTICE: CDVDMessageQueue(video)::WaitUntilEmpty
17:35:07 11864.422852 T:1322251184  NOTICE: waiting for video thread to exit
17:35:07 11864.422852 T:1297085360   ERROR: Got MSGQ_ABORT or MSGO_IS_ERROR return true
17:35:07 11864.422852 T:1297085360  NOTICE: thread end: video_thread
17:35:07 11864.422852 T:1322251184  NOTICE: deleting video codec
17:35:07 11864.738281 T:1953996800  NOTICE: CDVDPlayer::CloseFile()
17:35:07 11864.738281 T:1953996800  NOTICE: DVDPlayer: waiting for threads to exit
17:35:07 11864.738281 T:1953996800  NOTICE: DVDPlayer: finished waiting
17:35:07 11864.742188 T:1953996800  NOTICE: CDVDPlayer::CloseFile()
17:35:07 11864.742188 T:1953996800  NOTICE: DVDPlayer: waiting for threads to exit
17:35:07 11864.742188 T:1953996800  NOTICE: DVDPlayer: finished waiting



RE: Hifiberry - Ewoud Bakker - 14th Apr, 2016 03:34 AM

Went out and got myself an extra rpi3 put the hifiberry on it and installed the latest osmc but problem is still there and then installed latest openelec and it was still there.

So dunno what is going on but this could be an hardware problem in my receiver or the hifiberry itself.

I also could try and install an xbian 15.x version and see if it works with that.

//

Little update I installed the latest osmc on my rpi2 and set it up it seems to be working. Watched a whole movie without glitch.
Osmc has some other configuration for the hifiberry in Co fig.txt.
For starters it has dtoverlay=hifiberry-digi-overlay

So on rpi2 it seems to work. Can anyone confirm that they have a stable hifiberry running with rpi3?
As I could go back to the rpi3 install and see if the osmc type configuration would work on xboan with rpi3 in my case.


RE: Hifiberry - IriDium - 29th Apr, 2016 12:30 AM

So what's the consensus on the hifiberry working?

I thinking of getting either DAC+ Standard or Digi +. I think it will be the Digi+ as I can run an optical cable through to the AVR. Any ideas?


RE: Hifiberry - Skywatch - 29th Apr, 2016 03:11 AM

@IriDium

I splashed £11.99 on ebay for a pifiberry digi and have no complaints at all. It just plugs into my pi2 and gives optical and coaxial output and I have AC3(5.1) passthrough via toslink with great quality! Big Grin Cool

It even seems to work with DTS encoded audio, which I was not expecting as the receiver only has DD.... Perhaps it is transcoding on the fly, who knows? Blush

Any questions and I will answer if I can!


RE: Hifiberry - IriDium - 29th Apr, 2016 04:34 AM

@Skywatch Thanks, pifiberry item no longer on Ebay.

I'm currently using HDMI to the AVR but the sound is not exceptional, I'm hoping a DAC will improve the quality.

Any advise welcome.


RE: Hifiberry - Skywatch - 29th Apr, 2016 04:44 AM

My mistake Sad

http://www.ebay.co.uk/itm/HIFI-DiGi-Digital-Sound-Card-I2S-SPDIF-Optical-Fiber-RCA-Raspberry-Pi-2-A-B-/181944856403?hash=item2a5cc22f53:g:HJkAAOSwxN5WWYNH

This is the one I am using and for the price I think it is very good indeed..... Try it and see! Smile


RE: Hifiberry - f1vefour - 1st May, 2016 10:16 AM

I need one of those.


RE: Hifiberry - Skywatch - 2nd May, 2016 12:33 AM

@54

This is the best price I have seen for this board and I got mine from that seller, so you should be good to go.

Remember that this one is best suited to 5.1 sound and if you are looking for stereo sound then there are better options out there. I now have 5 dacs including this one and so have some experience of different chips.


RE: Hifiberry - Nachteule - 2nd May, 2016 01:54 AM

@Skywatch

So you're first address for testing my planned audio setup for Kodi Krypton.

Will add Bluetooth and Audio setup to xbmc-config gui Smile


RE: Hifiberry - Skywatch - 2nd May, 2016 03:46 AM

@Nachteule

I will be happy to help if I can! Smile

I don't have bluetooth to test with (and bluetooth audio I have heard is compressed and not best quality).

Adding to the gui sounds like a good way to go Wink


RE: Hifiberry - f1vefour - 2nd May, 2016 10:29 PM

My soundbar has Bluetooth, I could give it a go once integrated.

@Skywatch
I don't currently have surround but I will eventually, my soundbar is good but I certainly miss having 5.1. I had a Pioneer setup but the receiver gave out on me and I just didn't feel like replacing it.


RE: Hifiberry - IriDium - 3rd May, 2016 03:26 AM

I've ordered one of the DAC's, so once I receive it I'll be able to test the package as I have a BT keyboard and audio headset (which should suffice for testing purposes).