Home > Forum > Mediaplayer SDK, Avalonia - Unable to play Karaoke CDG & zip files

Mediaplayer SDK, Avalonia - Unable to play Karaoke CDG & zip files

today 05:02 (5 hours ago)
Alan Wood wrote
HI,
I’m currently using the demo version of your Media player SDK to evaluate it, to see if meets my needs for a new project that I’m currently working on, I’m using your simple Mediaplayer demo for my evaluation, however.. as well as audio and video playback, I also need Karaoke CDG and zip file playback, all with pitch shifting.

I cannot find any demos of Karaoke media playback for Avalonia, but from reading the documentation it appears that I need to do the following for Zipped files:

_currentSettings = new CDGSourceSettings(zipFile);
_currentSettings.EnablePitchShifting = true;
_currentSettings.PitchSemitones = tbPitch.Value;
await _player.OpenAsync(_currentSettings);

And the following for MP3+G:
_currentSettings = new CDGSourceSettings(cdgFile, audioFile);
_currentSettings.EnablePitchShifting = true;
_currentSettings.PitchSemitones = tbKey.Value;
await _player.OpenAsync(_currentSettings);

However I get the following errors in the Debug:

[12:44:31 DBG] [MediaBlocksPipeline[MediaPlayerCoreX]][AddBlock] Successfully added block 'OverlayManager' to pipeline.
[12:44:31 DBG] [MediaBlocksPipeline[MediaPlayerCoreX]][Connect] Successfully connected Queue.[QueueBlock] Out Auto to OverlayManager.[OverlayManagerBlock] In Video
[12:44:31 DBG] [MediaBlocksPipeline[MediaPlayerCoreX]][AddBlock] Successfully added block 'VideoEffects' to pipeline.
[12:44:31 DBG] [MediaBlocksPipeline[MediaPlayerCoreX]][Connect] Successfully connected OverlayManager.[OverlayManagerBlock] Out Video to VideoEffects.[VideoEffectsBlock] In Video
[12:44:31 DBG] [MediaBlocksPipeline[MediaPlayerCoreX]][AddBlock] Successfully added block 'VideoRenderer' to pipeline.
[12:44:31 DBG] [MediaBlocksPipeline[MediaPlayerCoreX]][Connect] Successfully connected VideoEffects.[VideoEffectsBlock] Out Video to VideoRenderer.[VideoRendererBlock] In Video
[12:44:31 INF] [MediaPlayerCoreX][Play] Using async API.
[12:44:31 DBG] [MediaBlocksPipeline[MediaPlayerCoreX]][CreatePipeline] Building 8 media blocks...
[12:44:31 ERR] [CDGSource][Init] Unable to create cdgparse.
[12:44:31 ERR] [CDGSourceBlock][Build] Unable to build CDGSourceBlock.
[12:44:31 ERR] [MediaBlocksPipeline[MediaPlayerCoreX]][CreatePipeline] Failed to build block 'CDGSource'.
[12:44:31 ERR] [MediaBlocksPipeline[MediaPlayerCoreX]][Open] Unable to create some pipeline elements.

Any help with resolving the issue would be appreciated, I know its almost certainly something I’m doing wrong!!
I’m currently working on a Linux Cinnamon (Mint 22) machine, however I’ve also tried building the project on Windows 11 with the same results.

Thanks

Alan
Reply
6 Answers
today 05:14 (5 hours ago)
Roman Miniailov agent wrote
Hi

Add NuGet package

<PackageReference Include="VisioForge.CrossPlatform.Core.Windows.Adds.x64" Version="2025.11.0" />

Or check this sample - https://github.com/visioforge/.Net-SDK-s-samples/tree/master/Media%20Player%20SDK%20X/WinForms/Karaoke%20Demo

Do you have this issue in some other sample?
today 05:19 (5 hours ago)
Alan Wood wrote
thanks, I'll add the package and give it a try.

I've looked at that sample, It appears to be for winforms, I'm using Avalonia?
today 05:33 (4 hours ago)
Alan Wood wrote
Just added the package, restarted the project and I'm still getting the same errors.
today 06:08 (4 hours ago)
Roman Miniailov agent wrote
Let me create an Avalonia sample.

Do you have this issue in WinForms app?
today 06:13 (4 hours ago)
Alan Wood wrote
No, the WinForms Karaoke demo worked without issue.
today 09:55 (34 mins ago)
Roman Miniailov agent wrote