Log in

View Full Version : messing around with directshow filters...


lexor
10th January 2006, 19:11
oh man I wish players had a tab in the options where you could assign decoder for each codec type. But I guess it's too hard to do, considering all the different codecs out there.

zoomplayer had something like this I recall, using merits or something, but it never worked for me.

bond
10th January 2006, 19:15
oh man I wish players had a tab in the options where you could assign decoder for each codec type. But I guess it's too hard to do, considering all the different codecs out there.its pretty easy to solve this...
simply install only one decoder for one "codec type" ;) :D

lexor
10th January 2006, 19:21
its pretty easy to solve this...
simply install only one decoder for one "codec type" ;) :D
not quite, it would have been easy to do that if the field of codecs was stable, but we have now rapid development, only a few days ago we had no idea core team was working on their uber decoder. We test, experiment, and it would be much simpler to do that if I could just set the decoder in the player instead of wrestling with windows, installing/uninstalling/registring/unregistring.

videomixer9
10th January 2006, 19:51
not quite, it would have been easy to do that if the field of codecs was stable, but we have now rapid development, only a few days ago we had no idea core team was working on their uber decoder. We test, experiment, and it would be much simpler to do that if I could just set the decoder in the player instead of wrestling with windows, installing/uninstalling/registring/unregistring.

Zoomplayer Pros Custom Filter Preferences work fine, it has a list of Codecs and Contaienrs and let's you select a specific filter, however Custom Playback is only enabled in Pro Version, nothing to do with Merits, Zoomplayer can edit DirectShow Filters Merits in the registered filter manager, but you could also do that in registry and it is provided by DShow and has nothing really to do with ZoomPlayer. In MPC you can use the Overrides Function in the Options, just block the filter and only allow the one you want to use, as each filter added has a checkbox you can easily change to something else.

[)370|\|470!2
10th January 2006, 20:10
oh man I wish players had a tab in the options where you could assign decoder for each codec type. But I guess it's too hard to do, considering all the different codecs out there.

zoomplayer had something like this I recall, using merits or something, but it never worked for me.

LOL

There is such player... Called GRAPHEDIT :D Thx M$ :)

SeeMoreDigital
10th January 2006, 20:34
oh man I wish players had a tab in the options where you could assign decoder for each codec type. But I guess it's too hard to do, considering all the different codecs out there.its pretty easy to solve this...
simply install only one decoder for one "codec type" ;) :DFunny you mentioned that....

Over the weekend I decided to format one of my WinXP boot partitions and carry out some "video" and "audio" filter experiments.

I've installed MediaPlayer Classic V6.4.8.7 as my primary media player (as I'm fairly used to its settings) and Windows Media Player 10 (because it's there).

So far, the only filters I've installed are CoreAVC v0.0.0.3 Alpha (2006-01-09) and XviD 1.1 final (Koepi's Build).

However, I've discovered that even when MediaPlayer Classic's "MP4" Source filter is "un-checked", MPC appears to use it and gives it a "low merit": -

http://img206.imageshack.us/img206/8340/mpccoreavc2ct.png


Now, although I can get Media Player Classic to play MPEG-4 "AVC" video within MP4 using "CoreAVCDecoder.ax" I'm unable to get Media Player Classic to play MPEG-4 "SP/ASP" video within MP4 using "XviD.ax"

Now I'm sure some of you will simply say "install Haali", but that will not explain why this happens....

That said, maybe "CoreAVCDecoder.ax" could grow to include MPEG-4 SP/ASP decoding too..... Now that would be handy ;)


Cheers

videomixer9
10th January 2006, 21:08
No need for that, please keep CoreAVC doing AVC ... btw. what should MPC do otherwise, throw out an error because of missing filters? I guess just using the internal one is a better solution ...

SeeMoreDigital
10th January 2006, 21:29
...btw. what should MPC do otherwise, throw out an error because of missing filters? I guess just using the internal one is a better solution ...Well..... if MPC is able to do this for MPEG-4 AVC in MP4... why can't it do the same with MPEG-4 SP/ASP in MP4?

You see the quandary here?

[Toff]
10th January 2006, 21:37
Funny you mentioned that....
However, I've discovered that even when MediaPlayer Classic's "MP4" Source filter is "un-checked", MPC appears to use it and gives it a "low merit": -
Yes you have no other splitter to handle mp4, MPC will use his own internal low merit filter.

Now, although I can get Media Player Classic to play MPEG-4 "AVC" video within MP4 using "CoreAVCDecoder.ax" I'm unable to get Media Player Classic to play MPEG-4 "SP/ASP" video within MP4 using "XviD.ax"
This has nothing to do with CoreAVC which only handle file with AVC1, H264 or X264 fourccs.

