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

Aleksoid1978
4th September 2013, 02:36
Feature Request: Add TAK chapter support to LAV Splitter. Basically, I encode my albums as a single file with an embedded cuesheet that splits the tracks accordingly.

Can you upload a sample with embedded cuesheet.

Libeluratio
4th September 2013, 06:03
Hi everyboy, (sorry for my english)

I'm looking for a way to decode dts-hd with lav audio, but not the "simple" dts, I need this one to be send to ffdshow audio and decoded with it. Is that possible ? if yes, how to do this, and if no, please why ?

I need this because, because of my hardware setup (I think), I need different audio delays between dts, ac3, true-hd, and dts-hd tracks (all delays are differents depending on the audio codec). So I'd like to use ffdshow audio presets settings to manage my dts, ac3, and true-hd delays but, since it can't decode dts-hd unlike lav audio, I need this one to handle dts-hd only and no dts.

I'm not sure I'm very clear ?

Thanks !!

nevcairiel
4th September 2013, 07:25
Feature Request: Add TAK chapter support to LAV Splitter. Basically, I encode my albums as a single file with an embedded cuesheet that splits the tracks accordingly.

This is already planned, however if you have a sample file, then i can make sure it works for TAK as well (i only have APE, FLAC and WV files with this feature, iirc)


I'm looking for a way to decode dts-hd with lav audio, but not the "simple" dts, I need this one to be send to ffdshow audio and decoded with it. Is that possible ?

This is not possible.
LAV can either decode all DTS, or none. There are no plans for anything else.

The primary reason for this is that you cannot really tell if something is DTS-HD until you've actually started decoding it, and that is too late to switch decoder.

Libeluratio
4th September 2013, 09:36
Thank for your answer but in that case, why is it possible to chose to bitstream dts-hd and no dts ? You said that the difference between dts-hd and dts is not detectable until lav start decoding, right ?

nevcairiel
4th September 2013, 09:43
You can't choose that. You have to choose dts to be able to choose dts-hd. If dts-hd is not choosen, it'll bitstream the dts core and discard the HD parts, but it'll still bitstream. If dts is not choosen, it'll not bitstream dts at all.

Mercury_22
4th September 2013, 10:02
Nev if you can get your hands on Fast&Furious 6 BD there are some glitches with the extended version (both versions on the same disc) = picture freeze sound getting out of sync at around min 39, 44, and others Thing is that TMT and even XBMC don't have those glitches at the same points /minutes

Sorry can't post samples due to the size of the samples

nevcairiel
4th September 2013, 10:06
That BD won't even be released until end of September here, and i'll be on vacation then, so don't expect any fixes for the next two month. You could cut a small sample instead. :p

Mercury_22
4th September 2013, 10:14
That BD won't even be released until end of September here, and i'll be on vacation then, so don't expect any fixes for the next two month. You could cut a small sample instead. :p
Kinda difficult because it seems that the glitches are happening at playlist or m2ts changing
I'll see what I can do

EDIT Yes it happens at m2ts changing only with the extended version and with small samples (cuts) cant make it work at all, also I can play each m2ts file without any problem

EDIT 2 MPC-BE's internal splitter it's working without any problem and with any decoder (internal or LAV) IF I select the second audio track ( which seems to be the correct track for the extended version) but with lav splitter no such luck

EDIT 3 I spoke too soon MPC-BE's internal splitter it's failing at some times too (just before credits) but it's still getting less errors

Mangix
5th September 2013, 01:08
This is already planned, however if you have a sample file, then i can make sure it works for TAK as well (i only have APE, FLAC and WV files with this feature, iirc)


https://mega.co.nz/#!DdxSTAZS!cQW53SKyyw5ff8d0kEel9xtFlSkfhXVWTOtBeaw_UMA

There are three songs in the file. AFAIK, TAK is also using APEv2 tags so it should be similar to the others.

An interesting question would be how multiple disks would be handled. Maybe chapters with subchapters being the tracks.

Mercury_22
5th September 2013, 13:26
Bad AR in avi

