Log in

View Full Version : LAV Filters - DirectShow Media Splitter and Decoders


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 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508

SamuriHL
1st May 2011, 23:57
Not to get off topic but what player are you using now if not MPC HC?

J River MC16. You can configure each media type with separate directshow configurations. I have it set up to have my entire library of MKV's in one nice to click on interface. Plus BD/DVD disc playback works just fine. It's SO nice being able to open a program and having your entire library listed right there so you can select what you want. (My library is split across multiple drives and across the network. It shows them all). With LAVF Splitter and LAV Audio, I have no problems at all with any of my movies now. Plus I can play my HD PVR recordings and TIVO files. All from one interface. I'm in heaven for sure. :)

noee
2nd May 2011, 00:00
Those of us who've been using MC for years would agree with your comments. What took you so long to get on board? ;)

SamuriHL
2nd May 2011, 00:04
Those of us who've been using MC for years would agree with your comments. What took you so long to get on board? ;)

I was brought on board last summer by jmone with MC15. However, at the time I couldn't get it to do everything I wanted. It just couldn't match the playback capability of MPC-HC for me. However, since things have changed *SO MUCH* in the last year, I decided to upgrade to MC16 and give it a shot. With Nev's filters, madVR, and a decent decoder, it's just remarkable. It's completely replaced all my other players now.

noee
2nd May 2011, 00:16
Yup, just ribbing you. I remember asking jRiver for madVR support when madshi first released it and I was met with tepid response (no response, IIRC) and there was really no one else in the beta group using madVR back then. So, yeah, MPC-HC was the "best" option for video support back then, especially as Reclock and FFdshow went through incredible improvements. But for audio, MC was still the best option, IMO, even way back to much earlier versions. Now, with the improved JRSS, multi-zone/multi-format support and, of course, madVR support, it's unmatched, IMO.

Anyway, the work of these developers is not only much appreciated, but no less than astounding, considering what we can do now with our machines and our media.

SamuriHL
2nd May 2011, 00:28
Yup. Couldn't agree more. In any case, for Nev I have no bug reports. I only had a few glitches in Megamind off the disc. WAY WAY fewer than ffdshow. Really quite pleased with this.

Andy o
2nd May 2011, 01:37
I might try other media players myself, tired of MPC-HC crashing at closing. I have to either pause or stop the movie before, or about 60% of the time it will crash.

SamuriHL
2nd May 2011, 02:02
I can't say enough good things about MC16. Seriously, give it a try. It takes a bit of time to get it setup, but, once it's setup it just simply rocks. It's not free, but, IMO, worth it. If you need help configuring it, PM me somewhere. :)

Andy o
2nd May 2011, 03:04
I'm a bit familiar with JRiver's MC, did try MC12 I think, and liked it, but I didn't really need it at the time. $50 is a bit steep though, I'll see if it's worth it.

SamuriHL
2nd May 2011, 03:08
MC16 is quite a bit different. It's quite impressive.

ryrynz
2nd May 2011, 04:00
Can someone qive me a quick rundown on the advantages of using LAV Filters over Haali? Thanks.

