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

nevcairiel
22nd May 2011, 10:59
Thats a known problem, and there is still alot of room for improvement in the PGS filtering.

jmone
22nd May 2011, 11:46
How about just timing them out after say 5 seconds or so?

nevcairiel
22nd May 2011, 12:20
I rather work on the proper solution once time permits.

jmone
22nd May 2011, 12:31
Sounds good

Mercury_22
22nd May 2011, 18:37
@Nev
I thought that LAVSplitter it's able to play ts /m2ts files with 2 video streams (just the first video stream ) am I wrong ? cause it can't play e.g. this one (http://www.multiupload.com/MV7RNMR1LW) On the full m2ts file it can't even start to play (MPC-HC it's "freezing") but on the sample it's playing just a black screen while MPC-HC's internal splitter it's working OK

P.S. Before you ask yes it's straight from Blu-ray :)

nevcairiel
22nd May 2011, 21:55
It probably breaks because the second stream seems .. broken. Is that a 3D Blu-ray? Either that, or its some funny PIP stream.
I'll take a look tomorrow why it doesn't play the working stream.

jmone
22nd May 2011, 21:59
Quick Q - Where/How are external sub files (eg idx/sub) displayed (eg ignored by LAVSplitter as they are not part of the "file" but then decoded by FFDSHOW?)

nevcairiel
22nd May 2011, 22:00
LAV Splitter does not care about external files at all, the player needs to process those (or if ffdshow does it itself, then that).
In MPC-HC, its actually the player itself that loads external files, like audio and sub streams.

Mercury_22
22nd May 2011, 22:09
It probably breaks because the second stream seems .. broken. Is that a 3D Blu-ray? Either that, or its some funny PIP stream.
I'll take a look tomorrow why it doesn't play the working stream.
No it's not a 3D Blu-ray and again MPC-HC's internal splitter it's playing it fine:confused:

http://bluray.highdefdigest.com/3563/crimsonwing.html

assassinhtpc
22nd May 2011, 22:28
Any issues with live tv files?

Can anyone help me with this question?

Kaotech
22nd May 2011, 22:28
Hello, with a 5.1 DTS MA Track, Lavaudio set the track at 7.1 with 0.26.

nevcairiel
22nd May 2011, 22:49
MPC-HC's internal splitter it's playing it fine:confused:

I wish people would stop with these apple and orange comparisons. How is the MPC-HC splitter related to LAV Splitter at all?
Let me answer that for you: It is not, not in *any* way. It does not share *any* code. LAV Splitter is unique, as its the *only* DirectShow splitter that uses ffmpeg for demuxing.

PS:
Your file is fixed.

assassinhtpc
22nd May 2011, 23:12
So has anyone used LAV with live tv?

nevcairiel
22nd May 2011, 23:15
Suggestion: Instead of asking if something works, just go out and try it.

assassinhtpc
22nd May 2011, 23:19
Suggestion: Instead of asking if something works, just go out and try it.

Well I thought since I did a search in this massive thread and couldn't find any mention of it that it might not be possible.

And I haven't tried it but a friend has and it didn't work.

Therefore I just asked.

From a friend:
I am not getting it to work with live TV. I am just starting to delve into that mystery and the doom9 thread is huge. I'll get back to you on that ome..

Andy o
22nd May 2011, 23:34
At least take the time to write all relevant information if you want people to take the time to help you out. What "live TV" files do you mean? What format? What player? What OS? etc etc.

assassinhtpc
22nd May 2011, 23:48
At least take the time to write all relevant information if you want people to take the time to help you out. What "live TV" files do you mean? What format? What player? What OS? etc etc.

No problem. Thanks for offering to help.

It would be a live digital tv stream from an OTA antenna, not a stored file on a HDD, that is being rendered so it is the Microsoft decoders built into Win7x86 using WMC for Live TV playback that are being messed up by LAV.

Also, I wanted to do some searching but what the issue is that in live tv it will get into a 2-second or so audio loop that lasts about maybe a minute before it posts up the file is missing. This is the exact same issue I incountered with Shark007 until I switched to Win7x86 so I could use the alternate Video decoder which fixed the Audio problem.

assassinhtpc
23rd May 2011, 00:03
Suggestion: Instead of asking if something works, just go out and try it.

Didn't mean to offend you. I have spent the last few days trying to search for a discussion on this to help him out and have come up empty.

Just hoping you could help.

noee
23rd May 2011, 00:07
Some of the guys on the jRiver forums, IIRC, are doing jRiver TV with LAVSplitter, or they're giving it a go, perhaps they'll chime in.

assassinhtpc
23rd May 2011, 00:18
Some of the guys on the jRiver forums, IIRC, are doing jRiver TV with LAVSplitter, or they're giving it a go, perhaps they'll chime in.

Is there anything free that is a simple fix?

Andy o
23rd May 2011, 00:29
No problem. Thanks for offering to help.

It would be a live digital tv stream from an OTA antenna, not a stored file on a HDD, that is being rendered so it is the Microsoft decoders built into Win7x86 using WMC for Live TV playback that are being messed up by LAV.

Also, I wanted to do some searching but what the issue is that in live tv it will get into a 2-second or so audio loop that lasts about maybe a minute before it posts up the file is missing. This is the exact same issue I incountered with Shark007 until I switched to Win7x86 so I could use the alternate Video decoder which fixed the Audio problem.

Are you by any chance using HDMI with an ATI card? If so, turn off the media center menu sounds, and see if it helps.

andyvt
23rd May 2011, 00:32
It would be a live digital tv stream from an OTA antenna, not a stored file on a HDD, that is being rendered so it is the Microsoft decoders built into Win7x86 using WMC for Live TV playback that are being messed up by LAV.


WMC uses the SBE to record content. Live TV works a little different from Recorded TV in that it doesn't use a circular buffer, but both hit the disk.

None of the LAV filters should get used for TV playback in WMC, if they are it's probably because the filter has a very high merit value. Changing that to a more reasonable # might help.

assassinhtpc
23rd May 2011, 00:37
WMC uses the SBE to record content. Live TV works a little different from Recorded TV in that it doesn't use a circular buffer, but both hit the disk.

None of the LAV filters should get used for TV playback in WMC, if they are it's probably because the filter has a very high merit value. Changing that to a more reasonable # might help.

Thanks so much. How do I change their merit value?

andyvt
23rd May 2011, 00:51
Thanks so much. How do I change their merit value?

I usually go with GraphStudio. If UAC is enabled (or you're running as a user), you will need to right click and run as administrator.

I did a brief write up (http://babgvant.com/blogs/andyvt/archive/2008/11/30/understanding-merit-to-optimize-playback.aspx) on how to use GraphStudio a while back; don't think anything has changed so much that it's no longer valid.

assassinhtpc
23rd May 2011, 00:53
I usually go with GraphStudio. If UAC is enabled (or you're running as a user), you will need to right click and run as administrator.

I did a brief write up (http://babgvant.com/blogs/andyvt/archive/2008/11/30/understanding-merit-to-optimize-playback.aspx) on how to use GraphStudio a while back; don't think anything has changed so much that it's no longer valid.

Absolutely perfect. I can't thank you enough.

assassinhtpc
23rd May 2011, 00:54
Are you by any chance using HDMI with an ATI card? If so, turn off the media center menu sounds, and see if it helps.

No it is the integrated intel GPU on an i3 550 (Clarkdale) with no discrete graphics card.

assassinhtpc
23rd May 2011, 01:08
I usually go with GraphStudio. If UAC is enabled (or you're running as a user), you will need to right click and run as administrator.

I did a brief write up (http://babgvant.com/blogs/andyvt/archive/2008/11/30/understanding-merit-to-optimize-playback.aspx) on how to use GraphStudio a while back; don't think anything has changed so much that it's no longer valid.

Holy hexidecimal!

Do you have any suggested initial settings that I should try?

jmone
23rd May 2011, 01:58
I have no issues with "Live TV", "Timeshifting Live TV", or "Recorded Live TV" using LAVAudio and MC16. In fact thanks to feedback from nevcairiel a bug was fixed in the MC16 TV Splitter (JTV) so you can now switch between DVB-T channels with different format Audio without issue. One reason it plays "nice" is that MC16 uses its own splitter to present just the single Video and Audio streams instead of just dumping the whole collection of DVB-T Sub Channels in one file.

assassinhtpc
23rd May 2011, 02:15
I have no issues with "Live TV", "Timeshifting Live TV", or "Recorded Live TV" using LAVAudio and MC16. In fact thanks to feedback from nevcairiel a bug was fixed in the MC16 TV Splitter (JTV) so you can now switch between DVB-T channels with different format Audio without issue. One reason it plays "nice" is that MC16 uses its own splitter to present just the single Video and Audio streams instead of just dumping the whole collection of DVB-T Sub Channels in one file.

Understood.

I think it would be nice if there was a free option to make this work too.

Andy o
23rd May 2011, 04:03
No it is the integrated intel GPU on an i3 550 (Clarkdale) with no discrete graphics card.

I don't know much about Intel, but you might still wanna try turning off MC sounds see if that makes a difference.

wo0zy
23rd May 2011, 07:07
Understood.

I think it would be nice if there was a free option to make this work too.

Works fine with Mediaportal.

Wo0zy

nevcairiel
23rd May 2011, 07:34
TV applications typically have their own source filter and mpegts demuxer, therefor LAV Splitter doesnt really fit into that picture to begin with.

LAV Audio might work with it, depending on the source filter. If the source unpacks the PES data, it will work, if the source directly sends the PES stream without unpacking, it will not.
FWIW, DVBViewer works fine with LAV Audio and LAV CUVID.

jmone
23rd May 2011, 08:31
Wo0zy

Now there is a NIC that broought back a flood of early HTPC memories trying to get those Intel G33 working at 24hz (shudder). I expect to see archibael show up next!

Gleb Egorych
23rd May 2011, 10:38
FWIW, DVBViewer works fine with LAV Audio and LAV CUVID.
My results: LAV Audio - yes, LAV CUVID - no. On channel change - no picture.

Aleksoid1978
23rd May 2011, 10:51
LAV very bad with this sample http://www.multiupload.com/MV7RNMR1LW:
1 - playback don't start, black video in MPC-HC
2 - second video stream detect with error.
3 - detect many "fake" subtitle.

Play fine with MPC-HC internal splitter.

pankov
23rd May 2011, 11:21
My results: LAV Audio - yes, LAV CUVID - no. On channel change - no picture.
Gleb,
if you wait a few seconds (10-15) the video will come.
Or you can disable "Fast Channel Switching" in Options -> TV + Radio and it will work suddenly but you'll get a black screen in between.
I thought it was only me that had problems with this fast channel switching but I guess it was actually LAV CUVID that is taking too long to adapt/switch ... or potentially clear it's buffers.
Nev,
do you use DVBViewer? Is there anything that can be done to improve it?

Mercury_22
23rd May 2011, 11:32
LAV very bad with this sample http://www.multiupload.com/MV7RNMR1LW:
1 - playback don't start, black video in MPC-HC
2 - second video stream detect with error.
3 - detect many "fake" subtitle.

Play fine with MPC-HC internal splitter.

:) Already reported
@Nev
I thought that LAVSplitter it's able to play ts /m2ts files with 2 video streams (just the first video stream ) am I wrong ? cause it can't play e.g. this one (http://www.multiupload.com/MV7RNMR1LW) On the full m2ts file it can't even start to play (MPC-HC it's "freezing") but on the sample it's playing just a black screen while MPC-HC's internal splitter it's working OK

P.S. Before you ask yes it's straight from Blu-ray :)
and "fixed"
I wish people would stop with these apple and orange comparisons. How is the MPC-HC splitter related to LAV Splitter at all?
Let me answer that for you: It is not, not in *any* way. It does not share *any* code. LAV Splitter is unique, as its the *only* DirectShow splitter that uses ffmpeg for demuxing.

PS:
Your file is fixed.
@Nev :thanks: and I was just trying to say that the file works (with other splitters)
@Aleksoid Can you fix MPC-HC's MPEG splitter to detect the DTS Express audio too ?

JaylumX
23rd May 2011, 11:54
Nevcaireiel, is it possible as a feature to implement in the Lavfilters splitters a method of switching video streams for Bluray - for example my King Kong, Mirrors and Gladiator bluray have more one version - Theatrical, Directors Cut and/or Extended cuts on one BD. When using MPC-HC to play the disk it always defaults to playing the longer version. Can you implement that feature of stream switching or is that something i should be asking the MPC-HC coder(s)

Gleb Egorych
23rd May 2011, 12:00
Gleb,
if you wait a few seconds (10-15) the video will come.
Or you can disable "Fast Channel Switching" in Options -> TV + Radio and it will work suddenly but you'll get a black screen in between.
You're right, disabling the option does the job, thanks. However, deinterlacing problems with DVB streams still persist. So usage of LAV CUVID in DVBViewer is limited at the moment.

jj666
23rd May 2011, 12:02
JaylumX,

I believe the best way to achieve what you want is to find the correct playlist file for the different versions using BDINFO. Then run the appropriate playlist file.

Cheers,

-jj-

SamuriHL
23rd May 2011, 14:10
Nevcaireiel, is it possible as a feature to implement in the Lavfilters splitters a method of switching video streams for Bluray - for example my King Kong, Mirrors and Gladiator bluray have more one version - Theatrical, Directors Cut and/or Extended cuts on one BD. When using MPC-HC to play the disk it always defaults to playing the longer version. Can you implement that feature of stream switching or is that something i should be asking the MPC-HC coder(s)

That feature is on Nev's list to implement. No ETA.

assassinhtpc
23rd May 2011, 14:39
TV applications typically have their own source filter and mpegts demuxer, therefor LAV Splitter doesnt really fit into that picture to begin with.

LAV Audio might work with it, depending on the source filter. If the source unpacks the PES data, it will work, if the source directly sends the PES stream without unpacking, it will not.
FWIW, DVBViewer works fine with LAV Audio and LAV CUVID.

The problem is that if someone uses LAV they might not be able to use WMC Live TV.

Do you think that changing the merits will correct this problem?

Andy o
23rd May 2011, 16:37
Nev, I you have planned output bit depth selection for the future, right? If so, could you please consider an option akin to ffdshow's "16-bit LPCM" (not "16-bit integer")? I've just found out that PowerDVD 8's audio decoder can connect to ffdshow's 16-bit LPCM output in order to apply Dolby Headphone, which as far as I can tell is the only way to get DH in a DirectShow player (foobar2000 does it (http://www.hydrogenaudio.org/forums/index.php?showtopic=39404) by way of the Cyberlink DH dll).

If it's not too much to ask :)

nevcairiel
23rd May 2011, 16:51
Nev, I you have planned output bit depth selection for the future, right? If so, could you please consider an option akin to ffdshow's "16-bit LPCM" (not "16-bit integer")? I've just found out that PowerDVD 8's audio decoder can connect to ffdshow's 16-bit LPCM output in order to apply Dolby Headphone, which as far as I can tell is the only way to get DH in a DirectShow player (foobar2000 does it (http://www.hydrogenaudio.org/forums/index.php?showtopic=39404) by way of the Cyberlink DH dll).

If it's not too much to ask :)

I don't think i'll be doing that.

nevcairiel
23rd May 2011, 16:55
LAV very bad with this sample http://www.multiupload.com/MV7RNMR1LW:
1 - playback don't start, black video in MPC-HC
2 - second video stream detect with error.
3 - detect many "fake" subtitle.

Play fine with MPC-HC internal splitter.

I don't think the subtitles are fake, it detects them properly, and the subtitle PIDs are set properly. Looks just fine.
BTW, the MPC-HC splitter doesn't detect the second video stream at all on the beginning, it just finds it after a few seconds of playback. I think its either broken, or the stream starts really late in the file, i am filtering video streams without a resolution now.
Anyhow, i also increased the size of the probe buffer, which makes it detect the stream.

nevcairiel
23rd May 2011, 17:34
The problem is that if someone uses LAV they might not be able to use WMC Live TV.


I do not care about any interaction with a seriously locked down application like WMC. Its a horrible player as it is.

madshi
23rd May 2011, 17:41
3 - detect many "fake" subtitle.
FWIW, eac3to detects a bunch of PGS subtitles, too, so I'd say that LAV Splitter probably is correct about the subtitles.

Andy o
23rd May 2011, 18:09
I don't think i'll be doing that.

OK, thanks.

assassinhtpc
23rd May 2011, 18:26
I do not care about any interaction with a seriously locked down application like WMC. Its a horrible player as it is.

Wow. Okay then.

andyvt
23rd May 2011, 18:51
I do not care about any interaction with a seriously locked down application like WMC. Its a horrible player as it is.

What about making it easier for users to control the filter's merit?

The default merit is so high that it will most likely be considered in every graph that isn't explicitly built with direct connections.