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

nevcairiel
17th April 2015, 16:14
If its broken with CUVID, then it is the NVIDIA Hybrid decoder just not liking this stream. Nothing can be done on my side.
You can report it to NVIDIA and hope they improve it.

Half-Light Agent
17th April 2015, 17:35
even with CUVID HEVC support the GPU would be to slow.
i'm not even sure if HEVC hybrid decoding with CUVID/DXVA is a lot faster than simple CPU decoding using GPU slower than nvidia 460.

and about coreAVC. DXVA should be the same. (and it was the same on my ION)
if coreAVC really uses CUDA and that not over CUVID. DXVA should be a lot faster.

I have never had reason to consider how CoreAVC decodes x264 once it was installed, but the reduction of CPU activity is of such a degree that I'm fairly confident it offloads AVC to CUDA as it indicates. 1080p AVC plays back comfortably on an Intel Atom 230.

If there is some way to do the same for HEVC, that would extend the horizon for an entire generation of hardware. I doubt either the h265 group or NVIDIA are interested in doing much themselves along these lines, as there the new standard provides a nice opportunity to render a lot of hardware in need of replacement.

nevcairiel
17th April 2015, 17:44
There is NO CUDA decoder for H264/AVC. It uses a dedicated decoding chip in the GPU, it does NOT use CUDA. If anyone claims it uses CUDA, it is lying and misleading users.
The GPU needs to support the codec you want to decode, your ancient GPU does not support it, so you don't get HEVC decoding.

petran79
17th April 2015, 18:23
A DWORD value with the name of the exe as key (without path), and the value "1".

thanks.

e-t172
17th April 2015, 18:36
There is NO CUDA decoder for H264/AVC.

How can you be so sure? Theoretically, I would assume it's possible to write a video decoder in CUDA or OpenCL itself (as in, actually implement a decoder using the CUDA/OpenCL language), or at least offload parts of it. It would probably be very hard, and wouldn't be as efficient as direct GPU support, but it guess it could still be faster than the CPU.

captainadamo
17th April 2015, 18:40
How can you be so sure? Theoretically, I would assume it's possible to write a video decoder in CUDA or OpenCL itself (as in, actually implement a decoder using the CUDA/OpenCL language), or at least offload parts of it. It would probably be very hard, and wouldn't be as efficient as direct GPU support, but it guess it could still be faster than the CPU.

I'm pretty sure nev's comment was in the context of CoreAVC.

Half-Light Agent
17th April 2015, 19:03
There is NO CUDA decoder for H264/AVC. It uses a dedicated decoding chip in the GPU, it does NOT use CUDA. If anyone claims it uses CUDA, it is lying and misleading users.
The GPU needs to support the codec you want to decode, your ancient GPU does not support it, so you don't get HEVC decoding.

I have seen a screenshot of a GTX-660Ti decoding HEVC through CUVID, although apparently it oughtn't.

http://i.imgur.com/YWFOSzS.png

Might this be an exploitable fluke?

