View Full Version : madFlac - new DirectShow FLAC source filter + decoder
Pages :
[
1]
2
3
4
5
6
7
8
9
10
11
madshi
3rd October 2007, 18:14
madFlac v1.10
http://madshi.net/madFlac.rar
This is a DirectShow source + decoder filter for FLAC files. It should work with any FLAC files you can throw at it and give out bit perfect results. Supported are both external standalone FLAC files and FLAC tracks inside of containers (e.g. MKV). Please let me know if you find any problems.
Enjoy! :)
Thunderbolt8
3rd October 2007, 19:47
very nice,thank!
any estimation when v2.4 might come?
edit: tiny cosmetics: readme says install.bat, while its register.bat ;)
p.s. any info about cpu usage or something like that? is it better in this field as coreflac or ffdshow audio for example?
edit: have some playback problems with that flac file Ive written about in the eac3to thread. this time madflac wont play the 5.1 dd+ -> flac file (24-bit) inside that .mkv, which played back just fine with coreflac or ffdshow audio. the video is there, but theres absolutely no sound to be heard. when I take that critical 2.0 dd+ -> flac commentary file, which accelerated the fps to 40 with ffdshow audio and coreflac, there are just clicking noises and mpc crashes soon after.
does playback only work with files outside .mka/.mkv ?
madshi
3rd October 2007, 21:48
any estimation when v2.4 might come?
I've no idea.
edit: tiny cosmetics: readme says install.bat, while its register.bat ;)
Ooops.
p.s. any info about cpu usage or something like that? is it better in this field as coreflac or ffdshow audio for example?
Haven't compared that yet.
edit: have some playback problems with that flac file Ive written about in the eac3to thread. this time madflac wont play the 5.1 dd+ -> flac file (24-bit) inside that .mkv, which played back just fine with coreflac or ffdshow audio. the video is there, but theres absolutely no sound to be heard. when I take that critical 2.0 dd+ -> flac commentary file, which accelerated the fps to 40 with ffdshow audio and coreflac, there are just clicking noises and mpc crashes soon after.
does playback only work with files outside .mka/.mkv ?
madFlac is only meant for external files. FLAC files inside of any containers are not supported by madFlac.
ACrowley
4th October 2007, 11:39
THX!
Nice work...-.until now i used illiminable FLAC Source/Decoder.
But it wont decode 24bit Flac (only muxed in mka).
For FALC in Container i use ffdshow ,works perfect.
Is it possible to connect with AC3 Filter at the End in the decodig chain ? I use it to Output AC3 640 SPDIF
Inventive Software
4th October 2007, 12:03
Is there a way to just enable the source filter?
madshi
4th October 2007, 14:52
Is it possible to connect with AC3 Filter at the End in the decodig chain ? I use it to Output AC3 640 SPDIF
Should be no problem. Well, at least I'm not doing anything to disallow that.
madshi
4th October 2007, 14:53
Is there a way to just enable the source filter?
It's a combined source/decoder filter. Currently you cannot disable the decoder. What would you need that for?
Inventive Software
4th October 2007, 17:52
For people that want to use ffdshow, probably with conversion or down-mixing filters, or another decoder.
madshi
4th October 2007, 17:59
For people that want to use ffdshow, probably with conversion or down-mixing filters, or another decoder.
madFlac's decoding is bit perfect (as it should be for a lossless codec). Because of that I see no reason to use another decoder. You can still use ffdshow's "raw" audio processing to do down-mixing, conversion and other stuff. FWIW, ffdshow currently cannot handle 8 audio channels (sound gets distorted). So for 8 channel FLACs ffdshow wouldn't work, anyway.
madshi
4th October 2007, 18:02
madFlac v1.1 released
http://madshi.net/madFlac.rar
* BASS libraries replaced with libFlac
* seeking works now for > 4GB files, too
As far as I can see, the filter should now be "perfect" for external FLAC files. Please let me know if you find any problems.
Inventive Software
4th October 2007, 18:08
Cheers, will test later on. :)
Thunderbolt8
4th October 2007, 18:33
tested v1.1 with my speedy gonzales problem commentary track, placed it with same filename outside the movie .mkv as .flac, used commandline mpc with /dub command, but mpc just crashes then with
AppName: mplayerc.exe AppVer: 6.4.9.1 ModName: coreflacdecoder.ax
ModVer: 0.4.0.46 Offset: 00014e34
edit: allright, crash was caused by coreflacdecoder, which was still active until I unregistrered it, despite all block setting.
still, also with v1.1 those stupid clicks in the commentary track :S
just noticed when playing back that commentary track in .mka with normal media player it reported the same length as the movie track, but the time elapses quite some bit faster. could it be possible that the commentary track was recored with a different number of fps and this might be the reason why he accelerates the video? is there a way to slow it down to 23.976fps then, without having it to sound stupid?
ACrowley
4th October 2007, 18:50
@madshi
Ive Problems with madflac
Ive no correct channel decoding on 5.1 /6.1 FLAC .
FFdshow and illiminabel works perfect. But with madflac ive no Center Channel...i tried all System/Soundcard Speaker Settings, all the same
madshi
4th October 2007, 22:24
still, also with v1.1 those stupid clicks in the commentary track :S
Are you sure that the commentary track is ok? Maybe there's something wrong with that track?
just noticed when playing back that commentary track in .mka with normal media player it reported the same length as the movie track, but the time elapses quite some bit faster. could it be possible that the commentary track was recored with a different number of fps and this might be the reason why he accelerates the video? is there a way to slow it down to 23.976fps then, without having it to sound stupid?
How fast does the track play with madFlac? If the speed is ok with madFlac, the problem must be related to the mka container somehow.
madshi
4th October 2007, 22:26
@madshi
Ive Problems with madflac
Ive no correct channel decoding on 5.1 /6.1 FLAC .
FFdshow and illiminabel works perfect. But with madflac ive no Center Channel...i tried all System/Soundcard Speaker Settings, all the same
That's strange. It seems to work for me. At least I've forced the ffdshow raw audio decoder into the chain and it shows that there's some action on the center channel (see "volume" page, check the bottom most checkbox).
Inventive Software
5th October 2007, 01:15
Checked with an AviSynth script that loads 6 FLAC files representing 6 channels, and all are fine. :)
madshi
5th October 2007, 08:24
Checked with an AviSynth script that loads 6 FLAC files representing 6 channels, and all are fine. :)
Thanks!
So the question is why it doesn't seem to work for ACrowley?
Inventive Software
5th October 2007, 11:28
Mine is 6 seperate FLAC files, his is probably a 5.1 channel FLAC file. It may well be the way it's encoded.
Is it possible to swap the channels in such a file, like with AviSynth, and losslessly encode again?
madshi
5th October 2007, 11:43
Is it possible to swap the channels in such a file, like with AviSynth, and losslessly encode again?
Yes, you can do e.g. "eac3to source.flac dest.flac -0,1,2,3,5,4" to swap the last two channels.
ACrowley
5th October 2007, 16:24
...the encoded FLAC Files are Ok....all Channels present . Thats not the Problem, only the decoding with madflac is wrong.
Friend of mine has the same Problem :) And the PC on my work too
FLAC Output with madflac analog Output has no center channel
Illiminable ffdhow and CoreFLAC are working , i m sure its not a Problem caused by my Setup
Very interesting :
When i add ffdshow Audiio Processor behind madflac the Output is OK !
Without ffdshow Center Channel isnt present (i can hear itvery silent in L R )
madshi
5th October 2007, 17:21
madFlac v1.2 released
http://madshi.net/madFlac.rar
* bugfix: channel mapping was specified correctly
ACrowley
5th October 2007, 17:25
madFlac v1.2 released
http://madshi.net/madFlac.rar
* bugfix: channel mapping was specified correctly
Yep....now it works perfect ! :)
madshi
5th October 2007, 17:37
Yep....now it works perfect ! :)
:)
AC3Filter now connects, too. But only on 5.1, not on 7.1.
ACrowley
6th October 2007, 11:10
yes...AC3 Filter supports only max 5.1
7.1 Support is on the to do List , so far i know
madshi
6th October 2007, 16:45
madFlac v1.3 released
http://madshi.net/madFlac.rar
* property page added
* option for limiting output to max 5.1 channels added
ACrowley
7th October 2007, 08:36
madFlac v1.3 released
http://madshi.net/madFlac.rar
* property page added
* option for limiting output to max 5.1 channels added
The Decoder appears not as "madflac" in the Dshow Player Filter Properties when you play a Flac File as like as other Decoder ? right ?...
http://img520.imageshack.us/img520/3448/sourcegn8.th.png (http://img520.imageshack.us/my.php?image=sourcegn8.png)
Ofcourse you can acces the Options whne you click Filter Options/"Source File :customized Graph" in Zoomplayer or in mpc its in "Play/Filters"
Its marginal, but maybe you can make the Decoder visible as "madflac" for Dshow Playback so that the Decoder is listed in the Filter/Graph Optiones so we can acces the Options from there ...would be more obvious :)
And i have a 6.1 FLAC File reencoded from DTSHD 6.1 with latest eac3to. eac3to info is DTS HD "6.1" 24
and .wavs Output is 7 mono waves
But Madflac Info on 6.1 Flac 7.1 CH
I made a few Tests and all Flac Files reencoded from dts (hd) 6.1 are 7.1 in madflac Properties.
I Dont know if its only a wrong info or madflac decodes them wrong as 7.1
http://img263.imageshack.us/img263/5213/36032700mm5.th.png (http://img263.imageshack.us/my.php?image=36032700mm5.png)
madshi
7th October 2007, 14:08
The Decoder appears not as "madflac" in the Dshow Player Filter Properties when you play a Flac File as like as other Decoder ? right ?...
http://img520.imageshack.us/img520/3448/sourcegn8.th.png (http://img520.imageshack.us/my.php?image=sourcegn8.png)
Ofcourse you can acces the Options whne you click Filter Options/"Source File :customized Graph" in Zoomplayer or in mpc its in "Play/Filters"
Its marginal, but maybe you can make the Decoder visible as "madflac" for Dshow Playback so that the Decoder is listed in the Filter/Graph Optiones so we can acces the Options from there ...would be more obvious :)
I'm using MPC and and not ZoomPlayer, and in MPC the madFlac options are available in the same place where any other decoder's options are available, too. Not sure what madFlac would have to do different (technically) to show up in ZoomPlayer where you want it to show up. If that's important for you, maybe you can ask ZoomPlayer support about this? They might be able to tell you what a decoder needs to do exactly to show up where you want it to show up.
And i have a 6.1 FLAC File reencoded from DTSHD 6.1 with latest eac3to. eac3to info is DTS HD "6.1" 24
and .wavs Output is 7 mono waves
But Madflac Info on 6.1 Flac 7.1 CH
I made a few Tests and all Flac Files reencoded from dts (hd) 6.1 are 7.1 in madflac Properties.
I Dont know if its only a wrong info or madflac decodes them wrong as 7.1
LPCM tracks are 7.1, even if the soundtrack is only 6.1. The back channel is then simply stored twice with identical data. DTS Discrete can be 6.1 or 7.1, I believe. TrueHD is usually 5.1 or 7.1, I think. In order to avoid having so many different channel configurations eac3to is intentionally converting 6.1 channels to 7.1 by doubling the 7th channel. FLAC should handle such situations very efficiently. I expect there to be no noticable disadvantage in file size.
clsid
7th October 2007, 20:12
madFlac crashes for me :(
Could it be because of my old CPU (no SSE)?
madshi
7th October 2007, 20:45
madFlac crashes for me :(
Could it be because of my old CPU (no SSE)?
Can you post the crash report? At least in which dll it crashed? If it's inside of libFlac.dll then it might be SSE related. Honestly I'm not sure which version of libFlac.dll I'm using. You could try replacing that libFlac.dll (which is distributed with madFlac) with a SSE free version to see if that fixes the problem.
Moitah
7th October 2007, 20:45
madFlac crashes for me :(
Could it be because of my old CPU (no SSE)?
I got a similar bug report for my program CUE Tools which uses libFLAC, and indeed there is sometimes a problem with libFLAC's SSE detection routine. I'm pretty sure this is the same problem here because I was able to reproduce it on one of my older computers. Try this compile (http://www.moitah.net/misc/libFLAC_DLL_TryCatch_1.2.1.zip) of libFLAC.dll, I compiled it with USE_TRY_CATCH_FLAVOR defined which changes the way the error handling in the SSE detection works.
clsid
7th October 2007, 23:24
I am happy to report that Moitah's compile of libFLAC.dll works fine :)
ACrowley
8th October 2007, 09:23
@Madhsi
I simply mean that in mpc for example for AC3 the Decoder apperas as AC3 Filter, or for x264 its CoreAVC or ffdshowVideoDecoder etc
You can click on the Decoder to enter Options.
Thats what i mean for madflac too because the Decoder appears not as madflac as like as AC3 Filter for example....but its marginal , forget it :)
madshi
8th October 2007, 10:38
I am happy to report that Moitah's compile of libFLAC.dll works fine :)
That's nice!
I'll distribute Moitah's build with madFlac from now on, then... :) Thanks to Moitah!
madshi
8th October 2007, 10:39
I simply mean that in mpc for example for AC3 the Decoder apperas as AC3 Filter, or for x264 its CoreAVC or ffdshowVideoDecoder etc
You can click on the Decoder to enter Options.
Thats what i mean for madflac too because the Decoder appears not as madflac as like as AC3 Filter for example....but its marginal , forget it :)
Ah, I see what you mean. madFlac shows not with "madFlac", but with the filename of the FLAC file. That should be easy to change.
ACrowley
8th October 2007, 13:33
Ah, I see what you mean. madFlac shows not with "madFlac", but with the filename of the FLAC file. That should be easy to change.
yep...thats all we need ,youre right
Shakey_Jake33
8th October 2007, 22:03
I get an error messege when trying to install this :(
"The module "madFLAC.ax" was loaded but the call to DllResidterServer failed with error code 0x80004005."
I am using Vista X64 mind.
madshi
9th October 2007, 08:21
I get an error messege when trying to install this :(
"The module "madFLAC.ax" was loaded but the call to DllResidterServer failed with error code 0x80004005."
I am using Vista X64 mind.
Ouch. Didn't test madFlac on Vista64 yet. But I've already had trouble with installing the simple "Dump" filter (MS filter which ships with GraphEdit) on Vista64! So it seems that installing 32bit DirectShow filters on Vista64 is a general problem. I'll look into this later. Can't promise a specific date for a fix, though.
TheSof
9th October 2007, 12:07
This is just for playing flac without a container, yes?
I have lots of working 5.1 flacs but as soon as I put them in an mka and mkv and use ffdshow, the sound breaks up every few seconds.
Can I ask what people are using to decoder flac inside a mkv container?
madshi
9th October 2007, 12:14
This is just for playing flac without a container, yes?
Correct.
I have lots of working 5.1 flacs but as soon as I put them in an mka and mkv and use ffdshow, the sound breaks up every few seconds.
Can I ask what people are using to decoder flac inside a mkv container?
Currently I have all my FLACs as external files. I might add decoding support for FLACs in containers, but I'm not sure if I can make it better than ffdshow.
clsid
9th October 2007, 12:15
The Vista problem might be because of UAC. Try disabling that. And of course register the filter with admin privileges.
Shakey_Jake33
9th October 2007, 13:11
The Vista problem might be because of UAC. Try disabling that. And of course register the filter with admin privileges.
You are right! Disabling UAC lets me install it! I've never had to do that with a codec before though.
TheSof
9th October 2007, 15:01
I keep getting a "Cannot render file" when using madflac and mpc. Works fine in graphedit.
madshi
9th October 2007, 15:30
I keep getting a "Cannot render file" when using madflac and mpc. Works fine in graphedit.
Hmmm... Do you have some "strange" filter in the "external filters" section? Don't know what else could stop madFlac from working...
What happens if you just drop a FLAC file into GraphEdit without manually choosing madFlac. Does GraphEdit automatically choose madFlac and does playback work that way?
Maybe you still have another filter installed (e.g. CoreFlac)?
TheSof
9th October 2007, 15:49
When I drop an flac into graphedit I get an error:
"The format is not supported."
I do not have coreflac installed, nor any other flac source filter nor decoder, but clearly somethings wrong on my end, as seems to be more and more often the case:(
madshi
9th October 2007, 17:40
When I drop an flac into graphedit I get an error:
"The format is not supported."
I do not have coreflac installed, nor any other flac source filter nor decoder, but clearly somethings wrong on my end, as seems to be more and more often the case:(
That's a bit strange. Maybe there's another filter which tries to read the FLAC file but fails. Does MPC show you which filter it used for the "cannot render file"?
madshi
10th October 2007, 19:13
madFlac v1.4 released
http://madshi.net/madFlac.rar
* bugfix: "madFlac" is shown in MPC/ZoomPlayer now instead of file name
* bugfix: maybe installation in Vista64 works now without having to deactivate UAC (not tested)
* bugfix: using different libFlac.dll build to avoid crashes on older CPUs
* in addition to the "madFlac Source" there's now a "madFlac Decoder" filter for decoding FLAC inside of MKV (or other containers)
The new "madFlac Decoder" filter for MKV FLAC decoding is not very well tested yet. So I'd be happy about some feedback. Especially I'd like to know if there are audio dropouts or audio sync problems or anything like that. If everything works great, I'd like to know that, too, of course. :) Thanks.
TheSof
12th October 2007, 00:19
Have not had much time to test, but for me it is great. It does not drop out when ffdshow does (for me ffdshow will always drop out now and then in the first 20 seconds but then more or less behaves) nor pop, which core does sometimes.
I also like the information panel.
Great work in all. Thanks so much.
madshi
12th October 2007, 08:27
I'm glad to hear that - thanks for the feedback... :)
Fasola_Jan
13th October 2007, 08:34
Can you add tag support for Windows Media Player 11, pretty please (with cherry on top)?
madshi
13th October 2007, 08:42
Can you add tag support for Windows Media Player 11, pretty please (with cherry on top)?
I don't even know (exactly) what that is. If you give me a few details I might be able to add it.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.