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

tuco76
17th September 2014, 13:21
With madVR, LAV will never perform any dithering. Dithering in LAV is only performed when required, ie. when converting from 10-bit to 8-bit.

Thanks the quick reply nev!

NikosD
17th September 2014, 15:31
The file is invalid, seems like it was created before the spec was finalized.

It seems that latest official LAV filters 0.62 decode it fine!

Also, some nightly builds - even the newer ones - decode it fine.

Something from the very latest nightly builds, broke the compatibility.

nevcairiel
17th September 2014, 15:48
That doesn't change the reason though. There were a lot of checks added against broken samples that otherwise caused a crash, as a side-effect that can cause invalid samples that worked before (by accident) to stop working, but the sample has always been invalid, so its not a big concern.

NikosD
17th September 2014, 15:54
OK

Just to be sure that it's not a bug of the decoder/splitter or FFMpeg.

jebediah
19th September 2014, 13:46
Any idea why i don't get the correct sound from this source?
I'm using the latest Lav filter and it works great with ffdshow.

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 1h 51mn
Bit rate : 5 606 Kbps
Width : 1 920 pixels
Height : 802 pixels
Display aspect ratio : 2.40:1
Frame rate mode : Constant
Frame rate : 25.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.146
Stream size : 4.38 GiB (95%)
Writing library : x264 core 130 r2273 b3065e6
Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=20.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=62500 / vbv_bufsize=78125 / crf_max=0.0 / nal_hrd=none / ip_ratio=1.40 / aq=1:1.00
Default : Yes
Forced : No
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Audio
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Format settings, Endianness : Big
Codec ID : A_AC3
Duration : 1h 51mn
Bit rate mode : Constant
Bit rate : 192 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 154 MiB (3%)
Default : Yes
Forced : No

filler56789
19th September 2014, 14:42
Any idea why i don't get the correct sound from this source?
I'm using the latest Lav filter and it works great with ffdshow.

Please define "correct sound" :)

Also, and IMHO, 192kbps :confused: is not sufficient bitrate for 5.1 channels...
So you have either a buggy version of MediaInfo, or a bad AC3 stream...

Codec ID : A_AC3
Duration : 1h 51mn
Bit rate mode : Constant
Bit rate : 192 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits

Kurtnoise
19th September 2014, 15:27
Without sample, this doesn't mean nothing...

jebediah
19th September 2014, 18:44
Please define "correct sound" :)

Also, and IMHO, 192kbps :confused: is not sufficient bitrate for 5.1 channels...
So you have either a buggy version of MediaInfo, or a bad AC3 stream...

There's no sound at all, but every 5 sec or so there's a short popping sound.

filler56789
19th September 2014, 19:33
There's no sound at all, but every 5 sec or so there's a short popping sound.

Then please demux the audio stream and post it to a filesharing site.
As Kurtnoise said, without a sample file, there will be no solution to the problem
(assuming that the problem is in the LAV filters, bien entendu).

jebediah
19th September 2014, 20:41
Then please demux the audio stream and post it to a filesharing site.
As Kurtnoise said, without a sample file, there will be no solution to the problem
(assuming that the problem is in the LAV filters, bien entendu).

That's way out of my league and i have no clue how to do that.

ThurstonX
19th September 2014, 22:16
That's way out of my league and i have no clue how to do that.

Can you find a tool that will allow you to edit it such that you can create a 5-10 second clip? If so, post that on a decent file sharing site and provide the link. People here love to analyze clips and provide feedback, but without a clip there are so many possibilities. Gotta meet 'em half way.

sneaker_ger
19th September 2014, 22:28
That's way out of my league and i have no clue how to do that.

Get mkvtoolnix and start mkvmerge GUI. Drop the file into it and uncheck everything except the audio track. Go to the "global" tab, choose "split by parts based on timecodes" and enter "-1:00" (without the quotes) under "Parts". Now start muxing and upload the resulting file to a service like file-upload.net (http://en.file-upload.net/).

shadowdogg
20th September 2014, 10:56
Doesn't seem to be able to handle Dolby Atmos track on transformers extinction, it just reads at dolby digital 5.1

mastan
20th September 2014, 13:19
Geforce GTX 980 video decoding speed:
http://www.3dnews.ru/assets/external/illustrations/2014/09/19/902100/dxva.png

Looks like 4K hw decoding is finally coming!

nevcairiel
20th September 2014, 13:22
Its the same video decoder the 750 (Ti) had, not really "news", but it is plenty fast.

User 2014
20th September 2014, 14:48
i've a noob question: why ffmpeg doesn't add dts audio codecs? (only supports dts)

Elbart_
20th September 2014, 18:31
Bug with LAV Splitter (at least 0.58.2 and newer) playing WebM made from GIFs:

1.) Convert test.gif to test.webm with ffmpeg using:
ffmpeg -i test.gif -an -c:v libvpx test.webm

2.) Play it in MPC-HC (1.7.0 and newer) using the built-in Matroska Source Filter (which is using LAV Splitter).

