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 509 510 511

fastplayer
2nd November 2011, 19:31
Ouch, I thought it was only NV12, YUY2 and RGB32.

hoborg
2nd November 2011, 19:34
DTS in WAV is still not working in ne version of LAV audio filter ???

Is there anything to configure or???

It is working just fine for me, but i am not using audio passthrough.

madshi
2nd November 2011, 19:36
Thats funny, the line only appears if output is YV12, if its NV12 the line vanishes. Can someone explain that to me?
madshi? maybe a madVR bug? I don't get it in EVR. (For reference, sample here: http://videoff7.free.fr/myth-cm.flv)

I doubt its a decoder problem, as the line vanishes depending on which output format you use or renderer you use.
It's probably caused by the weird video width. It's an odd number, which is very rare. Both madVR and EVR ask the decoder to deliver a nice pitch, so the odd width should be no problem. But for whatever reason the last chroma sample seems to be missing, when LAVVD sends YV12, while it's there when sending NV12. Looking at my code, I don't think it's a madVR issue, but I'm not 100% sure. My code for YV12 and NV12 input is pretty similar and both handle the odd width identically. Can you double check your code? FWIW, the odd width is a problem because due to 4:2:0 subsampling the 427 width video has not 213, but 214 chroma samples. At least that's my understanding. My best guess is that LAVVD transfers 214 chroma samples per line when sending NV12 and 213 when sending YV12. I'm just guessing here, though. And I've no idea why the problem doesn't show with EVR. After all it could be a problem in madVR, but I don't see it in my code.

nevcairiel
2nd November 2011, 19:43
Chroma should be rounded up? Hm, i've always wondered how that works. How does it work for odd heights? Is that even allowed?

I did indeed find the problem. It didn't appear for NV12 because that is being processed using SSE2, which always processes 16 byte at a time - while YV12 uses plain memcpys which use the exact width .. oh well.

madshi
2nd November 2011, 19:49
Chroma should be rounded up? Hm, i've always wondered how that works. How does it work for odd heights? Is that even allowed?
Oh well. I've no idea. I wasn't sure myself whether chroma should be rounded up, but if you don't, the one odd luma pixel has no chroma value at all. Yeah, madVR also expects an extra chroma line if the height is odd.

Would really love to know if there's an "official" way to handle this. Maybe I'm wrong and chroma width/height should be rounded down, I don't really know.

nevcairiel
2nd November 2011, 19:57
I just hope it won't cause issues down the line. I took the "safe" route and only write the extra chroma value if the renderer requests stride to fit it in, if a stupid post-processor like ffdshow sits after the decoder, it will get the old size - just to be safe. ;)
I'm confused yet again, though. NV12 has interleaved U/V samples, which means it has to be an even size, or stuff goes really weird. o.O Odd sizes really are not good for you.

I should investigate how post-processors behave when i suggest a stride to them, so the issue is not existent anymore.

Edit:
Too bad, ffdshow raw video is too stupid to understand a suggested stride from the decoder.
VSFilter manages, though. Maybe i should teach ffdshow.

On that note, do people use any video post-processors beside VSFilter/DirectVobSub or ffdshow?
--
Forget it, fixing ffdshow is impossible, i'm not touching that thing. Instead, they'll just end up with non-strided images, an extra memory copy to compensate for the unaligned memory access, and what do i know on other short comings. Seriously, did i mention that its crap? :)

TheShadowRunner
2nd November 2011, 21:14
Thanks for looking into the matter guys, and fastplayer for further testing.
Kinda glad the green line was reproducible on someone else's setup ^^;

SEt
2nd November 2011, 21:40
I'm pretty sure that odd width/height are illegal for YUV420 data. MSDN explicitly states that NV12 data has even number of lines and example code for converting RGB32 to YV12 uses
assert(dwWidthInPixels % 2 == 0);
assert(dwHeightInPixels % 2 == 0);
whatever it means.

nevcairiel
2nd November 2011, 21:43
Well its encoded as mod 16 (a macro block in VP6 seems to be 16 pixels), but it then defines a cropping to cut it down to some odd width. This is not a problem when talking directly to a renderer, because they always require some stride anyway. It is only a problem when talking to ffdshow, which is too dumb to handle strides.

CrAsH cro
2nd November 2011, 21:46
It is working just fine for me, but i am not using audio passthrough.

You can get audio from MPC-HC or MePo?
I get noise in MPC-HC even if passthrough is disabled...

SEt
2nd November 2011, 21:55
Even with stride request it doesn't look good at all: for YV12 data chroma stride is half the luma stride. Minimal stride that can be requested is width, but is chroma's 'half' rounded up or down? Nowhere said as it's assumed to be even.