That said, maybe "CoreAVCDecoder.ax" could grow to include MPEG-4 SP/ASP decoding too..... Now that would be handy ;)
That would not be so great, the concept of DirectShow is to separate task as much as possible and let each filter do his job. It's with this kind of macro-filters (e.g. ffdshow) that it get difficult to select which codec you want to use in your player.

sillKotscha
10th January 2006, 21:40
However, I've discovered that even when MediaPlayer Classic's "MP4" Source filter is "un-checked", MPC appears to use it and gives it a "low merit"

do you have the sample of your file to upload it somewhere... i'd like to test it for myself and I'm unable to encode @ the moment...

thx in advance - Sill

SeeMoreDigital
10th January 2006, 21:48
']This has nothing to do with CoreAVC which only handle file with AVC1, H264 or X264 fourccs.I could understand that when MPEG-4 AVC video is placed within .AVI... but not when it's placed within .MP4

Caroliano
10th January 2006, 22:01
@SeeMoreDigital: This is the CoreAVC. You may ask for a CoreASP but not to include that in CoreAVC.

[Toff]
10th January 2006, 22:03
I could understand that when MPEG-4 AVC video is placed within .AVI... but not when it's placed within .MP4
Even if it's in .MP4 there must be a mapping in DirectShow to tell what decoder to use, it's the role of the "mediatype" which contain some identifier, most mediatype still use a FOURCC like mapping.
For example the FOURCC "MP4V" is used here to play this sample http://trailers.nerodigital.com/Sony/Underworld_stan.mp4 in combination with Haali's splitter.

SeeMoreDigital
10th January 2006, 22:11
@SeeMoreDigital: This is the CoreAVC. You may ask for a CoreASP but not to include that in CoreAVC.I'm very aware of that.... Please read my posts again!

SeeMoreDigital
10th January 2006, 22:14
']For example the FOURCC "MP4V" is used here to play this sample in combination with Haali's splitter.How have you estabished that the 4CC code is "MP4V"?

[Toff]
10th January 2006, 22:16
How have you estabished that the 4CC code is "MP4V"?
I've just looked at the mediatype used in graphedit for the connection.

videomixer9
10th January 2006, 22:18
How have you estabished that the 4CC code is "MP4V"?

you could even see this with a text editor, somewhere near the end of the file you'll see it, though it's not as easy as with avi in mp4 container ;)

SeeMoreDigital
10th January 2006, 22:21
do you have the sample of your file to upload it somewhere... i'd like to test it for myself and I'm unable to encode @ the moment...Sure

Here's (http://homepage.ntlworld.com/seemoredigital/Temp_Test_Files/x264_720x576_with_2Ch_AAC-LC_with_chapters_in_MP4.7z) an x264 (720x576) with 2Ch AAC-LC with chapters in MP4


Cheers

SeeMoreDigital
10th January 2006, 22:25
']I've just looked at the mediatype used in graphedit for the connection.

you could even see this with a text editor, somewhere near the end of the file you'll see it, though it's not as easy as with avi in mp4 container ;)How many AVC in MP4 files have you guys checked?


Cheers

videomixer9
10th January 2006, 22:41
The end of the file thing should work with any mp4 ... sometimes you find some type thing at the begin but that's nothing to do with mp4 but whatever the video was before muxing someone told me ... I just feel so leet doing it that way :)

SeeMoreDigital
10th January 2006, 23:08
The end of the file thing should work with any mp4 ... sometimes you find some type thing at the begin but that's nothing to do with mp4 but whatever the video was before muxing someone told me ... I just feel so leet doing it that way :)Like I say.... what you understand as being 4CC codes, such as "AVC1, H264 or X264" don't exist for MP4 files.

When MPEG-4 AVC video is placed within MP4, it adopts (what MP4Box calls) a "Sub Type" code, which is "AVC1": -

http://img216.imageshack.us/img216/6109/videotype2vj.png


Cheers

sillKotscha
10th January 2006, 23:11
How have you estabished that the 4CC code is "MP4V"?

']I've just looked at the mediatype used in graphedit for the connection.

or just use ffdshow ;)

http://tinypic.com/k1chp2.png

Sure

Here's (http://homepage.ntlworld.com/seemoredigital/Temp_Test_Files/x264_720x576_with_2Ch_AAC-LC_with_chapters_in_MP4.7z) an x264 (720x576) with 2Ch AAC-LC with chapters in MP4

Cheers

first thanks for the sample...

