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
6th May 2011, 14:50
Feel free to take that to the eac3to thread. :p

SamuriHL
6th May 2011, 14:55
Yup. I wasn't really concerned since I rip them differently and they bit stream just fine for me. ;)

madshi
6th May 2011, 15:03
But there are HD dvd that support it, and if we want to extract those with eac3to, we're apparently SOL...
There is no problem with HD DVD at all, because HD DVD does not use the weird AC3 Core + E-AC3 extension logic. Only Blu-Ray does that. eac3to fully handles all HD DVD E-AC3 tracks.

P.S: Yeah, this is OT.

Andy o
6th May 2011, 15:22
Yeah, kinda got derailed, sorry. My goal was to know if it was possible to get the DD+ 7.1 to connect with the Arcsoft decoder, since ffdshow and LAV Audio can't decode 7.1.

nevcairiel
6th May 2011, 16:39
@pankov:

I think this fixes it for good, hopefully without breaking anything else.

http://files.1f0.de/lavf/LAVFilters-0.24-76-g00ca07e.zip

@Andy O:
I added the new E-AC3 subtype, and it connects just fine to ArcSoft now and decodes full 7.1 (tested with this http://www.megaupload.com/?d=LPTVJH5Q)
(not in the version linked above, sorry)

Sebastiii
6th May 2011, 16:45
I have all those sample files. I will test them again, but i have not seen any ffmpeg crash for a long time, looks more like media portal is screwing up again, or your system is somehow faulty.

Most of these errors look like heap corruption errors, which would not necessarily have to happen at the point when it crashes, it could just crash when the corrupted heap is accessed the next time.

Try with MPC-HC, and if you cannot make it crash, i blame MediaPortal.

Thanks, i will try it yep also with MPC filters :)
Maybe it's not MP but some beta MP patch :)

Carpo
6th May 2011, 17:44
Trying out .76 release now, playing harry potter fine on my old 8600GT and bit streaming is perfect :-)

nevcairiel
6th May 2011, 18:03
nevcairiel,

Reported the problem and directed them here.

Thanks.

Hey FreeFall, i fixed one issue that caused the crash.
If you're reading this - there was however another issue (i installed ZoomPlayer to test).

Their handling for the ITrackInfo interface keeps calling the GetTrackInfo and GetTrackName functions with ever increasing stream index, even though i only specified a count of 2 streams, and return FALSE for those functions every time - which makes the player hang on startup.

If you can, please forward this to them, or maybe Blight comes over here and reads it himself. :)
I actually registered on the ZP forums, but apparently my posts need to be moderator approved before they are visible.

I will disable ITrackInfo for 0.25 release, so everything works smoothly with ZP, and enable it again once ZP is fixed. I don't think anyone is using that interface anyway.

The problem can be tested against this version:
http://files.1f0.de/lavf/LAVFilters-0.24-78-gde1cd87.zip

All newer version will have ITrackInfo disabled again, and thus not be good for testing this problem.

Sebastiii
6th May 2011, 19:27
I keep version without ITrackInfo disable (on my hdd), we will tested soon :)
Thanks,
Seb.

CruNcher
6th May 2011, 19:35
Here is the default mkvmerge mux that stops working with lav splitter vc-1 correction http://www.megaupload.com/?d=NR6RRQIT

nevcairiel
6th May 2011, 19:52
LAV Filters 0.25

LAV Splitter
- Added the ability to filter Blu-ray PGS subtitles, so only frames flagged as "forced" are delivered
- Either through a new "Forced Subtitles" stream (default)
- Or, filtering for every PGS stream (configurable)
- Improved support for H264 in AVI
- Improved timings for TrueHD in MKV
- m2ts files directly openend inside a Blu-ray structure should now properly display stream languages
- Alot of fixes and enhancements for format compatibility (especially MPEG-TS)
- Support using the ArcSoft HD Audio Decoder for E-AC3

LAV Audio
- Audio bitstreaming (pass-through) for HDMI and S/PDIF
- Support for AC3, E-AC3, TrueHD, DTS and DTS-HD
- Use the float decoders for mp1/mp2
- Added official support for WMAv1, WMAv2 and WMA Pro
- Fixed an issue that caused sync issues with FLAC audio, and FLAC is once again enabled by default


