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

haruhiko_yamagata
25th October 2011, 12:45
Hi, nice to see you again.:)
10bit color space support may be important. But as for me, I would like to concentrate on subtitles for the time being.

_xxl
25th October 2011, 13:33
I don't know how to get new developers to be interested in FFdshow...

haruhiko_yamagata
25th October 2011, 13:47
Yeah, it's important. ffdshow is a huge project and it is not possible for a small numbers of developers to satisfy all requests.

SamuriHL
25th October 2011, 14:19
If you're looking at subtitle support I think it would be helpful to maybe take a look at adding support for the extended vobsub format used by HD DVD. I know it's a dead format, but, a LOT of people have converted them to MKV's and are really only missing subtitle support. Just something to consider.

Keiyakusha
25th October 2011, 14:27
Hi, nice to see you again.:)
10bit color space support may be important. But as for me, I would like to concentrate on subtitles for the time being.

Wow,Yamagata-san, welcome back ^__^

About subtitles, do you think ffdshow's engine even deserves to be improved? It has more potential than vsfilter?

Kurtnoise
25th October 2011, 14:31
If you're looking at subtitle support I think it would be helpful to maybe take a look at adding support for the extended vobsub format used by HD DVD. I know it's a dead format, but, a LOT of people have converted them to MKV's and are really only missing subtitle support.
Seriously ? :rolleyes:

How many people use/buy HDDVD nowadays ? Please, tell me...

There are several ways to convert hddvd to bd discs...no need to waste some time for this.

Just my 0.02€.

SamuriHL
25th October 2011, 14:38
Seriously ? :rolleyes:

How many people use/buy HDDVD nowadays ? Please, tell me...

There are several ways to convert hddvd to bd discs...no need to waste some time for this.

Just my 0.02€.

No skin off my nose if it's not implemented. How many BUY them now a days? NONE. How many OWN them and have converted the to MKV? TONS. I already have a subtitle renderer that can display them in an MKV, so, personally I don't care either way. It was a suggestion because there are people that would use it and no free subtitle renderer can display them. For completeness, it would be a good idea to implement it. If not, whatever. :)

haruhiko_yamagata
25th October 2011, 14:52
About subtitles, do you think ffdshow's engine even deserves to be improved? It has more potential than vsfilter?
Hi, don't be so serious. I'm just playing. It's fun to code for subtitles.

haruhiko_yamagata
25th October 2011, 14:54
If you're looking at subtitle support I think it would be helpful to maybe take a look at adding support for the extended vobsub format used by HD DVD. I know it's a dead format, but, a LOT of people have converted them to MKV's and are really only missing subtitle support. Just something to consider.Not to mention HD DVD, the vobsub support in ffdshow is quite incomplete. I'm not much interested in it.

SamuriHL
25th October 2011, 15:04
Not to mention HD DVD, the vobsub support in ffdshow is quite incomplete. I'm not much interested in it.

No problem. Just thought I'd mention it since you were playing in the subtitle code. Not a big deal, as like I said, I have a solution that works perfectly for me. J River implemented their own subtitle renderer that supports nearly all the subtitle formats.

Midzuki
25th October 2011, 16:50
@ Yamagata-sama, a shameless :o feature request :)

http://forum.doom9.org/showthread.php?p=1416657#post1416657

P.S.: also:

http://forum.doom9.org/showthread.php?p=1444038#post1444038

ikarad
25th October 2011, 20:49
Hi, everybody. Sorry for my long absence and thank you for the good maintenance work.

I've been playing with the subtitles for a month. By importing a lot of code from MPC-HC,


Implement rotation (\frx,\fry,\frz,\org).
Implement \clip.
Implement \h.
Implement \r<style>
Implement \blur<strength>
Implement \be<strength>
Implement polygon drawings (\p)

Improved rendering (boundary of the body and the outlines)
Improved gradation of the outlines.
Improved, rotatable opaque box.

Subpixel accurate positioning.

Some compatibility fixes.
a few regression fixes

Other bug fix

ffdshow color space converter:YV12->RGB32:If the output horizontal size is not a multiple of 4, the heap gets broken.

TODO

Implement \t
Implement \clip polygon bitmap mask version
Improve YV12 rendering