However, I've discovered that even when MediaPlayer Classic's "MP4" Source filter is "un-checked", MPC appears to use it and gives it a "low merit"

I don't have that problem... Haali Media Splitter just works very well...

http://tinypic.com/k1cjr8.png


sorry, I'm unable to do overlay screen captures (HyperSnap-DX just captures the overlay frame but not the whole screen with an moving overlay-video in the back, or I'm just to stupid)

my findings so far...

AR signaling doesn't work with your clip as already mentioned - I'm using VMR7 (windowed) = standard renderer

besides I'm so happy with CoreAVC. Your DSFilter just rocks!!

thx - Sill

calinb
11th January 2006, 01:55
Now, although I can get Media Player Classic to play MPEG-4 "AVC" video within MP4 using "CoreAVCDecoder.ax" I'm unable to get Media Player Classic to play MPEG-4 "SP/ASP" video within MP4 using "XviD.ax"

Strange! I blocked all other mp4 parsers/splitters in MPC and tried 6.4.8.7 with Koepi's XviD 1.2.-127 standalone build (Jan 08-06) and it worked. However, if I uncheck the MPC mp4 source filter box, I get an error, rather than the low merit result that you described.
oh man I wish players had a tab in the options where you could assign decoder for each codec type.
It's probably just as easy to put a copy of regdrop.exe on your desktop. Then put all your DSFs in one folder with a link on the desktop. To enable/disable DSFs, simple drag and drop the files to regdrop (drop with the shift key depressed to unregsiter).
']KIt's with this kind of macro-filters (e.g. ffdshow) that it get difficult to select which codec you want to use in your player.
Actually, this is quite easy in ffdshow, given the thougtful, codecs page. Bloatware is another issue! ;)

[Toff]
11th January 2006, 08:11
Actually, this is quite easy in ffdshow, given the thougtful, codecs page. Bloatware is another issue! ;)
It maybe easy for the user, but it make it hard to integrate in an application, It need special handling from the player side. And even for users it's sometime messy because they just install it and don't know how to configure it.

videomixer9
11th January 2006, 10:25
You must be pretty much of an idiot if you cannot figure out ffdshow. I think anything else but this is an arguments contra ffdshow, one major bad thing about ffdshow is that it doesn't keep up with the underlying codecs and loses optimizations, e.g. in VLC libav is used multithreaded while it isn't in ffdshow. Generally ffdshows problem is that the author has to keep up with many underlying libraries being worked on getting more and more optimized for special things and sometimes stays behind developments for some time, which is something that bugs me a long time now.

SeeMoreDigital
11th January 2006, 10:54
Strange! I blocked all other mp4 parsers/splitters in MPC and tried 6.4.8.7 with Koepi's XviD 1.2.-127 standalone build (Jan 08-06) and it worked. However, if I uncheck the MPC mp4 source filter box, I get an error, rather than the low merit result that you described. It is strange!

I wonder whether it's worth starting a separate thread about this specific issue....

Maybe Bond could split some of the MPEG-4 SP/ASP within MP4 parsing posts out of this thread and into a new one?


Cheers

dragongodz
11th January 2006, 11:42
You must be pretty much of an idiot if you cannot figure out ffdshow.
was such a statement really needed ?

videomixer9
11th January 2006, 14:47
was such a statement really needed ?

Why, it's a compliment for milan for packing all those features but still quite intuitive into one config page. Some ppl might be overwhelmed by the amount, but yet I never had anything against that dialog in it current form, it's nothing spectacular, but nowadays some ppl think that making dialogs look as fancy as possible and hiding options in networks of funky pages is user friendly, it's simply not, also giving the user not that much choices isn't a good way either. I'm quite upset how more and more tools give you less to configure in favor of claiming to have easy configs. And imo ppl that give up just because they see lots of things being in a dialog are idiots, as they are obviously not even willing to read or analyse what they see. I wonder how such ppl can drive cars, you have to analyse so much things and have so many switches hidden away in all kinds of methods, and imo that's good too, imagine funky flashy menus for turning on your lights or anything just be automatic, like the cars decides itself if you need lights etc. anybody would call ppl that require that idiots ...

Well as to CoreAVC I see currently not much to configure in it anyways, turning off deblocking or whatever is not needed with that fast of a decoder, but maybe there could be some controls for AR signalling like in xvid, or for selecting the fourccs the filter accepts and maybe someday if it gets more colorspace an option to select this. I doubt ppl that didn't figure out ffdshow figure out that either though. It's just software and you can try stuff out unlike with your car while driving in public ...

