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

zerowalker
4th February 2013, 14:22
In the latest version, i get black screen, on many of my cut avi files, from Virtualdub (cutting MKV files)

sneaker_ger
4th February 2013, 14:37
http://forum.doom9.org/showthread.php?p=1613883#post1613883

Qotscha
5th February 2013, 09:24
For some reason, LAV splitter can't handle these streams properly. The video stream isnt coming through at all. I was hoping you could take a look at the media file below to see if you can get LAV splitter to "tolerate" this type of media file; as bad of a shape that it's in.

I have a bit similar problem. I downloaded a .ts file from Internet DVR service by using VLC to record the http stream. The file (DVB recording, mpeg2 video and audio) contains the program I wanted to record and also beginning of the next program (which I, of course, don't really need).

With newer versions of LAV Splitter I get no audio at all, but version 0.54.1 or older finds the audio stream. However, I still don't get audio for the beginning of the next program which has different audio language. The strange thing is, that if I watch the recording directly using LAV Splitter as source filter for http, even the newest version of LAV works like the older ones.

I also tested some other MPEG splitters (Haali, AV, MPC) and they all work like the older versions of LAV. However, with VLC I get audio for the latter part of the file, too.

I tried to cut some samples using Avidemux, but with them I didn't have audio for the beginning of the next program even with VLC. So, nevcairiel, I send you a pm with a download link for the whole recorded file, if you want to take a look.

cyberbeing
5th February 2013, 15:31
I see why I couldn't get it to work.

In order for LAV Video to use YV16 with DirectShowSource, you need to set all output formats in the following registry key to 0 except YV16 which needs to be set to 1:
HKEY_CURRENT_USER\Software\LAV\Video\Output

LAV Video -> DirectShowSource -> madVR seems to display YV16 normally.

It seems impossible to make LAV Video connect directly to madVR with YV16 during normal DirectShow playback outside of Avisynth.

Was this behavior for LAV Video YV16 output intentional?

nevcairiel
5th February 2013, 15:33
YV16 is intentionally disabled, or did you see a checkbox for it in the options panel to enable it? :)
Your trick shouldn't be working though, the options loading code directly sets YV16 to disabled. I suppose if you disable *everything*, it goes back to the default format line, which has YV16 in it somewhere.

cyberbeing
5th February 2013, 16:03
Yeah, I was under the impression that YV16 was completely disabled in LAV Video as well, before I discovered that workaround with DirectShowSource 2.6.0.1 yesterday.

Was it originally disabled because of poor support, or just because you haven't yet written a comparable set of high quality conversion routines for YV16 compared to other 4:2:2 output formats?

__

Any thoughts on the other issue mentioned in that Avisynth 2.6 thread?

Why LAV Video + Haali Splitter (autoload vsfilter) + xy-VSFilter 3.0.0.211 + 10-bit 4:2:0 Video + DirectShowSource 2.6.0.1 pixel_type="AYUV" fails to connect when all output formats are enabled in LAV Video? Yet it works when I selectively disable certain LAV formats like P016 or P010 or NV12?

bugmen0t
5th February 2013, 16:51
Clipping protection should be impossible to overflow.
Do you have a sample file where this can be observed?
Yes I do. Note that the problem requires LAV mixing to stereo with clipping protection and outputting 32-bit integers and a winamp plugin.
Using 'normalize matrix' or outputting 24-bit integers or bypassing the winamp plugin will be fine. :confused:

