Log in

View Full Version : madFlac - new DirectShow FLAC source filter + decoder


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

jasonwc
1st February 2010, 16:57
I have found a 24/96 5 channel FLAC which will not play with madFLAC. The issue appears to be that it' has 5 channels, as down-sampling to 16/48 doesn't fix the issue. I haven't had any issues with 6 or 8-channel playback.

Attempting playback in MPC-HC with the madFLAC decoder fails with a "cannot render some of the pins in the graph" message. I can playback in foobar2000 and MPC-HC's internal decoder without issue.

Please find a 24/96 and a 16/48 sample below:

http://rapidshare.com/files/344379924/01_-_Concerto__Rv_386__Allegro_Ma_Poco__24-96_.flac.html

http://rapidshare.com/files/344379923/01_-_Concerto__Rv_386__Allegro_Ma_Poco__16-48_.flac.html

Jeff Flowerday
2nd February 2010, 15:51
I have found a 24/96 5 channel FLAC which will not play with madFLAC. The issue appears to be that it' has 5 channels, as down-sampling to 16/48 doesn't fix the issue. I haven't had any issues with 6 or 8-channel playback.

Attempting playback in MPC-HC with the madFLAC decoder fails with a "cannot render some of the pins in the graph" message. I can playback in foobar2000 and MPC-HC's internal decoder without issue.

Please find a 24/96 and a 16/48 sample below:

http://rapidshare.com/files/344379924/01_-_Concerto__Rv_386__Allegro_Ma_Poco__24-96_.flac.html

http://rapidshare.com/files/344379923/01_-_Concerto__Rv_386__Allegro_Ma_Poco__16-48_.flac.html

Just to confirm, 5.0 and 6.1 have never worked for me when using madflac as the decoder.

Cogitation
28th April 2010, 04:03
I hope this question doesn't come across as too rude, but I thought the purpose of madflac was to decode various new kinds of flac files cropping up, like 5.0... also 24-bit, 96khz flac inside an mkv container and the like.

If madflac can't do that reliably, or it can't do it better than standards like libflac, why is it being worked on?

I've installed it on my last three machines, because I had read it will decode 24-bit flac inside of .mkv, and since I was having a problem doing exactly that, I tried it, it worked, and I didn't think about it again. You said early on in the thread that madflac is only designed for standalone file decoding though? Was that just an early version?

zipi
6th June 2010, 02:35
I have a question for you in return, hope you wont find it rude,
why do you post before you read more, instead of complaining that it works !?

LloydA
16th June 2010, 22:02
madshi,

I've found a bug in madFlac:

When changing the audio track in MPC-HC from a FLAC track to AC3/DTS, or from AC3/DTS to FLAC (when the default audio track was not FLAC), or between different FLAC tracks, madFlac is not reconnecting in the filter graph. I've verified this behavior with AC3Filter and MPC-HC's internal FLAC decoder, both of them have no issues being instantiated in the filter graph after changing the audio track.

clsid
17th June 2010, 10:23
I haven't tried with AC3Filter, but track switching works fine when ffdshow is used for AC3/DTS. So the problem may be related to AC3Filter.

LloydA
17th June 2010, 12:23
No, when starting playback with a FLAC track as the default track, and then switching to another FLAC track, madFlac also won't show up in the filter graph after the change. This is clearly not an issue with AC3Filter, but to the contrary, AC3Filter has no problems with switching audio tracks. madFlac has.

ACrowley
17th June 2010, 15:08
No, when starting playback with a FLAC track as the default track, and then switching to another FLAC track, madFlac also won't show up in the filter graph after the change. This is clearly not an issue with AC3Filter, but to the contrary, AC3Filter has no problems with switching audio tracks. madFlac has.

Should be a Splitter related Problem. I know this too.
So its not a Madflac Problem.

MPC Splitter filters works with all Audio Formats
while Haali somtimes Hangs when you switch betwenn different Formats like AC3 and FLAC

LloydA
17th June 2010, 17:14
Thanks for the suggestion, I'll try with MPC Splitter then.

Thunderbolt8
17th June 2010, 20:10
its the same problem Ive also reported twice already since quite some time. when using madflac and ac3filter to output everything as 2.0 and then switching between different flac and ac3 tracks of a file, I get the problem that I wont have the output to 2.0 any more. dont ask me which prog's fault it is though. also happens with the internal mpc splitter.