jmone
2nd May 2011, 05:34
Mmm got an odd one. I was testing the conversion of a HD-DVD to Blu-ray using ClownBD (front end to eac3to and tsMuxer) that included a TrueHD/AC3 track and a E-AC3 Track (logs can be found in this post - http://forum.slysoft.com/showthread.php?p=309455&posted=1#post309455).

All three tracks are correctly identified by LAVSplitter and play fine with LAVSplitter feeding FFDSHOW.

http://forum.slysoft.com/attachment.php?attachmentid=16777&stc=1&d=1304311183

Oddly, I can start playback on the TrueHD track using LAVSplitter and LAVAudio, but if I then change tracks LAVSplitter will drop LAVAudio and connect to FFDSHOW. Here is the filter dumps of the three in order from first connection with TrueHD.....
Filter Graph Info:

Filter 'ReClock Audio Renderer'
CLSID: {9DC15360-914C-46B8-B9DF-BFE67FD36C6A}
Host: c:\program files\reclock\reclock.dll
Input Pin 'In'
Connected to pin 'XForm Out' of filter 'LAV Audio Decoder'
Major type MEDIATYPE_Audio Sub type MEDIASUBTYPE_PCM, Format type FORMAT_WaveFormatEx

Filter 'Enhanced Video Renderer'
CLSID: {FA10746C-9B63-4B6C-BC49-FC300EA5F256}
Host: c:\windows\system32\evr.dll
Input Pin 'EVR Input0'
Connected to pin 'Out' of filter 'ffdshow Video Decoder'
Major type MEDIATYPE_Video Sub type MEDIASUBTYPE_YUY2, Format type FORMAT_VideoInfo2
Input Pin 'EVR Input1'

Filter 'LAV Audio Decoder'
CLSID: {E8E73B6B-4CB3-44A4-BE99-4F7BCB96E491}
Host: c:\users\htpc\downloads\filters\lavfilters\lavaudio.ax
Input Pin 'XForm In'
Connected to pin 'Audio' of filter 'LAV Splitter Source'
Major type MEDIATYPE_Audio Sub type Unknown GUID Name: {EB27CEC4-163E-4CA3-8B74-8E25F91B517E}, Format type FORMAT_WaveFormatEx
Output Pin 'XForm Out'
Connected to pin 'In' of filter 'ReClock Audio Renderer'
Major type MEDIATYPE_Audio Sub type MEDIASUBTYPE_PCM, Format type FORMAT_WaveFormatEx

Filter 'ffdshow Video Decoder'
CLSID: {04FE9017-F873-410E-871E-AB91661A4EF7}
Host: c:\program files\ffdshow\ffdshow.ax
Input Pin 'In'
Connected to pin 'Video' of filter 'LAV Splitter Source'
Major type MEDIATYPE_Video Sub type Unknown GUID Name: {D979F77B-DBEA-4BF6-9E6D-1D7E57FBAD53}, Format type FORMAT_VideoInfo2
Output Pin 'Out'
Connected to pin 'EVR Input0' of filter 'Enhanced Video Renderer'
Major type MEDIATYPE_Video Sub type MEDIASUBTYPE_YUY2, Format type FORMAT_VideoInfo2
Input Pin 'In Text'
Connected to pin 'Subtitle' of filter 'LAV Splitter Source'
Major type Unknown GUID Name: {E487EB08-6B26-4BE9-9DD3-993434D313FD} Sub type Unknown GUID Name: {04EBA53E-9330-436C-9133-553EC87031DC}, Format type Unknown GUID Name: {04EBA53E-9330-436C-9133-553EC87031DC}
Input Pin 'In Text 2'

Filter 'LAV Splitter Source'
CLSID: {B98D13E7-55DB-4385-A33D-09FD1BA26338}
Host: c:\users\htpc\downloads\filters\lavfilters\lavsplitter.ax
Output Pin 'Video'
Connected to pin 'In' of filter 'ffdshow Video Decoder'
Major type MEDIATYPE_Video Sub type Unknown GUID Name: {D979F77B-DBEA-4BF6-9E6D-1D7E57FBAD53}, Format type FORMAT_VideoInfo2
Output Pin 'Audio'
Connected to pin 'XForm In' of filter 'LAV Audio Decoder'
Major type MEDIATYPE_Audio Sub type Unknown GUID Name: {EB27CEC4-163E-4CA3-8B74-8E25F91B517E}, Format type FORMAT_WaveFormatEx
Output Pin 'Subtitle'
Connected to pin 'In Text' of filter 'ffdshow Video Decoder'
Major type Unknown GUID Name: {E487EB08-6B26-4BE9-9DD3-993434D313FD} Sub type Unknown GUID Name: {04EBA53E-9330-436C-9133-553EC87031DC}, Format type Unknown GUID Name: {04EBA53E-9330-436C-9133-553EC87031DC}

Filter Graph Info:

Filter 'ReClock Audio Renderer'
CLSID: {9DC15360-914C-46B8-B9DF-BFE67FD36C6A}
Host: c:\program files\reclock\reclock.dll
Input Pin 'In'
Connected to pin 'Out' of filter 'ffdshow Audio Decoder'
Major type MEDIATYPE_Audio Sub type MEDIASUBTYPE_IEEE_FLOAT, Format type FORMAT_WaveFormatEx

Filter 'Enhanced Video Renderer'
CLSID: {FA10746C-9B63-4B6C-BC49-FC300EA5F256}
Host: c:\windows\system32\evr.dll
Input Pin 'EVR Input0'
Connected to pin 'Out' of filter 'ffdshow Video Decoder'
Major type MEDIATYPE_Video Sub type MEDIASUBTYPE_YUY2, Format type FORMAT_VideoInfo2
Input Pin 'EVR Input1'

Filter 'ffdshow Audio Decoder'
CLSID: {0F40E1E5-4F79-4988-B1A9-CC98794E6B55}
Host: c:\program files\ffdshow\ffdshow.ax
Output Pin 'Out'
Connected to pin 'In' of filter 'ReClock Audio Renderer'
Major type MEDIATYPE_Audio Sub type MEDIASUBTYPE_IEEE_FLOAT, Format type FORMAT_WaveFormatEx
Input Pin 'In'
Connected to pin 'Audio' of filter 'LAV Splitter Source'
Major type MEDIATYPE_Audio Sub type Unknown GUID Name: {A7FB87AF-2D02-42FB-A4D4-05CD93843BDD}, Format type FORMAT_WaveFormatEx
Input Pin 'In2'

Filter 'ffdshow Video Decoder'
CLSID: {04FE9017-F873-410E-871E-AB91661A4EF7}
Host: c:\program files\ffdshow\ffdshow.ax
Input Pin 'In'
Connected to pin 'Video' of filter 'LAV Splitter Source'
Major type MEDIATYPE_Video Sub type Unknown GUID Name: {D979F77B-DBEA-4BF6-9E6D-1D7E57FBAD53}, Format type FORMAT_VideoInfo2
Output Pin 'Out'
Connected to pin 'EVR Input0' of filter 'Enhanced Video Renderer'
Major type MEDIATYPE_Video Sub type MEDIASUBTYPE_YUY2, Format type FORMAT_VideoInfo2
Input Pin 'In Text'
Connected to pin 'Subtitle' of filter 'LAV Splitter Source'
Major type Unknown GUID Name: {E487EB08-6B26-4BE9-9DD3-993434D313FD} Sub type Unknown GUID Name: {04EBA53E-9330-436C-9133-553EC87031DC}, Format type Unknown GUID Name: {04EBA53E-9330-436C-9133-553EC87031DC}
Input Pin 'In Text 2'

Filter 'LAV Splitter Source'
CLSID: {B98D13E7-55DB-4385-A33D-09FD1BA26338}
Host: c:\users\htpc\downloads\filters\lavfilters\lavsplitter.ax
Output Pin 'Video'
Connected to pin 'In' of filter 'ffdshow Video Decoder'
Major type MEDIATYPE_Video Sub type Unknown GUID Name: {D979F77B-DBEA-4BF6-9E6D-1D7E57FBAD53}, Format type FORMAT_VideoInfo2
Output Pin 'Audio'
Connected to pin 'In' of filter 'ffdshow Audio Decoder'
Major type MEDIATYPE_Audio Sub type Unknown GUID Name: {A7FB87AF-2D02-42FB-A4D4-05CD93843BDD}, Format type FORMAT_WaveFormatEx
Output Pin 'Subtitle'
Connected to pin 'In Text' of filter 'ffdshow Video Decoder'
Major type Unknown GUID Name: {E487EB08-6B26-4BE9-9DD3-993434D313FD} Sub type Unknown GUID Name: {04EBA53E-9330-436C-9133-553EC87031DC}, Format type Unknown GUID Name: {04EBA53E-9330-436C-9133-553EC87031DC}

Filter Graph Info:

Filter 'ReClock Audio Renderer'
CLSID: {9DC15360-914C-46B8-B9DF-BFE67FD36C6A}
Host: c:\program files\reclock\reclock.dll
Input Pin 'In'
Connected to pin 'Out' of filter 'ffdshow Audio Decoder'
Major type MEDIATYPE_Audio Sub type MEDIASUBTYPE_IEEE_FLOAT, Format type FORMAT_WaveFormatEx

Filter 'Enhanced Video Renderer'
CLSID: {FA10746C-9B63-4B6C-BC49-FC300EA5F256}
Host: c:\windows\system32\evr.dll
Input Pin 'EVR Input0'
Connected to pin 'Out' of filter 'ffdshow Video Decoder'
Major type MEDIATYPE_Video Sub type MEDIASUBTYPE_YUY2, Format type FORMAT_VideoInfo2
Input Pin 'EVR Input1'

Filter 'ffdshow Audio Decoder'
CLSID: {0F40E1E5-4F79-4988-B1A9-CC98794E6B55}
Host: c:\program files\ffdshow\ffdshow.ax
Output Pin 'Out'
Connected to pin 'In' of filter 'ReClock Audio Renderer'
Major type MEDIATYPE_Audio Sub type MEDIASUBTYPE_IEEE_FLOAT, Format type FORMAT_WaveFormatEx
Input Pin 'In'
Connected to pin 'Audio' of filter 'LAV Splitter Source'
Major type MEDIATYPE_Audio Sub type MEDIASUBTYPE_DOLBY_AC3, Format type FORMAT_WaveFormatEx
Input Pin 'In2'

Filter 'ffdshow Video Decoder'
CLSID: {04FE9017-F873-410E-871E-AB91661A4EF7}
Host: c:\program files\ffdshow\ffdshow.ax
Input Pin 'In'
Connected to pin 'Video' of filter 'LAV Splitter Source'
Major type MEDIATYPE_Video Sub type Unknown GUID Name: {D979F77B-DBEA-4BF6-9E6D-1D7E57FBAD53}, Format type FORMAT_VideoInfo2
Output Pin 'Out'
Connected to pin 'EVR Input0' of filter 'Enhanced Video Renderer'
Major type MEDIATYPE_Video Sub type MEDIASUBTYPE_YUY2, Format type FORMAT_VideoInfo2
Input Pin 'In Text'
Connected to pin 'Subtitle' of filter 'LAV Splitter Source'
Major type Unknown GUID Name: {E487EB08-6B26-4BE9-9DD3-993434D313FD} Sub type Unknown GUID Name: {04EBA53E-9330-436C-9133-553EC87031DC}, Format type Unknown GUID Name: {04EBA53E-9330-436C-9133-553EC87031DC}
Input Pin 'In Text 2'

Filter 'LAV Splitter Source'
CLSID: {B98D13E7-55DB-4385-A33D-09FD1BA26338}
Host: c:\users\htpc\downloads\filters\lavfilters\lavsplitter.ax
Output Pin 'Video'
Connected to pin 'In' of filter 'ffdshow Video Decoder'
Major type MEDIATYPE_Video Sub type Unknown GUID Name: {D979F77B-DBEA-4BF6-9E6D-1D7E57FBAD53}, Format type FORMAT_VideoInfo2
Output Pin 'Audio'
Connected to pin 'In' of filter 'ffdshow Audio Decoder'
Major type MEDIATYPE_Audio Sub type MEDIASUBTYPE_DOLBY_AC3, Format type FORMAT_WaveFormatEx
Output Pin 'Subtitle'
Connected to pin 'In Text' of filter 'ffdshow Video Decoder'
Major type Unknown GUID Name: {E487EB08-6B26-4BE9-9DD3-993434D313FD} Sub type Unknown GUID Name: {04EBA53E-9330-436C-9133-553EC87031DC}, Format type Unknown GUID Name: {04EBA53E-9330-436C-9133-553EC87031DC}

mindbomb
2nd May 2011, 06:11
nev, are you aware that in recent versions, truehd in an mkv is being outputted as 32 bit instead of 24 bit?
possibly also truehd in an mpeg container, i don't have one of those to test.

oh wait, this is a false alarm.
I stupidly set the commentary track as the default track on the file I was playing and didn't realize it until now.

nevcairiel
2nd May 2011, 07:03
So much talking, but no-one found a serious problem? hooray. :p

All three tracks are correctly identified by LAVSplitter and play fine with LAVSplitter feeding FFDSHOW.

Oddly, I can start playback on the TrueHD track using LAVSplitter and LAVAudio, but if I then change tracks LAVSplitter will drop LAVAudio and connect to FFDSHOW.

Thats most likely a problem with MC16. What i do on audio switch is disconnect the previous audio filter, and ask the DirectShow graph builder to find me a new audio decoder. If MC16 does not override the default implementation, it'll fallback to Merits, and the ffdshow filters have insanely high merits...

You can test this by opening the ffdshow audio decoder configuration as Admin (with UAC elevation), and on the "DirectShow control" tab, move the merit slider to "normal" or "preferred". The "ffdshow default" is higher then any other normal filter would ever use.

For those that want it, i could potentially also add an option to always try to keep the connected audio decoder, if it accepts the new media type - but thats of course no "good" solution.

I can test this when i get home.

nevcairiel
2nd May 2011, 07:14
Oh, something else i want to test today is adding an option to LAV Audio for audio delay. My TV adds an extra long delay when running on 24p (~around 200ms), and my receiver can only go up to 100ms correction...

I know the existing delay options, in ffdshow and MPC-HC audio switcher, never worked with bitstreaming properly. Lets see if i can make that work. :)
That was one of the main reasons i never even considered using bitstreaming.