I've created a branch in the svn. A test build. (http://ffdshow-tryout.sourceforge.net/doom9/ffdshow_rev3998_20111025_branch.exe)
Please give it a try, if you are interested in ffdshow's subtitles filter.
good news.

1)There is a bug with animated sub
bug tracker
http://sourceforge.net/tracker/?func=detail&aid=3186705&group_id=173941&atid=867360

this problem is not corrected with your version

2) Albain have allowed the support of pgs subs but when two silmutaneous subs are displayed i nthe same time, there are random crash.

3) other bug with subtitle renderer (between 1hour17 and 1hour 18 with sub file subs are displayed not correctly)
file: http://www.zshare.net/info.html?95171226-cba83d2230ae9f09ae5be28229de3580

Dialogue: 0,1:17:38.00,1:17:41.09,Signs,,0000,0000,0000,,{\an7\fs80\pos(322.666667,276.666667)\bord3.333333\blur10\b1\3c&H1331E8&\c&HCCD0F5&\fnTempus Sans ITC}My body...
Dialogue: 0,1:17:38.00,1:17:41.09,Signs,,0000,0000,0000,,{\an7\bord0\shad0\p1\c&H000000&\move(339.333333,276.666667,613.333333,276.666667,28,445)}m 0 0 l 933 0 933 100 0 100{\p0}
Dialogue: 0,1:17:39.34,1:17:41.09,Signs,,0000,0000,0000,,{\fnTempus Sans ITC\an7\fs80\bord3.333333\blur10\b1\3c&H1331E8&\c&HCCD0F5&\pos(322.666667,526.666667)}is made of swords.
Dialogue: 0,1:17:39.34,1:17:41.09,Signs,,0000,0000,0000,,{\an7\bord0\shad0\p1\c&H000000&\move(327.333333,519.333333,796.666667,519.333333,23,732)}m 0 0 l 933 0 933 100 0 100{\p0}
Dialogue: 0,1:17:43.13,1:17:46.59,Signs,,0000,0000,0000,,{\fnTempus Sans ITC\an7\fs80\bord3.333333\blur10\b1\3c&H1331E8&\c&HCCD0F5&\pos(408,278.666667)}Iron is my blood
Dialogue: 0,1:17:43.13,1:17:46.59,Signs,,0000,0000,0000,,{\an7\bord0\shad0\p1\c&H000000&\move(416.666667,270,844.666667,270,29,696)}m 0 0 l 933 0 933 100 0 100{\p0}
Dialogue: 0,1:17:44.59,1:17:46.59,Signs,,0000,0000,0000,,{\fnTempus Sans ITC\an7\fs80\bord3.333333\blur10\b1\3c&H1331E8&\c&HCCD0F5&\pos(451.333333,536.666667)}and glass is my heart.
Dialogue: 0,1:17:44.59,1:17:46.59,Signs,,0000,0000,0000,,{\an7\bord0\shad0\p1\c&H000000&\move(459.333333,533.333333,1000,533.333333,0,1029)}m 0 0 l 933 0 933 100 0 100{\p0}
Dialogue: 0,1:17:48.89,1:17:57.61,Signs,,0000,0000,0000,,{\an7\bord3.333333\blur10\b1\3c&H1331E8&\c&HCCD0F5&\pos(252,216.666667)\fnTempus Sans ITC\fs56.666667\b1}I have overcome countless battlefields undefeated.
Dialogue: 0,1:17:48.89,1:17:57.61,Signs,,0000,0000,0000,,{\an7\bord0\shad0\p1\c&H000000&\move(258.666667,208.666667,1170,208.666667,24,1609)}m 0 0 l 933 0 933 100 0 100{\p0}
Dialogue: 0,1:17:51.89,1:17:57.61,Signs,,0000,0000,0000,,{\fnTempus Sans ITC\an7\fs56.666667\bord3.333333\blur10\b1\3c&H1331E8&\c&HCCD0F5&\pos(252,390)}Not once have I retreated,
Dialogue: 0,1:17:51.89,1:17:57.61,Signs,,0000,0000,0000,,{\an7\bord0\shad0\p1\c&H000000&\move(258.666667,384.666667,734.666667,384.666667,27,1612)}m 0 0 l 933 0 933 100 0 100{\p0}
Dialogue: 0,1:17:54.89,1:17:57.61,Signs,,0000,0000,0000,,{\fnTempus Sans ITC\an7\fs56.666667\bord3.333333\blur10\b1\3c&H1331E8&\c&HCCD0F5&\pos(252,563.333333)}nor once have I been understood.
Dialogue: 0,1:17:54.89,1:17:57.61,Signs,,0000,0000,0000,,{\an7\bord0\shad0\p1\c&H000000&\move(274.666667,560,871.333333,560,30,1615)}m 0 0 l 933 0 933 100 0 100{\p0}
Dialogue: 0,1:17:59.90,1:18:05.49,Signs,,0000,0000,0000,,{\fnTempus Sans ITC\an7\fs56.666667\bord3.333333\blur10\b1\3c&H1331E8&\c&HCCD0F5&\pos(369.333333,220)}Always alone
Dialogue: 0,1:17:59.90,1:18:05.49,Signs,,0000,0000,0000,,{\an7\bord0\shad0\p1\c&H000000&\move(378,210,620.666667,210,25,651)}m 0 0 l 933 0 933 100 0 100{\p0}
Dialogue: 0,1:18:01.94,1:18:05.49,Signs,,0000,0000,0000,,{\fnTempus Sans ITC\an7\fs56.666667\bord3.333333\blur10\b1\3c&H1331E8&\c&HCCD0F5&\pos(369.333333,395.333333)}on the hill of swords...
Dialogue: 0,1:18:01.94,1:18:05.49,Signs,,0000,0000,0000,,{\an7\bord0\shad0\p1\c&H000000&\move(416.666667,388.666667,778.666667,388.666667,29,571)}m 0 0 l 933 0 933 100 0 100{\p0}
Dialogue: 0,1:18:03.44,1:18:05.49,Signs,,0000,0000,0000,,{\fnTempus Sans ITC\an7\fs56.666667\bord3.333333\blur10\b1\3c&H1331E8&\c&HCCD0F5&\pos(369.333333,579.333333)}intoxicated with victory...
Dialogue: 0,1:18:03.44,1:18:05.49,Signs,,0000,0000,0000,,{\an7\bord0\shad0\p1\c&H000000&\move(371.333333,578.666667,840.666667,578.666667,30,698)}m 0 0 l 933 0 933 100 0 100{\p0}
Dialogue: 0,1:18:08.58,1:18:13.62,Signs,,0000,0000,0000,,{\fnTempus Sans ITC\an7\fs83.333333\bord3.333333\blur10\b1\3c&H1331E8&\c&HCCD0F5&\pos(207.333333,293.333333)}Thus, this life has no meaning.
Dialogue: 0,1:18:08.58,1:18:13.62,Signs,,0000,0000,0000,,{\an7\bord0\shad0\p1\c&H000000&\move(230.666667,284.666667,1026.666667,284.666667,21,1105)}m 0 0 l 933 0 933 100 0 100{\p0}
Dialogue: 0,1:18:11.79,1:18:13.62,Signs,,0000,0000,0000,,{\fnTempus Sans ITC\an7\fs83.333333\bord3.333333\blur10\b1\3c&H1331E8&\c&HCCD0F5&\pos(207.333333,526.666667)}This body... was definitely...
Dialogue: 0,1:18:11.79,1:18:13.62,Signs,,0000,0000,0000,,{\an7\bord0\shad0\p1\c&H000000&\move(226.666667,523.333333,928.666667,523.333333,22,1148)}m 0 0 l 933 0 933 100 0 100{\p0}
Dialogue: 0,1:18:14.29,1:18:17.00,Signs,,0000,0000,0000,,{\fnTempus Sans ITC\an7\fs120\bord3.333333\blur10\b1\3c&H1331E8&\c&HCCD0F5&\pos(242,426.666667)}made out of blades.

