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

Leak
9th October 2007, 17:37
Just a question. How do I enable the colorspace (YUV->RGB) conversion on ffdshow, so that the new color options are available?
Uncheck all YUV formats on the output page so only the RGB format(s) you want to use is/are checked.

np: The Orb - Majestic (Mix 1) (U.F.Orb Remixes)

zambelli
11th October 2007, 09:51
Raw video processing in WMP11 and Media Center is experimental and not very stable. Currently it does not work for me. I hope albain can fix it.
Also keep in mind that any playback of ASF (.wmv, .asf) videos in WMP and MCE doesn't go through DirectShow - it goes through either WM Format SDK or Media Foundation API - so Ffdshow, as a DShow filter, would never even get a chance to be inserted into the graph.

zambelli
11th October 2007, 09:54
Does EVR work with VIH2 color primaries information? If it works, it's worth implementing.
EVR was definitely designed with advanced color metadata in mind - but I'm not 100% whether those interfaces are restricted to MF only or work in DirectShow too. If you send me a PM, I can give you my email address and I'd be happy to put you in touch with the EVR devs at Microsoft.

haruhiko_yamagata
11th October 2007, 10:39
Also keep in mind that any playback of ASF (.wmv, .asf) videos in WMP and MCE doesn't go through DirectShow - it goes through either WM Format SDK or Media Foundation API - so Ffdshow, as a DShow filter, would never even get a chance to be inserted into the graph.OK. I'm trying to process 1080i mpeg2 file (.mpg), but no luck. It freezes for me. Smaller resolution works.

haruhiko_yamagata
11th October 2007, 10:42
EVR was definitely designed with advanced color metadata in mind - but I'm not 100% whether those interfaces are restricted to MF only or work in DirectShow too. If you send me a PM, I can give you my email address and I'd be happy to put you in touch with the EVR devs at Microsoft.Thank you. I'll write the test code and try when I have time. I'm implementing 7.1ch audio processing and many things to do, so perhaps I cannot do that soon.

madshi
11th October 2007, 10:50
I'm implementing 7.1ch audio processing
:thanks:

Just to be safe: 6.1 is also a possible format (DTS Discrete). If you don't have time/fun to do a full implementation of 6.1 and 7.1, I'd be happy if you just dropped any channels over 5.1 as a quick fix. Thanks! :)

haruhiko_yamagata
11th October 2007, 12:26
:thanks:

Just to be safe: 6.1 is also a possible format (DTS Discrete). If you don't have time/fun to do a full implementation of 6.1 and 7.1, I'd be happy if you just dropped any channels over 5.1 as a quick fix. Thanks! :)OK, I'll implement 6.1ch too.

