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

hoborg
3rd July 2014, 08:16
That will not remultiplex the file with a different container format. SWF and FLV are different.

Yes, but sometimes the videos have wrong extension...

LigH
3rd July 2014, 08:23
A wrong extension will only keep a file from appearing in a filtered directory listing, but not from being opened in an application if the application indeed supports the format. Except the programmer was stupid enough to decide based on the extension instead of the content how to handle the file.

LAV splitters will certainly try to detect based on the content if they support a container format.

zveroboy
3rd July 2014, 20:46
nevcairiel
Can I make a feature request?
I download the live stream from the internet to a file and open this file in the player, not stopping downloading.
Is it possible to the splitter tracked the increasing of the file "on the fly"? I want to the viewing-position should not be reached the end, until I stop the download.
This feature is implemented in DAUM Pot player, but I want to use MPC-BE.

foxyshadis
3rd July 2014, 23:16
Unfortunately, I'm not sure. From trying to deal with these files, I'm pretty sure they're definitely a pain... all I can offer is what mediainfo gives me.

http://puu.sh/9UKHC/8c9c1b8fe6.png

So maybe it's VP6? Or maybe mediainfo is confused? Because I don't see why there would be 2 video streams either, but hey, what do I know! :confused:

It's definitely VP6-in-FLV-in-SWF. You can use JPEXS to extract the video.

TheDarkTemplar
4th July 2014, 00:05
If I change the selection mode from advanced to default, then it does load default subtitles fine. So, it seems it's definitely capable of switching them on if it wants. Hmm...

I guess I'll just assume advanced is broken and use the default mode unless someone has a solution. It's not too inconvenient to have to enable/disable subtitles manually when starting a lot of movies anyway. :D

nevcairiel
4th July 2014, 00:06
Advanced Mode works just fine. Most likely your pattern string is not doing what you think it should.

TheDarkTemplar
4th July 2014, 01:16
Like I said, just *:eng doesn't even enable them when set to advanced.

I have just discovered the issue however. I realized the subtitles need to have an explicit [eng] tag in order for it to enable them, not just merely be subtitles in the language. All the videos I was testing with had softsubs simply titled 'English Subtitles' or the like without the actual tag, so it wasn't enabling any of them.

nevcairiel
4th July 2014, 01:34
Well yeah, it reads the language Tag, the title could be anything.