bug tracker here
https://sourceforge.net/tracker/?func=detail&aid=3428392&group_id=173941&atid=867360

clsid
26th October 2011, 01:27
Welcome back, Haruhiko!

cc979
26th October 2011, 03:09
i am aware about flac needing a splitter, my question is when using opencodec from xiph - i have ffdshow set to handle all supported raw audio, is there a reason why ffdshow does not handle the output from opencodec in mpc_hc with windows 7 ?

cheers


Filter : Audio Switcher - CLSID : {18C16B08-6497-420E-AD14-22D21C2CEAB7}

- Connected to:

CLSID: {79376820-07D0-11CF-A24D-0020AFD79767}
Filter: Default DirectSound Device
Pin: Audio Input pin (rendered)

- Connection media type:

Audio: WAVE_FORMAT_EXTENSIBLE 44100Hz stereo 1411kbps

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_PCM {00000001-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 0
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 40

WAVEFORMATEX:
wFormatTag: 0xfffe
nChannels: 2
nSamplesPerSec: 44100
nAvgBytesPerSec: 176400
nBlockAlign: 4
wBitsPerSample: 16
cbSize: 22 (extra bytes)

WAVEFORMATEXTENSIBLE:
wValidBitsPerSample: 16
dwChannelMask: 0x00000003
SubFormat: {00000001-0000-0010-8000-00AA00389B71}

pbFormat:
0000: fe ff 02 00 44 ac 00 00 10 b1 02 00 04 00 10 00 þÿ..D¬...±......
0010: 16 00 10 00 03 00 00 00 01 00 00 00 00 00 10 00 ................
0020: 80 00 00 aa 00 38 9b 71 €..ª.8›q

- Enumerated media type 0:

Set as the current media type

- Enumerated media type 1:

Audio: PCM 44100Hz stereo 1411kbps

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_PCM {00000001-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 0
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 18

WAVEFORMATEX:
wFormatTag: 0x0001
nChannels: 2
nSamplesPerSec: 44100
nAvgBytesPerSec: 176400
nBlockAlign: 4
wBitsPerSample: 16
cbSize: 0 (extra bytes)

pbFormat:
0000: 01 00 02 00 44 ac 00 00 10 b1 02 00 04 00 10 00 ....D¬...±......
0010: 00 00 ..

haruhiko_yamagata
26th October 2011, 09:57
Welcome back, Haruhiko!
Nice to see you again. I'm happy to see current status of ffdshow.

haruhiko_yamagata
26th October 2011, 10:02
@ Yamagata-sama, a shameless :o feature request :)

http://forum.doom9.org/showthread.php?p=1416657#post1416657

P.S.: also:

http://forum.doom9.org/showthread.php?p=1444038#post1444038
Sorry, I'm not interested in the audio part.

haruhiko_yamagata
26th October 2011, 10:51
good news.
No the less I'm just playing, I'm glad to hear that.:)