Download: Installer (both x86/x64) (http://files.1f0.de/lavf/LAVFilters-0.25.exe) -- Zips: 32-bit (http://files.1f0.de/lavf/LAVFilters-0.25.zip) & 64-bit (http://files.1f0.de/lavf/LAVFilters-0.25-x64.zip)

Lets have a quick look at the stats..

48 files changed, 1695 insertions(+), 331 deletions(-)

Overall, nearly 2000 lines of code touched. 1700 new ones, 300 old ones removed/changed.

New Features!

Blu-ray PGS subtitle filtering
My personal favorite this build!
PGS subtitles on Blu-rays have the oddity that they can contain "forced" subtitles (subs for alien/foreign languages), and normal subtitles in the same subtitle track. Before, it was impossible with the open-source tools at hand to separate those during playback. This could not stand!
There are two new options, one of which is a new default.
- "Enable Automatic Forced Subtitle Stream" (default)
- "Deliver only Forced Subtitles"

The first option will create a new stream in the selector, called "Forced Subtitles (auto)". When you select this stream, LAV Splitter will automatically internally select one subtitle stream that matches the language of your audio stream, and filter the forced subtitles out, and display them. If you select any other subtitle stream, you'll get full subtitles.

The second option will always enable filtering, and only let subs through that are marked "forced". This is meant as a fallback solution when either the automatic mode does not work, or you want another language.

Note, however, that not all Blu-rays are like this, some also have the forced subtitles in an extra stream, which might or might not be flagged as forced.

Audio Bitstreaming
Another shiny new feature to be excited about!
LAV Audio now supports bitstreaming of HD audio through S/PDIF and HDMI.
Supported are AC-3, E-AC3, TrueHD, DTS and DTS-HD. (S/PDIF is limited to AC-3 and DTS, of course)

There may still be minor kinks to be worked out in the bitstreaming code, especially in combination with some receivers, but overall it has proven to already work really well.

In addition to those two big changes, there is also the list of usual fixes and improvements, summarized above.

Have Fun!
I already had mine, developing of 0.25 was awesome. So many great features, and all worked out so well. You guys also were a great help.

PS:
I have purged most of the 0.24-xx snapshot builds from my file server.

nevcairiel
6th May 2011, 20:23
Here is the default mkvmerge mux that stops working with lav splitter vc-1 correction http://www.megaupload.com/?d=NR6RRQIT

Fixed. (fix not in 0.25)

Andy o
6th May 2011, 22:02
thanks again nev!

DD+ decoding working fully now. I think this is the first time all blu-ray formats can be decoded fully on the PC by non-commercial software, so congrats!

sneaker_ger
6th May 2011, 22:20
DD+ decoding working fully now. I think this is the first time all blu-ray formats can be decoded fully on the PC by non-commercial software, so congrats!

Except DTS-HD MA, right?

nevcairiel
6th May 2011, 22:48
By non-commercial he means using MPC-HC, and a commercial decoder - that is the ArcSoft Decoder. There is also no open source decoder for 7.1 DD+, they are limited to 5.1
The point is, you can use your favorite DirectShow player, and are not forced to use TMT - just use its audio decoder. ;)

Andy o
6th May 2011, 22:56
yeah forgot that the Arcsoft decoder was commercial hehe but what I meant is that you're not constrained by commercial players.

FreeFall
6th May 2011, 23:15
Nevcairiel,

I have passed along the information for you, I'm registered over there as Hawke.

Thanks.

Sebastiii
6th May 2011, 23:35
Thanks Nevcairiel for you amazing work :)

Andy o
6th May 2011, 23:42
argh it never ends! Sorry this is slightly OT but there's no Arcsoft decoder thread here AFAIK and this might affect some of you. Whenever the Arcsoft HD decoder is loaded, I can't skip to the next file with MPC-HC. If ReClock is on, MPC crashes, if ReClock is not on the chain, most of the time the audio and flashes of the video of the previous file continues when the next file plays. Happens both with DTS-HD MA and DD, I assume with all other formats that the Arcsoft decoder uses. Tried MPC, Matroska and LAV splitters and it's the same. Other decoders don't show this. I've tried the TMT5 .86 decoder and the TMT3 .185 decoder and they're the same.

Mark_A_W
6th May 2011, 23:43
Mark,
I'm a long time user of ZoomPlayer ('mitko' in the inmatrix forum) and I can tell you that PGS subtitles work just fine in ZoomPlayer. Both with DirectVobSub and FFDShow subtitles renderers ... well I prefer the picture of VobSub but that's personal preference ... or probably some settings in the ffdshow config.

