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

DeathTheSheep
19th February 2010, 08:58
I may have reported this in the past, but I'll do so again.

Delay doesn't accept negative values. I don't think it's a good idea to default the fields to "only accepting numbers." A far better default would be to selectively disable the negative on fields where it would make no sense. There are other fields that have had this obvious problem before, such as some encoder options that actually default to negative values (like I frame quantizer shifts) but don't let the user input one!

jhb50
19th February 2010, 09:54
I would suggest taking another log while using GraphStudio
( http://blog.monogram.sk/janos/2009/06/14/monogram-graphstudio-0320/ )

it would also help to visually identify all the filters involved, and verify that the crash comes before starting playback (during the connection stage).

Hi Tal. The log is on pastebin "JHB50 GMA500"

I did 3 tests: Video#1.mp4 with Haali, Video #1.mp4 with MPC splitter and Video #2.mkv with MPC splitter. (see attached .grf's - rename from .zip)

The logs from all 3 are identical except for the "NAL" size, so I only pasted one.

Whats next?

John

tal.aloni
19th February 2010, 10:23
Delay doesn't accept negative values.

if you want negative video delay, you can just apply positive audio delay.

negative delay is impossible when it comes to playback of live broadcast (DVB-T playback for example).

tal.aloni
19th February 2010, 10:32
jhb50,
when does it crash? during the connection stage, before you start playback, right?

Thanks

p.s.
this is the log I located:
http://pastebin.com/m5d7e2973

it appears ffdshow is not doing anything during the crash, but instead waiting for an external DirectShow event.
can you disable all AC3 decoders and post another log with no audio decoders?

rsd78
19th February 2010, 15:13
@Albain or Tal (sorry if this belongs more in the Media Control forum), but I am seeing an issue with Gabest and ffdshow dxva and Media Control within Media Center.

I can't get the context menu to pop up automatically and it does not consistently find all the embedded subtitles (I can turn off/on subs overall but doesn't usually let me select between specific languages). Thanks!

EDIT: Did more testing and using Gabest with regular ffdshow works fine with MediaControl (Context Menu pop up appears, I can see all the embedded subtitles fine and can select between them). So I'm not sure if it's a ffdshow dxva issue, mediacontrol, or Gabest. Would love for this to be worked out if there is truly something to fix, as Gabest seemed to resolve all garbling/seeking issues I had with dxva while using Haali. Note using Haali + ffdshow (dxva or regular) + mediacontrol I don't have this issue.

Thanks again for all your work.

Sorry to bump this, but I was hoping one of the great devs could take a look at this? At first I thought maybe it is a splitter/media control issue, but it seems odd that it works fine with ffdshow software decoding but not with ffdshow dxva.

Or if anyone else can confirm what I am seeing (ffdshow dxva + gabest splitter + media control) that'd be great as well.
Thanks again.

jhb50
19th February 2010, 17:57
jhb50,
when does it crash? during the connection stage, before you start playback, right?

Thanks

p.s.
this is the log I located:
http://pastebin.com/m5d7e2973

it appears ffdshow is not doing anything during the crash, but instead waiting for an external DirectShow event.
can you disable all AC3 decoders and post another log with no audio decoders?

Hi Tal:

The graph is created, I saved it and attached it to the last message. Here is the .xml output from Graphedt. I then press the play Icon, the ActiveMovie window opens, then the screen goes black , and then the BSOD. I assume this means that all the connections have been made and playback has or is starting.