3.) The video will look something like this: http://i.imgur.com/CTA8EYc.png

In Firefox, Chrome, ffplay, VLC and MPC-HC using Haali's Splitter, the video is playing fine.

test.gif and already encoded test.webm can be found here: https://www.mediafire.com/folder/yk7ur0ewnkilk/LAVSplitter_GIF_WebM-Matroska

wanezhiling
21st September 2014, 04:59
Doesn't seem to be able to handle Dolby Atmos track on transformers extinction, it just reads at dolby digital 5.1

I cut a sample file: https://www.sendspace.com/file/m2106p

PetitDragon
21st September 2014, 12:49
Will there be any Dolby ATMOS integrated TrueHD software decoder soon in the near future?

LigH
21st September 2014, 13:16
This implies the question: Is a decoding algorithm already publicly known?

But documentation is only one factor. Legal state (license protection) may be another.

nevcairiel
21st September 2014, 14:07
Those TrueHD tracks should play again in the latest Git version, I've also send a patch for this to the ffmpeg mailing list, and its included in their repository as well now.

clsid
21st September 2014, 18:17
Which GPUs support the new HEVC acceleration? Just the second gen Maxwell cards, or also older ones like the 750 Ti?

nevcairiel
21st September 2014, 18:43
No idea about the 750, since its somewhat slow, but high-end Kepler cards like my 780 also support it.

DragonQ
21st September 2014, 19:52
No idea about the 750, since its somewhat slow, but high-end Kepler cards like my 780 also support it.
As far as I can tell, there are no nVidia cards with pure hardware HEVC decoders. Some of the newer ones feature a "hybrid" decoder, which basically does all of the parts that overlap with AVC decoding in hardware and the rest in software. I suppose that counts as acceleration but how does it compare with the newly-optimised HEVC decoding in ffmpeg that you added to the nightly builds recently?

The 970/980 do have a full HEVC hardware encoder though.

nevcairiel
21st September 2014, 19:55
Thats why it only works on high-end Kepler cards, it needs a certain amount of shader performance to do it, and also why I'm not sure it would work on the 750.