nautilus7
5th July 2014, 12:38
Hi, I have some satellite broadcasts (World Cup EBU feeds) that LAV filters can't decode the 3rd audio track properly. Same happens with mkvmerge and eac3to. Here's a sample (https://www.sendspace.com/file/gulxjy) of such broadcast. Can you have a look, please?

EDIT: Track No3 is supposed to be "Dolby E".

Mercury_22
5th July 2014, 16:03
@Nev Can you make LAV splitter to select the playlists in a BD in the ascending order of their names for equal or almost equal length playlists ? This will improve the selection of the correct playlist

e.g. A BD has ...00800.mpls of 00:46:03, 00801.mpls of 00:45:13, 00802.mpls of 00:46:03, 00803.mpls of 00:46:03,...mpls Now Lav is selecting 00803.mpls while the correct playlist is 00800.mpls

Edit: XBMC (maybe others too) seems to use this logic with better results

dbezerra
7th July 2014, 18:37
Nev,

Would be possible to have a fallback mode in Lav Audio for the Bitstream options?

Here is my scenario: MPC-HC with LAV filters & MadVR, connected to both the TV and Receiver, via Nvidia GTX 650.

TV: EDID reports only stereo - no DD, DTS, etc
Receiver: Capable of all audio formats.

I want to take advantage of the receiver capabilities, but at the same time I need sound via TV when kids are watching movies or when I just don't feel like turning on the receiver (casual viewing of a TV series, etc). Today I have to keep changing LAV settings - unchecking all bitstream options when I want to watch via TV, check them all when I want to watch via the receiver.

If a fallback mode is possible, I could leave them all checked, and let LAV to fallback to pcm when necessary.

(I know that Reclock with decoded audio is another option, but I prefer to have it bitstreamed to the receiver)

Thanks

theoneofgod
7th July 2014, 19:52
Nev,

Would be possible to have a fallback mode in Lav Audio for the Bitstream options?

Here is my scenario: MPC-HC with LAV filters & MadVR, connected to both the TV and Receiver, via Nvidia GTX 650.

TV: EDID reports only stereo - no DD, DTS, etc
Receiver: Capable of all audio formats.

I want to take advantage of the receiver capabilities, but at the same time I need sound via TV when kids are watching movies or when I just don't feel like turning on the receiver (casual viewing of a TV series, etc). Today I have to keep changing LAV settings - unchecking all bitstream options when I want to watch via TV, check them all when I want to watch via the receiver.

If a fallback mode is possible, I could leave them all checked, and let LAV to fallback to pcm when necessary.

(I know that Reclock with decoded audio is another option, but I prefer to have it bitstreamed to the receiver)

Thanks

+1. Good idea.

yonta
9th July 2014, 10:04
LAV splitter(v0.62.0.0) doesn't read mp3 audio track in this .mp4 file (https://drive.google.com/file/d/0B1mCVSSmbT2LY1BUNUNmaGd5bkk/edit?usp=sharing)
I tried mpc-be internal, mplayer, vlc and they all work fine.

filler56789
9th July 2014, 16:57
LAV splitter(v0.62.0.0) doesn't read mp3 audio track in this .mp4 file (https://drive.google.com/file/d/0B1mCVSSmbT2LY1BUNUNmaGd5bkk/edit?usp=sharing)
I tried mpc-be internal, mplayer, vlc and they all work fine.

It seems the original mp3 stream was borked already... OR, perhaps, it was screwed by MP4Box :confused:
Anyway, neither ffmpeg nor L-Smash remuxer like your sample file:

[mov,mp4,m4a,3gp,3g2,mj2 @ 02ec25a0] Could not find codec parameters for stream 1
(Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, 2 channels, s16p, 320 kb/s): unspecified frame size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Guessed Channel Layout for Input Stream #0.1 : stereo

I used MKVmerge GUI for remuxing the audio to an MKA file, then I applied AVI-Mux GUI, and this is what MediaInfo said about the resulting 391kB MP3:

Audio
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Mode : Joint stereo


Duration : 4mn 44s


Bit rate mode : Constant
Bit rate : 320 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz

ahaha2013
9th July 2014, 17:37
The pre-language of srt can't not work. Why? How?

I have set the pre-lang in the lav spiliter.
http://i1.tietuku.com/fe65ced99f301158.png

mpc(1.7.6.30) + lavfiters(0.62) + vsfilter.dll(3.0.0.300 git 6c0c23a)

There were two file:
How To Train Your Dragon.eng.srt
and
How To Train Your Dragon.srt

What I wanted was it can auto load *.eng.srt.

clsid
9th July 2014, 17:47
The language settings in LAV only apply to embedded streams. LAV Filters does nothing with external subtitle files. That is the job of your player. You can configure the preferred language in MPC-HC.

ahaha2013
9th July 2014, 18:30
The language settings in LAV only apply to embedded streams. LAV Filters does nothing with external subtitle files. That is the job of your player. You can configure the preferred language in MPC-HC.

So MPC-HC can realize this, external subtitle files, with preferred setting?

But I did this with the mpc-hc's setting,indeed.
http://i1.tietuku.com/bebff222b204cee2.png

What did I miss?

sneaker_ger
9th July 2014, 19:55
It's under "Options">"Playback">"Default track preference". You may also need to tick the "Allow overriding..." box.

regiregi22
9th July 2014, 20:23
Maybe this has been answered before but I was unable to find the post. When you are downmixing with LAV Audio from 5.1 to stereo, are the surround channels hard-panned to the same side? I have generated some pink noise 6-channel wav files, each file with the tone only in one channel, and I notice that when playing the Rear Left or the Rear Right files, they are not hard panned, but bleed some sound on the oppositte front speaker.

What I wonder is if there is any official recommended practice in the way of doing that downmixing or is it just LAV development team decission...

Best regards

Asmodian
9th July 2014, 21:31
Yes there is are recommended downmix matrices. Do you have the Matrix Encoding (in the Mixing tab) set to None or one of the Dolby Pro Logics?

regiregi22
10th July 2014, 01:02
It's set to None. Do you know the spec name for those matrices so to google them?

foxyshadis
10th July 2014, 02:30
Dolby Pro Logic (https://en.wikipedia.org/wiki/Dolby_Pro_Logic) (and its successors) is the spec name. Quite a few AC3 2.0 tracks are actually 5.0 Pro-Logic II, and some AC3 5.1 are actually 7.1 matrixed the same way (but that's known as Dolby Digital EX or Surround EX). If one of them was selected, then your 6-channel audio would be mixed into two channels, preparing it to be unmixed (imperfectly) by a receiver later.

(The main difference between Pro Logic and Pro Logic II is that you get an extra channel, and II doesn't sound horrible when any random stereo track is decoded, often quite pleasant as fake surround goes, unless you're very tuned to its artifacts. Lots of surround speaker systems license it, and I use it myself for music.)

If it's set to none and you're absolutely certain that your sample is silent on that channel in other software - have you played it in Audacity or another audio software to verify? - then it sounds like a ffmpeg/libav bug. Try other software first, because it could be a driver or speaker problem too.

regiregi22
10th July 2014, 17:13
Thanks for the explanation. So from what I have read, I could just tick the Dolby Pro Logic II option and listen to plain stereo tracks (music or film) converted from 2.0 to 5.1? My bedroom HT is in stereo, but I have another HT with 6 speakers.

I have generated some full-band pink noise wav test files 48K/16 of around 30 seconds each. Those are 6-channel files, each file is exactly the same stream but placed in a different channel inside the file. Channel 4 wich is LFE is in addition being limited in 20hz-120hz, so to calibrate the subwoofer accordingly (DO NOT USE the full band pink noise file "4.wav" to calibrate the subwoofer, you have to use the filtered 20-120hz file. Named "4.wav" file its only here for experimental purposes). All files are recorded at the cinema standard -20dBFS and peaking at -8dBFS, so they can be used in conjuntion with an SPL meter to calibrate your 5.1 speakers to match the speakers from your listening position. With any cheap SPL you can calibrate it to the estandard cinema loudness level +85dB, or the domestic +79dB, or something inbetween. The subwoofer has to be calibrated at +4dB relative to each of the other speakers, so if you calibrate each of the speakers to +85dB, the subwoofer has to measure +89dB on the SPL meter. Remember to use C-weighting and setting it up to SLOW mode.

OK, so when I open each file in Foobar, in normal mode, sound from the speakers comes only from files 1 and 2. Everything's right because I have just an stereo setup. When I activate the DSP called "Downmix channels to stereo", I hear:

Left speaker: channels 1(FL), 5(RL)
Right speaker: channels 2(FR), 6(RR)
Both speakers: channels 3(C), 4(LFE)

If Foobar can open the files OK, so the test files have to be OK. I myself generated them and they measured fine in Reaper. But then when I open each file in MPC-HC (using LAV filters, Reclock, madvr), everything is the same except that the rear channels, 5.wav and 6.wav files, are not hard panned at all. It sounds like if they were balanced something like 80%-20% between left and right. I have measured them with a digital multimeter (not RMS, but give us a rough idea), one speaker measured around 0.073vac while the other measured 0.120vac

Those are the test files if anyone would like to reproduce this behaviour or use them to volume calibrate a surround system:
http://www9.zippyshare.com/v/4465967/file.html

And this is my audio config in LAV and Reclock
http://img7.imagevenue.com/loc352/th_07944_1_122_352lo.jpg (http://img7.imagevenue.com/img.php?image=07944_1_122_352lo.jpg)http://img275.imagevenue.com/loc392/th_07953_2_122_392lo.jpg (http://img275.imagevenue.com/img.php?image=07953_2_122_392lo.jpg)http://img157.imagevenue.com/loc421/th_07960_3_122_421lo.jpg (http://img157.imagevenue.com/img.php?image=07960_3_122_421lo.jpg)




On a different matter, is there any way to use ASIO with LAV filters, so to be able to use ReWire to Reaper and use some analysis tools? If not ASIO, any idea on how to send any stream to Reaper from MPC/LAV?

nevcairiel
10th July 2014, 17:25
Only if you select one of the matrix encoding options it'll partially throw the backs/sides into the opposing channel, if matrix encoding is set to none, it'll strictly throw it into the matching left/right channel.
Sounds like something else is going on.

For ASIO, you need a player that offers a ASIO audio renderer, there is no standalone audio renderer available AFAIK.

e-t172
10th July 2014, 19:11
On a different matter, is there any way to use ASIO with LAV filters, so to be able to use ReWire to Reaper and use some analysis tools? If not ASIO, any idea on how to send any stream to Reaper from MPC/LAV?

There's this thing ("ASIOBridge") (http://vb-audio.pagesperso-orange.fr/Cable/) that looks like a solution. Never tried it, though.

regiregi22
10th July 2014, 19:13
Got it, so it should work like Foobar, each channel to each speaker.

If not ASIO, any remote way to redirect the output in order to analyse or even apply effect in VST form?

SamKook
10th July 2014, 19:43
Surodev has a directshow ASIO renderer: http://surodev.com/products/asio-renderer/

I did a bit of testing for the guy back when I was trying to find a replacement for reclock WASAPI renderer and it worked with LAV, but I had some problems with changing the audio volume from MPCHC(he improved it a bit after the testing, but the range that would actually change was pretty small and at some point I never heard back from him).

regiregi22
11th July 2014, 13:34
There's this thing ("ASIOBridge") (http://vb-audio.pagesperso-orange.fr/Cable/) that looks like a solution. Never tried it, though.
I haven't tried ASIOBridge, instead I have installed Virtual cable which seems to work fine for this purpose. Will try it later anyway.

This is what MPC outputs, as you can see there is a hard 4.22dB difference between left and right channel when downmixing to Stereo. This is only the rear left channel playing, which should sound only on the left speaker. What makes me wonder LAV uses some king of mixing algorithm instead of just routing the rear left speaker to the front left speaker.


http://img275.imagevenue.com/loc385/th_80143_Clipboard01_122_385lo.jpg (http://img275.imagevenue.com/img.php?image=80143_Clipboard01_122_385lo.jpg)


And this is the same file played through Foobar with the "Downminx channels to stereo" DSP activated. Those -317dB is Reaper's noise floor, digital zero in fact:

http://img206.imagevenue.com/loc596/th_80626_Clipboard02_122_596lo.jpg (http://img206.imagevenue.com/img.php?image=80626_Clipboard02_122_596lo.jpg)

regiregi22
11th July 2014, 13:38
Is it possible for someome to take a quick test with those test files to check that it's something related to my setup instead of a bug?

jkauff
12th July 2014, 22:45
On a different matter, is there any way to use ASIO with LAV filters, so to be able to use ReWire to Reaper and use some analysis tools? If not ASIO, any idea on how to send any stream to Reaper from MPC/LAV?
If you don't mind spending some money, JRiver Media Center can use ASIO for video and audio playback. This and the other features of the program make it well worth the $50 (and nevcairiel now works for JRiver, so you know it's going to work well with LAV).

regiregi22
14th July 2014, 13:26
If you don't mind spending some money, JRiver Media Center can use ASIO for video and audio playback. This and the other features of the program make it well worth the $50 (and nevcairiel now works for JRiver, so you know it's going to work well with LAV).
Thanks for the input. I already solved the issue with Virtual cable, and pretty much prefer MPC-HC.

