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

Thunderbolt8
24th December 2014, 16:02
its working now with 1.1.0.8. thanks! :)

filler56789
24th December 2014, 16:09
Yeah, about time! :D

Boltron
25th December 2014, 12:36
Merry Christmas.

Santa Nevcairiel, my Christmas wish is for a way to display the LAV Audio Input/Output details as shown on the Status properties on the screen much like madVR displays stats when ^J is hit.

I use JRiver with LAV and madVR. This would be an awesome addition.

Thanks and all the best for the New Year!

nevcairiel
25th December 2014, 12:52
How would the audio decoder ever show stuff on screen? Just look at the status panel, that's what its for.

If a player wanted to, it could access this information and show it on screen, but LAV will never do that.

Boltron
25th December 2014, 13:34
I know the player needs to perform the display but it all starts by making the info available to the player. So my first stop was to see if LAV can provide the details by perhaps an API call. Does this already exist?

Thanks.

arestarh
25th December 2014, 14:38
nevcairiel
Can you confirm that in .mkv sample below lav splitter doesn't detect subtitles at all?
Mkvinfo and mediainfo reported that two subtitle .srt strteams presented...
Sample:
http://nekaka.com/d/orXLPiFTUv
or
http://sendfile.su/1065583

cyberbeing
26th December 2014, 01:32
nevcairiel
Can you confirm that in .mkv sample below lav splitter doesn't detect subtitles at all?

This occurs in LAVFilters because "Track FlagEnabled" is set to false. Which is defined as 'Set if the track is usable.' in the MKV spec. You can fix this with either MKVToolNix Header Editor, or by demuxing the subtitles and muxing them in again.

How much LAV's literal interpretation of this flag makes sense to the end-user is somewhat debatable though, since why would you mux a subtitle track which could never be displayed during playback? The real question is how this flag was originally set, was it user error or something else? Which mkvmerge version was the original untrimmed version of that video muxed with?

Granted, Haali Splitter still makes such tracks available even when that flag is set. If this encode was originally muxed way back in early April 2011 when the Blu-ray was released, Haali was probably the only thing it was ever tested on. Though I suspect this is a somewhat more recent behavior in LAV Filters as a result of him refactoring, so if this was an older encode it may have even worked with LAV way back then.

arestarh
26th December 2014, 08:38
cyberbeing
Thanks for pointing me out.
I think this was user error.

Blight
28th December 2014, 23:18
Nev:
I got this MKV+VC1 clip that causes an access violation in ntdll.dll when trying to remove the 'LAV Video Decoder' filter from the graph.
It doesn't always throw the error, perhaps some sort of race condition? Hardware acceleration is set to 'none'.

Switching the video decoder to Microsoft's DMO and the error isn't triggered anymore.

Here's the clip:
http://zoomplayer.com/t/vc1ar_anamorphic.zip

filler56789
28th December 2014, 23:36
......
Here's the clip:
http://zoomplayer.com/t/vc1ar_anamorphic.mkv

The server returns:

404 - File or directory not found.

Blight
28th December 2014, 23:47
filler:
I fixed the link, server didn't have MKV listed as a valid extension to serve.
http://zoomplayer.com/t/vc1ar_anamorphic.zip

nevcairiel
29th December 2014, 11:54
Nev:
I got this MKV+VC1 clip that causes an access violation in ntdll.dll when trying to remove the 'LAV Video Decoder' filter from the graph.
It doesn't always throw the error, perhaps some sort of race condition? Hardware acceleration is set to 'none'.

Switching the video decoder to Microsoft's DMO and the error isn't triggered anymore.

Here's the clip:
http://zoomplayer.com/t/vc1ar_anamorphic.zip

I cannot make it crash. Any more details?

Blight
29th December 2014, 14:53
nev:
I can't recreate it anymore. You can ignore for now until I manage to find a more reliable way to recreate it.

Nachbar
29th December 2014, 18:49
nevcariel:

When I open the index.bdmv of a blu ray, lav splitter will incorrectly report all streams as English. However if I navigate and find the m2ts file it will report the streams as the correct language. I would prefer if it detected the languages correctly for the .bdmv file since it also contains chapter marks and it is a file that is on all blu ray discs which I can set windows to autoplay from.

Here are a few screenshots:

from bdmv: http://i.imgur.com/33DGRtp.jpg
from .m2ts: http://i.imgur.com/dO34Efk.jpg

nevcairiel
29th December 2014, 18:54
Screenshots are not helpful. If i cannot reproduce a problem, then I cannot fix it.

aufkrawall
29th December 2014, 23:39
Is it decoder or x265 bug that makes I444 HEVC look destroyed?
Sample: http://www67.zippyshare.com/v/39922457/file.html
Happens also with 8 bit.

It also seems that colormatrix flagging of x265 isn't working, but with this sample assumed BT.709 is right.

marsovac
30th December 2014, 07:28
What is the proper way to select a subtitle stream when there are more then one stream per language?

SetAdvancedSubtitleConfig() doesn't seem to support this, at least from what I read on the 1f0.de docs.

Is there a way to select the subtitle stream by index (and during playback)?

http://s29.postimg.org/s74ezug1z/subs.png

In this case I always get the Styled ASS.

Thanks

nevcairiel
30th December 2014, 09:48
Is there a way to select the subtitle stream by index (and during playback)?