Here is a build of VSFilter/DirectVobSub r3056, with all the fixes i did today

http://files.1f0.de/VSFilter-r3056.zip



The new version of VSFilter fixed it -thanks!

Andy o
7th May 2011, 01:01
@pankov:
@Andy O:
I added the new E-AC3 subtype, and it connects just fine to ArcSoft now and decodes full 7.1 (tested with this http://www.megaupload.com/?d=LPTVJH5Q)
(not in the version linked above, sorry)

Sorry to bother you again with this DD+ stuff, but could you quickly test this file again? I'm getting decoded 7.1, but as soon as I skip to another part of the file, all the channels get mixed up (center goes to right, left surround to LFE, etc.).So long as I start the file from the beginning, mapping is correct, but after skipping it's all screwed up. Just need confirmation so I know it's not just on my end, thanks. I'm using MPC-HC build from today.

pankov
7th May 2011, 01:09
@pankov:

I think this fixes it for good, hopefully without breaking anything else.

http://files.1f0.de/lavf/LAVFilters-0.24-76-g00ca07e.zip
Nev,
I've tested it with the official v0.25 and I'm so happy to report that everything plays fine now
:)
:thanks:

andyvt
7th May 2011, 02:04
LAV Audio
- Audio bitstreaming (pass-through) for HDMI and S/PDIF
- Support for AC3, E-AC3, TrueHD, DTS and DTS-HD


:thanks:

SamuriHL
7th May 2011, 02:10
I'll try to test this out tomorrow when I watch The Green Hornet. AndyVT, you should try the bitstreaming. It rocks. :)

andyvt
7th May 2011, 02:17
AndyVT, you should try the bitstreaming. It rocks. :)

Just tested it :)

Works great with the LAV Splitter, but the Sage demux doesn't work as well (DTS-HD = DTS, TrueHD = noise). Filling out a support ticket right now.

SamuriHL
7th May 2011, 02:20
Why would anyone want to use anything but the LAVF splitter? :D

andyvt
7th May 2011, 02:22
Why would anyone want to use anything but the LAVF splitter? :D

Have you seen the Sage Diamond UI (it's gorgeous)? I like MPC-HC, but it's not the most kid friendly application :)

SamuriHL
7th May 2011, 02:47
No, I'm using MC16 as my front end these days.

Aleksoid1978
7th May 2011, 02:58
Incorrect detect video stream - must detect as H264, at this sample - http://aleksoid.tosei.ru/Test/Sample/Canal%20AD.ts
Internal MPC-HC splitter detect normal after rev. 3083

andyvt
7th May 2011, 03:10
no, i'm using mc16 as my front end these days.

mc16?

CruNcher
7th May 2011, 04:37
mc16?

Jriver Mediacenter though SageTV isnt bad its Mainconcept centric if i remember right also the Demuxer is Mainconcept SDK based :)

JustinChase
7th May 2011, 06:05
Nev, thanks so much for all of your hard work, and for your incredible responsiveness; it's very impressive!

I'm using J River Media Center 16 for playback, and I've got a really weird issue/problem going on.

PREFACE: I'm a noob, but one that's spent many hours trying to correct that.

I really don't know how to explain this quickly or easily, so I'd beg you to take a look at my thread there for details. I'd really appreciate any feedback/help you (or anyone) can provide.

I'm stumped :(

:thanks: in advance

http://yabb.jriver.com/interact/index.php?topic=63663.msg427604#msg427604

JustinChase
7th May 2011, 06:08
mc16?

J River Media Center version 16

It's a very powerful and customizable directshow media player.

http://www.jriver.com/index.html

I've used it for over 10 years now, and have been very happy with it, FWIW

CruNcher
7th May 2011, 06:31
Yeah though its more known for its Audio Core the APE Author develops it :)


Now for the really weird part, if I switch audio streams I get sound!
I can now click on any of the 3 streams while playing, and they all play fine, even the first one that doesn't play sound until I change streams. it seems changing streams is what causes it to actually play sound.

I experienced the same though only on 1 stream so far and its the same as you experience it switching the stream once magicaly makes it work my guess was it has something todo with the default language selection and it's missing the main default stream and so connects into the void @ start, i don't think it's critical though and so i left it out of reporting concentrating on heavier issues ;)

