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

petran79
25th May 2013, 18:14
QuickSync works fine in 64-bit, something must be wrong in your system.


thats what I've been wondering about.
though I seriously think that Intel forgot to add support for 64-bit version Quicksync decoding in 2nd gen Intel 3000 drivers.

they were never known for their driver quality.

STaRGaZeR
25th May 2013, 18:16
The Git repository "forgets" some intermediate Git revisions in the ffmpeg repository because they are not tagged, so rolling back to some arbitrary point in the past only really works for the release tags of ffmpeg (i made one tag for every lav release)

I'm sure git has a lot of amazing capabilities, but it's the most counter-intuitive piece of software I've ever dealt with, as a beginner.

Anyway, the problem I was going to track magically disappeared when updating to the lastest version, so no need to mess with git :p

nevcairiel
25th May 2013, 18:16
though I seriously think that Intel forgot to add support for 64-bit version Quicksync decoding in 2nd gen Intel 3000 drivers.


While the drivers are not perfect, I have a HD3000 SNB and it works just fine.

I'm sure git has a lot of amazing capabilities, but it's the most counter-intuitive piece of software I've ever dealt with, as a beginner.

Its my fault really because i'm messing with the history in that repository everytime i update ffmpeg, because i don't want a million tags for every small update, and stuff.
Its a compromise i accepted. ;)