Sample (http://www.multiupload.nl/QM1323P7GD)

P.S. MPC-BE's avi splitter seems to have the correct AR

nevcairiel
5th September 2013, 13:30
Bad AR in avi

Sample (http://www.multiupload.nl/QM1323P7GD)

P.S. MPC-BE's avi splitter seems to have the correct AR

The container seems to say 5:4 and the video stream 16:9.
If LAV Video is set to its default settings, it'll take the video stream AR, and the video looks alright. If i disable stream AR, it looks bad.

So what behavior did you expect?

Mercury_22
5th September 2013, 13:46
The container seems to say 5:4 and the video stream 16:9.
If LAV Video is set to its default settings, it'll take the video stream AR, and the video looks alright. If i disable stream AR, it looks bad.

So what behavior did you expect?

I was expected the default behavior 16:9 I have LAV video on default = indeterminate

EDIT Does it look 16:9 for you with default (= indeterminate) settings in LAV video ?

EDIT 2 If I use "Checked" in lav video then yes it has a 16:9 AR but not with default = indeterminate and AFAIK "AVI does not provide a standardized way to encode aspect ratio information"

nevcairiel
5th September 2013, 14:17
Sadly there is never a "right" answer to such problems, there will be files which work with one setting, and files which work with another.
I could disable it for AVI again if i'm convinced that AVIs can never really be trusted, or at least not in most cases, but its all a bit random.

Mercury_22
5th September 2013, 15:19
Sadly there is never a "right" answer to such problems, there will be files which work with one setting, and files which work with another.
I could disable it for AVI again if i'm convinced that AVIs can never really be trusted, or at least not in most cases, but its all a bit random.

Well since even WMP it's using the 16:9 in this case I think "the standard " should be the "video stream" AR for avi

Mixer73
6th September 2013, 05:06
That is why i can only use my Nvidia GPU (i have asus ux32vd) and lav filters with cuvid. That is why my only solution to have everything working perfectly is to have the resizing fix in lav video decoder.

If I may make comment on this, for the kind of work you are doing, you are using completely the wrong kind of machine. Ultrabooks are designed for light weight and severely compromise processing power and grunt for cooling and battery life.

If you got a different type of laptop you might well be able to get away with software processing.

itsonlyjustincase
6th September 2013, 09:30
If I may make comment on this, for the kind of work you are doing, you are using completely the wrong kind of machine. Ultrabooks are designed for light weight and severely compromise processing power and grunt for cooling and battery life.

If you got a different type of laptop you might well be able to get away with software processing.

I don't get your comment at all ! Whatever the PC i would have it would be the same as the problem is coming from my software Serato Video which doesn't support Intel GPUs and has a bad renderer that creates weird displaying of certains videos when using Lav. The soft doesn't permit to choose the codecs neither as i explained it before.

So perhaps you could try to explain me what you really meant and the goal of what you were saying as the problem isn't my pc at all. Plus i'll add that the high-end ultrabooks (like mine when i bought it) are more than strong enough to execute such softwares.

You should go one the website Serato and see the minimal and recommanded specs for Serato scrath live and Serato Video. The ux32vd i have is so much stronger that was is needed. Perhaps you may think it's a software like adobe premiere of any strong video editing soft. It's not that at all........Some dj play the audio version with eeepc......

nevcairiel
6th September 2013, 14:38
Kinda difficult because it seems that the glitches are happening at playlist or m2ts changing
I'll see what I can do

EDIT Yes it happens at m2ts changing only with the extended version and with small samples (cuts) cant make it work at all, also I can play each m2ts file without any problem

EDIT 2 MPC-BE's internal splitter it's working without any problem and with any decoder (internal or LAV) IF I select the second audio track ( which seems to be the correct track for the extended version) but with lav splitter no such luck

EDIT 3 I spoke too soon MPC-BE's internal splitter it's failing at some times too (just before credits) but it's still getting less errors

I enabled the generic timestamp fixing code for Blu-rays, it should help in case the Blu-ray is not 100% perfectly authored and there is small gap in the stream. It might end up in a tiny hic-up during playback still, but at least it will not freeze anymore.

Please test.

Mercury_22
6th September 2013, 16:06
I enabled the generic timestamp fixing code for Blu-rays, it should help in case the Blu-ray is not 100% perfectly authored and there is small gap in the stream. It might end up in a tiny hic-up during playback still, but at least it will not freeze anymore.

Please test.

Yes it's fixed :thanks: and as you've said now there are just some very very very..." tiny hic-ups" :) which if don't look for you'll miss them

One more thing is it possible to make LAV select the coorect (= the second) audio track for the extended version as xbmc does (without using the bd menu option ) ?

once again thanks for the fix

nevcairiel
6th September 2013, 16:09
One more thing is it possible to make LAV select the coorect (= the second) audio track for the extended version as xbmc does (without using the bd menu option ) ?

Whats wrong with the first track?
LAV only does language and quality based decisions, if there are no such factors, it'll be hard.

Mercury_22
6th September 2013, 16:15
Whats wrong with the first track?
LAV only does language and quality based decisions, if there are no such factors, it'll be hard.

First track it's for the theatrical version (which is a little shorter so lav it's picking the longest video = extended with the first audio = theatrical since audio language and audio quality are the same)