- <GRAPH version="1.0">
- <FILTER ID="Default_DirectSound_Device" clsid="{79376820-07D0-11CF-A24D-0020AFD79767}">
<PARAM name="data" value="30003000300030003000300030003000300030003000200000000000000000000000000000000000" />
</FILTER>
- <FILTER ID="Video_Renderer" clsid="{B87BEB7B-8D29-423F-AE4D-6582C10175AC}">
<PARAM name="data" value="30003000300030003000300030003000300030003000200088010000 ...0000000" />
</FILTER>
<FILTER ID="MPC___MPA_Decoder_Filter" clsid="{3D446B6F-71DE-4437-BE15-8CE47174340F}" />
<FILTER ID="ffdshow_DXVA_Video_Decoder" clsid="{0B0EFF97-C750-462C-9488-B10E7D87F1A6}" />
- <FILTER ID="AAC_Source_0" clsid="{55DA30FC-F16B-49FC-BAA5-AE59FC65F82D}">
<PARAM name="src" value="F:\All Test Videos\A-Big Buck Bunny 1080porig.AAC.mp4.mp4" />
</FILTER>
<connect direct="yes" src="AAC_Source_0" srcpin="Video" dest="ffdshow_DXVA_Video_Decoder" destpin="In" />
<connect direct="yes" src="AAC_Source_0" srcpin="Audio" dest="MPC___MPA_Decoder_Filter" destpin="In" />
<connect direct="yes" src="MPC___MPA_Decoder_Filter" srcpin="Out" dest="Default_DirectSound_Device" destpin="Audio Input pin (rendered)" />
<connect direct="yes" src="ffdshow_DXVA_Video_Decoder" srcpin="Out" dest="Video_Renderer" destpin="VMR Input0" />
</GRAPH>

You have the correct log, and I will now run with just the video chain and post the log as "JHB50 GMA500X"
Here is the xml for that Graph.
<GRAPH version="1.0">
<FILTER ID="Video_Renderer" clsid="{B87BEB7B-8D29-423F-AE4D-6582C10175AC}">
<PARAM name="data" value="3000300030003000300030003000300030003000300020008801000000...00000"/>
</FILTER>
<FILTER ID="ffdshow_DXVA_Video_Decoder" clsid="{0B0EFF97-C750-462C-9488-B10E7D87F1A6}">
</FILTER>
<FILTER ID="AAC_Source_0" clsid="{55DA30FC-F16B-49FC-BAA5-AE59FC65F82D}">
<PARAM name="src" value="F:\All Test Videos\A-Big Buck Bunny 1080porig.AAC.mp4.mp4"/>
</FILTER>
<connect direct="yes" src="AAC_Source_0" srcpin="Video" dest="ffdshow_DXVA_Video_Decoder" destpin="In"/>
<connect direct="yes" src="ffdshow_DXVA_Video_Decoder" srcpin="Out" dest="Video_Renderer" destpin="VMR Input0"/>
</GRAPH>

FOR COMPARISON PURPOSES I have also posted the log for video only using ffdshow which does play correctly. Perhaps a comparison of the two will yield a clue. They are quite different! "JHB50 GMA500Y"


John

shh
19th February 2010, 18:46
Hi,
I'm using ffdshow rev3267 from this site:
http://www.free-codecs.com/FFDshow_download.htm 2010-02-13-mmx
and get a strange framerate with my NTSC-MPEG-2s.

I can open at least two NTSC VOBs via DirectShow in AVISynth which report 10000000/333667 = 29.97000002997fps instead of the correct 30000/1001 = 29.97002997fps
script1:
DirectShowSource("tenchi.vob")
info()

If I index the MPGs with DGIndex and open the D2V in AviSynth I receive proper 30000/1001:
script2:
LoadPlugin("....\plugins\DGDecode.dll")
MPEG2Source("tenchi.d2v")
info()

I'm not quite sure whoose fault this is, but I think ffdshow is reporting wrong fps for the NTSC-files. MPC reports just 29.97fps.
Can anybody confirm this issue, or am I doing something wrong?
Graphedit shows, that ffdshow is the only filter that get's active on opening the VOBs.
Or is it perhaps the MPEG2-Splitter (Win7), that gives the wrong rate?

Regards...