Keiyakusha
26th May 2013, 01:24
Hmm, usually I make 1st track default, but this time I wanted track3 to be default. Is there any reason why LAV 0.57 still plays 1st track? Even if I mark track3 default+forced (https://dl.dropboxusercontent.com/u/110558786/DesktopScreens/A38A96BE.png)...
Did I misconfigured something? Tried some old haali (too lazy to hunt for the newest/beta/hacked whatever version) - it selects 3rd track.
UPD: it's probably obvious but I'm talking about mkv :P
UPD2: it does works for audio (https://dl.dropboxusercontent.com/u/110558786/DesktopScreens/422341F2.png) though

nevcairiel
26th May 2013, 07:39
Probably just not implemented for video tracks, as different video tracks is not really a common thing.

pie
26th May 2013, 07:56
I have a bit of a strange problem, which is somewhat hard to replicate. When playing music using WMP, it will crash if playing a particular set of songs, and only if that set of songs is played; playing each file individually is fine, and so is playing subsets of those songs. By crash, I mean that it will simply quit with no warning or error.

In this set, there are 19 songs, of which 15 are MP3s, and the rest are AAC/mp4 files, with the MP3s being played before the AAC files. I believe that LAV is not used for playing the MP3s, but that the AAC files do use LAV splitter/decoder.

The crash will only occur after playing all songs, and occurs when playing the last AAC file, about 1-2 seconds in.

This only started to happen with recent versions, although I can't exactly pinpoint which version this started happening (maybe around the time of adding ordered chapters support?).

Keiyakusha
26th May 2013, 16:42
Probably just not implemented for video tracks, as different video tracks is not really a common thing.

Just checked avsplitter - it also selects the right track... is it hard to implement? Maybe just copypasted code from audio stream selection will work after little adjustments? :rolleyes:
Edit: potplayer's internal splitter selects right track too... seems only LAV is behind the rest of the competition ^^

nevcairiel
26th May 2013, 16:58
Its not hard, a simply check to select the track with the default flag is easy. Not sure how forced on video would make much sense, so leaving that out for now. :p

petran79
26th May 2013, 19:31
While the drivers are not perfect, I have a HD3000 SNB and it works just fine.


Having two gpus messes up the system...

I have a laptop with an optimus card (nvidia gt555m and intel 3000)

Lav 64 detects cuvid (nvidia gpu light flashes)
It also detects dvxa through intel card. Nvidia light doesnt flash. So lav detects the card but quicksync codec isnt detected

I'll also try the 64 ffdshow tryouts.
I installed lav through klite, so i'll try a clean installation of lav this time.
Not a big deal really.

Nekomata
26th May 2013, 23:33
Having two gpus messes up the system...

I have a laptop with an optimus card (nvidia gt555m and intel 3000)

Lav 64 detects cuvid (nvidia gpu light flashes)
It also detects dvxa through intel card. Nvidia light doesnt flash. So lav detects the card but quicksync codec isnt detected

I'll also try the 64 ffdshow tryouts.
I installed lav through klite, so i'll try a clean installation of lav this time.
Not a big deal really.

exactly same configuration here: gt555m and intel 3000, lg laptop
what i have found is using nvidia control panel to set potplayer (one of few players you can switch the graphics) and use nvidia on it, it works correctly with cuda and lav filter

mindbomb
27th May 2013, 08:54
question about renderer deinterlacing:
you can't use xy vsfilter and have renderer deinterlacing?

clsid
27th May 2013, 14:05
I don't think it passes on the interlaced flag in output mediatype, so HW deint won't work with (xy-)vsfilter.

nevcairiel
27th May 2013, 14:39
No it doesn't. Some time ago i was thinking looking into that and providing a patch, as it would probably be a quick fix, but i never got around to it and then lost track :)

cyberbeing
27th May 2013, 17:15
Yes, I remember that that "some time ago" in October 2012... :p

But as mentioned in my PM to you a couple months ago, we are still interested you creating such a VideoInfo2 + bitstream interlace flag support patch for xy-VSFilter if you ever find time.

itsonlyjustincase
28th May 2013, 11:38
Does someone have the knowledge to add : Resize>resize to screen resolution option to Lav video decoder ?

nevcairiel
28th May 2013, 11:53
Does someone have the knowledge to add : Resize>resize to screen resolution option to Lav video decoder ?

LAV will not get such options, its a decoder, not a post-processor.

wanezhiling
29th May 2013, 09:27
ArcSoft TotalMedia Theatre 6.0.1.123 released.

dtsdecoderdll.dll v1.1.0.9 !!! :D

itsonlyjustincase
29th May 2013, 09:39
LAV will not get such options, its a decoder, not a post-processor.

Okay :). Do you know if it is possible as ffdshow uses IntelQS to have ffdshow using Cuvid ?

huhn
29th May 2013, 09:42
how about that: use ffdshow as post processor for lavfilter?

Vyral
29th May 2013, 10:22
how about that: use ffdshow as post processor for lavfilter?
I already tried that. The main problem is that ffdshow raw filter does not support 10bits input.

ryrynz
29th May 2013, 10:45
Yup, so either suffer from the 8bit conversion or use pixel shaders.

itsonlyjustincase
29th May 2013, 11:38
integrate dxva2n, dxva2cb and cuvid to ffdshow would be excellent

ryrynz
29th May 2013, 13:53
ffdshow is dead, nobody is going to work further on it's core functionality any time soon if ever. Minor fixes and tweaks along with Quicksync updates are all it's going to get.

clsid
29th May 2013, 16:10
Plus it would not bring any functionality that is better than what LAV already gives right now.

itsonlyjustincase
29th May 2013, 16:14
Plus it would not bring any functionality that is better than what LAV already gives right now.

I understand. It is just that lav is just a decoder without post processing. Lav is excellent. In my case, with my soft sometimes it gives weird aspect ratio with videos with resolution 640x360. I would have liked the option to resize to screen resolution that ffdshow has cause it would have permit to avoid those problems. That is why i was asking about it. But i'm aware that as 95% of the players that use LAV work well, there is little chance that anyone would develop more

paradoxical
29th May 2013, 16:17
I understand. It is just that lav is just a decoder without post processing. Lav is excellent. In my case, with my soft sometimes it gives weird aspect ratio with videos with resolution 640x360. I would have liked the option to resize to screen resolution that ffdshow has cause it would have permit to avoid those problems. That is why i was asking about it. But i'm aware that as 95% of the players that use LAV work well, there is little chance that anyone would develop more

Does your player not allow you to override the aspect ratio to fix that? I would think that remuxing your file or using an AR override of the player would be much simpler than expecting someone to change ffdshow to add the functionality you want.

clsid
29th May 2013, 16:43
It is possible to use LAV for decoding and ffdshow for post-processing. Simply enable "raw video" in ffdshow video decoder. When using an advanced player like MPC-HC, the 'manual' ffdshow raw video filter can be used instead, which has the advantage that it won't interfere with other DirectShow apps.
In the future LAV might get an option to load ffdshow raw video filter into the graph (for a defined list of apps).

LAV Video decoder has an option that controls which AR it should use. The one from the container, or the one from the video bitstream. Changing that option might fix the AR for those files (and break it for others that are now working correctly). Best solution is to remux those files and put set a correct AR in the container.

MPC-HC has Pan&Scan settings to resize the video during playback. There are several shortcuts (using numeric keypad) that allow you to easily resize/flip/rotate the video.

itsonlyjustincase
29th May 2013, 17:20
Does your player not allow you to override the aspect ratio to fix that? I would think that remuxing your file or using an AR override of the player would be much simpler than expecting someone to change ffdshow to add the functionality you want.

:) For sure if my player did that i wouldn't have asked such a question :)