By non-commercial he means using MPC-HC, and a commercial decoder - that is the ArcSoft Decoder. There is also no open source decoder for 7.1 DD+, they are limited to 5.1
The point is, you can use your favorite DirectShow player, and are not forced to use TMT - just use its audio decoder. ;)

Yeah they should have been smarter like Cyberlink encrypting and externalize all BD related dshow components, though to late now for Arcsoft but they used so many OSS stuff in the past we can see it as a back contribution i guess ;)

nevcairiel
7th May 2011, 06:58
Just tested it :)

Works great with the LAV Splitter, but the Sage demux doesn't work as well (DTS-HD = DTS, TrueHD = noise). Filling out a support ticket right now.

Bitstreaming support with other splitters is still limited, and will be extended for the next release. Can one use the Sage Demux without that specific player?

Incorrect detect video stream - must detect as H264, at this sample - http://aleksoid.tosei.ru/Test/Sample/Canal%20AD.ts
Internal MPC-HC splitter detect normal after rev. 3083

It does detect it properly, however, that file has multiple programs, and that causes it to break.
It erroneously selects the first program, which has these broken streams in it..

I'll make a plan for better program support for the future.

BTW, this is the whole detection dump:
Input #0, mpegts, from 'Canal AD.ts':
Duration: 00:00:12.86, start: 68111.154056, bitrate: 9948 kb/s
Program 3
Program 5
Stream #0.0[0x20]: Video: mpeg2video, 90k tbr, 90k tbn, 90k tbc
Stream #0.1[0x21]: Audio: mp3, 0 channels, s16
Program 6
Stream #0.4[0x1090]: Video: mpeg2video, 90k tbr, 90k tbn
Stream #0.5[0x1091]: Audio: mp3, 0 channels
Program 7
Program 14
Program 15
Program 24
Program 330
Program 421
Program 900
No Program
Stream #0.2[0x384]: Video: h264 (Main), yuvj420p, 960x1088 [PAR 2:1 DAR 30:17], 35.56 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0.3[0x385]: Audio: mp2, 48000 Hz, mono, s16, 192 kb/s

Program 3 and 5 look obviously broken.. video streams without a resolution, audio without channels.. most likely mis-detections, or single data frames that sneaked in during capture

CruNcher
7th May 2011, 07:15
Hmm but why does ffplay doesn't switch to these bad streams then and directly to the H.264 and lav splitter doesn't ?

nevcairiel
7th May 2011, 07:16
Because how streams are selected is totally up to the player. :p

Edit:
I fixed that specific file, needs more work though.

midiboy
7th May 2011, 10:50
Hi !

I dont know if this has come up so far but I may have found a bug (0.25)

I am using Zoom Player 7 RC2, ffdshow tryouts latest build 3836 on Windows7/64bit/Sp1, ATI 6000 card, madvr 0.61, reclock latest version.
Fffdshow outputs the bitstream to my Marantz receiver via reclock and HDMI1.4a

If I use Lavsplitter two things are different compared to using Haali Splitter for a mkv file:

- first of all the preferred audio setting in Zoom Player with Audio stream Switching filter enabled is ignored (Options -> Audio -> Preferred Stream Selection -> Auto Audio Stream. Even if English is chosen there, the file will always play German audio if that is the first audio stream.

- Second, and worse ... as soon as I change the audio stream in zoom player for instance from German to English, the audio format is changed from 5.1 to stereo for any audio stream (my Receiver will simply report stereo for the currently playing file as will reclock. Even if I switch back to the first audio stream, it will still only playback stereo instead of 5.1. Only after restarting the player will ZP output 5.1 again but only until I switch audio tracks.

The combination of both means I can only listen to the first audio stream of any given mkv in 5.1 right now.
With Haali as the media splitter, everything works fine.

Let me know if you need any more information ! I would love to use LAV Splitter because it will let me output TrueHD and DTS Master audio (which does not work with Haali).

Thanks !
Alex

nevcairiel
7th May 2011, 11:13
If the preferred stream selection in Zoom Player does not work, i recommend setting your preferred languages directly in LAV Splitter, and notify the ZP devs that they should either contact me or figure it out themself how to auto-select streams with LAV Splitter.

For your audio problem, LAV Splitter does in no way control how many audio channels the audio has. It'll simply send the audio to whatever decoder you're using, and its the decoders responsibility to decode, and figure out how many channels are in there.
This sounds like whatever other playback components you are using, they are to blame, as the splitter has no direct control over this. Its most likely something in ZP itself, but nothing thats under my control.

I test my filters usually against MPC-HC and the very neutral GraphStudio, and the behaviour in those two is just fine. If these tests succeed, i know that my splitter works within the specification of DirectShow. I cannot (nor am i willing to) test every player out there, especially when they use completely custom methods to build playback graphs.

If there is some specific problem with a player, i'm willing to talk to its developers so we can figure it out, but just from user reports these problems tend to be impossible to fix, especially on closed source players.

andyvt
7th May 2011, 12:55
Bitstreaming support with other splitters is still limited, and will be extended for the next release. Can one use the Sage Demux without that specific player?


It is possible (I use it in DTB for transcoding) but the player needs to use care (or explicitly build graphs) to use it.

midiboy
7th May 2011, 13:27
Hi nevcairiel,

ok, I will contact ZP Team about this.
Thanks !

Alex

CruNcher
7th May 2011, 16:07
Ok another interoperability issue this time it's seeking related with Mainconcept Mpeg-2 Decoder the result with Lav Splitter looks like this @ Seek

http://img14.imageshack.us/img14/7311/mainconceptmpeg2.png

It also happens with MPC-HC splitter (some seek points) but not as heavy as with lav splitter (every seek point) and for every seek, it recovers though shortly after for both. If you hit a I frame @ seek its obviously fine for both :). I don't think it's critical for playback though just a annoyance in perception. Different when you think about Editing though via Avisynth or any Dshow Framework involving this combination and a seek operation to a given frame.
Im pretty sure this has todo with Mainconcepts Decoder being Frame accurate and ffmpeg failing with that, so no easy fix anyways maybe though trying to workaround this by explicitly forcing a jump to the next I-frame ?.

Nexin
7th May 2011, 18:59
Bitstreaming support with other splitters is still limited, and will be extended for the next release.

Unable to check for lossless with av atm. Assume they have spdif bitstream through lav splitter now (pcm, flac, ape etc) ?

No hurry (decorating :() atm

nlnl
7th May 2011, 19:08
nevcairiel
Thank you very much for .25:thanks:
Bitstreaming is exellent (ATI + Onkyo)!
First time I can bitstream Dolby Digital+. Can not do that using ffdshow.
BTW, LAV + reclock = perfect, but LAV + Default audio renderer = some issues (bitstreaming DTS HD MA 2.0)

clsid
7th May 2011, 21:05
Latest install script has a bug. Either remove empty "InitializeSetup" function, or set add a "Result:=True" to it. Otherwise setup with exit at init.

VipZ
7th May 2011, 22:04
I have finally got around to making a plan to compile LAV Filters :)

I see this kind of message when compiling, is this normal? The built files seem to be perfectly fine.
5>Media.cpp(489): warning C4267: 'argument' : conversion from 'size_t' to 'int',
possible loss of data
5>Media.cpp(493): warning C4267: 'argument' : conversion from 'size_t' to 'int',
possible loss of data
4>BDDemuxer.cpp(251): warning C4018: '>=' : signed/unsigned mismatch
4>LAVFDemuxer.cpp(186): warning C4267: 'argument' : conversion from 'size_t' to
'int', possible loss of data
4>LAVFDemuxer.cpp(407): warning C4018: '>=' : signed/unsigned mismatch
4>LAVFDemuxer.cpp(704): warning C4267: 'initializing' : conversion from 'size_t'
to 'UINT', possible loss of data


I am using MingGW 4.6.1, if this makes any difference

Budtz
8th May 2011, 08:25
How do i find the settings or options for LAV Splitter?

Sebastiii
8th May 2011, 09:49
How do i find the settings or options for LAV Splitter?

You have to start player with LAV and you can click on filter to select setting.

Or insert filter in graphstudio and you can get it :)

renethx
8th May 2011, 14:06
@nevcairiel

Will you check this file?

Channel_Test_E-AC-3_7.1.m2ts (http://www.avsforum.com/avs-vb/showthread.php?p=19354466#post19354466)

LAV Audio Decoder bitstreams E-AC-3 perfect. But it looks like it decodes only the core AC3 (so does ffdshow Audio Decoder): I can hear no sound from left/right surround speakers. ArcSoft Audio Decoder decodes it correctly.

nevcairiel
8th May 2011, 14:17
There is nothing to check, ffmpeg does not support decoding 7.1 E-AC3, and will only ever decode 5.1