dragongodz
11th January 2006, 15:01
Why, it's a compliment for milan for packing all those features but still quite intuitive into one config page. Some ppl might be overwhelmed by the amount
exactly. newbies or inexperienced people may be a little confused or whatever the first time they see it. that doesnt make them idiots. it would have simply been nicer to say something like "with a little effort ffdshows config isnt that hard to use". calling them idiots will simply discourage them from asking about anything that may confuse them.

[)370|\|470!2
11th January 2006, 16:23
You must be pretty much of an idiot if you cannot figure out ffdshow.

If you could call some1 an idiot for such a small reason, you'must be something even lower.


dragongodz 100% Agree

sillKotscha
11th January 2006, 16:27
just calm down... my guess is that it wasn't meant the way it is interpreted now...

but

newbies or inexperienced people may be a little confused or whatever the first time they see it. that doesnt make them idiots.

wise words.

Scoty
14th January 2006, 22:22
I've included some installation instructions (and "bat" files) to the latest version of CoreAVC_DSDec.zip (http://81.98.148.105/Uploaded_Files/Doom9_Forum_files/CoreAVC_DSDec.zip)

Hope that helps you out ;)


Cheers

i have register but WMP 10 will use the Nero DVD Decoder. when i unregister the Nero Decoder i can not play any mpg Videos. i have test with MPC but i can not see the CoreAVC Codec. by Filter i see only Video Renderer ?? i will use CoreAVC for *.mpg and *.ts ans all other supportet Videos.

Scoty
15th January 2006, 01:23
regsvr32 /s CoreAVCDecoder.ax
And you shouldn't uninstall ffdshow.
You should change decoding option in codec settings: "H.264" to "disabled" and "RAW" to "supported all".
With this, you could do color space conversion with ffdshow for CoreAVC decoded stream.

i have disabled H.264 bur the MPC will not use ffdshow. only WMP will use ffdshow but without CoreAVC. is CoreAVC only a H.264 Codec ? i have a many *.ts and mpg Videos but this use not H.264.

sillKotscha
15th January 2006, 01:34
is CoreAVC only a H.264 Codec ? i have a many *.ts and mpg Videos but this use not H.264.
yes it is ;)

ads I said to you...

your *.ts and mpg Videos need a mpeg2 decoder *point*

except for .ts if h.264 video is inside but than again, coreavc won't decode your stream as long as we don't have a parser for it

Scoty
15th January 2006, 01:41
yes it is ;)

ads I said to you...

your *.ts and mpg Videos need a mpeg2 decoder *point*

except for .ts if h.264 video is inside but than again, coreavc won't decode your stream as long as we don't have a parser for it

ok the problem is solved. the CoreAVC is not the right Codec for me. can the CoreAVC in the Future decode mpg2 or ts ? which is the best Codec for ts and mpg2 ?

sillKotscha
15th January 2006, 01:48
mate, CoreAVC is not a codec. It is a decoder for h.264 encoded streams. So, why should an avc_decoder decode mpeg2 video??

if you use mpc for watching video files, than you can use build_in mpeg2 decoder.

Scoty
15th January 2006, 01:54
mate, CoreAVC is not a codec. It is a decoder for h.264 encoded streams. So, why should an avc_decoder decode mpeg2 video??

if you use mpc for watching video files, than you can use build_in mpeg2 decoder.

the build_in mpeg2 decoder is not good for me. the picture quality is good but not perfect.

[)370|\|470!2
15th January 2006, 02:12
Try ELECARD MPEG 2 Video Decoder (http://www.doom9.org/Soft21/Filters/MPGDec.zip)

Mug Funky
15th January 2006, 02:19
the picture quality is good but not perfect.

perhaps you should play with it's deinterlacing settings...

any spec compliant mpeg-2 decoder should deliver the same results as any other spec compliant mpeg-2 decoder. so mpc's in-built decoder should be fine so long as you've got the CPU (i'll hazard a guess that you do, as you're decoding AVC which is far more taxing).

BetaBoy
15th January 2006, 16:18
ok the problem is solved. the CoreAVC is not the right Codec for me. can the CoreAVC in the Future decode mpg2 or ts ? which is the best Codec for ts and mpg2 ?

MPEG-2 is coming but unlike CoreAVC will only be available internally within CoreCodec and to those third parties that license TCPMP + MPEG-2 decoding and aquired the appropriate licensing.

Ice =A=
15th January 2006, 16:26
Posting in some thread about an MPEG4 decoder and asking for suggestions and help about an MPEG2 codec, well... :)
Anyway, don't forget that each program with an MPEG2 implementation has to pay license fees. It would even have been illegal to offer such a program like (it is done here) for testing, I believe.