jmone
2nd May 2011, 07:20
It think it is somthing else as I had already found the "insanely high merits" and reduced them to normal, then down to "Do not use" but the same results.... so I even then removed FFDSHOW Audio from DirectShow to stop it loading. At which point I found I could change streams but it appears as if LAVAudio is no longer laoded, even the Properties-->Status Page of LAVAudio would be blank with no info (but it obvoiusly is loaded as I'm getting sound + the info dump shows the below from my PC: Note at this point I went to my HTPC to check and that is from where the other dumps come from). It may be how MC is interacting with LAV on the format change but I've not seen this issue previously - I'll test some more.
Filter Graph Info:

Filter 'J. River Audio Renderer'
CLSID: {A4002F8E-510F-442C-8AD3-F9C7B23FB394}
Host:
Input Pin 'In'
Connected to pin 'XForm Out' of filter 'LAV Audio Decoder'
Major type MEDIATYPE_Audio Sub type MEDIASUBTYPE_IEEE_FLOAT, Format type FORMAT_WaveFormatEx

Filter 'Enhanced Video Renderer'
CLSID: {FA10746C-9B63-4B6C-BC49-FC300EA5F256}
Host: c:\windows\syswow64\evr.dll
Input Pin 'EVR Input0'
Connected to pin 'Out' of filter 'ffdshow Video Decoder'
Major type MEDIATYPE_Video Sub type MEDIASUBTYPE_YUY2, Format type FORMAT_VideoInfo2
Input Pin 'EVR Input1'

Filter 'LAV Audio Decoder'
CLSID: {E8E73B6B-4CB3-44A4-BE99-4F7BCB96E491}
Host: c:\users\mum and dad\downloads\filters\lavfilters\lavaudio.ax
Input Pin 'XForm In'
Connected to pin 'Audio' of filter 'LAV Splitter Source'
Major type MEDIATYPE_Audio Sub type Unknown GUID Name: {A7FB87AF-2D02-42FB-A4D4-05CD93843BDD}, Format type FORMAT_WaveFormatEx
Output Pin 'XForm Out'
Connected to pin 'In' of filter 'J. River Audio Renderer'
Major type MEDIATYPE_Audio Sub type MEDIASUBTYPE_IEEE_FLOAT, Format type FORMAT_WaveFormatEx

Filter 'ffdshow Video Decoder'
CLSID: {04FE9017-F873-410E-871E-AB91661A4EF7}
Host: c:\program files (x86)\ffdshow\ffdshow.ax
Input Pin 'In'
Connected to pin 'Video' of filter 'LAV Splitter Source'
Major type MEDIATYPE_Video Sub type Unknown GUID Name: {D979F77B-DBEA-4BF6-9E6D-1D7E57FBAD53}, Format type FORMAT_VideoInfo2
Output Pin 'Out'
Connected to pin 'EVR Input0' of filter 'Enhanced Video Renderer'
Major type MEDIATYPE_Video Sub type MEDIASUBTYPE_YUY2, Format type FORMAT_VideoInfo2
Input Pin 'In Text'
Connected to pin 'Subtitle' of filter 'LAV Splitter Source'
Major type Unknown GUID Name: {E487EB08-6B26-4BE9-9DD3-993434D313FD} Sub type Unknown GUID Name: {04EBA53E-9330-436C-9133-553EC87031DC}, Format type Unknown GUID Name: {04EBA53E-9330-436C-9133-553EC87031DC}
Input Pin 'In Text 2'

Filter 'LAV Splitter Source'
CLSID: {B98D13E7-55DB-4385-A33D-09FD1BA26338}
Host: c:\users\mum and dad\downloads\filters\lavfilters\lavsplitter.ax
Output Pin 'Video'
Connected to pin 'In' of filter 'ffdshow Video Decoder'
Major type MEDIATYPE_Video Sub type Unknown GUID Name: {D979F77B-DBEA-4BF6-9E6D-1D7E57FBAD53}, Format type FORMAT_VideoInfo2
Output Pin 'Audio'
Connected to pin 'XForm In' of filter 'LAV Audio Decoder'
Major type MEDIATYPE_Audio Sub type Unknown GUID Name: {A7FB87AF-2D02-42FB-A4D4-05CD93843BDD}, Format type FORMAT_WaveFormatEx
Output Pin 'Subtitle'
Connected to pin 'In Text' of filter 'ffdshow Video Decoder'
Major type Unknown GUID Name: {E487EB08-6B26-4BE9-9DD3-993434D313FD} Sub type Unknown GUID Name: {04EBA53E-9330-436C-9133-553EC87031DC}, Format type Unknown GUID Name: {04EBA53E-9330-436C-9133-553EC87031DC}

nevcairiel
2nd May 2011, 07:21
Do you have bitstreaming on? If so, try again with it off?

I'll test when i get home.

jmone
2nd May 2011, 07:30
Do you have bitstreaming on? If so, try again with it off?

I'll test when i get home.

I'm a decoder by choice and need (no HD Audio on the Yami V2700). I could be I've also just stuffed up my direct show stuff as I'm now getting issues with anything with more than one Audio Track.....

jmone
2nd May 2011, 07:39
OK - an uninstall and install of LAVSplitter and LAVAudio has fixed the no sound / filter not loading issue on multi track! I've still got a couple of odd things on my PC but will test more on the HTPC and report back later.

PeQuE
2nd May 2011, 08:30
Oh, something else i want to test today is adding an option to LAV Audio for audio delay. My TV adds an extra long delay when running on 24p (~around 200ms), and my receiver can only go up to 100ms correction...
I was coming here today exactly to ask you to add this feature! :)

