Log in

View Full Version : ffdshow tryouts project: Discussion & Development


Pages : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 [69] 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308

Shinigami-Sama
30th March 2008, 00:46
holy shit I was wondering about that

though with MPC-HC + d3d mode I don't notice it
but with anything else I see it

now that you mention it though it only started happening when I changed to try-outs...

GrofLuigi
30th March 2008, 05:31
Was the change to Inno Setup 5.2.3 really necessary?

GL

CruNcher
30th March 2008, 10:27
You can change the number of threads in "Decoder options" section of ffdshow config.

yep missed that thx that fixes it also with the nightlies :)

leeperry
30th March 2008, 12:46
I've forced ffdshow audio for all supported streams, and it's doing 24/96 resampling with the Ozone winamp2 plugin enabled(32 bit float processing).

it works like a charm in MPC HC, and even in WinDVD9+

and you can force Reclock in PowerDVD......

wouldn't that be possible to force ffdshow video as well in PowerDVD/WinDVD ?

at least on XP, because ogo told me Vista had some very strong stream protections :eek:

if it works for audio, why not video ?!
maybe cheating like Reclock, stating ffdshow as the default renderer ?

you can force EVR + Reclock in PowerDVD, and this is the most stable HD player on PC atm......so all it needs is some "unsharp masking" sharpening from ffdshow to become first class :eek:

clsid
30th March 2008, 14:04
wouldn't that be possible to force ffdshow video as well in PowerDVD/WinDVD ?If enabling raw video doesn't work, then it is not possible, unless the player specifically adds the filter to the graph, which of course will never be done by PowerDVD.

Was the change to Inno Setup 5.2.3 really necessary?Please elaborate.

fastplayer
30th March 2008, 14:05
Please elaborate.
Probably complaining because innounp (http://innounp.sourceforge.net/) can't extract it.

vlada
30th March 2008, 17:39
I'm sorry if this has been asked before, I haven't found any post regarding this. I'm wondering if the DXVA decoder from MPC-HC could be used in ffdshow. If I want the internal DXVA decoder in MPC, then I can't use ffdshow for postprocessing anymore.

clsid
30th March 2008, 19:22
That question has already been answered several times. When DXVA is used, there can be no intermediate filters in between the decoder and the video renderer.

IT IS NOT POSSIBLE TO USE DXVA TOGETHER WITH FFDSHOW AS POST-PROCESSOR

Yong
30th March 2008, 19:24
I'm sorry if this has been asked before, I haven't found any post regarding this. I'm wondering if the DXVA decoder from MPC-HC could be used in ffdshow. If I want the internal DXVA decoder in MPC, then I can't use ffdshow for postprocessing anymore.

from http://tibrium.neuf.fr/DXVASupport.html :p
The MPC HC Video decoder must be connected directly to the renderer. That means no intermediate filters such as DirectVobSub or ffdshow can be inserted between the decoder and the video renderer.

GrofLuigi
30th March 2008, 20:09
Probably complaining because innounp (http://innounp.sourceforge.net/) can't extract it.
Yes, but not complaining, only asking. I would complain only if the answer is 'no'. ;)

GL

vlada
31st March 2008, 01:57
@clsid, Yong
Yes, I knew this. I probably wrote my question incorrectly.

I rather split it in two parts:

1) How much work would it be to port the DXVA decoder fro MPC-HC to ffdshow?

2) Would it be then possible to use ffdshow's filters (with the DXVA decoder integrated)?

So is it a general problem that a DXVA decoder needs to be connected to video renderer directly? Or is this just a limitation of MPC's decoder?

Shinigami-Sama
31st March 2008, 06:20
2) Would it be then possible to use ffdshow's filters (with the DXVA decoder integrated)?

So is it a general problem that a DXVA decoder needs to be connected to video renderer directly? Or is this just a limitation of MPC's decoder?

not possible with DXVA1

with DXVA2 clsid or casmir said its theoreticly possible to get it to post process

basicly DXVA1 goes source -> render -> hardware -> display
hardware/renderer might be reversed
but thats the jist of it