EDIT: My mistake. In March, NVIDIA officially added HEVC decoding support to a number of VDPAU cards (http://www.nvidia.com/download/driverResults.aspx/83515/en-us), including the GTX-660Ti.

D2MAC
17th April 2015, 19:10
Play fine using DXVA Native + GTX 960.

Play fine DXVA NATIVE + GTX 960, only HEVC low profile.
(Example : Elecard 4K video about Russian Beatles - 8 bits)

But with HEVC 10 bits UHD 4K from ASTRA/EUTELSAT demo, it doesn't work at all -> no DXVA2 enabled.
(only ok with latest MPC-BE)

huhn
17th April 2015, 19:53
I have never had reason to consider how CoreAVC decodes x264 once it was installed, but the reduction of CPU activity is of such a degree that I'm fairly confident it offloads AVC to CUDA as it indicates. 1080p AVC plays back comfortably on an Intel Atom 230.

would be the same with DXVA/CUVID from lavfilter but for free of cause.

CUVID was very important before DXVA was a "thing". since DXVA it is kind of superseded.
at the moment CUVID just wastes power by forcing the GPU in highest powerstate.

P.J
17th April 2015, 20:14
Play fine DXVA NATIVE + GTX 960, only HEVC low profile.
(Example : Elecard 4K video about Russian Beatles - 8 bits)

But with HEVC 10 bits UHD 4K from ASTRA/EUTELSAT demo, it doesn't work at all -> no DXVA2 enabled.
(only ok with latest MPC-BE)

Use DXVA2 copy-back.

D2MAC
17th April 2015, 22:02
Use DXVA2 copy-back.

Hi,

Thanks

DXVA2 copy-back + GTX960: UHD 4K 10 BITS ASTRA/EUTELSAT

it's work only with latest LAV 0.64.52 build (16/04/2015)
(ok with enhanced video renderer or madvr)
(files froms nightly MPC-HC)

Still not ok with DXVA2 NAtive, but it's better. (20% CPU)

MeteorRain
17th April 2015, 22:24
If its broken with CUVID, then it is the NVIDIA Hybrid decoder just not liking this stream. Nothing can be done on my side.
You can report it to NVIDIA and hope they improve it.

Gotcha.:thanks:

pirlouy
17th April 2015, 23:26
I've discovered madVR has now a 64 bits. What about dts-hd decoder ? Do you know if there's something being worked to have a 64 bits dts-hd decoder ?
I remember once reading there were a "beginning" on ffmpeg project.

huhn
17th April 2015, 23:27
get the lavfilter nightly.

nevcairiel
17th April 2015, 23:29
Still not ok with DXVA2 NAtive, but it's better. (20% CPU)

DXVA2 Native does not support 10-bit, and thats very unlikely to change.

pirlouy
18th April 2015, 00:11
I searched through the commits and I finally ended on dcadec (https://github.com/foo86/dcadec).

Is it working well for classic DTS-HD from Blu-Ray ? If yes, that's great, and I'll wait for final LAV builds to test this 64 bits.

ryrynz
18th April 2015, 00:29
Is it working well for classic DTS-HD from Blu-Ray ? If yes, that's great, and I'll wait for final LAV builds to test this 64 bits.

Don't get why you don't just install it and test it for yourself... But yes it works fine.

Why wait for final? Nev's master builds are as stable as anything final.

Half-Light Agent
18th April 2015, 00:38
would be the same with DXVA/CUVID from lavfilter but for free of cause.

CUVID was very important before DXVA was a "thing". since DXVA it is kind of superseded.
at the moment CUVID just wastes power by forcing the GPU in highest powerstate.

Thanks for your thoughts on the matter,

Half-Light Agent

ocyl
18th April 2015, 06:52
EDIT: My mistake. In March, NVIDIA officially added HEVC decoding support to a number of VDPAU cards (http://www.nvidia.com/download/driverResults.aspx/83515/en-us), including the GTX-660Ti.
No, it did not. Currently, the only nVidia GPU that has VDPAU feature set F support in hardware is GM206, which is used in GeForce GTX 960.

http://http.download.nvidia.com/XFree86/Linux-x86_64/349.16/README/supportedchips.html

betaking
19th April 2015, 19:41
last GIt can not complie X64 build Lav!
http://oi58.tinypic.com/xkuidd.jpg

Magik Mark
20th April 2015, 00:01
Is LAV dithering has similar algorithm as provided in madVR?

Asmodian
20th April 2015, 01:47
Is LAV dithering has similar algorithm as provided in madVR?

No, madVR uses higher quality dithering. LAV's dithering will never be used when rendering with madVR and using LAV's default settings.

nevcairiel
21st April 2015, 13:43
LAV Filters 0.65

LAV Splitter
- NEW: Support for MKV subtitle Cues to show subtitles immediately after a seek
- NEW: Attachments and embedded cover art images are exported through the IDSMResourceBag interface
- Fixed: Improved demuxing of HEVC in MPEG-TS and increased the reliability of the SPS/PPS/VPS extraction
- Fixed: Demuxing Blu-rays/MPEG-TS where the first stream was not a video stream could result in broken timestamps
- Fixed: Seeking in MKVs which are currently being written is more reliable

LAV Video
- Fixed: Improved HEVC DXVA2 decoding on a few samples
- Fixed: Playback of VFR MPEG-4 in AVI had wrong timestamps in 0.64
- Fixed: Improved handling of DVD subtitles without timestamps

LAV Audio:
- NEW: Native DTS-HD decoding using libdcadec
- Changed: 5.1 audio prefers the speaker mask with side channels, to match recent specifications

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

DTS-HD decoding support through libdcadec

LAV Audio now includes libdcadec (https://github.com/foo86/dcadec), a full-featured DTS-HD decoder.
All known DTS-HD MA and DTS-HD HRA samples are supported and decoded perfectly lossless, up to 7.1, 192kHz, 24-bit (with a possible exception in a few weird samples). In addition, it also supports a long list of core extensions, including XCH (for 6.1 DTS ES streams), and X96 (for DTS 96/24).

The only unsupported DTS format that I know of is DTS Express, which is used for interactive commentary tracks on Blu-rays.

If the ArcSoft decoder is present, it will continue to be used for the time being, but in the long run I may even remove it.

If you find anything that doesn't seem to behave properly with the new DTS decoder, please do report and I'll work with the libdcadec author to see what is going on!

------

I wanted to get some more features done for this release, but time was short, and it felt like this was worth releasing anyway, so, have fun with it!

kalston
21st April 2015, 14:23
Nice! Btw in the original post next to the dl link for the installer it still says 0.64 :D (even though the link does point to 0.65)

ddjmagic
21st April 2015, 20:16
Thanks for the new release! :)

Bozotheclown
21st April 2015, 22:00
in audio properties -> formats -> in libdcadec section should be add (DTS, DTS-HD, DTS-HR, etc.) like in ac3?
I mean common used codec name

rd1979
22nd April 2015, 03:34
This is a big release to me, even if it doesn't have everything you wanted in it, a lot of longstanding little niggling issues I had are addressed here.
Thanks nev!

khanmein
22nd April 2015, 09:27
when i choose mpc-hc audio renderer @ sound device choose speaker (realtek ALC892) the sound is good but whenever i adjust the seekbar got the distortion & shuttering sound from any videos.

nevcairiel
22nd April 2015, 09:35
MPC-HC Audio Renderer is not recommended to be used at this point, but thats more of a topic for the MPC-HC thread.

khanmein
22nd April 2015, 10:40
MPC-HC Audio Renderer is not recommended to be used at this point, but thats more of a topic for the MPC-HC thread.

sorry bro, noted.

Ver Greeneyes
22nd April 2015, 16:08
I noticed that the changelog and download links on http://1f0.de/downloads/ are out-of-date, showing the changes for and linking to 0.61.2! This caused a Dutch news website I frequent to report the wrong changes (I left a comment with the correct changelog, also linking to this thread).

nevcairiel
22nd April 2015, 16:28
I removed the page and linked to GitHub instead. Don't feel like updating things in way too many places anymore.

iSunrise
22nd April 2015, 17:03
...If the ArcSoft decoder is present, it will continue to be used for the time being, but in the long run I may even remove it.
Ugh, didn't know that, I thought that the nightly builds already defaulted to the new decoder. Thanks for pointing that out, I must have missed that probably.

Did anyone do tests whether there is a general quality improvement due to the exceptional good documented and implemented code from foo86 compared to ArcSoft? Seems it is time to do a spectral analysis, when I have some time.

nevcairiel
22nd April 2015, 17:06
Both decoders are lossless, there is no quality difference.

XinHong
22nd April 2015, 20:23
Hi nevcairiel,

With this new release DXVA (native and CopyBack) does not work in DVBViewer (5.3.2, DVBSource 3.8.1.0), but it's working with the same recorded stream played in MPC-HC x86.
I tried several old releases and the last working one is 0.64.0-52, since 0.64.0-54 it does not work.

I can upload a sample if you need.

nevcairiel
22nd April 2015, 21:06
This will be fixed in an upcoming build. I do however urge the developers of TS source filters to scan the H264 stream for SPS/PPS and export that in the media type, so that decoders know right away what kind of video they are to expect, and these problems can be avoided entirely.

XinHong
22nd April 2015, 21:12
OK, thanks for the advise and the fix, I will post it in their forum.

James Freeman
23rd April 2015, 06:08
I can't force LAV Splitter on MPC-HC, it seems to always use the internal one (yes, prefer is selected).
Any idea?

Qaq
23rd April 2015, 07:01
Disable internal one(s).

Ver Greeneyes
23rd April 2015, 08:02
I removed the page and linked to GitHub instead. Don't feel like updating things in way too many places anymore.Thanks, that's fine - it clears up the confusion in any case :)

stax76
24th April 2015, 20:12
Can anyone play this with LAV Filters? Plays fine with MPC-BE.

http://1drv.ms/1bpjp7k

ID : 1
Format_Profile : Main 10@L5@Main
Codec/String : HEVC
Duration/String1 : 10s 43ms
BitRate/String : 1 610 Kbps
Width/String : 3 840 pixels
Height/String : 2 160 pixels
PixelAspectRatio : 1.000
DisplayAspectRatio/String : 16:9
FrameRate/String : 29.970 fps
FrameCount : 301
Resolution/String : 10 bits
StreamSize/String : 1.93 MiB (100%)
Title : Video
Encoded_Library : x265 - 1.6+174-4cccf22b00ee:[Windows][GCC 4.8.2][64 bit] 16bpp
Encoded_Date : UTC 2015-04-24 18:20:28

sneaker_ger
24th April 2015, 20:19
No problem at all. (Software decoding)

stax76
24th April 2015, 20:35
Thanks for testing, problem was normal EVR, custom works (I use a self coded player using EVR), is this a LAV Filters or a EVR problem? I'm on Win 7 with GTX 960.

SeeMoreDigital
24th April 2015, 20:54
Can anyone play this with LAV Filters? Plays fine with MPC-BE.
Yup... It plays okay (Win10 64-bit):)

NikosD
24th April 2015, 20:59
Thanks for testing, problem was normal EVR, custom works (I use a self coded player using EVR), is this a LAV Filters or a EVR problem? I'm on Win 7 with GTX 960.

What happens if you disable P010/P016 output ?

Does it work ?

stax76
24th April 2015, 21:18
@NikosD

It plays then, I didn't notice these options, thanks.

@SeeMoreDigital

Please verify that normal (non custom) EVR on Windows 10 supports 10-Bit.

huhn
24th April 2015, 22:47
@NikosD

It plays then, I didn't notice these options, thanks.

@SeeMoreDigital

Please verify that normal (non custom) EVR on Windows 10 supports 10-Bit.

i forced lavfilter to output p010 and MPC-HC simply crashes when i use normal EVR on windows 10. without forcing p010 NV12 is used.
maybe EVR for MF can do this. but currently you need madVR for 10 bit input.

outputting 10 bit is a hole different story...

stax76
24th April 2015, 23:54
Thanks for the test, for now I just disable P010/P016.

NikosD
25th April 2015, 06:36
I have reported in Intel forums the P010/P016 output issues as a bug of Intel drivers and not bug of LAV filters.

Nvidia supposedly has fixed that bug in their drivers and can work with output P010/P016.

But after Stax76's post using Win 7 and Nvidia 960 there seems to be a problem.

I have to ask again:
What is exactly the problem with Intel and Nvidia drivers regarding output of P010/P016 with LAV Video ?

Intel is still investigating the issue but has already replied in public that probably is a LAV filters issue, not their drivers - but it's still under investigation.

nevcairiel
25th April 2015, 07:43
Its not a LAV Filters issue. EVR is just incapable of accepting P010 or P016, but somehow Intel and NVIDIA managed to enable that in EVR, and then you get no image, because EVR just fails at it.
Although NVIDIA fixed that in a newer driver again last I checked.