I'm currently using LAV Splitter and LAV CUVID video decoder in my system (really good!)... but I can't use LAV Audio decoder because lack of spdif passthrough (planned), and also because lack of audio delay option (my receiver doesn't do this, and my Samsung TV adds allways around 120 ms delay).

I know the existing delay options, in ffdshow and MPC-HC audio switcher, never worked with bitstreaming properly. Lets see if i can make that work. :)
That was one of the main reasons i never even considered using bitstreaming.

I'm using ffdshow audio decoder with spdif passthrough and audio delay with no aparent problem... What do you mean?

nevcairiel
2nd May 2011, 08:32
I'm using ffdshow audio decoder with spdif passthrough and audio delay with no aparent problem... What do you mean?

On some of the formats i just got silence, on others it worked. Don't remember exactly anymore which was what.

jmone
2nd May 2011, 08:52
OK - I had three issues all overlapping!
1) Bad Install: I had just copied the latest filters over the top (did not do an uninstall/install) - My Bad!
2) MC has a bug of not updating the list of filters when it gets rebuilt: logged a bug in their beta forum http://yabb.jriver.com/interact/index.php?topic=63877.msg426892#msg426892
3) LAVSplitter is not to keen on connecting LAV Audio to either the DD+ or the DD (interleaved with the TrueHD track) created by ClownBD: Logs here http://forum.slysoft.com/showpost.php?p=309455&postcount=2770 FFDSHOW will connect to LAVSplitter no matter what and when I unregister FFDSHOW Audio I even get an empty pin on LAVSplitter on my HTPC (see below). On my PC it will connect to LAV Audio once I unregister FFDSHOW I get sound fine (2.0 ch setup) but the Properties-->Status Page of LAVAudio sill sometimes show the LFE a full green bar.