But XBMC it's selecting the second audio without the use of the menu But I can't say how:confused:

nevcairiel
6th September 2013, 16:16
That must be one terribly authored Blu-ray. Usually you use the same track for both editions, and just add the additional parts in the middle, like with the video.
Maybe i can make the Blu-ray demuxer read the stream information from the BD playlist, and use that for better stream selection, but its all a bit meh.

mastan
7th September 2013, 11:48
LAV Splitter does not produce video output pin in these two mkv files: http://labs.divx.com/node/127909
MediaInfo:

Format : Matroska
Format version : Version 4 / Version 2
File size : 101 MiB
Duration : 12mn 14s
Overall bit rate : 1 153 Kbps
Encoded date : UTC 2013-08-01 21:42:13
Writing application : mkvmerge v6.2.0 ('Promised Land Rovi v1.0.2') built on Jul 9 2013 16:13:44
Writing library : libebml v1.3.0 + libmatroska v1.4.0

Video
ID : 1
Format : V_MPEGH/ISO/HEVC
Codec ID : V_MPEGH/ISO/HEVC
Duration : 12mn 14s
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 24.000 fps
Default : Yes
Forced : No

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : A_AAC
Duration : 12mn 14s
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Compression mode : Lossy
Default : Yes
Forced : No

nevcairiel
7th September 2013, 11:49
There is no standard for HEVC in MKV yet, and until there is, LAV will not support it.
And once there is, the DivX MKV files will not be compatible with the standard anyway.

Such a company should not invent their own format, instead coordinate with the Matroska developers. Their old files will in the future most likely not play properly in compliant players.

SamKook
7th September 2013, 14:36
I don't get your comment at all ! Whatever the PC i would have it would be the same as the problem is coming from my software Serato Video which doesn't support Intel GPUs and has a bad renderer that creates weird displaying of certains videos when using Lav. The soft doesn't permit to choose the codecs neither as i explained it before.

So perhaps you could try to explain me what you really meant and the goal of what you were saying as the problem isn't my pc at all. Plus i'll add that the high-end ultrabooks (like mine when i bought it) are more than strong enough to execute such softwares.

You should go one the website Serato and see the minimal and recommanded specs for Serato scrath live and Serato Video. The ux32vd i have is so much stronger that was is needed. Perhaps you may think it's a software like adobe premiere of any strong video editing soft. It's not that at all........Some dj play the audio version with eeepc......

The other point is that as this software processes the video in real-time cause of the fact it is a live video mix one. So it allow to load effect in real-time, accelerate, slow down etc...the result is that it eats lots of ressources. Using it with ffdshow results in 90% CPU and bad FPS.

As you said yourself, your laptop isn't strong enough for ffdshow which would solve your problem.
You may be over the minimal requirement, but as its name implies, that's only the bare minimum to use the software. More complex operations(like resizing) require more power which your laptop can't provide as you said yourself.

itsonlyjustincase
7th September 2013, 19:04
As you said yourself, your laptop isn't strong enough for ffdshow which would solve your problem.
You may be over the minimal requirement, but as its name implies, that's only the bare minimum to use the software. More complex operations(like resizing) require more power which your laptop can't provide as you said yourself.