IAMStreamSelect on MSDN (http://msdn.microsoft.com/en-us/library/windows/desktop/dd319793%28v=vs.85%29.aspx)

marsovac
30th December 2014, 10:20
IAMStreamSelect on MSDN (http://msdn.microsoft.com/en-us/library/windows/desktop/dd319793%28v=vs.85%29.aspx)

Yes I ultimately made it with IAMStreamSelect, thanks.

nevcairiel
30th December 2014, 11:30
Is it decoder or x265 bug that makes I444 HEVC look destroyed?
Sample: http://www67.zippyshare.com/v/39922457/file.html
Happens also with 8 bit.

I wouldn't know. Both could be broken, or only one, without another reference point its hard to say anything.

Nachbar
30th December 2014, 11:57
I apologize nevcairiel. I guess this one movie that I tried was having the problem not displaying the languages correctly with the index.bdmv file (it displays correctly with the .m2ts file minus chapters). When I tried a different movie it was fine. The movie that was having the problem is Evangelion 2.22 with ISBN of 1-4210-2287-7 in case you have it. If there's something you'd like me to look at with it just let me know.

nevcairiel
30th December 2014, 12:01
If you could upload all the files from the BDMV folder except the STREAM subfolder, that might help to debug it. It should only be a few MBs.

Nachbar
30th December 2014, 12:29
Thanks nevcairiel. Here it is: http://www.mediafire.com/download/aa113nrnocbwvsv/Eva_1.11_BDMV.zip

aufkrawall
30th December 2014, 14:22
I wouldn't know. Both could be broken, or only one, without another reference point its hard to say anything.
I also tried newest x265 build I could get (12-29 from here: http://builds.x265.eu/), no difference.

Maybe I should try it in the HEVC section if devs are reading there.

Plutotype
1st January 2015, 12:08
Happy New year to everyone.

Will be LAVaudio ready to properly decode and map DTS:X, Dolby Atmos and AURO 3D streams using the usual LPCM/Reclock workflow?

nevcairiel
1st January 2015, 16:47
Those formats are not supported, and if they are ever supported (which is somewhat doubtful), it'll be a very long time.

DragonQ
1st January 2015, 21:55
Does anyone else use LAV Audio's delay feature? If so, does it work correctly for you?

I ask because I'm getting "sync drift" when watching long videos. For example, at the start of a 45 minute video the sync will be correct, but by about half way through the audio/video sync is noticeably out. If I disable LAV Audio's delay feature and instead apply the same audio delay on my AVR, it's fine for the entire duration of the video. It's not just a single file either, I've noticed this on everything I've watched today (5 or 6 episodes of TV shows, all of which are 1080p/24 with DTS or AC3 sound).

Nachbar
2nd January 2015, 02:37
DragonQ: I haven't used it recently but back when I did use it I had to use it for a video that had its audio out of sync by five seconds and lasted forty-five minutes long. It worked fine for me.

DragonQ
2nd January 2015, 15:05
5 seconds is a huge sync difference. My standard delay is 90 ms and by the time the episode is nearly over, the audio is probably 100 ms too early (hard to measure). I thought that maybe the "Auto A/V Sync correction" option was causing the audio delay to disappear but disabling that caused much worse sync problems.

Nachbar
3rd January 2015, 00:22
I meant the video itself had a 5 second difference between audio and video to begin with. I corrected it (-5000ms) with the same option you described and played it.

I remember seeing a BBC audio sync video on youtube. You could try taking that video and extending it out to an hour and see how far it is off then.

Also if you are using it with reclock, try without it. Conversely if you aren't using reclock give it a try.

DragonQ
3rd January 2015, 01:10
I do have some sync videos, which is how I came up with the +90 ms figure to begin with. I wasn't able to find a 23.976 fps one though, only 29.97 and 25 fps.

LigH
3rd January 2015, 09:49
Such a large difference can happen when someone tries to convert e.g. a VOB file like it was authored on DVD, without extracting the main movie PGC, which would have removed a leading-in trailer in a different PGC that shofted the beginning of audio streams.

ocyl
4th January 2015, 07:20
I'm getting weird behavior with mpc-hc and lav now and then. It's pretty rare, so I can't seem to reproduce it. Sometimes, jumping to next chapter in an mkv results in loss of audio. Jumping back to the start of the chapter "revives" it again. Any idea what could be causing this?
I have experienced similar loss of audio during seeking (doesn't have to be a chapter jump) from time to time, too. Reseeking would bring audio back.I have seen it happen a few times too. Only with AAC audio. It is pretty rare though.I've experienced this too. Also with AAC. Not sure about other formats.
Its really impossible to reproduce this problem reliably, and as such impossible to fix it reliably as well. How do I know its fixed and not just not happening at the moment.
In any case, I applied some changes to how AAC is handled after a seek, maybe we get lucky. Assuming its actually in LAV Audio, and not in LAV Splitter.

I am sorry to report that I have continued to experience the same issue with AAC tracks, and tonight with an AC3 track, as well.

LAV Version: 0.63.0.29

File Info
Type: Matroska
Video: MPEG4 Video (H264) 1024x576 23.976fps [V: English [eng] (h264 high 10 L5.0, yuv420p10le, 1024x576) [default]]
Audio: Dolby AC3 48000Hz stereo 224kbps [A: ac3, 48000 Hz, stereo, 224 kb/s [default]]
Subtitle: Advanced SubStation Alpha [S: ass [default]]
Subtitle: UTF-8 [S: No subtitles]

Instead of reseeking right away (to restore audio), I kept the video running tonight and something interesting happened about two minutes later. The video froze, but the audio started to come back intermittently. This went on for about a minute and then audio was fully back on. Another half minute passed and then video resumed on its own, in sync with audio.

nevcairiel, I don't know if the above description provides any additional clue on where the issue may be. Please let me know if there is anything that you would like me to try (e.g. changing any particular setting).

Soukyuu
4th January 2015, 16:07
I can confirm it's still happening here as well.

colinhunt
4th January 2015, 22:48
I'd appreciate some help with video and audio freezing when skipping directly to any part - except for the very start - of a HEVC MP4 file. Player is latest stable version of MPC-HC, and I'm running LAV version 0.63. Same issue affects also MPC-BE which is set to use LAV. Noticed the same problem with VLC, just now.

File was encoded on MeGUI and muxing (HEVC + AC3) was done using MeGUI's internal MP4 muxer.

update: issue not limited to MP4; same thing happens with MKV, muxed with latest mkvtoolnix.

Any recommendations?

ocyl
4th January 2015, 23:02
I am sorry to report that I have continued to experience the same issue with AAC tracks, and tonight with an AC3 track, as well.

LAV Version: 0.63.0.29

File Info
Type: Matroska
Video: MPEG4 Video (H264) 1024x576 23.976fps [V: English [eng] (h264 high 10 L5.0, yuv420p10le, 1024x576) [default]]
Audio: Dolby AC3 48000Hz stereo 224kbps [A: ac3, 48000 Hz, stereo, 224 kb/s [default]]
Subtitle: Advanced SubStation Alpha [S: ass [default]]
Subtitle: UTF-8 [S: No subtitles]

Instead of reseeking right away (to restore audio), I kept the video running tonight and something interesting happened about two minutes later. The video froze, but the audio started to come back intermittently. This went on for about a minute and then audio was fully back on. Another half minute passed and then video resumed on its own, in sync with audio.

nevcairiel, I don't know if the above description provides any additional clue on where the issue may be. Please let me know if there is anything that you would like me to try (e.g. changing any particular setting).
I can confirm it's still happening here as well.

It happened to me again today, this time with an AAC track.

File Info
Type: Matroska
Video: MPEG4 Video (H264) 1280x720 23.81fps [V: h264 high L4.0, yuv420p, 1280x720 [default,forced]]
Audio: AAC 44100Hz stereo [A: aac lc, 44100 Hz, stereo [default,forced]]
Subtitle: Advanced SubStation Alpha [S: ass [default,forced]]
Subtitle: UTF-8 [S: No subtitles]

Turn of Events

Video and audio were playing fine.
I used the "Jump Backward (medium)" key in MPC-HC to go back five seconds in time. The "Fast seek (on keyframe)" option had been unchecked.
Audio output disappeared upon reseeking, and video playback continued. This went on for about a minute.
Video output froze, but the audio portion that was supposed to have been played back in the past minute was played. This went on for about two minutes, during which audio output continued but video frame remained static.
Video and audio resumed and were in sync. MPC-HC stats showed that no frame had been dropped.

Unfortunately, I was not able to reproduce the issue afterwards.

nevcairiel
6th January 2015, 10:45
LAV Filters has official nightly builds now:
http://files.1f0.de/lavf/nightly/

The builds are started every night at 01:30 CET, so they are "true" nightly builds (one every night) and there won't be a single build for every change during the day. However, I may increase the number of builds if I ever see a reason for it.

This should make test versions of LAV more accessible to everyone, instead of relying on third-parties who may even provide modified builds only, which can make tracking down issues much harder.
The first nightly was build last night after successful testing of my scripts, and will continue from now on.

All my builds are digitally signed with a new certificate now, using a SHA256 hash. Note that these certificates cannot be validated on Windows XP, but official support for XP has ceased anyway, and anyone still using it should be urged to upgrade.

filler56789
6th January 2015, 11:39
LAV Filters has official nightly builds now:
http://files.1f0.de/lavf/nightly/

:goodpost: and :thanks: :thanks: :thanks:

nevcairiel
6th January 2015, 11:42
Turn of Events

Video and audio were playing fine.
I used the "Jump Backward (medium)" key in MPC-HC to go back five seconds in time. The "Fast seek (on keyframe)" option had been unchecked.
Audio output disappeared upon reseeking, and video playback continued. This went on for about a minute.
Video output froze, but the audio portion that was supposed to have been played back in the past minute was played. This went on for about two minutes, during which audio output continued but video frame remained static.
Video and audio resumed and were in sync. MPC-HC stats showed that no frame had been dropped.

Unfortunately, I was not able to reproduce the issue afterwards.

Interesting, at least this rules out the audio decoder actually failing to decode the audio for some reason (which was the assumption i was working on before).

However, it makes it even more of a mystery.

Which Audio Renderer are you using? DirectSound? WaveOut? ReClock?

Warlock
6th January 2015, 14:34
LAV Filters has official nightly builds now:
http://files.1f0.de/lavf/nightly/


Awesome! Great! :goodpost:

PS: Nevcairiel , dxva-cb are having problems with vgas nvidia GTX 970/980? I'm asking for the reason I have enough presentation glitches with the 970. If I enable Cuvid , the problem disappears . I'm using the latest driver available. In a 720p video with dxva-cb enabled, is alternating between 10 ~ 15ms , with cuvid , the rate is below 2ms . I'm using madVR with the following settings :

artifact removal : default - high / high - strength
scaling :
chroma - jinc3
image doubling - luma always 64 neurons
image upscaling - jinc3
image downscaling - cm AR / LL enabled
rendering settings default , only changed dithering for ED2 and trade quality with all the options disabled .

What do you think is causing this increased presentation glitches ?

wanezhiling
6th January 2015, 14:35
LAV Filters has official nightly builds now:
http://files.1f0.de/lavf/nightly/
Thanks, that's really wonderful.:D

Hmm.. only installer? not .bat version? :o

nevcairiel
6th January 2015, 14:49
Hmm.. only installer? not .bat version? :o

Installer is the recommended way to install it. Extra choices just confuse people! :)

mood
6th January 2015, 20:20
LAV Filters has official nightly builds now:
http://files.1f0.de/lavf/nightly/



:thanks::thanks::thanks:

STaRGaZeR
7th January 2015, 12:47
If I enable Cuvid , the problem disappears . I'm using the latest driver available. In a 720p video with dxva-cb enabled, is alternating between 10 ~ 15ms , with cuvid , the rate is below 2ms .

It seems Cuvid forces a higher P-State, this causes higher GPU and memory frequencies, that result in lower rendering times.

ocyl
7th January 2015, 12:51
Interesting, at least this rules out the audio decoder actually failing to decode the audio for some reason (which was the assumption i was working on before).

However, it makes it even more of a mystery.

Which Audio Renderer are you using? DirectSound? WaveOut? ReClock?
I am using DirectSound.

Turn of Events

Video and audio were playing fine.
I used the "Jump Backward (medium)" key in MPC-HC to go back five seconds in time. The "Fast seek (on keyframe)" option had been unchecked.
Audio output disappeared upon reseeking, and video playback continued. This went on for about a minute.
Video output froze, but the audio portion that was supposed to have been played back in the past minute was played. This went on for about two minutes, during which audio output continued but video frame remained static.
Video and audio resumed and were in sync. MPC-HC stats showed that no frame had been dropped.


I noticed something else today. In MPC-HC's statistics panel, there are three buffers: [0], [1], and [2]. When audio disappeared upon reseeking, buffer [0] would start dropping towards 0/0. Once video froze and audio came out, buffer [0] would begin to be replenished while buffer [1] would start dropping towards 0/0. The two buffers would more or less return to normal levels when video and audio were in sync again. Buffer [2] is always 0/0 for me.

nevcairiel
7th January 2015, 15:18
Yes it looks like that for some reason audio is not being delivered to the audio renderer properly .. its stuck somewhere. Maybe in the renderer? How it manages to resume eventually is as much of a mystery.
Buffer 0 is video, which you said would continue playing, but because the audio buffer is exceeding its size limit, the video buffer isn't being filled anymore. Buffer 2 is subtitles, its normal for that to be empty.

I may provide a build with extra logging, I'll have to think about the problem a bit.

mindbomb
7th January 2015, 16:32
new intel broadwell gpu's apparently have vp9 hardware decode

fagoatse
8th January 2015, 18:52
new intel broadwell gpu's apparently have vp9 hardware decode

Speaking of which, supposedly AMD's Carrizo APUs can hardware decode h265 4k vidoes. Which means that they've either updated UVD or it's some kind of hybrid decoding(opencl).

James Freeman
10th January 2015, 17:58
@nevcairiel

I just read that there were some speed improvements of CPU HEVC decoding in the past few days.
Will this be implemented into LAV Filters?

clsid
11th January 2015, 01:22
Where did you read that? You probably misunderstood or confused things with a different decoder.