Thanks all I've got!
Filter Graph Info:

Filter 'madVR'
CLSID: {E1A8B82A-32CE-4B0D-BE0D-AA68C772E423}
Host: c:\users\htpc\downloads\filters\madvr\madvr.ax
Input Pin 'Input'
Connected to pin 'Out' of filter 'ffdshow Video Decoder'
Major type MEDIATYPE_Video Sub type MEDIASUBTYPE_YV12, Format type FORMAT_VideoInfo2

Filter 'ffdshow Video Decoder'
CLSID: {04FE9017-F873-410E-871E-AB91661A4EF7}
Host: c:\program files\ffdshow\ffdshow.ax
Input Pin 'In'
Connected to pin 'Video' of filter 'LAV Splitter Source'
Major type MEDIATYPE_Video Sub type Unknown GUID Name: {D979F77B-DBEA-4BF6-9E6D-1D7E57FBAD53}, Format type FORMAT_VideoInfo2
Output Pin 'Out'
Connected to pin 'Input' of filter 'madVR'
Major type MEDIATYPE_Video Sub type MEDIASUBTYPE_YV12, Format type FORMAT_VideoInfo2
Input Pin 'In Text'
Connected to pin 'Subtitle' of filter 'LAV Splitter Source'
Major type Unknown GUID Name: {E487EB08-6B26-4BE9-9DD3-993434D313FD} Sub type Unknown GUID Name: {04EBA53E-9330-436C-9133-553EC87031DC}, Format type Unknown GUID Name: {04EBA53E-9330-436C-9133-553EC87031DC}
Input Pin 'In Text 2'

