Author Topic: KFN (KaraFun) files not playing properly  (Read 3659 times)

Marty

  • Posts: 6
KFN (KaraFun) files not playing properly
« on: 17 Aug '11 - 17:34 »
Is there any way to make the KFN (KaraFun) files play properly?  Here are the issues I'm experiencing:

1. I can hear the audio.
2. The visual (lyrics) is messed up, it looks like it's drawing boxes randomly.
3. The length of the clip is wrong.  I have a song that lasts 4 minutes and it reports it as twice that size.

Thanks!

Marty

Ian @ un4seen

  • Administrator
  • Posts: 20721
Re: KFN (KaraFun) files not playing properly
« Reply #1 on: 18 Aug '11 - 17:20 »
Please confirm how you're playing the files, eg. the calls that you're making.

Marty

  • Posts: 6
Re: KFN (KaraFun) files not playing properly
« Reply #2 on: 30 Aug '11 - 13:55 »
This is my "Initialize" procedure:

      BASS_Init(-1,44100,BASS_UNICODE,handle,0) ;
      BASS_PluginLoad('BASS_CDG.DLL',BASS_UNICODE);
      //BASS_PluginLoad(PWideChar(ExtractFilePath(ParamStr(0))+'BASS_CDG.DLL'),BASS_UNICODE);
      DoubleBuffered := true;
      pnlLyrics.DoubleBuffered := true;
      BASS_CDG_SetConfig(BASS_CDG_WINDOW,pnlLyrics.Handle);
      BASS_PluginLoad('BASS_DSHOW.dll',BASS_UNICODE);

This is my "Play" procedure:

  flags:=BASS_STREAM_DECODE or BASS_UNICODE;
  chan:=BASS_StreamCreateFile(false,pansichar(sFilenameX),0,0,flags);
  if (chan=0) then
    exit;
  chan := BASS_FX_TempoCreate(chan,BASS_FX_FREESOURCE);
  BASS_ChannelPlay(chan,false);

Ionut Cristea

  • Posts: 1545
Re: KFN (KaraFun) files not playing properly
« Reply #3 on: 30 Aug '11 - 16:27 »
  Hi,


You have the latest BASS_CDG and BASS_DSHOW addons?

Marty

  • Posts: 6
Re: KFN (KaraFun) files not playing properly
« Reply #4 on: 2 Sep '11 - 18:23 »
BASS_CDG.DLL is dated 2011/06/25
BASS_DSHOW.DLL is dated 2011/08/04

RobJellinghaus

  • Posts: 94
Re: KFN (KaraFun) files not playing properly
« Reply #5 on: 2 Sep '11 - 19:58 »
Don't use dates.  Right-click the DLLs, pick Properties, pick the Details tab, and report the Version number that's shown there.

Marty

  • Posts: 6
Re: KFN (KaraFun) files not playing properly
« Reply #6 on: 4 Sep '11 - 12:56 »
Sorry...

BASS_CDG.DLL  Version 2.4.0.1
BASS_DSHOW.DLL  Doesn't show a version!

Ionut Cristea

  • Posts: 1545
Re: KFN (KaraFun) files not playing properly
« Reply #7 on: 4 Sep '11 - 13:09 »
  I don't think that KFN files can be played with BASS_DSHOW(BASS_CDG only decodes CDG+G files). But if you have some format specifications, some source code that describe how to load them, maybe i can do something about. I've searched for a Directshow KFN decoder, but i didn't find anything :(

BigMac121263

  • Guest
Re: KFN (KaraFun) files not playing properly
« Reply #8 on: 11 Nov '12 - 15:35 »
Dear all. I am working on playing KFn files in third party software , but Karafun player. I have a script which extracts the  parts of KFN files. KFN files are Container files containing:
mp3 file for audio (sometimes the mp3 is external stored near the similar named KFN like CDG) but mostly the MP3 is in the file integrated, there is a header with info about song, artist, genre etc., a configuration file like ini containing the info where the MP3 is for example if not integrated, and an LRC file (lyrics file), and finally some images in JPG format for the graphics. The script, I have is in Java, so if somebod is able to port hte script to C++ or delphi or to Java-Script or VBS, that would give us the poss. to play the KFN in other apps than Karafun. Contact me for further info if you want. I have written a Karaoke media player supporting all well known formats but actually not KFN. This is my target, or to convert them to CDG or Video without need of Karafun Studio, which actually is the only tool with export function.

BigMac121263

  • Posts: 1
Re: KFN (KaraFun) files not playing properly
« Reply #9 on: 11 Nov '12 - 15:55 »
Sorry and I forgot: Mostly they are encrypted. And for that I have also the decryption in my Code. So if somebody wants to have the code, I can give it to him and maybe he is able to workout an final decoder (codec) for directX for that KFN files. Would be interesting and lots of people waiting for it.

Francis

  • Guest
Re: KFN (KaraFun) files not playing properly
« Reply #10 on: 5 Apr '18 - 14:20 »
Hi It's a very old post.
i'm working on the KFN format too. Did you get other informations about this format (Especially the KFN3 encrypted format) ?