1)There is a bug with animated sub
bug tracker
http://sourceforge.net/tracker/?func=detail&aid=3186705&group_id=173941&atid=867360

this problem is not corrected with your version

Do you mean the vertical part is a few pixels off to the right? I think it's a bug of vsfilter.
ffdshow does not have a emulation code for the bug. Maybe I have to implement it anyway.

2) Albain have allowed the support of pgs subs but when two silmutaneous subs are displayed i nthe same time, there are random crash.

How can I build a testing environment?

3) other bug with subtitle renderer (between 1hour17 and 1hour 18 with sub file subs are displayed not correctly)
file: http://www.zshare.net/info.html?95171226-cba83d2230ae9f09ae5be28229de3580



bug tracker here
https://sourceforge.net/tracker/?func=detail&aid=3428392&group_id=173941&atid=867360
The black bars are not positioned correctly. The problem was reproduced. :thanks:

ikarad
26th October 2011, 11:51
How can I build a testing environment?



I can give you a build but the problem is the crashs are random. Often it can works very well and sometimes it can crash. It's very difficult to reproduce this problem.
The only thing That I said is that when mpc-hc with ffdshow crash it's only when two subs (pgs subs only) are displayed simultaneous by ffdshow.

Example: in a bluray movie (1hour 30) I had simultaneous subs during 15 min and I have only 2 crash only when two simultaneous subs are displayed i nthe same time. But If I restart at the same moment, I didn't have crash.

ikarad
26th October 2011, 11:52
Do you mean the vertical part is a few pixels off to the right? I think it's a bug of vsfilter.
ffdshow does not have a emulation code for the bug. Maybe I have to implement it anyway.


No, I mean that with ffdshow there are no animation if you check complex subs and with mpc-hc there are animations of subs. Moreover the vertical bar sub at the right with mpc-hc sub renderer become no vertical bar sub (horizontal bar) at the right with ffdshow sub renderer