I understand as u guys don't really want to help.........i can open 10 1080p videos at the sametime using lav filters and hardware acceleration.......the problem comes really from the software and its lack of optimisation. That's why the resizing would have been a workaround. I donch't think ffdshow without the use of quicksync would permit this soft to work better even on a new i7 haswell. When something isn't coded and optimized well it's a problem. My question was if someone could add the ffdshow resizing function to Lav and if yes how much would it cost. Period.

itsonlyjustincase
7th September 2013, 19:05
You don't change a computer for 1 software when everything is working fine. That's why i also understand Nev which doesn't want to do it as its lav filters work fine with almost anything else........

sneaker_ger
7th September 2013, 19:34
Not sure if I understand your problem correctly, but you do know that it is possible to combine LAV Video and ffdshow? In the ffdshow codecs options you can find "uncompressed video" at the very bottom of the list.

SamKook
7th September 2013, 19:40
Nev said many times that he won't include resizing and the likes in lav so that option out.
We're only trying to give you alternatives. The CPU in the ux32vd is underclocked to keep it from overheating in such a tight space which really harms single threaded performance and is the problem that you're experiencing with ffdshow. You can play multiple video at the same time without problem since you have many core and threads, but each video can't use more than one with most decoders.
A laptop with a higher clock per core would really help you out here and it's what Mixer73 was trying to tell you. A normal i7 processor has a clock speed almost twice as fast as yours which would very likely make ffdshow run without problem for such a small video even with terrible optimization.

If my livelihood depended on my laptop, I would certainly consider upgrading it for 1 software which doesn't work fast enough, but that's up to you, we're only telling you about different possibilities.

clsid
7th September 2013, 21:00
Changing the resizing algorithm in ffdshow could improve performance. Resizing to screen size is also bad for performance. Instead you should experiment with different settings. Simply resizing to the aspect ratio of your screen should have the same end result, but with much better performance.

itsonlyjustincase
8th September 2013, 13:34
Not sure if I understand your problem correctly, but you do know that it is possible to combine LAV Video and ffdshow? In the ffdshow codecs options you can find "uncompressed video" at the very bottom of the list.

My soft doesn't allow the use of multiple codecs like mpc-hc can for example

itsonlyjustincase
8th September 2013, 13:35
Changing the resizing algorithm in ffdshow could improve performance. Resizing to screen size is also bad for performance. Instead you should experiment with different settings. Simply resizing to the aspect ratio of your screen should have the same end result, but with much better performance.

That s what I would need in LAV Video decoder so that I can benefit from cuvid

itsonlyjustincase
8th September 2013, 13:38
Nev said many times that he won't include resizing and the likes in lav so that option out.
We're only trying to give you alternatives. The CPU in the ux32vd is underclocked to keep it from overheating in such a tight space which really harms single threaded performance and is the problem that you're experiencing with ffdshow. You can play multiple video at the same time without problem since you have many core and threads, but each video can't use more than one with most decoders.
A laptop with a higher clock per core would really help you out here and it's what Mixer73 was trying to tell you. A normal i7 processor has a clock speed almost twice as fast as yours which would very likely make ffdshow run without problem for such a small video even with terrible optimization.

If my livelihood depended on my laptop, I would certainly consider upgrading it for 1 software which doesn't work fast enough, but that's up to you, we're only telling you about different possibilities.

Nowadays for performance purposes it s better to use hardware acceleration. In your opinion why Intel has implemented quick sync?! It s the future and also the present of video programs. My problem is that as my software doesn't support Intel I have to use lav video decoder. The soft doesn't support dxva neither

Mercury_22
8th September 2013, 15:29
After latest updates QuickSync x64 won't build (x86 it's building OK) (...unresolved external symbol...)

nevcairiel
8th September 2013, 16:28
After latest updates QuickSync x64 won't build (x86 it's building OK) (...unresolved external symbol...)

Should be fixed, too much copy-pasta.