Filter 'LAV Splitter Source'
CLSID: {B98D13E7-55DB-4385-A33D-09FD1BA26338}
Host: c:\users\htpc\downloads\filters\lavfilters\lavsplitter.ax
Output Pin 'Video'
Connected to pin 'In' of filter 'ffdshow Video Decoder'
Major type MEDIATYPE_Video Sub type Unknown GUID Name: {D979F77B-DBEA-4BF6-9E6D-1D7E57FBAD53}, Format type FORMAT_VideoInfo2
Output Pin 'Audio'
Output Pin 'Subtitle'
Connected to pin 'In Text' of filter 'ffdshow Video Decoder'
Major type Unknown GUID Name: {E487EB08-6B26-4BE9-9DD3-993434D313FD} Sub type Unknown GUID Name: {04EBA53E-9330-436C-9133-553EC87031DC}, Format type Unknown GUID Name: {04EBA53E-9330-436C-9133-553EC87031DC}

nevcairiel
2nd May 2011, 08:59
MC16 graph dumps aren't really useful, they have practically no information. :p

Can you try the same file in MPC-HC, and if it also doesn't connect to LAV Audio on the DD/DD+ tracks, then let it connect to ffdshow and post the audio output pin of LAV Splitter (right click on player -> Filters -> LAV Splitter (or if not present, the entry with the file name) -> Properties -> Pin Info -> Select [OUT] Audio in dropdown, copy paste edit box).

There is no reason LAV Audio should *not* like a AC3 or E-AC3 track, unless you managed to somehow disable the two formats in the format configuration for some reason.

I should really figure out a way to generate debug information into a file.
I'll work on that after 0.25. :p

PS:
And just to rule it out, compare behaviour to official 0.24?

VipZ
2nd May 2011, 09:23
Nev, in regards to LAV Audio, is WMA 7/8/9 planned to be supported? As it should be working fine via ffmpeg.

Also regarding FLAC, it was mentioned before it had drifting sync issues, did this apply to only LAV audio or does the same also affect ffdshow?

Wanting to remove ffdshow audio out my config :p

nevcairiel
2nd May 2011, 09:25
Nev, in regards to LAV Audio, is WMA 7/8/9 planned to be supported? As it should be working fine via ffmpeg.

It should be working fine if you use it with LAV Splitter. There are no options to turn it on/off however. I can add those if wanted.
I can also add the official media types so it can be used with other splitters.

Also regarding FLAC, it was mentioned before it had drifting sync issues, did this apply to only LAV audio or does the same also affect ffdshow?

AFAIK, ffdshow uses libflac (at least the MPC-HC decoder does)
I can probably add a libflac wrapper into ffmpeg which would enable LAV Audio to use it as well, but don't hold your breath for now - so much more to do.
Throw out ffdshow and use madFlac. :)

VipZ
2nd May 2011, 09:46
It should be working fine if you use it with LAV Splitter. There are no options to turn it on/off however. I can add those if wanted.
I can also add the official media types so it can be used with other splitters.

Currently LAV Audio cant connect to WMA streams, After disabling ffdshow audio and blocking WMA DMO, audio cant decode anymore

Here are the media types to make it easier, though you probably already have them :)
{00000160-0000-0010-8000-00AA00389B71}
{00000161-0000-0010-8000-00AA00389B71}
{00000162-0000-0010-8000-00AA00389B71}
{00000163-0000-0010-8000-00AA00389B71}


AFAIK, ffdshow uses libflac (at least the MPC-HC decoder does)
I can probably add a libflac wrapper into ffmpeg which would enable LAV Audio to use it as well, but don't hold your breath for now - so much more to do.
Throw out ffdshow and use madFlac. :)

The main reason I am not currently using madFLAC is that there is no x64 version, I know there is no real difference between x86 and x64 regarding this, but its just me being stubborn :p

I also don't have any movies with FLAC audio so the sync issue doesn't really affect me, so I can wait :)

nevcairiel
2nd May 2011, 09:47
Currently LAV Audio cant connect to WMA streams, After disabling ffdshow audio and blocking WMA DMO, audio cant decode anymore

With LAV Splitter?
Thats interesting.

I'll put that on my testing list.

jmone
2nd May 2011, 10:01
MC16 graph dumps aren't really useful, they have practically no information. :p

Can you try the same file in MPC-HC, and if it also doesn't connect to LAV Audio on the DD/DD+ tracks, then let it connect to ffdshow and post the audio output pin of LAV Splitter (right click on player -> Filters -> LAV Splitter (or if not present, the entry with the file name) -> Properties -> Pin Info -> Select [OUT] Audio in dropdown, copy paste edit box).

There is no reason LAV Audio should *not* like a AC3 or E-AC3 track, unless you managed to somehow disable the two formats in the format configuration for some reason.

I should really figure out a way to generate debug information into a file.
I'll work on that after 0.25. :p

PS:
And just to rule it out, compare behaviour to official 0.24?

Thanks - Installed 0.24 and it all worked fine. Mmmm Reinstalled LAVFilters-0.24-40-g6c8a0f9 and it worked fine. Mmmm reenabled FFDSHOW Audio and still all good.

So after all of that.....the only observation I've got is a MC display bug and that the LFE channel sometimes gets over reported at 100% in the Properties-->Status Page of LAVAudio. Some days I hate computers!