itsonlyjustincase
29th May 2013, 17:22
It is possible to use LAV for decoding and ffdshow for post-processing. Simply enable "raw video" in ffdshow video decoder. When using an advanced player like MPC-HC, the 'manual' ffdshow raw video filter can be used instead, which has the advantage that it won't interfere with other DirectShow apps.
In the future LAV might get an option to load ffdshow raw video filter into the graph (for a defined list of apps).

LAV Video decoder has an option that controls which AR it should use. The one from the container, or the one from the video bitstream. Changing that option might fix the AR for those files (and break it for others that are now working correctly). Best solution is to remux those files and put set a correct AR in the container.

MPC-HC has Pan&Scan settings to resize the video during playback. There are several shortcuts (using numeric keypad) that allow you to easily resize/flip/rotate the video.

I'm using video DJ soft that doesn't allow that unfortunately

paradoxical
29th May 2013, 17:43
I'm using video DJ soft that doesn't allow that unfortunately

Then remux the files in a way that your player won't screw them up or get something less broken to use? :confused: It sounds like you spend way too much effort trying to work around all the brokenness of that software.

itsonlyjustincase
30th May 2013, 09:29
Then remux the files in a way that your player won't screw them up or get something less broken to use? :confused: It sounds like you spend way too much effort trying to work around all the brokenness of that software.

What you're saying is so true. It's because appart from that this soft is the best in audio. So i really wanted to be able no to have to use different softwares when i'm mixing. Plus i spent money to buy video clips. But you're definitely right

paradoxical
30th May 2013, 18:24
What you're saying is so true. It's because appart from that this soft is the best in audio. So i really wanted to be able no to have to use different softwares when i'm mixing. Plus i spent money to buy video clips. But you're definitely right

That's a shame. All I can say is try to remux your files and hope that you can have container level AR signaling that the player will honor better.

itsonlyjustincase
31st May 2013, 13:51
The weird thing is that it's only the old school videos that have this problem. The recents one don't.

How to remux ? What do i need to do ? Is there a soft to do it using CUDA or QS so that it can be done quickly ? (i would have something like 500 videos to remux)

clsid
31st May 2013, 15:11
Remuxing means only changing/adjusting the container. The audio and video remain untouched. So it is generally a fast process.

This should be helpful:
http://forum.videohelp.com/threads/301849-Change-Aspect-Ratio-of-mp4-without-re-encoding

But you also seem to have ignored a solution I gave before. The option "Use stream aspect ratio" in LAV Video decoder.

itsonlyjustincase
31st May 2013, 15:40
Remuxing means only changing/adjusting the container. The audio and video remain untouched. So it is generally a fast process.

This should be helpful:
http://forum.videohelp.com/threads/301849-Change-Aspect-Ratio-of-mp4-without-re-encoding