Still waiting for someone to check this behaviour as a bug though...

dude2012
16th July 2014, 14:23
as of version 0.62.0 I can no longer bitstream DD+ 7.1 (5.1 still works). If I revert to an older version like 0.58.2 bitstream works fine. Anyone else experiencing this?

nevcairiel
16th July 2014, 14:39
Only SP3 is supported, and future versions may drop support for Windows XP all together.

vinnytx
17th July 2014, 08:30
Hi,

how can I enable use of MFT decoder for WMV9 video in Lav Filters 0.62?

In the preference I have only this checkbox "Use Microsoft WMV9 DMO decoder for WMV3 and VC-1"

I use Windows 7

LigH
17th July 2014, 10:17
My guess would be that only renaming the checkbox label was forgotten...

nevcairiel
17th July 2014, 15:11
That is indeed the case, the MFT is used in place of the DMO on Windows 7 and above.
You can see that during playback, too, decoder will be wmv9 mft.

nautilus7
18th July 2014, 00:59
Hi, I have some satellite broadcasts (World Cup EBU feeds) that LAV filters can't decode the 3rd audio track properly. Same happens with mkvmerge and eac3to. Here's a sample (https://www.sendspace.com/file/gulxjy) of such broadcast. Can you have a look, please?

EDIT: Track No3 is supposed to be "Dolby E".

Nev, does libav/ffmpeg support Dolby E?

nevcairiel
18th July 2014, 08:04
Dolby E is not supported, and its doubtful that it'll ever be since Dolby is rather protective of that format.

zerowalker
18th July 2014, 08:30
Am i alone with this issue: http://code.google.com/p/lavfilters/issues/detail?id=468&thanks=468&ts=1405604364 ?

regiregi22
18th July 2014, 09:44
Why is there applied a 0.71 ratio to surround channels when downmixing them to stereo? I thought that reduction was only mandatory for the center channel, because there would be a +3dB build-up when playing that center channel in both left and right front speakers, so you apply a 0.71 ratio to have the same overall volume. Rear left and right are hard panned to both front left and right speakers, so they wouldn't need any reduction.

I know that I can move the slider to 1, but why is the default recommended 0.71?

Best regards

nevcairiel
18th July 2014, 12:12
It's 0.71 to favor the fronts, and not drown out dialog with the surrounds. Its just a default as you say.

nautilus7
18th July 2014, 12:33
Dolby E is not supported, and its doubtful that it'll ever be since Dolby is rather protective of that format.

I see, thanks.

Reino
18th July 2014, 14:40
Am i alone with this issue: http://code.google.com/p/lavfilters/issues/detail?id=468&thanks=468&ts=1405604364 ?No you're not. I've had some spare time, so I had a look:

http://www.ld-host.de/uploads/thumbnails/c8ece81c7d6d625acaeb8be0b8d2b146.png (http://www.ld-host.de/uploads/images/c8ece81c7d6d625acaeb8be0b8d2b146.png)_____http://www.ld-host.de/uploads/thumbnails/366dc190e091c68db67bc267cadb67f5.png (http://www.ld-host.de/uploads/images/366dc190e091c68db67bc267cadb67f5.png)
ffplay-20140318-git-aa86ccc (http://ffmpeg.zeranoe.com/builds/win32/static/ffmpeg-20140318-git-aa86ccc-win32-static.7z)____ffplay-20140319-git-ce9d3da (http://ffmpeg.zeranoe.com/builds/win32/static/ffmpeg-20140319-git-ce9d3da-win32-static.7z)

I didn't have any problems seeking, but as you can see with ffmpeg the image is corrupted as of March 19 2014.
But the strange thing is that with LAV 0.61.2, which is released on June 12 2014, the image is still fine. Does this mean LAV 0.61.2 was based on an old ffmpeg version?

cyberbeing
18th July 2014, 16:08
Does this mean LAV 0.61.2 was based on an old ffmpeg version?
Yes, LAV 0.61.2 used 2014-03-02 ffmpeg.

Official LAV Filters builds always use Nev's custom patched FFMPEG branch, where you can look this up by tag (or alternatively by the LAV git submodule hash for ffmpeg):
http://git.1f0.de/gitweb?p=ffmpeg.git;a=summary;js=1

nevcairiel
18th July 2014, 16:28
I didn't check the exact dates, but FFmpeg is usually only updated for major versions (ie in 0.61, not in 0.61.2) to avoid regressions like this. If anything I only back port individual patches to my custom fork for minor releases.

For this particular problem, I suggest bringing it to ffmpegs attention.

zerowalker
19th July 2014, 02:23
I didn't have any problems seeking

The thing is, this clip has been Cut, and will Always show the issue.

The original file is Only fine as long as you play from frame 1 and forward.

Cutting it seems to be like a seek, it doesn't start from the first frame. I guess there is some special thing going on there, still weird, would understand if it was a P-Frame or something like that.

If this is an ffmpeg bug, is someone gonna bug report it, or shall i do it?

zerowalker
19th July 2014, 10:49
Noticed another "bug?", not sure if it's EVR or LAV or both.

If the video is YV24 x264 (Tried MagicYUV YV24 didn't matter there), the renderer will resize in Point instead of Billinear/Bicubic.

This doesn't happen in MPC-HC if the internal LAV is used (EVR non-custom must be used, else it will work with both versions).

Can someone verify this?

nevcairiel
19th July 2014, 10:52
EVR fails at AYUV support, which is the only 4:4:4 format it supports, and is disabled by default in LAV. Maybe you enabled it in your external LAV.

zerowalker
19th July 2014, 10:56
Ah, finally, damn need to reset my settings as i am not sure what i have touched.
Thought it was a Player bug at first so asked at the forum for it, but now it's solved, thanks:)

But how come EVR Custom Presenter works?

cyberbeing
19th July 2014, 11:15
EVR Custom has the AYUV input format disabled, I believe.

With normal EVR, you can set the EVR prop 'Aspect Ratio Mode' to 'NonLinearStretch' which will force it to use Bilinear or similar with AYUV, but that setting has limitations.
Video will always be streched to output window size without maintaining aspect ratio (no black bars). Video will always be output with untouched level range (no TV->PC conversion).