CruNcher
31st March 2008, 12:50
tough of course you can post-process on DXVA1 too but "only" with Shaders Nvidia and ATI do it all the time in their Drivers (Noise Reduction,Sharpening,Deinterlacing) :D and they do it pretty fast (software cant holdup with these speeds anymore (1080i25->50p in realtime is no problem for their Shader solutions). Compared vs the quality the difference got also allot smaller then some generations before,nvidias newest (geforce8,9) motion adaptive deinterlacing seems at least on the quality level of yadif even above more into direction of mcbob) and efficient :) (you could even ask you the question is Software Deinterlacing and Post-Pro anymore needed??? if we can use it in realtime on the GPU.

PS: Would be a sad thing if ffdshow misses this revolution of Post-Processing as it started allready (Commercialy), ofcourse if your target is editing it is a different thing couse that involves alot more work getting the stuff out of the GPU into a file ;)

clsid
31st March 2008, 13:17
This discussion is pointless. There is nobody that is willing to code this. Furthermore, DXVA should not be added to ffdshow with its many incompatible filters, instead (theoretically) compatible post-processing functions should be added to the standalone filter from MPC.

leeperry
31st March 2008, 13:26
you can use any number of PS scripts in MPC HC.

deinterlacing/sharpen/etc.....

Inventive Software
1st April 2008, 13:24
This discussion is pointless. There is nobody that is willing to code this. Furthermore, DXVA should not be added to ffdshow with its many incompatible filters, instead (theoretically) compatible post-processing functions should be added to the standalone filter from MPC.

Wrong! I'm willing to code it, but my knowledge of C++ is limited, and I don't have much time these days, so summer at the absolute earliest! ;)

clsid
1st April 2008, 15:13
I should have said "is going to" instead of "is willing to" :)

RadScorpion
2nd April 2008, 10:33
I have a small question regarding the ffdshow interface. I'm trying to make graphstudio handle ffdshow and I'd like to be able to set e.g. resizing filter or deinterlacing via external XML file.... so far I've been unable to pass these parameters via the ffdshow interface :(. Does anyone have a clue ?

clsid
2nd April 2008, 11:06
Send a PM to Albain. He has created most of the API for controlling ffdshow from external apps.

iron2000
3rd April 2008, 16:59
Is it possible to implement auto colorspace selection in ffdshow?

Or does Haali Renderer overwrites whatever comes before it?

leeperry
3rd April 2008, 17:45
HR only deals with YUY2 colorspaces.
for RGB32 it won't change a damn thing, you can make profiles in ffdshow like I do.

RGB32/BT601 for upscaled SD, and YUY2 for HD.

I'm actually the one who asked Haali to offer auto colorspace in HR ;)

leeperry
4th April 2008, 13:16
hey guys, my stupid question of the day :

I see you can change the order of the filters in ffdshow, but is it only GUI related......or does it actually change the processing order ?! :eek:

Thanks,

fastplayer
4th April 2008, 13:35
The filter order, of course.

leeperry
4th April 2008, 13:48
kthx, makes sense :D

leeperry
6th April 2008, 10:19
ok, concerning the winamp2 plugin crashes.......haruhiko_yamagata has exchanged emails with Vincent Burel....but still can't find what's wrong.

Vincent has kindly offered to run a debug session with ffdshow and his FFX4 plugin, to see what's up ?!

he asked me for a non-protected build....I can tell him to use the latest clsid/xxl ?

ffdshow crashes like a 100 times/day on my PC.....that'd be really great to see this bug fixed :(

TIA,

leeperry
7th April 2008, 10:54
ok Vincent Burel told me that it doesn't crash on win2k.
but it does crash on XP for him as well.

and when I open a new file on XP, it's like it was gonna work.....then it crashes, like if there was some missing component ?!

and sometimes MPC HC says "failed to query the needed interfaces for playback"

any chance someone finding out what's missing in ffdshow audio ?

please ? please ? please ? http://pix.nofrag.com/8/6/d/8b5de77fde2c5d3219ee4e549f77e.jpg

leeperry
7th April 2008, 14:51
ok Vincent Burel got back to me with some debug infos :

with his FFX4 plugin, available here :
http://vincent.burel.free.fr/download/ffx4WinAmp_FullDemo.zip