madshi
18th June 2010, 15:09
Can I get a short sample where audio track switching doesn't work with madFlac?

LloydA
18th June 2010, 16:12
The first 100 MB of the MKV? Will make one later.

madshi
18th June 2010, 16:49
The first 100 MB of the MKV? Will make one later.
Doesn't even have to be that large. Even 1MB is enough, if it lets me reproduce the problem. This is all I need: To be able to reliably reproduce the problem on my PC. Maybe you can remux with only audio tracks inside? That should keep the file size low. Just make sure that whatever sample you upload, really can be used to reproduce the problem.

LloydA
18th June 2010, 23:44
Here is an 1MB sample:

http://www.mediafire.com/?eymdqndz3em

Start playback, pause, switch to the other FLAC track (doesn't matter which one is the default), resume. Happens also without pause/resume.

Have you been able to reproduce the issue?

xc3ll
27th June 2010, 02:34
If anyone can help me out, I'm trying to bitstream a TrueHD flac track using madFlac with MPC-HC, but I can't find madFlac as an available external filter, and when I manually find select it by browsing, it still doesn't work.

Here's what I'm running:
Win 7 Pro 64bit
MPC HC 1.3.1249
madFlac 1.8
Haalia Media Splitter
ffdshow-tryouts rev 3487

thanks

EDIT: I found that the problem is that I was using the 64 bit version of mpc-hc.

Snowknight26
27th June 2010, 06:15
You can't bitstream FLAC, nor can you use madFlac for TrueHD.

DigitalLF
12th August 2010, 16:07
can anyone else confirm that madflac makes mpc-hc crash when loading a flac??

Jeff Flowerday
12th August 2010, 22:25
Warning about not being able to render all pins. It doesn't crash.

madshi
15th August 2010, 09:30
madFlac 1.9 released

http://madshi.net/madFlac.rar

* fixed: uninstall was incomplete
* fixed: channel mask was not properly set for weird channel configurations
* changed metadata string allocation type to solve MPC HC heap corruption complaints
* lSampleSize is set to 1 now to improve compatability with other filters

madshi
15th August 2010, 09:58
Here is an 1MB sample:

http://www.mediafire.com/?eymdqndz3em

Start playback, pause, switch to the other FLAC track (doesn't matter which one is the default), resume. Happens also without pause/resume.

Have you been able to reproduce the issue?
I tried, but I cannot reproduce the problem on my XPSP3 PC. It always works for me just fine, with AC3Filter and ffdshow, with Haali MKV splitter and MPC HC splitter.

Sebastiii
15th August 2010, 11:20
Thank you a lot :) all is working good :)
Seb.

Jeff Flowerday
17th August 2010, 14:47
madFlac 1.9 released

http://madshi.net/madFlac.rar

* fixed: uninstall was incomplete
* fixed: channel mask was not properly set for weird channel configurations
* changed metadata string allocation type to solve MPC HC heap corruption complaints
* lSampleSize is set to 1 now to improve compatability with other filters

Thanks!!!!!

BatKnight
17th August 2010, 15:40
Sorry to bring this up again. I've been reading here that some of you can use madflac to play a FLAC track inside a MKV. How?
I can use madflac to split a FLAC track and play it, but I can't get it to be used when playing a FLAC track inside a MKV. FFdshow and MPC-HC internal FLAC decoder both work, but I don't want them, I want to use madflac always for FLAC because of my 24bit tracks.

I've tried to force madflac decoder and/or source in MPC HC external filters, but it's never used. It always reverts to Internal FLAC decoder (low merit).

I am using Win 7 64bits with 32bit MPC-HC.

Bat

madshi
17th August 2010, 15:54
Have you tried disabling the internal FLAC decoder?

BatKnight
17th August 2010, 19:36
Have you tried disabling the internal FLAC decoder?
Yes, in MPC-HC, in the Internal Filters, both the FLAC Source Filter and FLAC Transform Filter are unticked.
That's why it shows up as "low merit."

If I play a .FLAC file, madflac splits it and decodes it. No MPC's and ffdshow's in the way. Everything's fine.

If I play a MKV with a FLAC track, madflac isn't the splitter because the MKV is being splitted by MPC or Haali, but the audio should be played by madflac as the decoder, and not the falled-back MPC Internal flac decoder in low merit mode.