tal.aloni
19th February 2010, 18:53
John,
1. please paste hyperlinks to pastebin,
now I have to wait for google to index "JHB50 GMA500Y" :(

(you can just copy the link that you are redirected to after pasting the content at pastebin)

2. so you're saying that the computer does not crash during DXVA playback if audio is not involved?
if so, it means the crash has nothing to do with the DXVA implementation itself,
try using ffdshow audio decoder and also try unchecking "Decoder option > enable jitter correction" for the audio decoder, is it still crash?

jhb50
19th February 2010, 21:14
John,
1. please paste hyperlinks to pastebin,
now I have to wait for google to index "JHB50 GMA500Y" :(

(you can just copy the link that you are redirected to after pasting the content at pastebin)

2. so you're saying that the computer does not crash during DXVA playback if audio is not involved?
if so, it means the crash has nothing to do with the DXVA implementation itself,
try using ffdshow audio decoder and also try unchecking "Decoder option > enable jitter correction" for the audio decoder, is it still crash?

No Tal, the "ffdshow DXVA Video Decoder" always crashes, with audio (JHB50 GMA500) http://pastebin.com/m5d7e2973, or without Audio (JHB50 GMA500 X) repasted as http://www.pastebin.com/m241b3dc6.

The "ffdshow video decoder" which does not try to use DXVA does not crash (JHB GMA500Y) repasted as http://www.pastebin.com/m2e42dece which definitely shows that it is the DXVA implementation that fails.

The BSOD screen also has the GMA500 driver DLL identified as the point of failure so "ffdshow DXVA' has certainly tried to use it.

albain
20th February 2010, 01:08
Hi,

Too much work these days, but I finally found some time to finish the bluray subtitles implementation

Here is a test build (32 bits) (http://damienbt.free.fr/ffdshow_rev3254_20100207_dbt_bitstream_trial_beta2.exe)

Configuration : enable subtitles, and enable vobsub (cosmetic to be done). Indeed, the scaler that is used is the same as vobsubs. Then play a m2ts file (I made all my tests with graphstudio)

Status :

Working with m2ts files (from blurays). Tried with MPC splitter
BR subs in MKV : not tested, a mediatype should probably be added if this does not work
Subtitles are positioned correctly even if the resize filter is enabled
The subtitles should also be placed correctly if you enabled zooming
Zooming with smooting modes that are working : none, gaussian swscaler (full does not work yet, didn't tried the others)
The subtitles edge look a little yellow, don't know why yet
Subtitles with overlapping timestamps should be handled correctly
Performances should be checked : I used SSE optimizations but the PGS parser may require some adjustements

DigitalDeviant
20th February 2010, 05:23
Hi,

Too much work these days, but I finally found some time to finish the bluray subtitles implementation

Here is a test build (32 bits) (http://damienbt.free.fr/ffdshow_rev3254_20100207_dbt_bitstream_trial_beta2.exe)

Configuration : enable subtitles, and enable vobsub (cosmetic to be done). Indeed, the scaler that is used is the same as vobsubs. Then play a m2ts file (I made all my tests with graphstudio)

Status :

Working with m2ts files (from blurays). Tried with MPC splitter
BR subs in MKV : not tested, a mediatype should probably be added if this does not work
Subtitles are positioned correctly even if the resize filter is enabled
The subtitles should also be placed correctly if you enabled zooming
Zooming with smooting modes that are working : none, gaussian swscaler (full does not work yet, didn't tried the others)
The subtitles edge look a little yellow, don't know why yet
Subtitles with overlapping timestamps should be handled correctly
Performances should be checked : I used SSE optimizations but the PGS parser may require some adjustements


It's not working here in MPC-HC. No subtitles show.

Edit: Is ffdshow_rev3254_20100207_dbt_bitstream_trial_beta2.exe the correct file?

albain
20th February 2010, 09:05
Sorry, wrong link (I was really tired)

Here is the right one :
http://damienbt.free.fr/ffdshow_rev3268_20100220_dbt_bluraysubs.exe

Sebastiii
20th February 2010, 11:18
Thx you :)

I'll try it today of course :)
Seb.

khagaroth
20th February 2010, 11:36
Can someone commit an update for Czech translation. It's hanging on the tracker for almost a month already and no one seems to bother with it even though the patches around it were already applied.

albain
20th February 2010, 11:55
I have adapted the approximative scaler to RGB32 for PGS subtitles.

There are still the bilinear and the full scaler to be adpated now.

I'll test another build when all the scalers will work and with the modifications on the interface

tal.aloni
20th February 2010, 12:34
Hi albain,
nice progress!

I've tested briefly, I think there are some colorspace issues with YV12, because It didn't look so good combined with DXVA.

It also crashed once when I changed the subtitle stream in the middle of playback.

I'll have time to take a look at the code later this week.

Thanks!

Eragon4ever
20th February 2010, 12:40
Can someone commit an update for Czech translation. It's hanging on the tracker for almost a month already and no one seems to bother with it even though the patches around it were already applied.
Commited at r3275.

albain
20th February 2010, 15:31
Hi albain,
nice progress!

I've tested briefly, I think there are some colorspace issues with YV12, because It didn't look so good combined with DXVA.

It also crashed once when I changed the subtitle stream in the middle of playback.

I'll have time to take a look at the code later this week.

Thanks!

Hi Tal,

I have committed my changes : all the scalers work except bilinear, don't know why, it is not very important

I have renamed the Subtitles > Vobsub section to "BluRay & DVD"

The color problem you got may be due to an inversion of red and blue channels. There was a bug in the existing code, I fixed it. Maybe this is the cause.

You can grab the last revision if you want to work on it.

I haven't work yet on the subtitles stream switching issue (crash).

Thanks

Damien

XhmikosR
20th February 2010, 16:07
Can someone update the ICL project files? I've done it for my needs but it should be in the SVN. BTW, albain I noticed that you removed the post build event of registering ffdshow.ax. I hope you keep it that way.

tal.aloni
20th February 2010, 16:45
albain I noticed that you removed the post build event of registering ffdshow.ax.

albain, please do not keep it that way.

XhmikosR
20th February 2010, 16:47
I knew you wouldn't agree, maybe I shouldn't mention it and no one would notice it... who knows :p

albain
20th February 2010, 17:43
albain, please do not keep it that way.

This was not wanted. I always remove that option for my personal use

DigitalDeviant
20th February 2010, 17:45
Hi Tal,

I have committed my changes : all the scalers work except bilinear, don't know why, it is not very important

I have renamed the Subtitles > Vobsub section to "BluRay & DVD"

The color problem you got may be due to an inversion of red and blue channels. There was a bug in the existing code, I fixed it. Maybe this is the cause.

You can grab the last revision if you want to work on it.

I haven't work yet on the subtitles stream switching issue (crash).

Thanks

Damien

I have issues with ffmpeg-mt decoding. The file loads in MPC-HC but the file does not play. All I get is a still black frame. The time elapsed stays the same but I can seek around but the frame is always a still black frame. Libavcodec works OK.

I haven't tested it much due to lack of time but this was something I encountered on the first test with multiple simultaneous subs.

http://img534.imageshack.us/img534/2066/wb1.th.png (http://img534.imageshack.us/i/wb1.png/)

albain
20th February 2010, 18:43
I have issues with ffmpeg-mt decoding. The file loads in MPC-HC but the file does not play. All I get is a still black frame. The time elapsed stays the same but I can seek around but the frame is always a still black frame. Libavcodec works OK.

I haven't tested it much due to lack of time but this was something I encountered on the first test with multiple simultaneous subs.

http://img534.imageshack.us/img534/2066/wb1.th.png (http://img534.imageshack.us/i/wb1.png/)

Please post your sample then, I don't have any simultaneous subs

@Tal : I didn't experience crash while switching subtitle streams

DigitalDeviant
21st February 2010, 01:17
Please post your sample then, I don't have any simultaneous subs

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

I can't seem to get a screenshot of what it's supposed to look like but the dialog is supposed to be at the bottom and the kanji title translation is supposed to be at the top.

Edit: ffmpeg-mt seems to be working in the recent build on xvidvideo.ru.

David602
21st February 2010, 07:50
Any plans to add FFDSHOW DXVA support for the Clarksdale architecture? Intel created an SDK to make it easier to work with.

Sebastiii
21st February 2010, 10:12
Hi,

I have tested subs in DXVA and also in non DXVA with FFDshow of course lol.

I have strange issue :
I use MPC Mpeg Splitter for .m2ts and MPC Matroska Filter for MKV.

For .m2ts :
The graph connect subtitle output from MPC to Text input FFDshow for m2ts with sub inside and also m2ts with no sub inside (i can verify if sub is here with mediainfo) -> but even with m2ts with sub, i can't see it and selected it :( (even if i seek the movie)

For .mkv :
FFDshow find sub (.srt or other and play it) i can select sub if we have multi file in directory but the issue that it didn't choose always the right sub) for example, i have a sample.mkv with sub inside and other files with sample2.srt toto.srt etc. -> FFDshow select sample2.srt (in this case). (DirectVobsub select only the match name).
Also when right clic on FFDshow didn't show embedded sub and to make it appear, i must seek in video and it appear.

I hope that i can explain good lol.

It's a great work :) but for now i can't see subs arf !.

Ps : To try to select, enable/disable sub, i use MRCremoteplus, i can map this option with MCE remote, i can manage enable/disable but no selection of sub, i think that i didn't find where is configured, i've try to find to show it in OSD screen but no success lol.

Also i've try with in mediaportal but, i think it was necessary to put an remote API like MCERemoteplus in mediaportal code to make it work.

Cheers,
Seb.

Sebastiii
21st February 2010, 10:16
http://www.mediafire.com/?zuydynjgcki

I can't seem to get a screenshot of what it's supposed to look like but the dialog is supposed to be at the bottom and the kanji title translation is supposed to be at the top.

Edit: ffmpeg-mt seems to be working in the recent build on xvidvideo.ru.

I have try the sample and i have put it in my test directory with many .srt.

FFDshow select sample2.srt (not cool lol) and i can't see embedded sub :(.

Seb.

Sebastiii
21st February 2010, 11:52
Hi again lol,


So this is log from debugview if it help :)

Trace from .m2ts with mutliple sub inside (no selection possible and no sub renderer)
M2TS_0001_Multisubs(not working even seek) (http://sebinternet.free.fr/M2TS_0001_Multisubs(not_working)log.rar)

Trace from .mkv with mutliple sub inside, sub only appear when i seek the video (when i go to right clic on FFDshow icon, i have the choice after but didn't render too.
MKV_[Eng-Jap] Art Of Fighting OVA (Eng-Esp sub)(Seek) (http://sebinternet.free.fr/MKV_[Eng-Jap] Art Of Fighting OVA (Eng-Esp sub)(Seek).rar)

Trace from .mkv with only 1 sub inside, sub only appear when i seek the video and disable and enable sub (when i go to right clic on FFDshow icon), i have the choice after but didn't render too.
MKV_sample(Appear after many seek and disable and enable sub) (http://sebinternet.free.fr/MKV_sample(Appear after many seek and disable and enable sub).rar)

I know that it for Bluray but i made all test posible to see why.

Anther issue also is if the OSD is enable, when i play [Eng-Jap] Art Of Fighting OVA (Eng-Esp sub) Graphstudio crash.

Cheers,
Seb.

thuan
21st February 2010, 12:39
Convolver filter question: I tried the convolver filter inside ffdshow with impulse files here http://sjeng.org/foobar2000.html . Specifically I tried the Urei 1178 Impulse file inside the tube amps package. With Auto Adjust enabled I have very low volume compared to nearly the same level of volume as original file with foobar convolver component. When I disabled Auto Adjust I have to set the Level bar to maximum to have nearly normal volume. Is this by design?

Tested with ffdshow 3277 x86 build on xvidvideo.ru and foobar 1.0 with latest convolver component. Source audio spec: 48000Hz, 16bit, Stereo; the Urei impulse file: 44100Hz, 16bit, mono. I have tried to resample my source to 44100Hz before sending it over the convolver filter inside ffdshow, same thing happens.

ikarad
21st February 2010, 16:01
I try ffdshow 3277 and It crash when i select blu-ray subtitle with ffdshow.

Sebastiii
21st February 2010, 16:15
Hi,

I have another issue (not for subs).
I'll try to explain :
I have a sample with VC1 and DTS-HD 5.1.
If i use ffdshow (no DXVA) in decoder VC1 enable (Libavcodec) or in Post Process mode -> the sample play fine if i start from beginning, if i seek it no video but the sound is OK.
If i start it @ anytime (the time that i stop it for example @ 1 min) the screen is black (Audio OK) for video comes i must REW or FORWARD (2x).

I have try to setup only MPC video to decode it and all working OK.
If i put FFDSHOW in postprocess after MPCVideo, i have the issue.

I don't know why and i don't how to help you to find the issue (a little debugview ?).

I have check with clean GNU registry key and it's the same.
It's maybe related but i have also this :
If i use codec inside FFDshow so i use for filter resize etc. and setup libavcodec in codec section when i seek video (MPG MKV AVI etc.) it takes some second to play video (it's like a pause) -> This issue, i've it for a long time.

My bad solution is to disable libavcodec and let windows to choose another directshow filter.

I think it's not normal lol
Cheers,
Seb.

Edit : In DXVA (FFDshow) it works good when i seek and when i start in anytime in the movie.
I think TAL you have fixed it in DXVA maybe something is equal to no DXVA.
I will post a sample but i must cut it lol

Edit2 : I have made another test and when i use libavcodec, the video appear but shuttered (in MP) so the PB appear only in Post-Process and by my test in VC1. Maybe it's related to MP.

onomatopellan
21st February 2010, 16:57
Testing rev3277, it crash a lot when selecting the subtitles in MPC-HC. (log (http://onomatopellan.pastebin.com/m3992087))
When it doesn't crash it shows subs incorrectly, these shold be completly white for example:

http://i48.tinypic.com/24qjz15.png

Using m2ts, mkv with PGS are not detected.

BTW, how can I test using GraphStudio? Which splitter/source filter I need? Haali doesn't work with PGS subs.

albain
21st February 2010, 19:12
For Haali this is just a matter of media type.

If you have a sample somewhere I will be able to add the support

About this strange white edge around subtitles, which colorspace is used in output of ffdshow ?

I made all my tests in RGB32, so there may be issues in YUV mode (used by DXVA for example).

Graphstudio is equal (for me) to MPCHC : I use MPC mpeg splitter (standalone filter), then ffdshow then EVR

EDIT : I can confirm, bluray subtitles won't appear with YUV colorspace. While I fix it, you can disable YV12, NV12, and all YUV colorspace in ffdshow output section.

I don't understand why these colorspaces are enabled by default as they give lower quality than any RGB colorspace

onomatopellan
21st February 2010, 19:41
Yes I'm using ffdshow DXVA so the output is NV12.

I don't have bluray so I've made an m2ts with tsMuxeR from this sample:
http://ftp.touchpointdata.com/PaperHeart_Sample.mkv

Sebastiii
21st February 2010, 19:45
I have found that some .m2ts didn't work and other work with MPC Mpeg Splitter.
For test i have try with MPC-HC and mediaportal to see.
So i think this is a splitter issue :
Link to test sample :

1- Sample_SUB_OK.m2ts (http://sebinternet.free.fr/Sample_SUB_OK.m2ts)
2- sample_multisub_new.m2ts (http://sebinternet.free.fr/sample_multisub_new.m2ts)

I don't how to open ticket for this to MPC-HC dev.
Thx,
Seb.

Sebastiii
21st February 2010, 19:49
Yes I'm using ffdshow DXVA so the output is NV12.

I don't have bluray so I've made an m2ts with tsMuxeR from this sample:
http://ftp.touchpointdata.com/PaperHeart_Sample.mkv

Hi,

With your sample and with MPC-HC it didn't see subtitle.
With mediainfo sub is here.

I'm lost lol

onomatopellan
21st February 2010, 20:14
EDIT : I can confirm, bluray subtitles won't appear with YUV colorspace. While I fix it, you can disable YV12, NV12, and all YUV colorspace in ffdshow output section.

I don't understand why these colorspaces are enabled by default as they give lower quality than any RGB colorspace
you are right, now with rgb output ffdshow shows the subs correctly.

@Sebastiii: It's a sample from xbmc team I have used to extract the PGS subs and make a .m2ts sample, and in mpc-hc doesn't work yet. With last xbmc you should see the subs though.
EDIT: I think it's the same splitter but they fix something for accept mkv with PGS.http://trac.xbmc.org/ticket/8429

Sebastiii
21st February 2010, 20:18
Ok so it's splitter issue (MPC Mpeg splitter) and xbmc do you know what it using ?
Thx :)

Damien, do you see sub from the sample with MPC and RGB32 output ?

ikarad
21st February 2010, 21:05
For Haali this is just a matter of media type.

If you have a sample somewhere I will be able to add the support

About this strange white edge around subtitles, which colorspace is used in output of ffdshow ?

I made all my tests in RGB32, so there may be issues in YUV mode (used by DXVA for example).


I use YUY 2 and I have strange colors for subtitles

cyberbeing
21st February 2010, 22:28
I don't understand why these colorspaces are enabled by default as they give lower quality than any RGB colorspace

First, some things FFDshow needs to connect to may only accept something like YV12, YUY2, or NV12. Also keeping video in it's native color-space should always be the default unless the user explicitly forces a different colorspace.

Secondly, conversion to RGB takes a lot of additional processing power especially on 1080p video.

Dual-core Athlon X2 2.6Ghz using ffmpeg-mt for decoding 1080p h.264:
YV12 CPU Usage: 40-50% of both cores
RGB CPU Usage: 60-70% of both cores
RGB HQ CPU Usage: 70-80% of both cores

Dual-core Athlon X2 2.6Ghz using libavcodec for decoding 1080p h.264:
YV12 CPU Usage: 70-80% of single core
RGB CPU usage: >100% of single core (unplayable)
RGB HQ CPU usage: >100% of single core (unplayable)

hoborg
22nd February 2010, 09:39
Hi.
Anybody else have problems playing DVDs with rev 3281?
Buttons are not highlighted for me and there are crash in DVD menu.

albain
22nd February 2010, 11:40
Hi.
Anybody else have problems playing DVDs with rev 3281?
Buttons are not highlighted for me and there are crash in DVD menu.

This must be my fault, DVD (subs+menus) and bluray subs share some parts of code

I have brought some fixes in rev 3282 but I am not sure this will be anough

Can you tell me which colorspace do you have in output ? (mouse over ffdshow video icon)

hoborg
22nd February 2010, 11:52
This must be my fault, DVD (subs+menus) and bluray subs share some parts of code

I have brought some fixes in rev 3282 but I am not sure this will be anough

Can you tell me which colorspace do you have in output ? (mouse over ffdshow video icon)

YUY2 - i have here Intel(R) 82945G Express Chipset Family (i945G0)
RGB32,YV12,... have same issue

ikarad
22nd February 2010, 13:00
First, some things FFDshow needs to connect to may only accept something like YV12, YUY2, or NV12. Also keeping video in it's native color-space should always be the default unless the user explicitly forces a different colorspace.

Secondly, conversion to RGB takes a lot of additional processing power especially on 1080p video.

Dual-core Athlon X2 2.6Ghz using ffmpeg-mt for decoding 1080p h.264:
YV12 CPU Usage: 40-50% of both cores
RGB CPU Usage: 60-70% of both cores
RGB HQ CPU Usage: 70-80% of both cores

Dual-core Athlon X2 2.6Ghz using libavcodec for decoding 1080p h.264:
YV12 CPU Usage: 70-80% of single core
RGB CPU usage: >100% of single core (unplayable)
RGB HQ CPU usage: >100% of single core (unplayable)
And moreover, some filter like TIVTC or decomb works only with nv12 or YUY2 ant not RGB

DigitalDeviant
22nd February 2010, 13:06
And moreover, some filter like TIVTC or decomb works only with nv12 or YUY2 ant not RGB

What? I use TIVTC with RGB output every day. It works fine.

Edit: Clarification.

DigitalDeviant
22nd February 2010, 13:10
YUY2 - i have here Intel(R) 82945G Express Chipset Family (i945G0)
RGB32,YV12,... have same issue

Same problem here. Reverting to 3274 fixed it.

ikarad
22nd February 2010, 14:10
What? I use TIVTC with RGB output every day. It works fine.

Edit: Clarification.

Sorry, in fact, It's Telecide that doesn't work with rgb

For tivtc on the official page, the author speak about only the support of yv12 and yuy2.
http://web.missouri.edu/~kes25c/

albain
22nd February 2010, 19:08
Everything should be fixed in revision 3283 :

- DVD menus
- Bluray subs with YUV colorspaces
- MKV support for bluray subtitles

There is a bug in Haali splitter (or rather a support to be added) : the PGS subtitles don't have any media subtype in the output pin of Haali's. Don't tried with MPC matroska splitter

TODO/TOFIX :
- Bilinear scaling in RGB mode (only bluray subs may use this scaler)
- Bluray subtitles support from file (.sup)

onomatopellan
22nd February 2010, 20:21
Thanks albain. Now subs are shown correctly with ffdshow DXVA (subs are completly white on my sample), but MPC-HC still crash a lot when I select the subtitle of the .m2ts file. (with Haali and with Matroska internal filter)