ToS_Maverick
12th October 2007, 18:04
ffmpeg/libavcodec supports decoding PAFF (http://forum.doom9.org/showthread.php?t=130797), when can we expect a ffdshow-tryout build supporting it? got some sattelite-footage to test :D

fastplayer
12th October 2007, 19:09
ffmpeg/libavcodec supports decoding PAFF (http://forum.doom9.org/showthread.php?t=130797), when can we expect a ffdshow-tryout build supporting it? got some sattelite-footage to test :D
Any build >= 1523 will do the trick.

ToS_Maverick
12th October 2007, 19:28
got 1524, but my football sample doesn't really work, got a lot of artifacts... at least it doesn't crash like before.

clsid
12th October 2007, 20:20
Interlaced pictures + spatial direct mode is not yet supported by libavcodec.

^ maybe your sample uses that.

gunnerhkjp
13th October 2007, 06:24
Uncheck all YUV formats on the output page so only the RGB format(s) you want to use is/are checked.

np: The Orb - Majestic (Mix 1) (U.F.Orb Remixes)

I'm not very knowledgeable about this stuff, but when I did that, the black seems to be "proper" black instead of dark grey.

I have a Nvidia 7900gs and it had been bothering me for a while.

Is this the intended outcome?
Anyways, whoohoo! :thanks:

haruhiko_yamagata
13th October 2007, 08:33
I'm not very knowledgeable about this stuff, but when I did that, the black seems to be "proper" black instead of dark grey.

I have a Nvidia 7900gs and it had been bothering me for a while.

Is this the intended outcome?
Anyways, whoohoo! :thanks:Yes, I use Nvidia 7900GS. Its YUV->RGB conversion is not reliable. VMR7 is totally broken. VMR9 is bit better but it always use full range. That's why I always use YUV->RGB conversion in ffdshow.

haruhiko_yamagata
13th October 2007, 09:00
This patch (http://sourceforge.net/tracker/index.php?func=detail&aid=1812716&group_id=173941&atid=867362) add 6.0/6.1/7.0/7.1ch audio processing.
Please test.

LotharZ
13th October 2007, 11:40
Hi, I found 2 sub/idx (vobsub) files that seems ffdshow can't handle.

Track1 show the first line but then freezes and Track2 isnt showed. They were merged on a mkv file but no works in and out of the file.

They come from a Cromatine (anime) episode.
[a-s]_sakigaki!!_cromartie_high_school_-_23_-_stone_cold_crazy__ranmasaotome_[AC5956B4].mkv

Files: http://sharebee.com/ff3a1f10

OK, confirmed. I can reproduce if I check "Obey positional settings from Subtitles page". If I uncheck it, I can watch the subtitles but its color is wrong.


At same time, I've a request, could you add a feature on the Subtitles section that discarts the SSA tangs on that kind of subs, It could be really useful to watch some subtitles that have annoying gothic fonts or extremely small sizes coded.

It's not too hard to implement. The problem is that the dialog is too crowded.

Ok now the .idx/.sub files works properly but only if its external, If I mux it on a mkv file continue no working.

And I've found another sub that gives problems if its embedded, externally shows correctly all characters but internally for example "É","é" aren't shown.
If its useful, MPC doesn't have problems showing this embedded subs.

thx
http://massmirror.com/69c2dca1ade8b6d089c7ef3968e2cd9c.html

ACrowley
13th October 2007, 12:34
This patch (http://sourceforge.net/tracker/index.php?func=detail&aid=1812716&group_id=173941&atid=867362) add 6.0/6.1/7.0/7.1ch audio processing.
Please test.


How do i apply the Patch on latest ffdshow tryouts build ?

fastplayer
13th October 2007, 12:50
How do i apply the Patch on latest ffdshow tryouts build ?
If you use TortoiseSVN:
http://tortoisesvn.tigris.org/TortoiseMerge.html#patch

cc979
13th October 2007, 13:09
has anybody tried to build a unicode version of ffdshow with gcc ?

is it actually possible ?

ACrowley
13th October 2007, 13:20
If you use TortoiseSVN:
http://tortoisesvn.tigris.org/TortoiseMerge.html#patch

little bit more ffdshow specific ?! ...i never used a patch

haruhiko_yamagata
13th October 2007, 13:23
OK. I'm trying to process 1080i mpeg2 file (.mpg), but no luck. It freezes for me. Smaller resolution works.Excuse me, it was the splitter. Haali's mpg-ps splitter was used. After I have installed gabest's splitter, it works fine.

haruhiko_yamagata
13th October 2007, 13:26
has anybody tried to build a unicode version of ffdshow with gcc ?

is it actually possible ?I have never succeeded.

haruhiko_yamagata
13th October 2007, 13:27
little bit more ffdshow specific ?! ...i never used a patchThe patch is used for sourcecode. You have to compile ffdshow.

haruhiko_yamagata
13th October 2007, 13:28
Ok now the .idx/.sub files works properly but only if its external, If I mux it on a mkv file continue no working.

And I've found another sub that gives problems if its embedded, externally shows correctly all characters but internally for example "É","é" aren't shown.
If its useful, MPC doesn't have problems showing this embedded subs.

thx
http://massmirror.com/69c2dca1ade8b6d089c7ef3968e2cd9c.htmlThanks, I'll look into it.

Wilbert
13th October 2007, 14:59
@yesgrey3,

Yes, that's a good one. I assume those given in the Rec.709 standard are correct. Perhaps the best is to send him an e-mail.

It's also possible that the coefficients are changed in Rec.709 (you can find multiple revisions of the standard on the ITU site). I will try to get the first version and look up the coefficients. As a reference to those coefficients, it gives the following note: "The coefficients for the equations have been calculated following the rules laid down in SMPTE RP177-1993." Perhaps it's possible to get that document somewhere.

I finally downloaded the first draft of Rec.709. Here the other values are used: kr = 0.2125, kg = 0.7154, kb = 0.0721.

It's not clear to me why these values are changed during the adaptation, although they some something about it in Annex I and II (those are removed in the final spec). Check your pm.

_xxl
13th October 2007, 14:59
This patch add 6.0/6.1/7.0/7.1ch audio processing.
Please test.

Bin:
http://rapidshare.com/files/62266102/ffdshow_rev1528_20071013_xxl.exe.html

rickardk
13th October 2007, 17:53
Bin:
http://rapidshare.com/files/62266102/ffdshow_rev1528_20071013_xxl.exe.html
I tried to duplicate the back speakers into side speakers...

I can't get the sound out of the right SIDE speaker using custom matrix (can't route any audio out of this one using custom matrix). I can get sound out of left SIDE speaker and by using channel swap I can get sound out of right SIDE speaker.

Kado
13th October 2007, 21:54
@haruhiko_yamagata

Thanks for the patch, don't forget to eventually add the meters along with the solo and mute buttons on the volume filter for the back center and side surround speakers.
Unfortunately I can't help test because I only have a 5.1 setup and an Audigy 2 ZS witch uses those 3 channel jacks for the surround speakers.
Also, I was wondering if you can add a filter that could load directsound audio processing filters from within ffdshow, when you have the time of course. :)

@_xxl

Thanks for the build.

clsid
14th October 2007, 01:01
Overlay + RGB output gives bad quality output for me. The picture is a bit blurred. No problems with VMR9 or Haali renderer.

It this a simple matter of crappy graphics hardware/drivers? Or is it a limitation of Overlay or perhaps an ffdshow bug?

gunnerhkjp
14th October 2007, 07:00
Yes, I use Nvidia 7900GS. Its YUV->RGB conversion is not reliable. VMR7 is totally broken. VMR9 is bit better but it always use full range. That's why I always use YUV->RGB conversion in ffdshow.

Thanks for the clarification. The picture seems a lot more "crispier" and vibrant.

I guess the side effect of using the conversion in FFDSHOW is that "modify full-screen video options" in forceware no longer works for me.

But who cares, the picture quality is billion times better :)
This should be default for anyone with Nvidia cards. I can't get over how good video looks now.

Kado
14th October 2007, 11:16
@clsid

That goes for me as well. I get a pixelrated image like it uses a different resizer for RGB32. For RGB 24 or lower I even get a different aspect ratio with overlay, haali and vmr7, for vmr9/evr it does not connect.
6800gs/163.75

VMR7/9 windowed looks like crap as well with RGB32

haruhiko_yamagata
14th October 2007, 12:08
I tried to duplicate the back speakers into side speakers...

I can't get the sound out of the right SIDE speaker using custom matrix (can't route any audio out of this one using custom matrix). I can get sound out of left SIDE speaker and by using channel swap I can get sound out of right SIDE speaker.Because I don't have 7.1ch speakers, so such bugs are likely to be overlooked. Thank you for report.