when you skip to a new song in MPC HC, his DLL is released before the destruction function was over.
the closing procedure of the plugin keeps on doing its work, BUT the DLL is not available on the system anymore.

so the FreeLibrary call is done too early, you need to wait for the QUIT call to be finished before closing the library.

sometimes it works(eg when you click on CONFIGURE in the ffdshow winamp plugin options), because the library is overwritten before the QUIT call was made, and that seems to work fine....but after 3 files in a row it's using 70% of CPU time.

any chance for a fix please ? :thanks:

JarrettH
7th April 2008, 18:00
new beta soon? eh eh :p

leeperry
7th April 2008, 18:43
ok so Seb.26(another ffdshow occasional coder) pointed me to this url :
http://ffdshow-tryout.svn.sourceforge.net/viewvc/ffdshow-tryout/trunk/src/audioFilters/winamp2/Twinamp2.cpp?view=markup

I've sent it to Vincent Burel.

here's what he said :

all I can say is that at some point they have a builder that creates a DLL object :

Twinamp2dspDll::Twinamp2dspDll
dll=new Tdll(flnm.c_str(),NULL);

and in another destroyer, they call it in the end :

Twinamp2dsp::~Twinamp2dsp()
{
mod->Quit(mod);
}

now they need to check that the DLL object(shown above) is destroyed AFTER the Quit(mod) , and not BEFORE.

it's translated from french to english, so bear with me :D

:thanks:

leeperry
7th April 2008, 22:41
BTW, I also have a problem with 1440* videos

they are encoded in 1440 and need to be expanded to 1920

like this one :
http://download.microsoft.com/download/c/e/a/ceaf0def-8889-4462-9616-7ce4246569ae/Taxi_3_1080.exe

it says

Input Size : 1440*816
Input SAR : 4/3, DAR : 40/17

in the resize options, it's set to 2.35:1 AR

yet it's outputting 1.78 :(

I've tried with MPC HC and KMPlayer.....they both show 1.78 content

I have to select 2.35 AR in KMP so it's shrunk

happens with WMV-HD and MKV/x264 videos.

and also on that video(and all 6 channels WMA), ffdshow doesn't output the channels properly.....it says 24 bit 6 channels input/output.....yet I've got a pair of headphones on the PC and I'm hearing the rear speakers in the headphones :(

:thanks:

SeeMoreDigital
8th April 2008, 09:09
Hi Lee,

Just to let you know, the 1440x816 WMV sample is displayed at the correct aspect ratio for me.

I'm using MediaPlayer Classic with FFDshows "libavcodec" decoder.


Cheers

leeperry
8th April 2008, 09:20
so it's 2.35 ?!
I also run MPC HC with ffdshow, and it's 1.78 :(

haruhiko_yamagata
8th April 2008, 10:06
BTW, I also have a problem with 1440* videos
I can't reproduce. Could you paste a screen shot of the resize dialog?

leeperry
8th April 2008, 10:16
Hi haruhiko,

http://pix.nofrag.com/e/3/9/241c036639de8ee20cb6f5a66789d.png

I resize to 1280*768, but that shouldn't mess with the AR....if I disable the RESIZE filter, ffdshow still outputs 1.78

and I've tried to toggle "set aspect ratio in output media type", it doesn't change anything.

and the WM audio is not processed correctly in ffdshow audio, I get the rear channels in the headphones ?!

but that's no big deal :D

I hardly ever watch WMV HD movies....

did the infos that Vincent Burel gave me would finally help you to fix the Ozone winamp plugin bug ?

tell me so.....please :D

Thanks for all your hard work,

haruhiko_yamagata
8th April 2008, 10:34
@leeperry
I still can't reproduce.
Are you using overlaymixer?

As for winamp plugin, I said I didn't have any good news. Please don't repeat.

leeperry
8th April 2008, 11:26
well, I've just given you infos on how to fix the problem I think ?!

http://forum.doom9.org/showthread.php?p=1122857#post1122857

http://forum.doom9.org/showthread.php?p=1122966#post1122966

You've told me yesterday by PM that you were willing to fix it if I was giving you clues ?!

isn't that clues ?