But you also seem to have ignored a solution I gave before. The option "Use stream aspect ratio" in LAV Video decoder.

Thank you CLSID.

Sorry for the feedback. I did tried the different options to tick or untick the case "Use stream aspect ratio" of Lav Video but it doesn't change anything.

paradoxical
31st May 2013, 18:16
Sorry, maybe I'm wrong, but LAV splitter don't support 4K video ?

Of course it does.

zallen
31st May 2013, 19:54
Yes, it`s work with POT Player and don`t with KMPlayer. Why then only internal splitter with LAV Video Decoder for KMP. :confused:

Mercury_22
1st June 2013, 13:40
EDIT : never-mind My bad, somehow my PATH variable got modified

cyberbeing
2nd June 2013, 21:16
@nevcairiel

GraphStudioNext "Time Measure Filter" movie resolution incorrect (http://bugs.madshi.net/view.php?id=71)
LAV Splitter (720p24) -> LAV Video -> Time Measure -> madVR: problem
LAV Splitter (720p24) -> ffdshow -> Time Measure -> madVR: ok
LAV Splitter (720p24) -> CoreAVC -> Time Measure -> madVR: ok
LAV Splitter (720p24) -> Time Measure -> madVR (internal decoder): ok

Looks like a problem in LAV Video Decoder to me?

madshi
2nd June 2013, 21:35
Don't know for a fact that it's a LAV Video Decoder issue, but at least it seems to be the only decoder triggering this problem.

nevcairiel
2nd June 2013, 22:26
This seems to happen because of the extended format flags in dwControlFlags, it causes an extra reconnect between the filters which doesn't go too well, because the time measure thing implements video buffer handling somehow ... half. It requests a stride, but not like a renderer would.
Neither of the other decoders support those flags.

cyberbeing
2nd June 2013, 22:40
So is this something you would fix in LAV Video, or should an issue be opened with Graph Studio Next (http://code.google.com/p/graph-studio-next/issues/entry) instead?

nevcairiel
3rd June 2013, 09:56
I can probably somehow fix it. But don't expect results too soon, i'm quite busy with other things right now.

huhn
3rd June 2013, 15:57
is it normal that mpeg2 dxva didn't work with 6770 and 5770 cards ? it works with the mpc hc mpeg2 dxva decoder.

is the mpc hc dxva decoder dxva 1?

paradoxical
3rd June 2013, 16:02
Those should work since they are UVD 2 which offers full bitstream decoding. The only cards not supported for MPEG-2 decoding by LAV are those that only did partial acceleration with UVD/UVD+. What OS are you running? Because if it's XP that would be your issue since you wouldn't have DXVA2.

huhn
3rd June 2013, 16:09
windows 7 x64.

h264 works fine so my setup should be fine

nevcairiel
3rd June 2013, 16:29
MPEG-2 DXVA is broken on pre-7000 series AMD cards (or was it pre-6000?), and if MPC-HC decoder is telling you anything else, its lying. :)
AMD actually disabled MPEG-2 on those cards in recent drivers, so the driver didn't offer you the mode.

There is no special check in LAV to disable it on older AMD cards, it will simply use it when the driver offers it.

dukey
3rd June 2013, 16:48
You any idea why i get green screens between title changes with bluray ? Only seems to effect my ati card

huhn
3rd June 2013, 17:19
even madvr reports dxva 2 back when i use the mpc hc mpeg 2 decoder.

dxva checker report decoding device: modeMPEG2_IDCT with Microsoft DTV-DVD Video Decoder [DXVA 1/2][]MPEG2 1920x1080]

my card enters a power state with 500 mhz (from max 850) and this can't be changed even when i run a pc game so it should use dxva.

i'm using 13.5 driver. is there a way to make 100 % sure dxva is used?

nevcairiel
3rd June 2013, 17:21
IDCT is not the right device, you need DXVA2_ModeMPEG2_VLD for LAV DXVA for MPEG-2.
The MS decoder can use the IDCT device, but i don't think the MPC decoder can.