Reino
8th September 2013, 23:39
Unlike DC-BSM, LAV refuses to play mp4-files found in this archive (http://www.hwigroup.com/dab-samples.zip). In GraphStudioNext LAV Splitter's stream-selection says "soun". As this most likely needs to be "Soundhandler", there's probably something 'wrong' the with header.

nevcairiel
9th September 2013, 09:41
Unlike DC-BSM, LAV refuses to play mp4-files found in this archive (http://www.hwigroup.com/dab-samples.zip). In GraphStudioNext LAV Splitter's stream-selection says "soun". As this most likely needs to be "Soundhandler", there's probably something 'wrong' the with header.

It looks like these files use AAC which is encoded with the 960 MDCT window size, which the ffmpeg decoder does not support, and as such LAV Audio cannot play.

Judging from the name of the archive, its from digital audio broadcasts, where apparently the 960 MDCT is common, even if its otherwise rather uncommon in AAC.

Anyhow, there isn't anything i can do, i lack the required knowledge about AAC to even attempt to implement it - i would suggest to ask the FFmpeg/Libav developers if they considered working on it.

CiNcH
9th September 2013, 11:26
too much copy-pasta
I love pasta http://fstatic0.mtb-news.de/img/photos/7/7/8/7/_/medium/homer-sabber.jpg

Sorry for OT. I had to do that...

Reino
9th September 2013, 22:33
DAB+ indeed. Got link from this article (http://nl.hardware.info/reviews/4765/4/noxon-dab+-stick-review-digitale-radio-in-nederland-test-dab+-in-de-praktijk). For me it's no problem, since I don't use it (yet), but I noticed LAV couldn't play it, so I thought I'd report about it.

Lol @ CiNcH.

AngelGraves13
10th September 2013, 08:59
NVIDIA CUVID causes random pixelation in VC-1.

Switching to DXVA 2 (copy-back) is much better.

nevcairiel
10th September 2013, 09:01
NVIDIA CUVID causes random pixelation in VC-1.

Switching to DXVA 2 (copy-back) is much better.

Then don't use CUVID.
It uses NVIDIAs driver for the decoding, there is nothing that can be done about it.

dukey
10th September 2013, 10:52
NVIDIA CUVID causes random pixelation in VC-1.

Switching to DXVA 2 (copy-back) is much better.

I've seen this before with CUVID mode also

wanezhiling
10th September 2013, 15:41
And CUVID always run on 3D state, so now any reason to use CUVID, nev? :P

DragonQ
10th September 2013, 15:49
Yeah, you can post-process after hardware deinterlacing using CUVID.

SamuriHL
10th September 2013, 20:12
I've been using software decoding. No issues. Cuvid just has to many limitations.

Etched in blood by a katana...

mindbomb
11th September 2013, 01:15
NVIDIA CUVID causes random pixelation in VC-1.

Switching to DXVA 2 (copy-back) is much better.

what graphics card?
geforce 8/9/200 only support partial hardware acceleration for vc-1 and mpeg 2, which is only possible through cuvid.
dxva copyback and native should fall back to software decoding in these cases.

I've had the issue on a gtx 260 before, but iirc, it was fixed with newer drivers. Otherwise go with forceware 275.

ryrynz
11th September 2013, 14:16
Nev, some time ago I requested the option of providing stereo sound duplication for surround speakers and you agreed to look into it.
Is it possible to see this implemented sometime soon? It would save time checking if video is stereo output and if it is switching the receiver
into 7 channel stereo mode and then having to switch it back for 6 channel AAC, Dolby etc, thanks.

nevcairiel
11th September 2013, 14:40
Its not very high on the list. I wouldn't really expect it this year

e-t172
11th September 2013, 19:01
Personally I would advise against implementing this feature because it is technically wrong (stereo is meant to be reproduced in stereo, not with rear speakers), so I'm not sure what is the point of adding a feature for shooting yourself in the foot.

JimH
11th September 2013, 22:43
I'd like to congratulate nevcairiel on his new role and wish him continued success with the LAV Filters. The world will be a better place.

ryrynz
11th September 2013, 22:49
Personally I would advise against implementing this feature because it is technically wrong (stereo is meant to be reproduced in stereo, not with rear speakers), so I'm not sure what is the point of adding a feature for shooting yourself in the foot.

Technically wrong? Then why are there such modes on many receivers?
I don't think my ears are going to shoot my foot here, course everyone has their own preference.
Your foot might not be safe but nobody would be forcing you to tick the box, heck you might even like how it sounds.
There's a lot more presence using stereo x7, I much prefer it over DTS Neo and Dolby Pro logic I and II.