haruhiko_yamagata
14th October 2007, 12:13
Also, I was wondering if you can add a filter that could load directsound audio processing filters from within ffdshow, when you have the time of course. :)I don't know what directsound audio processing filters are. What kind of filters are available?

check
14th October 2007, 12:20
Overlay + RGB output gives bad quality output for me. The picture is a bit blurred. No problems with VMR9 or Haali renderer.

It this a simple matter of crappy graphics hardware/drivers? Or is it a limitation of Overlay or perhaps an ffdshow bug?

Mostly it's an issue with particular driver/GPU combinations. The output can suffer highly in some images if you don't have 'High Quality conversion' checked too.

clsid
14th October 2007, 13:06
I already have "High quality YV12 to RGB conversion" enabled. It doesn't make a difference.

The picture looks a bit like it has been resized to a lower resolution and then upscaled again.

haruhiko_yamagata
14th October 2007, 13:18
But who cares, the picture quality is billion times better :)
This should be default for anyone with Nvidia cards. I can't get over how good video looks now.One negative point is RGB conversion is CPU intensive. Current CPU is pretty fast, but still suffers to decode h.264 1080i.
I remember we heve talked about how to work around the nVidia-VMR9's bug (perhaps a info from coreAVC team?), but I cannot find the log. Does anyone know where it is? At that time, I didn't have nVidia's card, so I wasn't interested in it.

Kado
14th October 2007, 16:36
I don't know what directsound audio processing filters are. What kind of filters are available?

