BASS_DSHOW Video Library

Started by Ionut Cristea,

Xire

#20
Well, not that fine ;)
I've got one .mov file. I decoded it and sound was just way to slow. INFO.Freq returned by BASS_DSHOW_GETINFO is 44100, however in reality it's 48000.

Update: opening the same file with demo.exe it produces some strange noises ;)

Ionut Cristea

 
QuoteWell, not that fine Wink
I've got one .mov file. I decoded it and sound was just way to slow. INFO.Freq returned by BASS_DSHOW_GETINFO is 44100, however in reality it's 48000.

Update: opening the same file with demo.exe it produces some strange noises Wink

I've not try yet mov files. Maybe you can upload that file and i will check it.

Cheers, Sharky.

Ionut Cristea


QuoteWell, not that fine Wink
I've got one .mov file. I decoded it and sound was just way to slow. INFO.Freq returned by BASS_DSHOW_GETINFO is 44100, however in reality it's 48000.

Update: opening the same file with demo.exe it produces some strange noises Wink

Yep...the freq that bass_Dshow returned was incorect.
If fixed the bug. Try this update:http://filezone.ro/public.php?action=viewfile&file_id=14815

Cheers, Sharky

Xire

Huh. Now for some files sample rate is OK, for some not (11250 instead of 48000), for some files I get same exception as previous.

Ionut Cristea

 
QuoteHuh. Now for some files sample rate is OK, for some not (11250 instead of 48000), for some files I get same exception as previous.


 Hi! Try this: http://filezone.ro/public.php?action=viewfile&file_id=14922

Xire

Worked fine with that mov file. I updated to latest k-lite codec pack as well ;)
As for those exceptions  -I guess I'm getting them because directshow was unable to find proper decoder for the file - that's what demo.exe told me. Will continue testing.

Ionut Cristea

QuoteWorked fine with that mov file. I updated to latest k-lite codec pack as well Wink
As for those exceptions  -I guess I'm getting them because directshow was unable to find proper decoder for the file - that's what demo.exe told me. Will continue testing.

Thanks ;)

PS: If anyone could translate the BASS_DSHOW header to Visual C++,BASIC or other programming language will be great.

Xire

Btw, are you generating this exception (in case no decoder can be found)? Would be nice to get 0 as a return code, instead ;)
And do you have plans about adding Unicode support? (change string to WideString) ;)

Xire

Quote from: Sharky08PS: If anyone could translate the BASS_DSHOW header to Visual C++,BASIC or other programming language will be great.

For that you need to change calling method to stdcall, like:

procedure BASS_DSHOW_Init(Win: HWND); stdcall; external dll;

and change string to PAnsiChar (or PWideChar in case of Unicode)

Ionut Cristea



QuoteFor that you need to change calling method to stdcall, like:

procedure BASS_DSHOW_Init(Win: HWND); stdcall; external dll;

and change string to PAnsiChar (or PWideChar in case of Unicode)

OK. I will do it right now

Xire

Update:

Instead of change string to PAnsiChar (or PWideChar in case of Unicode)

change to pointer and treat it either as PAnsiChar (or PWideChar in case of Unicode) ;)

Ionut Cristea

Hi!. Here is a new update:
+added stdcall to calling functions
+some bugs fixed

http://filezone.ro/public.php?action=viewfile&file_id=15031

Ionut Cristea

QuoteGOOD JOB, Sharky.

PS: Can you code bass_dshow to play Youtube files. Will be great.
Sorry for my bad english Grin


Yes. I found a way to play youtube files. But (for the moment) when you try to open a youtube, you must wait to download that file to begin playing.
  Cheers, Sharky.

w3k

#33
Hello! Sharky08
   Can open source it?

   I would like to know how BASS_DSHOW.dll combination of work BASS.dll

  lcm5151@21cn.com

Ionut Cristea

QuoteHello! Sharky08
   Can open source it?

   I would like to know how BASS_DSHOW.dll combination of work BASS.dll

Contact me at: sharky_boy_07@yahoo.com

Ionut Cristea

Hi. New version of BASS_DSHOW released:
+BASS_DSHOW_GetMediaType - function for getting media type
+BASS_DSHOW_GETVERSION  - to get DLL version

Version Now is 2.4(like BASS ;D)


QUESTION: want somebody the BASS_DSHOW version(a beta version) that play youtube media type??Send me a PM. Remember. You must wait until BASS_DSHOW download youtube media file from internet.   

DOWNLOAD FROM: http://filezone.ro/public.php?action=viewfile&file_id=15096

Chris2009

QuoteQUESTION: want somebody the BASS_DSHOW version(a beta version) that play youtube media type??Send me a PM. Remember. You must wait until BASS_DSHOW download youtube media file from internet.

Hi, Sharky. Do you think you can post the DLL here??

Ionut Cristea

Not yet.  ;D
Momentan i'm trying to make BASS_DSHOW play while downloading a youtube video (currently you must wait until download is finish).
Soon it will be done(max. 1 week) ;D

Ionut Cristea

 FIXED: When trying to get position after setting a new playback position.
http://filezone.ro/public.php?action=viewfile&file_id=16782