Vincent Burel checked your code through debug, isn'it it possible that you check that it's done in the right order please ?

and now you talk to me like I was a spammer :eek:

if you don't care and think I'm harassing you, please allow me to apologize reporting bugs.....I'm sincerely sorry to waste your time repeating myself like a scratched LP and I shall stop.

Inventive Software
8th April 2008, 13:09
@leeperry: Check the Aspect Ratio settings in MPCHC.

SeeMoreDigital
8th April 2008, 13:54
Personally I don't use any of FFdshow's "Resize and Aspect" options: -

http://i29.tinypic.com/2s6352c.png


Cheers

leeperry
8th April 2008, 14:03
even If I don't resize in ffdshow, I get 1.78 with YUY2 and EVR/VMR9/Overlay in KMPlayer/MPC HC

I've tried to play around with all the AR options in MPC HC, to no available.

anyhow, I've made a 1.78>2.35 pan&scan preset in MPC HC, and it works perfectly :D

Inventive Software
8th April 2008, 15:00
What about when you use YV12 video?

haruhiko_yamagata
8th April 2008, 16:54
@leeperry
Sorry, I overlooked your #3428. I'll look into it.

leeperry
8th April 2008, 17:13
ok cool, thank you :)

also #3430 please :D

What about when you use YV12 video?
same old, same old.

in VMR7, in YV12, in RGB........but that's OK :p

Inventive Software
8th April 2008, 17:16
OK, a trial and error session if you're willing.... :D

What about just the resize filter enabled?

leeperry
8th April 2008, 17:24
OK I'll try :D

BTW, I got one question if you don't mind.

I understand x264 is always in YV12, for WMVHD I'm not sure ?

but then I resize to 1280*768 in spline/spline in ffdshow, then apply unsharp mask sharpening.

do I have any reason to output in YUY2 over YV12 ?

thanks,

Inventive Software
8th April 2008, 17:34
Only if the renderer won't take YV12 video. For the most part, WMV-HD is YV12, like x264. The only way you'd know whether WMV-HD is YV12 or YUY2 is check the "Info" panel during playback. Don't apply any filters to it, and see what colour-space is being used. Check the output mode too, and make sure no conversion is being used. :)

leeperry
8th April 2008, 17:37
ok but even if the input is YV12, don't the resize and sharpen filters work in YUY2 ?

then this would yield better results in YUY2 over YV12 ?
like oversampling in 64bit for audio ?!

I've tried to enable/disable the sharpen and resize filters.........still 1.78 :D

Inventive Software
8th April 2008, 17:48
Right, please double check your splitter and make sure that ffdshow is reporting the correct SAR. If it is, and it's still not correctly displaying it, try a different media player. I'd play the sample, but I am limited to 720p by my display (1280x800).

Regarding YUY2 vs YV12, there's a quality loss between converting to/from colourspaces, regardless of whether your supposed upsampling from YV12 to YUY2 works correctly. The filters may well work ONLY with YUY2, and if that's the case, then I dunno what to suggest. :D

leeperry
8th April 2008, 17:56
oh right.

anyone knows if the resize and unsharp mask sharpening filters work in YV12 then ? :D

well I'm also limited to 1280*768, yet it displays as 1.78 even though ffdshow knows its AR is 2.35 :eek:

OK I'll run more tests ;)

Inventive Software
8th April 2008, 18:11
Right, very quick and very dirty lesson in AR......

You're resizing a 1440x816 video to the same AR, but 1280 width, so that it displays correctly. That's 1280x544 as your destination. The SAR STAYS as 4:3, because the frame size is still the same dimension multiple. Try it yourself. 1440/816 = 960/544. The SAR is reported as 1.77 because it's the closest to 1440/816. ffdshow isn't reporting the SAR to the renderer, hence why it appears to be 1.77.

Try this: resize JUST the horizontal to 1280, check "Keep Aspect Ratio" down the bottom of the box, and then see. ;)

BTW: 1280/768 = 1.666666666, AKA 5:3. :)

SeeMoreDigital
8th April 2008, 18:12
Lee,

I think your issue may be related to MediaPlayer Classic-HD.... Can you try the "non HD" version of MPC and report back?


Cheers