Midzuki
26th October 2011, 11:59
Sorry, I'm not interested in the audio part.

Thanks for making your lack-of-interest very clear :)

But my request actually has nothing to do with audio,

it has to do with forms/window design ;) :p

Anyway, let's see how much your skills have been improved during your sabbatical :D

haruhiko_yamagata
26th October 2011, 12:48
No, I mean that with ffdshow there are no animation if you check complex subs and with mpc-hc there are animations of subs. Moreover the vertical bar sub at the right with mpc-hc sub renderer become no vertical bar sub (horizontal bar) at the right with ffdshow sub renderer
It works for me.
Are we talking about [FTV-subs] Touhou - Bad Apple!! PV [960x720] v2.mkv? Please make sure you have downloaded my test build from Doom9 and installed it. Or maybe some style overrides by the dialog check box?

haruhiko_yamagata
26th October 2011, 12:57
Thanks for making your lack-of-interest very clear :)

But my request actually has nothing to do with audio,

it has to do with forms/window design ;) :p

Anyway, let's see how much your skills have been improved during your sabbatical :D
Then you are talking about the way to destroy adamantium :rolleyes:
The window is too small for font section of the subtitles. I cannot add any more items there. The reason why the window is small is that we wanted to support VGA projectors. Currently, VGA projectors is hardly used, so it's time to widen the window.
But it takes a lot of time. If it is inevitable, I am going to do so.

haruhiko_yamagata
26th October 2011, 13:07
I can give you a build but the problem is the crashs are random. Often it can works very well and sometimes it can crash. It's very difficult to reproduce this problem.
The only thing That I said is that when mpc-hc with ffdshow crash it's only when two subs (pgs subs only) are displayed simultaneous by ffdshow.

Example: in a bluray movie (1hour 30) I had simultaneous subs during 15 min and I have only 2 crash only when two simultaneous subs are displayed i nthe same time. But If I restart at the same moment, I didn't have crash.Thank you for explanation. If it is possible, please send me a sample.
The randomness of the crash makes debugging difficult, but it doesn't mean the effort doesn't worth while.

ikarad
26th October 2011, 13:34
It works for me.
Are we talking about [FTV-subs] Touhou - Bad Apple!! PV [960x720] v2.mkv? Please make sure you have downloaded my test build from Doom9 and installed it. Or maybe some style overrides by the dialog check box?