WARNING: turn your volume down before playing
test.rar (http://www54.zippyshare.com/v/97989058/file.html)

Qotscha
5th February 2013, 17:04
My previous post is a bit misleading. Somehow I forgot to test if the latter part of the recording has audio when playing it using LAV as http source filter, and was under the impression that it has not. However, it has. So maybe I'll just blame VLC for breaking the .ts file :sly:

mkanet
5th February 2013, 17:39
Its really too bad that VLC tends to ruin a perfectly good original raw incoming mpeg stream during transcoding.

My previous post is a bit misleading. Somehow I forgot to test if the latter part of the recording has audio when playing it using LAV as http source filter, and was under the impression that it has not. However, it has. So maybe I'll just blame VLC for breaking the .ts file :sly:

nevcairiel
5th February 2013, 18:04
My previous post is a bit misleading. Somehow I forgot to test if the latter part of the recording has audio when playing it using LAV as http source filter, and was under the impression that it has not. However, it has. So maybe I'll just blame VLC for breaking the .ts file :sly:

I found the reason for the missing audio and fixed it by reverting the change in ffmpeg, maybe they'll come up with a proper fix later :)

Mercury_22
6th February 2013, 19:53
Does anyone knows how to make XBMC use LAV Filters ?

Bryanhoop
7th February 2013, 01:59
Does anyone knows how to make XBMC use LAV Filters ?

http://wiki.xbmc.org/index.php?title=DSPlayer

You need DSPlayer.

Qaq
7th February 2013, 08:53
http://wiki.xbmc.org/index.php?title=DSPlayer

You need DSPlayer.
And AVsplitter instead of LAV splitter AFAIK. Haven't tried myself though.

Shark007
7th February 2013, 09:15
Nev, this m2ts sample (http://www.mediafire.com/file/mgvkrc1j5dq6ctj/PCM_audio.m2ts) file will not play the pcm audio using lav.
If I use AC3Filter, the sample plays the audio properly.
Could you have a look at it please?

Mercury_22
7th February 2013, 09:57
http://wiki.xbmc.org/index.php?title=DSPlayer

You need DSPlayer.

Thanks already tried that :) and it's buggy as hell, maybe in the future
Maybe I wasn't clear enough I want to use LAV Filters with the default dvdplayer

Nicola
7th February 2013, 11:02
I just dscovered that if I set "force deinterlace" option in LAV video decoder the video sometimes get corrupt.
Unchecking option make it fine. Happens sometime, with progressive video. Why does this happen? Is it expected?
Link to screenie: http://imageshack.us/photo/my-images/690/720pmkvsnapshot10102013.png/ (artifacts near the mouth, and around the necktie)

nevcairiel
7th February 2013, 11:03
Deinterlacing progressive video can cause image degradation, so don't do it.

Nicola
7th February 2013, 11:22
Deinterlacing progressive video can cause image degradation, so don't do it.

oh, so that's expected to happen?
Actually the discovery was casual, I don't remember activating that option, and found out it was the cause after some checks with the encoder.
Is there a short explaination about why it degrade progressive image?
I'm just curios about why it happens. Thanks.

starla
7th February 2013, 11:33
Maybe I wasn't clear enough I want to use LAV Filters with the default dvdplayer

It won't be possible to use Directshow filters in a non-Directshow based player.

Mercury_22
7th February 2013, 11:54
It won't be possible to use Directshow filters in a non-Directshow based player.

Ouch! Didn't think "the dvdplayer" in the xbmc for windows is a "non-Directshow based player"
Thanks for "reminded" me !




P.S. I just need nev's "hack" to use the DMO for VC-1 in XBMC and the dts one :)

nevcairiel
7th February 2013, 14:07
Nev, this m2ts sample (http://www.mediafire.com/file/mgvkrc1j5dq6ctj/PCM_audio.m2ts) file will not play the pcm audio using lav.
If I use AC3Filter, the sample plays the audio properly.
Could you have a look at it please?

Apparently, someone tried to be funny and packed DTS into a Blu-ray LPCM stream. I consider this a simply broken stream. DTS has its own stream type in m2ts files, don't need to do hacks to store it, so this is just broken.

Shark007
7th February 2013, 16:18
Apparently, someone tried to be funny and packed DTS into a Blu-ray LPCM stream. I consider this a simply broken stream. DTS has its own stream type in m2ts files, don't need to do hacks to store it, so this is just broken.

Thanks for your investigation.
I'll pass on the information to the files owner.

andyvt
8th February 2013, 16:54
What version of MSYS do you use?

The one I pulled down is giving me an error when I try to compile ffmpeg (although it's quite possible that I have something configured incorrectly).


gcc is unable to create an executable file.
If gcc is a cross-compiler, use the --enable-cross-compile option.
Only do this if you know what cross compiling means.
C compiler test failed.

If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.

paradoxical
8th February 2013, 17:07
What does your configure line look like? What version of MSYS are you using?

tahaa7
8th February 2013, 17:14
How to check whether full DTS-HD MA is being decoded using Lav Filters and MPC-HC with TotalMedia's dll?

andyvt
8th February 2013, 17:28
What does your configure line look like?


Whatever is output by "build_ffmpeg.sh".


What version of MSYS are you using?

This one (https://sourceforge.net/apps/trac/mpc-hc/wiki/How_to_compile_the_MPC). In the past I just followed their instructions to get MSYS/MINGW setup, but it seems different from the last time I did it.

andyvt
8th February 2013, 18:07
In the past I just followed their instructions to get MSYS/MINGW setup, but it seems different from the last time I did it.

Figured it out. I didn't set up the PATH correctly.

filler56789
8th February 2013, 21:48
How to check whether full DTS-HD MA is being decoded using Lav Filters and MPC-HC with TotalMedia's dll?

In the MPC-HC window, right-click, then select LAV Audio, and look at the Status tab. If it says "codec = dts", then LAV is using the Arcsoft DLL, but if it says "codec = dca", then LAV is using the built-in decoder.

tahaa7
8th February 2013, 22:12
In the MPC-HC window, right-click, then select LAV Audio, and look at the Status tab. If it says "codec = dts", then LAV is using the Arcsoft DLL, but if it says "codec = dca", then LAV is using the built-in decoder.

OK, thanks. It says "dts-hd ma". However, what worries me is that under Pin Info it says:

Input:
...
Audio: DTS 48000Hz 6ch 1536kbps

Output:
...
Audio: PCM 48000Hz 6ch 6912kbps

Is this OK?

Qaq
8th February 2013, 22:53
@tahaa7
Arcsoft outputs in 24int, ffmpeg outputs in 32float.

Pomegranate
8th February 2013, 22:56
Once could also play a 7.1 dts-hd ma file. The dts core will never be 7.1.

Nekomata
10th February 2013, 02:50
Please when the next version :thanks:

ryrynz
10th February 2013, 03:08
If you want a reasonably recent build you can visit http://xhmikosr.1f0.de/lavfilters/
Otherwise it's a case of when it's done and judging from previous releases that's generally every month or so.

nevcairiel
10th February 2013, 07:34
There should be a minor release fairly soon to get some changes out there before i start breaking everything again. :p

nevcairiel
10th February 2013, 14:24
LAV Filters 0.55.3

LAV Splitter
- Improved handling of Annex B H.264 in many containers
- Improved support for external source filters without seeking ability (live sources)
- Fixed duration in some MP4/MOV files
- Fixed stream program assignment for some MPEG-TS files (resulted in some streams not visible)

LAV Video
- Added support for TSCC2
- Fixed a crash when playing certain H.264 files with QuickSync or CUVID


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

Just a bunch of bugfixes and small improvements, nothing big.
Hopefully i'll find some time to work on some of the bigger tasks soon, so that i don't have to do small bugfix versions all the time.

The only risky change in this version is the change in handling Annex B H.264 - if you have any H.264 file which stops working in this version (but worked in 0.55.2 or 0.55.1), please let me know.

- nev

wanezhiling
10th February 2013, 14:43
Thanks!

I guess the 0.56 will be a big release!;)

dukey
10th February 2013, 14:44
I got some crashes with LAV can't seem to fix

http://i.imgur.com/UPJ8g1d.png
http://i.imgur.com/Q8xRNOf.png

nevcairiel
10th February 2013, 15:10
If the outStride is really 768 on a video with 1920 width, then something is seriously wrong with your renderer, although i did think i had some checks for this, but maybe not enough. In some cases just have to rely on the renderer behaving properly.

dukey
10th February 2013, 15:17
Well it is EVR, but I'll double check the code in the custom mixer

nevcairiel
10th February 2013, 15:24
Sounds like LAV was trying to set the proper frame size (with a new media type), but failed, so the renderer still wants a smaller frame. I should probably add a check there, but its not an issue that ever came up before. Not that the check can fix anything, it would just prevent the crash.

Anleck
10th February 2013, 16:09
Thanks for the new LAV - appreciate your continued work.

dukey
10th February 2013, 19:45
I found a workaround for the problem.
Basically in Media foundation it tests if you can set a media type when it calls SetInputType
I return MF_E_TRANSFORM_CANNOT_CHANGE_MEDIATYPE_WHILE_PROCESSING
Because I still have samples left to display
So I guess LAV tries to force a reconnect, and it gets stuck in some sort of loop. It's only 1 sample every time stuck in the buffer. If i flush it, problem solved.

nevcairiel
10th February 2013, 19:49
Of course it needs to force a reconnect, because i need a bigger buffer to write my bigger frame into. What else can i do? :D

dukey
10th February 2013, 20:46
Good point :)
By the way, it's a pleasure to debug with LAV. The debug info is super useful.

Owyn
10th February 2013, 22:37
nevcairiel, Hi
I just did reset my settings in KMPlayer and set splitter to LAV but now hotkey to switch audio streams in KMPlayer doesn't work but it's default splitter and gabbest works fine with the hotkey, can you fix this? (or tell me how to fix it if I can do it by some configuratio)
and subtitles can't be shown even if I choose those manually now with LAV, what can be done for it to work?
Thanks.

nevcairiel
10th February 2013, 22:39
LAV does not have hotkeys. This sounds like a problem with your player.

Owyn
10th February 2013, 22:44
ok, so my question was more like, how do I make LAv work with KMPlayer (http://www.kmpmedia.net/)? (and if can it be done at all) . Would really appreciate your help.

Now when I use LAV in it
- internal subtitles can't be shown at all
- hotkey in KMPlayer for switching audio streams doesn't work (works fine for external audio, problem is with internal one)

with Haali media splitter goes the same thing, but with Haali if i set splitters for all formats to "system" - hotkey start to work, with LAV splitter - it doesn't

I'll write to KMP forums too but would be nice if you could also take a look ^_^

Sorry to disturb

ryrynz
10th February 2013, 23:26
Nev, any ETA on that "English[eng]" subtitle selection support?

FreeFall
11th February 2013, 05:34
nevcairiel,

I have a problem with this DVD sample, LAV 0.55.3 and EVR renderer.
http://www.sendspace.com/file/rq5twj (media fire wasn't working)

Play the first episode and then go back to the main menu, the last subtitle line stays on the screen until the menu loops and re-draws itself (DXVA Native / Copy Back or Software mode). Using CUVID the same thing happens but usually the last video frame and menu navigation markers are shown instead of the menu background, it might take a couple of tries for it to happen, usually after around 5 or 10 seconds of playback.

Thanks.

FreeFall

LoopinFool
11th February 2013, 17:37
nev,

The x64 debug symbols for 0.55.3 seem to be missing.

- LoopinFool