I even have madflac forced as preferred in the MPC-HC External Filters, but no luck.

Could this be a Win 7 64bit related problem, and the way it uses the merits and registrations? I believe you develop in WinXP SP3 right? Anyone else can reproduce this?

Bat

madshi
17th August 2010, 20:06
My dev PC is XPSP3, but my HTPC is win7 x64. And I've just tested on the HTPC and madFlac is used for MKV FLAC tracks for me. I didn't even have to "prefer" it, I just needed to uncheck the internal FLAC stuff. I'm using an older MPC HC build on my HTPC, though. Not sure if that makes a difference...

yesgrey
17th August 2010, 20:18
Are you using the latest madFlac version (1.9)?
I remember that the first versions only supported flac source files. Also, have you tried uninstall/reinstall?

I have W7 x64 and it works fine.

BatKnight
17th August 2010, 22:28
Are you using the latest madFlac version (1.9)?
I remember that the first versions only supported flac source files. Also, have you tried uninstall/reinstall?

I have W7 x64 and it works fine.
Uninstalling and reinstalling worked. For some reason that slipped from my mind. So basic... I am ashamed.
Thanks for the tip guys.

Bat

yesgrey
18th August 2010, 02:26
So basic... I am ashamed.
Don't be, it happens to everyone... ;)

Ap3 n1nja
6th October 2010, 05:14
Hi, I am having some trouble playing this certain file when using madFlac (v1.9). Here is a sample to take a look at.

http://www.mediafire.com/?wo4epzau2rq876e

nowings69
9th October 2010, 03:46
@madshi
Could you add Replaygain as MONOGRAM Musepack DirectShow Decoder?
http://img235.imagevenue.com/loc547/th_90784_01_122_547lo.jpg (http://img235.imagevenue.com/img.php?image=90784_01_122_547lo.jpg)

Well,I always listen to music on Foobar2000
but the music movie(LPCM) uses FLAC with madFlac.
Because I hope no normalize it.
thank you

APorter819
13th November 2010, 19:20
I'm using the latest version of madFlac 1.9 with MPC-HC. My multichannel flac audio files inside a mkv container that's connected to my Denon receiver are only showing up as 2 channel. Any ideas why this would be happening? When I click on madFlac decoder it says audio is 5.1.

Jeff Flowerday
15th November 2010, 16:15
I'm using the latest version of madFlac 1.9 with MPC-HC. My multichannel flac audio files inside a mkv container that's connected to my Denon receiver are only showing up as 2 channel. Any ideas why this would be happening? When I click on madFlac decoder it says audio is 5.1.

Did you configure your HDMI sound device in windows to actually be 7.1. The default is stereo I believe.

nowings69
15th November 2010, 23:48
madFlac who is DirectShow Decoder.
It changes just a LPCM.
You should be able to understand the limit of the capacity(MS) if you converted it by yourself

madshi
3rd January 2011, 11:09
madFlac v1.10 releaed

http://madshi.net/madFlac.rar

* fixed: some MKV files made madFlac freeze

Thunderbolt8
3rd January 2011, 15:17
thanks.

leeperry
4th January 2011, 15:11
thanks for the update!

it'd be really sweet if at some point you could add an option to force madFlac to only connect to ffdshow audio, because atm it's impossible to open an external secondary FLAC sountrack and post-process it in ffdshow audio...it has to be muxed into the container, there's no way to post-process madFlac's output off an external file http://forum-images.hardware.fr/icones/ohwell.gif

madshi
4th January 2011, 15:57
Why is there no way? If you force the ffdshow raw audio processor to be "preferred" in the MPC HC settings dialog, it should be used, I think?

leeperry
4th January 2011, 21:29
Well, it's possible in Graphedit(minus the PotP/MPC audio switcher):

http://www.pixelz.fr/7/6/3/abb67292bd8d19967e212a40d9c76.png

But whatever in MPC or PotP it isn't :(

I've whined on the PotP forum and was told that there is no way to force ffdshow audio(decoder/raw) after madFlac, because DirectShow doesn't allow doing it apparently: http://cafe.daum.net/pot-tool/AZMV/1611

He made a video too: http://cfile270.uf.daum.net/attach/173361194C393943383F0B