Something like iZotope Ozone 3 (http://www.izotope.com/products/audio/ozone/). You can get it here (http://izotope.fileburst.com/product_download/iZotope_Ozone_Setup_v3_13.exe).
Tried it with graphedit but refuses to connect even if in output setting is "connect to any filter"

rickardk
14th October 2007, 17:36
Because I don't have 7.1ch speakers, so such bugs are likely to be overlooked. Thank you for report.

You have done a stellar job...a much appreciated patch.
One thing thats missing is still 8 channel input support. I have a couple of blu-rays containing 8 channel lpcm thats not working.

I done some testing today and found out that everything works ok, it's just the wrong name on a couple of channels.
On the right side of the matrix:
BackC should be named SideR (on my soundcards)
And SideR sould be named SideL (on my soundcards)
SideL should be named BackC (on my soundcards)

I used my X-Meridian and my MOTU HD192 for testing.

Koti
14th October 2007, 19:45
ffdshow rev1525 Disabled SNOW support. It is far too slow, unstable and experimental to be used. :( :(

I have not experienced any snow decoding instability or speed issues and do use it for a number of files.
I can't comment on the encoder section since I have not used it. (I use mencoder)

If snow caused other reported problems within ffdshow or was to much work to enable , I understand. :thanks:

clsid
14th October 2007, 20:36
The SNOW (bitstream) specification is not finalized yet. So anything you encode now may not be playable in the future.

I tried updating ffdshow with the latest SNOW code, but encoding just crashes. The old code gives bad output. Furthermore, it is slow as hell and the quality/size ratio is worse than other codecs. So it is pointless to use it in its current state.

yesgrey
14th October 2007, 21:41
@Wilbert,

Thanks for the file. It was interesting looking at it.

I also don't understand why they have changed the coefficients.
I have done some math just for curiosity. With Matlab I have calculated the matrices using both coefficients. You can see that with the last ones there is a slightly lower error when you convert from RGB->YUV->RGB. See this file:7672
I don't know if it was the reason, just a curiosity.

Can you find the SMPTE RP177-1993 documentation? Apparently it's there the rules for the coefficient's calculation.

yesgrey
14th October 2007, 21:52
@haruhiko,
In your new RGB conversion dialog, appears to be a bug in the Contrast Full range labelling.
Chroma should be 0-255 instead of 1-255, right?

haruhiko_yamagata
15th October 2007, 00:13
@haruhiko,
In your new RGB conversion dialog, appears to be a bug in the Contrast Full range labelling.
Chroma should be 0-255 instead of 1-255, right?It's 1-255. 128-127=1.

haruhiko_yamagata
15th October 2007, 10:48
You have done a stellar job...a much appreciated patch.Thank you.
One thing thats missing is still 8 channel input support. I have a couple of blu-rays containing 8 channel lpcm thats not working.I need sample to fix this. Anyone with such skill, please help.
You could use LPCM decoder (converter) before ffdshow, though I don't know which filter to use.

I done some testing today and found out that everything works ok, it's just the wrong name on a couple of channels.
On the right side of the matrix:
BackC should be named SideR (on my soundcards)
And SideR sould be named SideL (on my soundcards)
SideL should be named BackC (on my soundcards)
I think I have fixed it on my PC.

haruhiko_yamagata
15th October 2007, 11:06
Something like iZotope Ozone 3 (http://www.izotope.com/products/audio/ozone/). You can get it here (http://izotope.fileburst.com/product_download/iZotope_Ozone_Setup_v3_13.exe).
Tried it with graphedit but refuses to connect even if in output setting is "connect to any filter"Thanks, maybe in the future. I cannot promise though.

madshi
15th October 2007, 11:26
I need sample to fix this. Anyone with such skill, please help.
Can't test myself right now. But here's a sample which might help:

http://madshi.net/8.flac

It's an extract of a 7.1 LPCM track reencoded to 7.1 FLAC.

haruhiko_yamagata
15th October 2007, 12:22
Can't test myself right now. But here's a sample which might help:

http://madshi.net/8.flac

It's an extract of a 7.1 LPCM track reencoded to 7.1 FLAC.I muxed the file to .mka and ffdshow now plays the file (as a post processor of coreFLAC).
Could you convert the file to LPCM? I don't have such skill.

madshi
15th October 2007, 19:37
I muxed the file to .mka and ffdshow now plays the file (as a post processor of coreFLAC).
Could you convert the file to LPCM? I don't have such skill.
Here's the same sample as LPCM (same format as demuxed by xport) :

http://madshi.net/8.rar

rickardk
15th October 2007, 22:11
The channel mapping on lpcm (from blu-ray) is diffrent and I'm trying to get ffdshow audio to automaticly load a presets that takes care of the remapping through the swap channel function.

The problem is that ffdshow sees the lpcm in my ts-files (haali media splitter) as uncompressed. And you can't set decoder match on the preset auto load page to uncompressed. Any solution to this?

Is there anyway you can force Vista Media Center (windows media player 11) to use ffdshow on mp3-playback?
ffdshow takes care of mp3 encoded audio in video containers. But I would also like to use it on straight .mp3 audio files.
As I replaced my preamp its essential to use ffdshow audio to take care of lfe crossover and delays.

If I use graphedit ffdshow audio loads and takes care of my .mp3 audio files.

Haali
15th October 2007, 22:29
I'll add channel remapping code in the next release, no need to add special cases for now.

rickardk
15th October 2007, 23:13
I'll add channel remapping code in the next release, no need to add special cases for now.

Great!
One feature that I'm missing in haali media splitter is to have a preferred audio stream. Or better like a top 3 list.
If I have a ts containing lpcm, dts, ac3 I would like to have lpcm choosen by default. If lpcm is missing dts would be my second choice.