Xaurus
2nd November 2011, 21:58
Hi nev,

I have uploaded a video I shot when suddenly LAV audio decided to drop out on me again.
Please, if you have any way for me to debug/log this I am happy to do it. I am amazed that I am the only one with this problem. :(

click for mp4 (http://home.halden.net/mordor/audio_dropout.mp4)

We were watching a normal mkv, the dropout happened first after 20 minutes then it always happened after each ~1 second when seeking (as you can see in the movie). This is exactly the same behavior that has happened 3 times already.
If I reload the file and seeking to the same spot, it plays fine. It has never happened immediately after opening a file.

LAV Filters 0.38, madvr 0.77, reclock 1.8.7.7 (wasapi), mpc-hc 1.5.3.3801. Audio is decoded in LAV audio and sent over HDMI.

Thunderbolt8
2nd November 2011, 22:12
what library does LAV Audio use when decoding AC3? libavcodec? arcsoft libraries?

Superb
2nd November 2011, 22:49
You should not listen to rumors. In its default mode it will just take over AVI splitting, but if you disable it, the MS AVI Splitter should take over just fine. (Note that it should be disabled in the installer, if you disable it in LAV Splitters properties after installation, it might not work properly)
Just wondering... is this because of UAC? If it is, wouldn't it be possible to make the options panel ask for elevated permissions when it needs to use those?

Mr.White
3rd November 2011, 00:30
You can get audio from MPC-HC or MePo?
I get noise in MPC-HC even if passthrough is disabled...

It works fine for me in MPC-HC (DTS in Wav from dts cd 44.1KHz).
When not Bitsreaming, LavSplitter -> LavAudio -> Default DirectSound Device = Multicchannel PCM
When Bitsreaming, LavSplitter -> Reclock (wasapi) = DTS
If i use LavAudio when Bitstreaming, MPC-HC and GraphStudio crash.
It doesn’t work in MePo.

06_taro
3rd November 2011, 02:21
Patched builds (x86 and x64, with roytam1's rv30/40 seek on keyframes patch) :

Non-installer: LAVFilters-0.38-10-git-r1397(a13fba5).7z (http://j.mp/LAVFilters-r1397)
Installer: LAVFilters-0.38-10-git-r1397(a13fba5)-Installer.7z (http://j.mp/LAVFiltersI-r1397)

BatKnight
3rd November 2011, 03:08
DTS in WAV is still not working in ne version of LAV audio filter ???

Is there anything to configure or???
0.38 works for me. Not using passthrough though.
Just LAV Splitter + LAV Audio. Plays all my DTS in WAV.
I tested with dtsdecoderdll.dll and with dca, both worked.

0.37 worked too.

Bat

CrAsH cro
3rd November 2011, 09:40
It works fine for me in MPC-HC (DTS in Wav from dts cd 44.1KHz).
When not Bitsreaming, LavSplitter -> LavAudio -> Default DirectSound Device = Multicchannel PCM
When Bitsreaming, LavSplitter -> Reclock (wasapi) = DTS
If i use LavAudio when Bitstreaming, MPC-HC and GraphStudio crash.
It doesn’t work in MePo.

i don't use Reclock... So, in the end, when bitstreaming with LavSplitter and LavAudio...thing doesn't work...
I can only get it to work in GraphStudio if i disable passthrough... MPC-HC doesn't work with or without passthrough. Do you guys change some of the options in MPC-HC that comes with SAF6??? Or you do not use SAF at all???

hoborg
3rd November 2011, 09:46
MPC-HC doesn't work with or without passthrough. Do you guys change some of the options in MPC-HC that comes with SAF6??? Or you do not use SAF at all???

You need to add LAV audio decoder to MPC-HC external filters.
MPC-HC doesnot create the same default graph like Graphstudio.

Dogway
3rd November 2011, 10:52
Is it possible to implement delayaudio real time? So one doesn't need to restart MPC and audio sync should be easier

zoose
3rd November 2011, 12:55
Does LAV video support any sort of debug logging?

The application that comes with my DVB-T card allows specifying alternative MPEG2/H264 video decoders. LAV Video Decoder is listed in the dropdown but when selected doesn't work for some reason.

The only other MPEG-2 decoders installed on my system ffdshow and Arcsoft both work fine.

Pat357
3rd November 2011, 15:18
What could be the reason that Lav-vid doesn't work with raw h264 files ?
If I enable "raw video" in Lav-splitter, it's getting used to open the .h264 file (otherwise lav-splitter is not being used), but I get no video from Lav-vid.

CruNcher
3rd November 2011, 15:37
try another solution in the chain to fallback for example arcsoft or cyberlink though their are issues as well depending on the bitstream scenario with lav video though most of this is ffmpeg related

matthew_eli
3rd November 2011, 20:37
A simple question: will be ever supported 4K resolution by CUVID?

Thanks ;)

JEEB
3rd November 2011, 20:43
A simple question: will be ever supported 4K resolution by CUVID?

Thanks ;)As soon as the drivers, APIs etc. start supporting it. The newest hardware might be capable of it, but they sure haven't implemented it in software yet :P

Midzuki
3rd November 2011, 20:53
A simple question: will be ever supported 4K resolution by CUVID?

Just out of curiosity, do you already have a 90-inch monitor? :p

nevcairiel
3rd November 2011, 21:21
What could be the reason that Lav-vid doesn't work with raw h264 files ?
If I enable "raw video" in Lav-splitter, it's getting used to open the .h264 file (otherwise lav-splitter is not being used), but I get no video from Lav-vid.

raw h264 should play with the next version, however getting the duration and seeking does not work for them.

matthew_eli
3rd November 2011, 22:15
Just out of curiosity, do you already have a 90-inch monitor? :p

No no..I just would like to know whether would be possible to have also in VP4 and below (I have a 460M GTX) the 4K acceleration... ^_^

nevcairiel
3rd November 2011, 22:16
No no..I just would like to know whether would be possible to have also in VP4 and below (I have a 460M GTX) the 4K acceleration... ^_^

No.
The hardware needs to support it, and well, it doesn't.

CrAsH cro
4th November 2011, 09:48
Is it possible to implement delayaudio real time? So one doesn't need to restart MPC and audio sync should be easier

HELL YEAH! That will be great!!!!

CrAsH cro
4th November 2011, 09:51
You need to add LAV audio decoder to MPC-HC external filters.
MPC-HC doesnot create the same default graph like Graphstudio.

Well, then it all makes sense ... I thought that MPC-HC version inside SAF is internally configured to use LAV spliter and LAV audio??? will try today....

v0lt
4th November 2011, 13:40
http://www.youtube.com/watch?v=QDgN-5S-3DM or http://data.cod.ru/130739
The file is 24.989 fps, but the playback is ~18 fps (look statistics).
Why so?

After converting to matroska (http://www.mediafire.com/?smy82334ozhor36), the problem goes away.

silkshadow
4th November 2011, 16:14
I tried searching this thread but couldn't find an answer. I am using v0.38 and the status tab is showing nothing, everything is greyed out. However, everything seems to be rendering and playing fine, so there is no error. I just am trying to see if the arcsoft codec is being used or not.

I'm using Zoom Player 8 RC3 on win7 x86. I have LAV doing all audio formats. I am new to LAV just switched over to it for better DTS-MA support from Gabset, coreavc and FFDshow (replaced with LAV splitter, LAV video and LAV Audio). Output to a receiver via spdif. I am not bitstreaming (should I be?).

Is there something I should be doing to activate the status tab?

Thanks!

kalston
4th November 2011, 18:25
It may have been asked before but:

"Can LAV Audio decode DTS-HD?
A: Kind of. On its own, it cannot. But, LAV Audio supports using the ArcSoft DTS decoder, which allows decoding of full DTS-HD. Just drop the "dtsdecoderdll.dll" from the TMT3/5 Codecs directory into LAV Audio's directory, and enjoy. NOTE: This only works on 32-bit!"

That means it only works on a 32bit OS, right? Or are you referring to the 32bit version of LAV Filters? Is there no way to make it work on a 64bit OS?
I feel like this may have been asked already but my quick search was unsuccessful.

I don't have any DTS-HD files right now to test it (all my blurays with DTS-HD are ripped to my HDDs in FLAC using eac3to + ArcSoft DTS decoder).

nevcairiel
4th November 2011, 18:26
The OS doesn't matter, the important part is that your player is 32-bit.

zerowalker
4th November 2011, 19:04
Hey again, i am starting to use this LAV now and find it very good in many situations which it lacked from start (not complaining;O).
But i still have a recommendation which i really would like to see, and that is to make the subtitles increase to the size of the screen, like if i watch a 1280x720 video, it should be like 1920x1080 video (for subtitles), i hope you understand;D
But of course it´s only my wish, and i don´t really think anyone else wants it bad or if they even care, so do what you want with it;D!

Keep up the good work, Near Carrier;D!

Keiyakusha
4th November 2011, 20:44
zerowalker
OMG, again... LAV has nothing to do with subtitles rendering! Change their size in whatever you use to load subtitles... How can people think that they use some features of LAV that never actually was there and probably never will?

SamuriHL
4th November 2011, 21:40
Agreed. It's the subtitle renderer's job to scale the subtitles, NOT the splitter. And LAV filters do not include a subtitle renderer.

nevcairiel
4th November 2011, 21:41
Its not only about whos job it is, its all out impossible for the splitter to do it. :)

kalston
4th November 2011, 21:50
The OS doesn't matter, the important part is that your player is 32-bit.

Great! I just need to try some DTS-HD files now then :)

Boo
4th November 2011, 21:53
Think I found a bug.

AVI files (xvid encoded in this case) with zero B-Frames (max_bframes 0) will freeze the player.
MPC-HC - LAV Splitter - LAV Video - LAV Audio v.038

Uploaded a small sample:
http://www.mediafire.com/?t52j52cp1v4gw96

nevcairiel
4th November 2011, 21:56
Think I found a bug.

AVI files (xvid encoded in this case) with zero B-Frames (max_bframes 0) will freeze the player.
MPC-HC - LAV Splitter - LAV Video - LAV Audio v.038

Uploaded a small sample:
http://www.mediafire.com/?t52j52cp1v4gw96

Plays just fine here.

Boo
4th November 2011, 22:00
I went through the MPC settings and selected EVR Custom instead of madVR and now all is fine.

Thanks for the great work by the way.

SamuriHL
4th November 2011, 22:11
Great! I just need to try some DTS-HD files now then :)

Yea I've been using it on my X64 systems no problem. Just make sure you have a 32 bit player and are using the 32 bit version of LAV filters (obviously) and you're good. The reason I'm decoding now (again) vs bitstreaming is that J River's MC17 offers a feature similar to ReClock that stabilizes the playback and can't really do its job when bitstreaming. It works very well.

zerowalker
4th November 2011, 23:11
Oh sorry;O
I am not to good with this stuff;O
But can anyone recommend a way to do it then?
I use Directvobsub currently;D!

Sorry but hope you don´t get the wrong impression, i don´t want to annoy you, i just lack knowledge on this parts;S

secvensor
5th November 2011, 00:55
In video there are no autolevels, and the audio the codec start playing some audiofiles the click in the beginning.

pankov
5th November 2011, 01:15
Any progress on SW based deinterlacing?

or a CUVID deinterlacing with software decoding?
Nev,
what happened to your tests of this? what were the results?
Nev,
did I miss your answer or you missed my question there ... or you simply prefer not to answer it right now?

nx6
5th November 2011, 02:39
zerowalker
OMG, again... LAV has nothing to do with subtitles rendering! Change their size in whatever you use to load subtitles... How can people think that they use some features of LAV that never actually was there and probably never will?
Honestly the subtitle size is set by the original typesetter (if we're talking about Subststion alpha format). The script has the resolution of the video listed in it. If you scale your 720p video up to fill a 1080p screen, the size of the subtitles will scale up with the rest of the picture. They're the same percentage to screen height they were before.

Agreed. It's the subtitle renderer's job to scale the subtitles, NOT the splitter. And LAV filters do not include a subtitle renderer.

Its not only about whos job it is, its all out impossible for the splitter to do it. :)

Actually it's not impossible, and I was going to request this feature as well. There is a real setting on Haali's splitter to scale subtitles (substation alpha format at least). I used it last night to watch some files that I found the subtitle size too small to read comfortably from my normal viewing distance, I set the scaling to 120% and it did increase the subtitle size 20% with no change in position or typeface, etc (except really long lines that would go offscreen in their new size now wrapped automatically to prevent this).

SamuriHL
5th November 2011, 02:46
Actually it's not impossible, and I was going to request this feature as well. There is a real setting on Haali's splitter to scale subtitles (substation alpha format at least). I used it last night to watch some files that I found the subtitle size too small to read comfortably from my normal viewing distance, I set the scaling to 120% and it did increase the subtitle size 20% with no change in position or typeface, etc (except really long lines that would go offscreen in their new size now wrapped automatically to prevent this).

It really doesn't matter if a splitter can or can't do it. It's not where it SHOULD be done. It should be done by the subtitle renderer.

zerowalker
5th November 2011, 04:01
Okay thanks;D
That was the point i asked before, i mean, i currently use LAV for decoding, then ffdshow to decode Uncompressed as i want it to resize to my screen size to make the subtitles better.
So maybe you can add LAV resize?
Or is that as well what a Subtitle renderer should do?

Well if you find a solution anyone, please post it, i would appreciate it;D!