Yes and I speak about subs called complexe karaoke and not subs called simple karaoke. I try with your version and they don't worked like before
with simple karaoke (it's like with mpc-hc) and it's worked.


with complex karaoke (animated subs doesn't worked instead of working with mpc-hc)
http://img11.hostingpics.net/thumbs/mini_739865Sanstitre2.jpg (http://www.hostingpics.net/viewer.php?id=739865Sanstitre2.jpg)

with mpc-hc there are animations even with complex karaoke subs
http://img11.hostingpics.net/thumbs/mini_411523Sanstitre3.jpg (http://www.hostingpics.net/viewer.php?id=411523Sanstitre3.jpg)

Moreover with ffdshow subs at the right of the screen is horizontal and cut at the middle and with mpc-hc sub is vertical and complete

haruhiko_yamagata
26th October 2011, 14:13
Yes and I speak about subs called complexe karaoke and not subs called simple karaoke. I try with your version and they don't worked like before
with simple karaoke (it's like with mpc-hc) and it's worked.
...

It works for me. It is identical to MPC-HC except that the vertical subs are a few pixels off to the right.
Would you re-install and reboot to make sure ffdshow.ax is replaced by the new one? And if the problem is still there, would you uninstall ffdshow and re-install to exclude the settings related problem. Before uninstalling, please backup the registry [HKEY_CURRENT_USER\Software\GNU].

By the way, for better quality, I would like to recommend RGB32 output.

ikarad
26th October 2011, 14:26
I find another problem with sub
With ffdshow (under subs, rectangle is opac and not under subs)
http://img11.hostingpics.net/thumbs/mini_255859Sanstitre4.jpg (http://www.hostingpics.net/viewer.php?id=255859Sanstitre4.jpg)
with mpc-hc (under subs, rectangle is transparent and under subs)
http://img11.hostingpics.net/thumbs/mini_641964Sanstitre5.jpg (http://www.hostingpics.net/viewer.php?id=641964Sanstitre5.jpg)

file here
http://www.nyaa.eu/?page=torrentinfo&tid=252194

ikarad
26th October 2011, 14:38
It works for me. It is identical to MPC-HC except that the vertical subs are a few pixels off to the right.
Would you re-install and reboot to make sure ffdshow.ax is replaced by the new one? And if the problem is still there, would you uninstall ffdshow and re-install to exclude the settings related problem. Before uninstalling, please backup the registry [HKEY_CURRENT_USER\Software\GNU].

By the way, for better quality, I would like to recommend RGB32 output.

I do like you said but I have the same problem.

with ffdshow subs I have with complex karoke subs
http://img11.hostingpics.net/thumbs/mini_739865Sanstitre2.jpg (http://www.hostingpics.net/viewer.php?id=739865Sanstitre2.jpg)

and not like with mpc-hc
http://img11.hostingpics.net/thumbs/mini_411523Sanstitre3.jpg (http://www.hostingpics.net/viewer.php?id=411523Sanstitre3.jpg)

I don't understand why you have the good thing and me the wrong thing. Although your version is well installed because I see the differences under some subs.

haruhiko_yamagata
26th October 2011, 15:59
OK, I enabled MPC-HC's internal Matroska splitter and changed video renderer to EVR Custom (and disabled MPC-HC's subtitle), I finally reproduced the problem. :thanks:

ikarad
26th October 2011, 16:04
Thank you for explanation. If it is possible, please send me a sample.
The randomness of the crash makes debugging difficult, but it doesn't mean the effort doesn't worth while.

Here the example (2 min with some moments with two subs displayed simultaneous)
file : 570 mb
link : http://www.zshare.net/download/9519883738674ed5/

haruhiko_yamagata
27th October 2011, 12:52
Here the example (2 min with some moments with two subs displayed simultaneous)
file : 570 mb
link : http://www.zshare.net/download/9519883738674ed5/
I've got two files and reproduced both issues. Please wait a week or two.:)

mini-moose
27th October 2011, 19:46
I'm sure this has been asked before but I didn't quite find a definite answer.

ffdshow has 2 decoding options for VC-1: libavcodec and wmv9.

Is one of them recommended over the other?

another thing, I've noticed frameserving using ffdshow/wmv9 via avisynth (directshowsource("vid.m2ts, audio=false) loaded on virtualdub shows a lot of glitches which are not present once the script is actually being used for transcoding to x264. Granted, I've used a relatively older version of ffdshow (rev3886) so I'm yet to try a newer version (maybe that's the cause).

Atak_Snajpera
27th October 2011, 20:45
wmv9 supports interlaced decoding. on libavcodec you will see black screen.

mini-moose
27th October 2011, 21:52
wmv9 supports interlaced decoding. on libavcodec you will see black screen.

thanks Atak_Snajpera. and other than that? assuming most of the
videos I watch or backup to x264 are progressive and not interlaced?

the_weirdo
27th October 2011, 21:57
assuming most of the
videos I watch or backup to x264 are progressive and not interlaced?

That means your videos are in H.264/AVC format and have nothing to do with VC-1, so you don't need to worry about it.

mini-moose
27th October 2011, 22:37
That means your videos are in H.264/AVC format and have nothing to do with VC-1, so you don't need to worry about it.

that's incorrect. there are lots of 24p VC-1 blurays.

the_weirdo
27th October 2011, 23:20
that's incorrect. there are lots of 24p VC-1 blurays.

Sorry, I misunderstood. I thought you mean your encoded videos.

Note to self: Need to read more carefully.

carlmart
30th October 2011, 11:44
I am having a hard time finding out which codecs to install with Windows 7 64-bit. Some advice there would be infinitely valuable.

I read that ffdshow, which is 32-bit only, has to be enabled precisely for every video codec. I also wonder about matroska.

What would you recommend?

Keiyakusha
30th October 2011, 13:44
I am having a hard time finding out which codecs to install with Windows 7 64-bit. Some advice there would be infinitely valuable.
Of course you should only install the ones you need.
There is 64bit ffdshow. however not sure if it works well...

carlmart
30th October 2011, 14:30
Of course you should only install the ones you need.
There is 64bit ffdshow. however not sure if it works well...

Well, what I need are video codecs, that cab work with avi, mkv, etc.

Right now I have a problem with Subtitle Workshop which I can't make to show a video image. That was usually related with video codecs, but I installed ffdshow (32bit) and nothing. I couldn't find a 64 bit version.

kirakami
31st October 2011, 11:25
ffdshow doesn't output Hi10p videos to p010
only to YV12 (converts 10bits to 8bits before it hits display) :(
is there any plans on adding p010/p016 output in future?

haruhiko_yamagata
31st October 2011, 14:52
Maybe in the future, if my motivation persists long enough.

dukey
2nd November 2011, 18:46
Is it possible to get hardware acceleration without outputting a DXVA output pin ? So renderers like haali and madrv can be used ?

xbmc does something like this

haruhiko_yamagata
3rd November 2011, 02:02
Technically it is possible. But sorry, as for me, I have no plan for now.

egur
3rd November 2011, 07:24
Is it possible to get hardware acceleration without outputting a DXVA output pin ? So renderers like haali and madrv can be used ?

xbmc does something like this

This is what I've done with my ffdshow-quicksync project.
It will only work (well) on the latest Intel GPU (SandyBridge - 2nd Generation Core i3/5/7 2xxx). Will work on future Intel CPUs as well.
Can be combined with a renderer working on a discrete GPU.
My code copies the image back to system memory for normal SW processing.
Code is quite stable and needs integration into ffdshow's main trunk. On my immediate todo list.

Adding non-DXVA output to the DXVA flavor of ffdshow can use my code as reference. Should be quite simple.

Check it out at:
http://forum.doom9.org/showthread.php?t=162442

nevcairiel
3rd November 2011, 07:34
The problem is that such copying actions are dead slow on ATI/AMD cards, and on NVIDIA/Intel you can just use one of those other hardware decoders that do it by design anyway.

madshi
3rd November 2011, 09:04
The problem is that such copying actions are dead slow on ATI/AMD cards, and on NVIDIA/Intel you can just use one of those other hardware decoders that do it by design anyway.
The standard hardware decoders that copy frames back to system RAM are probably too slow on Intel hardware, too, I think, at least if they use standard Direct3D surface reading. You can get things fast with Intel GPUs only by using specific Intel APIs, at least that was the case last time I checked. So there's a good chance that egur's implementation is (currently) the only one which is really able to do GPU decoding + copying back to system RAM in real time for Intel GPUs. @egur, please correct me if I'm wrong.

nevcairiel
3rd November 2011, 11:04
As i understood it, its not using any special "API", its just using a special SSE4 instruction that was optimized for copying memory from such sources (http://software.intel.com/en-us/articles/increasing-memory-throughput-with-intel-streaming-simd-extensions-4-intel-sse4-streaming-load/)

madshi
3rd November 2011, 11:18
Ah, ok, I didn't even know that SSE4 instruction.

dukey
3rd November 2011, 13:55
The problem is that such copying actions are dead slow on ATI/AMD cards, and on NVIDIA/Intel you can just use one of those other hardware decoders that do it by design anyway.

I am actually an opengl programmer :p Uploading to graphics cards is typically highly optimised, even on ghetto ATI cards. The problem is often getting the data back out again, since this is not an optimised path. In order to get good performance you have to know the internal format of the texture and copy it out exactly. If the internal format is ABGR and you read out RGBA it'll hurt performance a lot.

nvidia has this handy chart ..
http://developer.nvidia.com/system/files/akamai/gamedev/docs/nv_ogl_texture_formats.pdf?download=1

dukey
3rd November 2011, 14:20
I found some code I wrote 5 or some years ago for a company. Captures real time stereo video, HD resolution * 2.

glReadPixels (offsetX,offsetY,videoWidth,videoHeight,GL_BGR_EXT,GL_UNSIGNED_BYTE,buffer);
glReadPixels (offsetX+tempXOffset,offsetY+tempYOffset,videoWidth,videoHeight,GL_BGR_EXT,GL_UNSIGNED_BYTE,buffer + (videoWidth*videoHeight*3));

aviCapture->captureFrame(buffer);

with a byte alignment of 4 bytes. I think I cropped the resolution so it was mod 16. I could capture dual HD RGB + encode it in real time on ATI and Nvidia cards. The pixel format makes a lot of difference.