Anyway.... I'll stop posting the MC dumps (but I don't have MPC-HC installed anymore so I'll wait for your own logging as I try to keep stuff on the HTPC to a minimum). Kinda hard to trouble shoot this stuff with such big files...

Thanks again for the quick response,
Nathan

VipZ
2nd May 2011, 10:06
With LAV Splitter?
Thats interesting.

I'll put that on my testing list.

Yep LAV Splitter is all I use now ;)

Thanks

Kotik
2nd May 2011, 11:37
On some of the formats i just got silence, on others it worked. Don't remember exactly anymore which was what.

Same here.

If i set delay with passthrough over ffdshow there is no sound.

Would be nice if you can set it properly over LAV Audio.

Keep up the great work.

PeQuE
2nd May 2011, 11:48
I'm currently decoding at least dts, ac3 (DD), eac3 (DD+), MP1L2 (standard SD/HD .ts livetv) with no problem using ffdshow passthrough and 120 ms audio delay... ¿?

VipZ
2nd May 2011, 11:54
Nev, I did some testing on FLAC in movies, all with LAV Spiltter.
LAV Audio: With no seeks/pause its perfect for the whole movie. Seeks to the end are very much out of sync.
ffdshow (libav): Didn't test playing full movie without a pause/seek, but if I seek to the end, the sync is fine.

So I think ffmpeg/libav is ok for FLAC decoding.

Kotik
2nd May 2011, 11:54
Just to clarify... last time i tried was months ago, so as far as i understand it works now??

In any case LAV Audio should have this as an option. Most amps have a maximum delay of 100-200 which in some cases is not enough.

nevcairiel
2nd May 2011, 12:09
Nev, I did some testing on FLAC in movies, all with LAV Spiltter.
LAV Audio: With no seeks/pause its perfect for the whole movie. Seeks to the end are very much out of sync.


So playback is fine in general, its seeks that break it?
I should convert some MKVs to flac, and see what happens.

Its just that i receive loads of warnings/errors from libavcodec when decoding, that just didn't seem right.

VipZ
2nd May 2011, 12:21
So playback is fine in general, its seeks that break it?
I should convert some MKVs to flac, and see what happens.

Its just that i receive loads of warnings/errors from libavcodec when decoding, that just didn't seem right.

Yep, playback seems fine.

I tried to convert directly from AC3 to FLAC with eac3to, but that totally broke. So I used besweet to convert the 5.1 AC3 track to a 5.1 ch wav file, which i then used eac3to to convert to a 5.1 FLAC. Then I muxed with mkvmerge to replace the original AC3. I am not sure if there was an easier way to convert from AC3 5.1 to FLAC 5.1

I would say the FLAC playback was pretty much the same as when I bitstreamed the AC3 with some slight volume difference since I don't use WASAPI exclusive.

joeydrunk
2nd May 2011, 13:08
No wonder, my video has been really choppy. What's up with subs in the top left corner?Thats not important. The only thing you CANNOT do when bitstreaming is let ReClock adjust the video speed to match refres rate, because then it goes out of sync. So with perfect bitstreaming, you'll end up with not 100% perfect video, because it could drop or repeat frames to match the refresh rate.

So, i guess, yes. For 100% perfect audio and video, with bitstreaming, it needs to be a exact multiple of the fps.



That doesn't make any sense, the connection between LAV Splitter and LAV Audio should always work - unless you turned one of the formats off in the config.

nevcairiel
2nd May 2011, 17:01
Yep, playback seems fine.

I tried to convert directly from AC3 to FLAC with eac3to, but that totally broke. So I used besweet to convert the 5.1 AC3 track to a 5.1 ch wav file, which i then used eac3to to convert to a 5.1 FLAC. Then I muxed with mkvmerge to replace the original AC3. I am not sure if there was an easier way to convert from AC3 5.1 to FLAC 5.1

I would say the FLAC playback was pretty much the same as when I bitstreamed the AC3 with some slight volume difference since I don't use WASAPI exclusive.

Ok, i did some tests, and i think i fixed it. I'll work on some other things and provide a build later, unless you're building yourself, too.

PS:
I simply did a "eac3to some.mkv some.flac" and it worked just fine.

VipZ
2nd May 2011, 17:20
Ok, i did some tests, and i think i fixed it. I'll work on some other things and provide a build later, unless you're building yourself, too.

PS:
I simply did a "eac3to some.mkv some.flac" and it worked just fine.

Sweet, thanks :)

I installed VS 2010 to try do my own builds for LAV/ffdshow/MPC-HC and was trying to get git sorted, but then got over it for the day. I will try again when I am up for the challenge.

Ok, good to know for next time.

@SamuriHL

The TrueHD issues you mentioned before regarding DreamWorks masters, does this include all of them as I only have Eagle Eye and was also looking to test if I have an issue with such disks. Also is there any easy way to bring out this issue?

SamuriHL
2nd May 2011, 17:41
@SamuriHL

The TrueHD issues you mentioned before regarding DreamWorks masters, does this include all of them as I only have Eagle Eye and was also looking to test if I have an issue with such disks. Also is there any easy way to bring out this issue?

The animated ones like Kung Fu Panda, How To Train Your Dragon, Megamind, etc give the most problems from what I've seen. Something about the way they master their discs with TrueHD causes issues. I don't have Eagle Eye so I know nothing about that one. But the way to repro it is simple. Stick a disc in and play it. With ffdshow, the issue came up within 10 minutes. Sometimes it's subtle like a TINY little "glitch" in the audio. Other times it's so bad it breaks the damn connection to the receiver and requires reestablishing it so you lose audio for 3-4 seconds. LAV Audio had 2 or 3 glitches in the 30 or so minutes I ran Megamind, and they were all very minor. Most people wouldn't notice. I only did cause I was looking for them.