SeeMoreDigital
21st September 2014, 21:24
Which GPUs support the new HEVC acceleration? Just the second gen Maxwell cards, or also older ones like the 750 Ti?I asked the same question myself last month... (http://forum.doom9.org/showthread.php?t=170987) Given the speed that HEVC decoders have made it into televisions, I find it odd that they've not made it into GPU's :eek:

nevcairiel
21st September 2014, 21:45
TVs are huge devices, you can just plug a new chip in some corner of the thing and call it a day. A GPU needs to incorporate the decoding function into its own silicon, sounds like a much more complicated task.

foxyshadis
21st September 2014, 22:42
Will there be any Dolby ATMOS integrated TrueHD software decoder soon in the near future?

It took about a year and a half for an open source decoder for TrueHD to be written, so I'd expect roughly 1-2 years for Atmos, unless someone is truly dedicated.

nevcairiel
21st September 2014, 22:44
Considering that Atmos is not even a "normal" audio codec as such, probably longer.
We don't even have a bitexact DTS-HD MA decoder in open-source yet, and that format is way old now!

Megalith
21st September 2014, 23:58
Okay, I'm a complete noob at this. How would I go about updating the internal LAV filters in MPC so TrueHD tracks with Atmos can play correctly? I'm looking at the Git page but am not sure what files I need.

huhn
22nd September 2014, 03:15
you can't update the internal filter in mpc-hc you need a new version of mpc hc for this.

you can build a lavfilter with "atmos" "decoding" support by following this:
Compiling
=============================
Compiling is pretty straight forward using VC++2013 (included project files).
Older versions of Visual Studio are not supported.

It does, however, require that you build your own ffmpeg and libbluray.
You need to place the full ffmpeg package in a directory called "ffmpeg" in the
main source directory (the directory this file was in). There are scripts to
build a proper ffmpeg included.

I recommend using my fork of ffmpeg, as it includes additional patches for
media compatibility:
http://git.1f0.de/gitweb?p=ffmpeg.git;a=summary

libbluray is compiled with the MSVC project files, however a specially modified
version of libbluray is required. Similar to ffmpeg, just place the full tree
inside the "libbluray" directory in the main directory.

You can get the modified version here:
http://git.1f0.de/gitweb?p=libbluray.git;a=summary

maybe the next nightly in mpc-hc gets this new lavfilter version.

Arm3nian
22nd September 2014, 04:59
I can't seem to play Age of Extinction. Everything else works with my settings in mpc-be. Tried just a clean install of mpc-hc and no video/audio in there either. It says playing but stays at the 0 time stamp. I can click around and get different frames in the video but it doesn't play. The video does play in a clean install of VLC however.

Megalith
22nd September 2014, 05:20
you can't update the internal filter in mpc-hc you need a new version of mpc hc for this.

you can build a lavfilter with "atmos" "decoding" support by following this:


maybe the next nightly in mpc-hc gets this new lavfilter version.

Guess I'll just wait for the next MPC-HC update, then.

I can't seem to play Age of Extinction. Everything else works with my settings in mpc-be. Tried just a clean install of mpc-hc and no video/audio in there either. It says playing but stays at the 0 time stamp. I can click around and get different frames in the video but it doesn't play. The video does play in a clean install of VLC however.

It's because of the Atmos track. It should play fine if you select the 640 kbps lossy audio track.

wanezhiling
22nd September 2014, 05:25
Latest lav (http://pan.baidu.com/s/1gd1its3#dir/path=%2F%E8%87%AA%E7%BC%96%E8%AF%91%E8%BD%AF%E4%BB%B6)

Sparktank
22nd September 2014, 05:29
Latest lav (http://pan.baidu.com/s/1gd1its3#dir/path=%2F%E8%87%AA%E7%BC%96%E8%AF%91%E8%BD%AF%E4%BB%B6)

Leads to a blank page with Chinese characters that are not clickable.
All my plugins are disabled and it's still an unusable page for me.

EDIT: works in chrome.
Just not Palemoon (Firefox variant)

User 2014
22nd September 2014, 07:25
nevcairiel, please add default button to each tab of your lav decoders & splitters.

foxyshadis
22nd September 2014, 09:26
you can't update the internal filter in mpc-hc you need a new version of mpc hc for this.

you can build a lavfilter with "atmos" "decoding" support by following this:


maybe the next nightly in mpc-hc gets this new lavfilter version.

mpc-hc nightlies never get nightly LAV filters, they always use stable. Wait for nev to release a new preview (which should be better tested) or try wanezhiling's, but you have to disable the internal filters in mpc-hc first.

sneaker_ger
22nd September 2014, 10:02
mpc-hc nightlies never get nightly LAV filters, they always use stable.
Not true (https://github.com/mpc-hc/mpc-hc/commit/12cf1a98232192b07a3e2215f615a24a848585df). But they don't have the new Nvidia HEVC stuff yet.

wanezhiling
22nd September 2014, 14:37
http://i.imgur.com/zCI3H9y.jpg

Is it really working? :)

nevcairiel
22nd September 2014, 14:40
If it says active then of course its working.
Please don't post giant screenshots though.

wanezhiling
22nd September 2014, 14:41
But 'Video Engine Load' in GPU-Z is still zero...
Hmmm.. why?

nevcairiel
22nd September 2014, 14:48
You should read what "Hybrid HEVC decoding" means. =)

wanezhiling
22nd September 2014, 14:52
:o Oh it eats shaders...

So now we can say that lav is the world's first h265 hw decoder?:p

NikosD
22nd September 2014, 15:59
Kudos to nevcairiel for HEVC hybrid decoder.

My first tests with signature system - HD 4600@1200MHz - using HEVC DXVA2 decoder show that it's limited by GPU power.

It can decode even 4K HEVC but with low bitrate and low fps clips.

Definitely slower than CPU HEVC, at least on my Core i7-4790 using latest HEVC CPU optimizations, probably more useful for laptops or desktops with HD 4600 and slower CPUs.

HEVC DXVA2 could be faster than those CPUs using HD 4600 and can be used in situations where CPU is utilized at max, during CPU HEVC decoding.

I will try Intel's GPA monitor tool later, in order to check out if any fixed-function HW is used (QuickSync), but from the decoding speed, it's almost impossible.

The power usage using HEVC DXVA decoder was 3 times more (!) than using pure CPU on signature system for 4K HEVC clips.

wanezhiling
22nd September 2014, 17:13
http://i.imgur.com/H9v5WvY.jpg
Even 10-bit hevc materials can be also decoded with cuvid mode??:confused:

nevcairiel
22nd September 2014, 17:15
I see no evidence that its 10-bit. But no, 10-bit doesn't really work.

wanezhiling
22nd September 2014, 17:23
General
ID : 0 (0x0)
Complete name : D:\Videos\HD\Test\[三星专用.4K.演示片] UHD 4+3混搭.ts
Format : MPEG-TS
File size : 1.38 GiB
Duration : 3mn 51s
Overall bit rate mode : Constant
Overall bit rate : 51.4 Mbps

Video
ID : 257 (0x101)
Menu ID : 1 (0x1)
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.2
Codec ID : 36
Duration : 3mn 50s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 10 bits
Writing library : ATEME Titan KFE 3.5.1 (4.5.1.0)

Maybe just an accident, hehe..

Elbart_
22nd September 2014, 19:24
Added another test-file "test2" to https://www.mediafire.com/folder/yk7ur0ewnkilk/LAVSplitter_GIF_WebM-Matroska (mentioned here (http://forum.doom9.org/showthread.php?p=1694320#post1694320)).

Apparently playback is only broken up until a "hard" scene-change, after which the video is played back just fine, until it hits the next problem.

And I added "test3", which shows all kinds of brokenness when played with LAV Splitter.

nevcairiel
22nd September 2014, 19:49
Should be fixed in the next version.

truexfan81
23rd September 2014, 07:06
if it eats shaders, how would it affect those of us that are pushing the limit with madvr?