He confirmed that it's possible in Graphedit, but that adding an external audio on top of an existing container doesn't allow to force a filter on top...I know you're very busy, but I'd really crave for an option like "only connect to ffdshow audio"...so I could have a 7.1 24/96 FLAC file on a standalone DVD, and it'd be post-processed in ffdshow just as it were muxed into the main MKV http://forum-images.hardware.fr/images/perso/ayuluna.gif

You always find your way to make my dreams come true when it comes to HTPC software, and only those who dare begging shall receive http://forum-images.hardware.fr/images/perso/otakonleboss.gif

madshi
4th January 2011, 22:47
I won't have time for this anytime soon, I'm sorry. Maybe in a few months.

leeperry
5th January 2011, 01:16
Having more thoughts about it, if you could allow madFlac's source filter to work independently from madFlac's decoder I could just set it to use ffdshow audio for decoding and that should work. I've run tests(here (http://forum.doom9.org/showpost.php?p=1466055&postcount=67) and there (http://forum.doom9.org/showpost.php?p=1466162&postcount=71)), ffdshow can decode 7.1 24bit FLAC untouched.

Ap3 n1nja
5th January 2011, 01:38
Thanks for the updated release! The file can now play properly! :)

madshi
5th January 2011, 09:21
Having more thoughts about it, if you could allow madFlac's source filter to work independently from madFlac's decoder
I won't do that. Too much work for no real benefit. madFlac doesn't really know the structure of FLAC files, which it would have to know for doing what you suggest. madFlac is basically just a wrapper around the official libFlac.

Thanks for the updated release! The file can now play properly! :)
Pleasure!

Thunderbolt8
18th January 2011, 12:33
would it be possible to add an option that mono audio can be put out as 2.0 via both stereo channels?

I cannot set this option at my receiver and would have to use ac3filter instead then which results in loss of quality.

Moondust
23rd March 2011, 01:15
I don't understand why AC3Filter isn't working when MadFlac is used on my Windows 7 64-bit pc. Has been working on my HTPC (Vista 32-bit) for ages without any problems. When playing AC3 or DTS AC3Filter works just fine. When playing FLAC AC3Filter just doesn't show up in the filter section and my speakers stay silent. Does anyone know what is going wrong? Help is greatly appreciated.


I discovered it's not just that MadFlac won't run with AC3Filter in MPC-HC. Here are the tested combinations.
Seperate FLAC track: MadFlac -> AC3Filter -> ReClock (works fine)
Only FLAC track in mkv: MadFlac -> AC3Filter -> ReClock (works fine)
FLAC track and other audiotrack in mkv: MadFlac -> ReClock (no AC3Filter, in some cases there's sound, in some there's not)

When loading the mkv it starts with the DTS/AC3 sound. When I switch to FLAC in Haali, sound is played in most cases, but not in some. IN all cases AC3Filter is not loaded. No pattern I can see.



I tested an mkv with 2 FLAC files, both played fine with AC3Filter. Seems the problem with AC3Filter not loading only appears when the FLAC is the secondary track. Still no clue of the cause though. Any help on this matter is very much appreciated.


...would have to use ac3filter instead then which results in loss of quality.
Why would the use of AC3Filter decrease the quality?

Thunderbolt8
25th March 2011, 23:24
because it states this:

Decoding chain: (PCM24 1/0 (mono) 48000) -> Processor -> (PCM24 2/0 (stereo) 48000) -> Dejitter -> (PCM24 2/0 (stereo) 48000)

I simply dont trust whats being done at the processor and dejitter stage. I'd like to avoid to have this.
(you could get rid of dejitter, but processor still remains)

meetajhu
26th April 2011, 15:31
x64 version please! Go x64 which is the future!

deathlord
28th April 2011, 09:50
Hi

It has been discussed, here and in other places, how to play back 5.1 and 7.1 sources in a common setup. There does not seem to be a satisfactory solution. I have opend a new thread where I would like to discuss this topic in some detail:

http://forum.doom9.org/showthread.php?t=160857

mindbomb
12th May 2011, 01:55
question:
So if you use the limit 5.1 option, it mixes down 7.1 down to 5.1?
or does it just discard 2 channels?

edit: tested it, it discards the 2 channels

leeperry
28th May 2011, 16:54
I won't have time for this anytime soon, I'm sorry. Maybe in a few months.
nevermind, I just bought a BD burner...so I can mux any video and any FLAC I like, too awesome :D