VipZ
2nd May 2011, 18:03
Thanks, I will give it a test when I got some time to rewatch movie on weekend.

joeydrunk
2nd May 2011, 20:32
Has anybody had a problem with not being able to access the stats(ctrl+J) in mpchc?

nevcairiel
2nd May 2011, 21:49
@VipZ:
I could playback WMA audio just fine, i however added the subtypes for WMA1, WMA2 and WMA-Pro, and a configuration entry.

Anyhow, here is another build for tonight, i forgot what i all changed. Oh right, fixed flac, and added wma subtypes. Maybe something else. I'm really not feeling too good :(

In more positive news, i got my brand new shiny 30" monitor today, man thats awesome to have on your desk, being joined by one 24" on each side for good measure. Now i just need the new Z68 boards to actually get out so i can use the third screen (i wish NVIDIA would support 3 cards...)

Oh right, the build.

http://files.1f0.de/lavf/LAVFilters-0.24-45-g054fb45.zip

Keep testing that bitstreaming!
I really want to implement that other forced subtitle option before 0.25 - maybe i feel better tomorrow to get something done.

SamuriHL
2nd May 2011, 22:04
I would love a way to enable/disable the forced option without having to go into the properties so, that second option would be nice yea. :) Bitstreaming...nothing's changed since I last reported. Stuff just works (tm). :D

VipZ
2nd May 2011, 22:36
Thanks Nev

I tested FLAC, all good here now and seeking is much faster.

Bitstreaming is awesome, the occasional niggling feelings I though that AV sync was out, with LAV Audio, its just perfect.

WMA is still an issue, its fine if you use LAV Splitter, but if you use the MS splitters it still doesn't work. Can't use LAV Splitter for WMV yet due to the DAR issue for video.

This is an output from MS Splitter,
Media Type 0:
--------------------------
Audio: Windows Media Audio 48000Hz stereo 192kbps

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: Unknown GUID Name {00000161-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 4096
cbFormat: 28

WAVEFORMATEX:
wFormatTag: 0x0161
nChannels: 2
nSamplesPerSec: 48000
nAvgBytesPerSec: 24000
nBlockAlign: 4096
wBitsPerSample: 16
cbSize: 10 (extra bytes)

pbFormat:
0000: 61 01 02 00 80 bb 00 00 c0 5d 00 00 00 10 10 00 a...€»..À]......
0010: 0a 00|00 88 00 00 0f 00 00 80 00 00 ...ˆ.....€..




Shiny stuff is good :p I have been eying out a new TV but always worried about input lag on new TV's

Get well soon :)

n3w813
3rd May 2011, 00:50
Thanks Nevcairiel, bitstreaming is working great on my Nvidia 450. :)

Question, will you be adding a audio sync delay (+/-) option to the decoder? I need to add a 100ms delay to my audio stream to sync to the video stream. I usually do this via ffdshow or ac3filter.

Thanks :thanks:

@VipZ:
I could playback WMA audio just fine, i however added the subtypes for WMA1, WMA2 and WMA-Pro, and a configuration entry.

Anyhow, here is another build for tonight, i forgot what i all changed. Oh right, fixed flac, and added wma subtypes. Maybe something else. I'm really not feeling too good :(

In more positive news, i got my brand new shiny 30" monitor today, man thats awesome to have on your desk, being joined by one 24" on each side for good measure. Now i just need the new Z68 boards to actually get out so i can use the third screen (i wish NVIDIA would support 3 cards...)

Oh right, the build.

http://files.1f0.de/lavf/LAVFilters-0.24-45-g054fb45.zip

Keep testing that bitstreaming!
I really want to implement that other forced subtitle option before 0.25 - maybe i feel better tomorrow to get something done.

Superb
3rd May 2011, 01:37
Question, will you be adding a audio sync delay (+/-) option to the decoder? I need to add a 100ms delay to my audio stream to sync to the video stream. I usually do this via ffdshow or ac3filter.http://forum.doom9.org/showthread.php?p=1497402#post1497402

asasadad_1
3rd May 2011, 03:14
LAV Audio Decoder didn't connect LAV Splitter in the MP4 sample (E-Ac3). http://download.cyberlink.com/ftpdload/web/dolby/channelcheck-ddplus_480.mp4

more samples:http://cn.cyberlink.com/stat/events/enu/2011/Q2/dolby/index.jsp

Latest MPC-HC MP4 Splitter + ffdshow audio deocder works。

SamuriHL
3rd May 2011, 03:27
I can confirm that. Not connecting for me, either. Odd.

joeydrunk
3rd May 2011, 03:30
I uninstalled ffdshow, previous lav filters build, and removed the filters in mpchc>options>external filters. I then downloaded the new lav filters build and added them back to mpchc>options>external filters. Now bitstreaming isn't working. What am I not doing?

joeydrunk
3rd May 2011, 03:40
I was just wondering if any ideas came to mind real quick, I'm not at home so I can't post a log.

SamuriHL
3rd May 2011, 03:42
Did you set the options in LAV Audio to bitstream audio?