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

nevcairiel
20th March 2014, 10:08
As mentioned in my response to the original request, its still on the list, but undetermined when I'll get to it.

Plutotype
23rd March 2014, 23:41
Hi Nev,
Would it be possible to stream and render two external srt subtitle files at the same time (madVR )? I mean reading 2+ lines of text in different lanugages at the same time.
Thanks

nevcairiel
23rd March 2014, 23:44
You'll need a subtitle renderer that can render multiple subtitle streams, LAV alone does not and will not do such hacks.

vood007
24th March 2014, 05:35
Hi Nev,
Would it be possible to stream and render two external srt subtitle files at the same time (madVR )? I mean reading 2+ lines of text in different lanugages at the same time.
Thanks

This may help:

http://pas-bien.net/2srt2ass/

Aleksoid1978
24th March 2014, 07:51
Hi Nev,
Would it be possible to stream and render two external srt subtitle files at the same time (madVR )? I mean reading 2+ lines of text in different lanugages at the same time.
Thanks

With LAV Source is not possible - it handle single pin out, and no way to request data from different subtitle's track at one time :)

nevcairiel
24th March 2014, 09:06
He wants external SRT files. Can just open two of them.

tobindac
24th March 2014, 15:46
splitter appears to be preferred internal version. How to fix? The video and audio decoders work fine.

All are set as external filters on 'Prefer'.

nevcairiel
24th March 2014, 16:18
If you have problems with a player, you should ask in the appropriate place, ie. the support thread for that player.

manolito
25th March 2014, 02:22
Just had a very weird issue with LAVFilters 0.61.1 together with the AVStoDVD preview option. It only happens when using the LAVFilters installer, when using the ZIP file everything works perfectly.

My system is WinXP (32bit of course). The AVStoDVD preview uses the infamous quartz.dll (DirectShow ActiveMovie). DirectShowSource is its default source filter, the author recommends ffdshow which works nicely.

For several reasons I wanted to replace ffdshow with LAVFilters, and with earlier versions (0.59.1) there also were no problems. But after using the 0.61.1 installer the AVStoDVD preview just hangs and crashes the main program.

This issue only affects the preview, the actual encoding works fine.

The funny thing is that when I use the ZIP file instead of the installer, the preview works perfectly. I can live with this now since I figured out the command line for setting up the filters, but I still do not understand what the installer does what crashes the AVStoDVD preview.

I did some more tests, and I found that after using the installer once there is no way back. Uninstalling and then use the ZIP file does not help, there is something the installer does to my system which is not reverted by uninstalling. The only cure at this point is restoring a current backup. Since the installer for earlier versions did not cause problems, I suppose that there were some recent changes to the installer which are responsible for this issue.

Any ideas?


Cheers
manolito

mindbomb
26th March 2014, 09:11
I think I may have found a bug. I was playing a 24 bit stereo flac. My mixer setting was for 5.1, but with mixing disabled for stereo sources. The output from lav audio was then 32 bit integer.

clsid
26th March 2014, 17:36
@manolito
Current LAV Filters is not fully compatible with AviSynth 2.5.

You can restore the standard splitter for AviSynth with this:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Wow6432Node\Media Type\Extensions\.avs]
@=""
"Source Filter"="{D3588AB0-0781-11CE-B03A-0020AF0BA770}"

michkrol
26th March 2014, 17:44
I think I may have found a bug. I was playing a 24 bit stereo flac. My mixer setting was for 5.1, but with mixing disabled for stereo sources. The output from lav audio was then 32 bit integer.

You don't lose any precision, so what's the problem?
Maybe your output device or drivers don't support 24bit format?
If you go to LAV Audio decoder properties during playback you can see currently used and all suppoerted formats in the Status tab. It works for me (LAVFilters 0.61.1), see below.

http://i.imgur.com/WVoEt64.png (http://imgur.com/WVoEt64)

EDIT: I can reproduce it with mixing settings listed by mindbomb.

manolito
26th March 2014, 20:32
@manolito
Current LAV Filters is not fully compatible with AviSynth 2.5.


Thanks a million, clsid... :thanks:

In the meantime I had followed many different leads to track down the problem (like filter merits, VB runtime files), but it all ended at a dead end.

BTW for WinXP the "Wow6432Node" entry does not exist, the reg file must look like this:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Media Type\Extensions\.avs]
@=""
"Source Filter"="{D3588AB0-0781-11CE-B03A-0020AF0BA770}"

So it's time for LAVFilters 0.61.2 I guess. Or are filter developers considering AviSynth 2.5x obsolete already? And in any case the installer should have reverted my registry to the pre-install settings upon uninstall.



Cheers
manolito

Aleksoid1978
27th March 2014, 00:50
nevcairiel
http://rghost.ru/private/53390670/4ab123fe02f41dc246443e4f4121c0be - don't play, ffmpeg return error No frame
But - ffplay play good.

mindbomb
27th March 2014, 02:15
You don't lose any precision, so what's the problem?
Maybe your output device or drivers don't support 24bit format?
If you go to LAV Audio decoder properties during playback you can see currently used and all suppoerted formats in the Status tab. It works for me (LAVFilters 0.61.1), see below.


yea, you have to specifically set enable the mixer, set it to 5.1, and enable don't mix stereo sources to reproduce this issue.

michkrol
27th March 2014, 09:54
yea, you have to specifically set enable the mixer, set it to 5.1, and enable don't mix stereo sources to reproduce this issue.

Sorry. You're right, I can reproduce it with your mixing settings, but I still don't see how it would be a problem - you don't lose precision, your soundcard (supposedly) supports 32bit and by mixing you're already "modifying" the audio stream, so having it "untouched" is out of question.
BTW, I get 32bit float with mixing to 5.1 and 32bit integer with mixing to 5.1 and "don't mix stereo sources".

LigH
27th March 2014, 10:07
Stuffing 24 bit samples to 32 bit is probably just avoiding the processing of interleaved values in DWORD registers for a better performance, similar to graphic modes using 32 bit RGB(0) pixels.

pihug12
27th March 2014, 20:06
Hello!

This M4A audio file seems to cannot be played with LAV Splitter : http://www.criticalmusic.com/podcast/episodes/CriticalPodcast32Emperor.m4a

General
Complete name : C:\Users\Pierre\Downloads\CriticalPodcast32Emperor.m4a
Format : MPEG-4
Format profile : Apple audio with iTunes info
Codec ID : M4A
File size : 72.1 MiB
Duration : 59mn 15s
Overall bit rate mode : Variable
Overall bit rate : 170 Kbps
Movie name : Critical Music Podcast Vol.32 - Hosted by Emperor
Encoded date : UTC 2014-02-11 11:19:44
Tagged date : UTC 2014-02-11 11:19:55
Writing application : GarageBand 6.0.5
Cover : Yes
Comment : 1. Ed:it - I Would (SGN:LTD) / 2. Rregular & Dementia ft. Disphonia - Doom Loop...

Video
ID : 4
Format : JPEG
Codec ID : jpeg
Duration : 59mn 15s
Source duration : 59mn 15s
Bit rate mode : Variable
Bit rate : 3 684 bps
Width : 500 pixels
Height : 500 pixels
Display aspect ratio : 1.000
Frame rate mode : Variable
Frame rate : 0.004 fps
Minimum frame rate : 0.001 fps
Maximum frame rate : 0.010 fps
Color space : YUV
Chroma subsampling : 4:4:4
Bit depth : 8 bits
Compression mode : Lossy
Bits/(Pixel*Frame) : 3.684
Stream size : 1.43 MiB (2%)
Source stream size : 1.43 MiB (2%)
Language : English
Encoded date : UTC 2014-02-11 11:19:42
Tagged date : UTC 2014-02-11 11:19:55

Audio
ID : 3
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 59mn 15s
Bit rate mode : Constant
Bit rate : 160 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 44.1 KHz
Compression mode : Lossy
Stream size : 69.7 MiB (97%)
Language : English
Encoded date : UTC 2014-02-11 11:19:42
Tagged date : UTC 2014-02-11 11:19:55

Text #1
ID : 1
Format : Timed Text
Codec ID : tx3g
Duration : 59mn 15s
Bit rate mode : Variable
Bit rate : 2 bps
Stream size : 899 Bytes (0%)
Language : English
Encoded date : UTC 2014-02-11 11:19:42
Tagged date : UTC 2014-02-11 11:19:55

Text #2
ID : 2
Format : Timed Text
Codec ID : tx3g
Duration : 59mn 15s
Bit rate mode : Variable
Bit rate : 2 bps
Stream size : 775 Bytes (0%)
Language : English
Encoded date : UTC 2014-02-11 11:19:42
Tagged date : UTC 2014-02-11 11:19:55

The MPC-HC window allocates 500px * 500px for the artwork, but the screen stays black.
The "Play" button is pushed, but nothing is played (stays at 00:00).

If I switch the splitter to Haali, I can read this file (see more infos here (http://codecs.forumotion.net/t1523-m4a-audio-file-doesn-t-play-with-mpc-hc)).

Sorry if this problem is not only LAV Splitter related, I'm no expert.

hubblec4
27th March 2014, 20:17
AVSplitter plays the file fine too.

CoKing
27th March 2014, 20:22
Seeing an odd behavior when using a SampleGrabber filter after the video decoder and was wondering if there were known issues.

It's an H264 stream (YV12) and the graph is

elecard net source -> elecard push demux -> lav video decoder -> sample grabber -> EVR

It looks like the chroma's are getting shifted around a bit (red and blue seems to be above where they should in the image). I can get it to display properly by stopping the graph and starting again, almost as if the pin types aren't being updated correctly with a grabber between the decoder and the renderer?

qyot27
27th March 2014, 21:46
Since I saw this come up on the AVStoDVD thread, I'll address it here too:

AviSynth handling is unstable with AviSynth 2.5.8 (freezes/crash). This is a regression in the FFmpeg code. Afaik it used to work before this rewrite: http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=f0b234ab9e406efee85c17eb435db646092a943b
Actually, the rewrite occurred in March of 2013 (http://git.videolan.org/?p=ffmpeg.git;a=commit;h=b9ad009475f3afb76bd2fbd92936dc4d4cd441ec) on FFmpeg's side. Libav didn't commit it until December, and commit f0b234ab is pretty much just the merge sync (virtually all of the changes suggested by Libav actually exist as a set of commits to FFmpeg prior to that commit, since there was a big crucial difference that needed to be accounted for: Libav dropping support for 2.5 completely - it stops dead in its tracks if it sees 2.5 and tells the user to upgrade; FFmpeg still supports 2.5).

Huh, I was under the impression that those issues were already more or less dealt with? Looking at this issue (https://trac.ffmpeg.org/ticket/2526). If it's not, I recommend someone to report it further.

Also, I think I've even had someone actually test 2.5.8 before, and it seemed to work. I am personally on 2.6, and wouldn't really recommend anyone to install anything older by now.
Yes, it was fixed:
http://git.videolan.org/?p=ffmpeg.git;a=commit;h=2c25e83b1d022ab36842d77749024b3d720a4227
(although my brain was a bit fried when I wrote the anecdote irt why AvxSynth was unaffected - the real reason is that it uses its own header and never touches the avisynth_c*.h headers at all; it's just a happy coincidence that it seems to have backported 2.6's versions of those two functions)



The hang that occurs when trying to use LAV Filters with AviSynth 2.5.8 isn't exclusive to 2.5.8 - it also happens when trying to use AviSynth+. But it also doesn't happen in 2.5.8 (or avsplus) either, if the source filter isn't DirectShowSource (read: LAV+AVS 2.5+FFMS2 works fine). The actual incompatibility here appears to be between LAV Filters and DirectShowSource, not LAV Filters and AviSynth.

Also, it probably isn't really that either, since the same DirectShowSource-using script that calls LAV Filters will open and playback fine in mpv. But if you try it in a DirectShow-based player, it hangs.

Basically, in a DirectShow-based player (I used WMP 6.4):
LAV Filters->libavformat (avformat-lav-55.dll)->AviSynth.dll->DirectShowSource.dll->LAV Filters again->libavformat (avformat-lav-55.dll) again

mpv:
libavformat (most likely statically linked)->AviSynth.dll->DirectShowSource.dll->LAV Filters->libavformat (avformat-lav-55.dll)

mpv works, DirectShow player hangs/crashes.


Or are filter developers considering AviSynth 2.5x obsolete already?
It's more a case of 2.6 offering better stability, but since it's still largely backward-compatible, it's [usually] not the filter developers' problem whether the plugin gets used under 2.5 or 2.6. But 2.6 got mired in development hell, and the only thing that broke with that was AviSynth+ forking off of 2.6 and eschewing the 'alpha' tag entirely (AviSynth+ r1576 is considered the 'stable' release; the MT branch is under testing but is the main development branch, currently at r1695). At this point there have been just as many unique commits to avsplus in the last six months (the fork occurred in mid-September 2013) as there have been to classic AviSynth since 2007.

nevcairiel
28th March 2014, 00:42
nevcairiel
http://rghost.ru/private/53390670/4ab123fe02f41dc246443e4f4121c0be - don't play, ffmpeg return error No frame
But - ffplay play good.

Should be fine now.

nevcairiel
28th March 2014, 09:34
The hang that occurs when trying to use LAV Filters with AviSynth 2.5.8 isn't exclusive to 2.5.8 - it also happens when trying to use AviSynth+. But it also doesn't happen in 2.5.8 (or avsplus) either, if the source filter isn't DirectShowSource (read: LAV+AVS 2.5+FFMS2 works fine). The actual incompatibility here appears to be between LAV Filters and DirectShowSource, not LAV Filters and AviSynth.

I tried to reproduce the hang, since I had a suspicion what could be causing it, but I had no luck.
Are there any other hings what might be involved? I tried a rather trivial script with nothing but DirectShowSource in it..

qyot27
28th March 2014, 16:39
I tried to reproduce the hang, since I had a suspicion what could be causing it, but I had no luck.
Are there any other hings what might be involved? I tried a rather trivial script with nothing but DirectShowSource in it..
I don't think there's anything else involved. I had a simple script using DirectShowSource and nothing else, and it would get caught after the initial parsing - the LAV Splitter icon would show up in the system tray, but nothing else, and the player just sat there.

Whereas if I opened the exact same script in mpv, it'd more or less immediately have two LAV Splitter icons appear in the tray (which seems to be expected, I guess...Haali would do the same thing), and then the LAV Video and LAV Audio icons appear too and the video would start playing.

Infodump below:

AviSynth+ r1695, using the corresponding DirectShowSource that was built at the same time as the core, using Visual Studio 2013 Express. I also tried with the official release build of AviSynth 2.5.8, and the corresponding DirectShowSource_2588.zip package - same result as described before.

LAV Filters 0.61.1. Happens regardless of whether the avisynth box is checked in LAV Splitter's Input formats configuration. Aside from enabling the tray icons (and forcing Progressive in the Video decoder), the settings are at their defaults.

The video specs:
>mediainfo "test.mkv"
General
Unique ID : 226012631851493299613590261768577571645 (0xAA08
7315A8F82935813887505CE35B3D)
Complete name : test.mkv
Format : Matroska
Format version : Version 4 / Version 2
File size : 4.23 MiB
Duration : 30s 155ms
Overall bit rate : 1 177 Kbps
Encoded date : UTC 2013-04-19 01:17:10
Writing application : mkvmerge v6.1.0 ('Old Devil') built on Mar 2 2
013 14:32:37
Writing library : libebml v1.3.0 + libmatroska v1.4.0
Attachment : Yes

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 16 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 30s 155ms
Width : 848 pixels
Height : 480 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Writing library : x264 core 130 r2273+738 d87dd27
Encoding settings : cabac=1 / ref=16 / deblock=1:1:1 / analyse=0x3:
0x133 / me=umh / subme=11 / psy=1 / psy_rd=0.40:0.00 / mixed_ref=1 / me_range=24 / chroma_
me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2
/ threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=0 / interlaced=0 /
bluray_compat=0 / constrained_intra=0 / bframes=16 / b_pyramid=2 / b_adapt=2 / b_bias=0 /
direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=100
/ intra_refresh=0 / rc_lookahead=60 / rc=crf / mbtree=1 / crf=18.0 / qcomp=0.60 / qpmin=0
/ qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:0.60
Language : English
Default : Yes
Forced : Yes

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : A_AAC
Duration : 30s 155ms
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 44.1 KHz
Compression mode : Lossy
Delay relative to video : 22ms
Language : English
Default : Yes
Forced : Yes

Script:
DirectShowSource("test.mkv")

The computer itself is running XP Home SP3, and runs on a PIII-era Celeron (Coppermine) and 512 MBs of PC-133 SDRAM.


For good measure, the mpv configuration (includes the patches in the extra-new branch on github.com/qyot27/mpv (https://github.com/qyot27/mpv/commits/extra-new) - just a couple of minor cosmetic changes):
CFLAGS="-mfpmath=sse -march=pentium3 -msse -mtune=pentium3 \
-DCACA_STATIC" LDFLAGS="-Wl,--allow-multiple-definition" \
PKG_CONFIG_LIBDIR="$HOME/win32_build/lib:/usr/i686-w64-mingw32/lib" \
PKG_CONFIG_PATH="$HOME/win32_build/lib/pkgconfig:/usr/i686-w64-mingw32/lib/pkgconfig" \
TARGET=i686-w64-mingw32 ./waf configure --prefix=$HOME/mpv_build \
--disable-debug-build --enable-static-build --enable-openal --enable-sdl2 \
--disable-manpage-build --disable-pdf-build

mpv r37612 git-36fd8d9 (C) 2000-2014 mpv/MPlayer/mplayer2 projects
built on Wed Mar 26 08:21:17 EDT 2014
ffmpeg library versions:
libavutil 52.69.100
libavcodec 55.54.100
libavformat 55.35.101
libswscale 2.5.102
libavfilter 4.3.100
libavresample 1.2.0

And underlying FFmpeg configuration mpv was using (includes the patches in the x264-device (https://github.com/qyot27/FFmpeg/commits/x264-device), silent_invoke (https://github.com/qyot27/FFmpeg/commits/silent_invoke), and more_pkgconfig (https://github.com/qyot27/FFmpeg/commits/more_pkgconfig) branches on github.com/qyot27/FFmpeg):
>ffmpeg -buildconf
ffmpeg version r61830 git-12c3a68 Copyright (c) 2000-2014 the FFmpeg developers
built on Mar 26 2014 07:13:04 with gcc 4.8.2 (GCC)
libavutil 52. 69.100 / 52. 69.100
libavcodec 55. 54.100 / 55. 54.100
libavformat 55. 35.101 / 55. 35.101
libavdevice 55. 11.100 / 55. 11.100
libavfilter 4. 3.100 / 4. 3.100
libavresample 1. 2. 0 / 1. 2. 0
libswscale 2. 5.102 / 2. 5.102
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100

configuration:
--prefix=/home/qyot27/win32_build
--cross-prefix=i686-w64-mingw32-
--enable-gpl
--enable-version3
--disable-w32threads
--enable-avresample
--disable-doc
--enable-concise-version
--enable-fontconfig
--enable-libfreetype
--enable-libass
--enable-libbluray
--enable-libcaca
--enable-libcdio
--enable-openal
--enable-opengl
--enable-libquvi
--enable-librtmp
--enable-libsoxr
--enable-libvidstab
--enable-libflite
--enable-libgme
--enable-libgsm
--enable-libilbc
--enable-libmp3lame
--enable-libnut
--enable-libopencore-amrnb
--enable-libopencore-amrwb
--enable-libopenjpeg
--enable-libopus
--enable-libschroedinger
--enable-libshine
--enable-libspeex
--enable-libtheora
--enable-libtwolame
--enable-libutvideo
--enable-libvo-aacenc
--enable-libvo-amrwbenc
--enable-libvorbis
--enable-libvpx
--enable-libwavpack
--enable-libx264
--enable-libxavs
--enable-libxvid
--enable-avisynth
--cpu=pentium3
--extra-cflags='-mfpmath=sse -march=pentium3 -msse -mtune=pentium3 -DPTW32_STATIC_LIB -DCACA_STATIC'
--extra-ldflags='-mconsole -Wl,--allow-multiple-definition'
--target-os=mingw32
--arch=x86
--pkg-config='pkg-config --static'
In both cases, master was at HEAD and the branches rebased against that at the time they were both built.

nevcairiel
28th March 2014, 18:21
Hm, could everyone with such problems be on XP? Whatever I try, it works here, but I don't have any XP system at hand.

manolito
28th March 2014, 18:36
Yes, I am on XP SP3, Celeron Coppermine 1.1 GHz, 576 MB of RAM. Pretty similar to qyot's system.

And this registry patch by clsid takes care of the problem:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Media Type\Extensions\.avs]
@=""
"Source Filter"="{D3588AB0-0781-11CE-B03A-0020AF0BA770}"

@qyot27
Have you tried this patch?


Cheers
manolito

nevcairiel
28th March 2014, 19:03
The patch doesn't "fix" anything, it just disables LAV for AviSynth.

manolito
28th March 2014, 19:25
Then I do not understand why using the ZIP file instead of the installer does not cause any trouble on my system. Or does the install.bat not even register the splitter for AviSynth?

A request for the folks who prefer the ZIP file over the installer:
I could not find any documentation how to create links for the filters setup (rundll32 .....). Could you include a readme about this in the ZIP file?


Cheers
manolito

nevcairiel
28th March 2014, 19:28
The zips are meant for people who know exactly what they are doing and how to use the filters without the setup the installer performs. I will not spent time trying to explain how to use them, when you could just be using the installer.
I recommend you use the installer, and simply uncheck the formats you don't want during the install.

clsid
28th March 2014, 19:43
I am able to reproduce the AviSynth issue on both Win7 and Win8 x64. The host app will just hang when opening the .avs file. Tried with GraphStudioNext and MPC-HC. Just AviSynth 2.5.8 and LAVFilters are installed, no other third party codecs present. Script just simple DirectShowSource call for loading a mp4 file.

I can generate a dmp file if you post a debug build.

Dump with release build shows avcodec-lav-55.dll!72f9d942() at top of call stack.

qyot27
28th March 2014, 20:17
It's also happening under the Win8.1 x86 VM that I use to build AviSynth+. The host computer is a mid-2011 iMac - aside from it running a Sandy Bridge i5, I'm not sure what the other specs are.

The VM isn't all that great of a testbed, though - there's video corruption at the beginning of playback when I test the script in mpv due to the direct3d video output driver not liking VirtualBox or something, but it straightens out after a second or two. MPC-HC hangs like usual if using DirectShowSource, and switching to FFMS2 sidesteps the issue entirely and plays back in MPC-HC correctly, with LAV Filters only handling the splitting and raw video/audio decoding.

vood007
28th March 2014, 20:34
Should be fine now.

Tested with latest lav nightly from betaking. It opens but does not play correct, like all files with missing/broken timestamps. I repeat my suggestion to check and reject such files so other decoders can handle it.

nevcairiel
28th March 2014, 20:36
Tested with latest lav nightly from betaking. It opens but does not play correct, like all files with missing/broken timestamps. I repeat my suggestion to check and reject such files so other decoders can handle it.

There is no way to detect if a file is going to have broken timestamps, especially in a decoder. How would it ever know? It only gets timestamps with the frames after starting decoding, not before.

Stop creating broken files already, and there would be no problem.

clsid
28th March 2014, 20:50
MSVC debug build of FFmpeg DLLs works with AviSynth 2.5.8!

(I had build errors due to missing zlib stuff, so I had to disable the MatroskaParser to get it to build)

manolito
28th March 2014, 20:52
I recommend you use the installer, and simply uncheck the formats you don't want during the install.

Alright, I just tried that, and if I uncheck AviSynth in the installer dialog, the installer will indeed leave the registry entry "Media Type/Extensions/AVS" alone. Whatever was specified there as the source filter will stay untouched.

But if I run the splitter config after installation, enabling / disabling AviSynth has no effect at all under WinXP. Maybe the config routine only looks under Wow6432Node?

Whatever, on my system I can confirm that using the LAV source filter {B98D13E7-55DB-4385-A33D-09FD1BA26338} crashes playback each and every time while using the AVI/WAV source filter {D3588AB0-0781-11CE-B03A-0020AF0BA770} always works.

BTW even with the AVI/WAV source filter I do get the two LAVSplitter icons for video and audio in my task bar, so somehow the splitter is not completely disabled.

And in any case, please fix the installer so it will restore the preinstall entries for the Media Type extensions upon uninstall. Currently it does not, and this did cost me a lot of time and trouble... :eek:


Cheers
manolito

Nevilne
28th March 2014, 21:05
yeah i've reported this avisynth stuff weeks ago

nevcairiel
28th March 2014, 21:33
MSVC debug build of FFmpeg DLLs works with AviSynth 2.5.8!

Thats why it worked for me, I still had debug dlls installed from some other issue I was working on yesterday.

Anyway, the problem was exactly what I thought it was, and it should be fixed now.


But if I run the splitter config after installation, enabling / disabling AviSynth has no effect at all

The config in the splitter has no influence about things the installer did.
Setting up a source filter for DirectShow requires admin access/elevation, at least under Vista/7, which the installer has - but the filter does not, so the filter won't even try. The internal format list in the splitter is really only useful when you use it in combination with the File Source (Async), otherwise configure formats in the installer.

I could probably make the installer try to restore the previous config on uninstall, but of course that only helps people doing new installs going forward, not those that have it already.

manolito
28th March 2014, 23:36
Any chance for updated binaries?


Cheers
manolito

Stereodude
29th March 2014, 04:37
How does the LAV splitter look for forced PGS subtitles during Blu-Ray disc playback?

It seems like it only looks at the first subtitle track that the splitter returns for individually flagged forced subtitles. This strategy doesn't seem to work for movies with forced subtitles that have both captions (for the hearing impaired) and true subtitles since the PGS stream with the captions, and no forced subtitles, tends to be the first one returned by the splitter. For example, in the R1 Blu-Ray of Elysium the first subtitle track the splitter returns is the hearing impaired closed captions, which has no individually forced subtitles. The individually forced subtitles are in the 2nd subtitle track the splitter lists. So what ends up happening is that the default subtitle selection of "Forced Subtitles (auto) (English)" doesn't end up displaying anything because the forced subtitles are in a subtitle track not being monitored.

I'm guessing it's not possible for the LAV splitter to figure out which PGS subtitle stream has individually flagged forced subtitles in it at the start of playback and monitor that one for forced subtitles, but can it monitor more than the first PGS subtitle stream that the splitter returns for individually flagged forced subtitles?

Also, is it possible to have the splitter look at the disc.inf file AnyDVD HD inserts into the disc contents (in the root folder of the disc) so the splitter picks the appropriate playlist for correct playback instead of just picking the longest duration playlist? In case you weren't aware, the disc.inf file lists the correct playlist(s) for proper playback of discs that have intentional playlist obfuscation.

Thanks!

Plutotype
30th March 2014, 17:22
Hi folks, what could cause that 7.1 to 5.1 LAVaudio mixing results into both surrounds being swapped on the 5.1 speaker setup?
Tested using reference 8channel audio samples.

QBhd
31st March 2014, 22:36
How does the LAV splitter look for forced PGS subtitles during Blu-Ray disc playback?

It seems like it only looks at the first subtitle track that the splitter returns for individually flagged forced subtitles. This strategy doesn't seem to work for movies with forced subtitles that have both captions (for the hearing impaired) and true subtitles since the PGS stream with the captions, and no forced subtitles, tends to be the first one returned by the splitter. For example, in the R1 Blu-Ray of Elysium the first subtitle track the splitter returns is the hearing impaired closed captions, which has no individually forced subtitles. The individually forced subtitles are in the 2nd subtitle track the splitter lists. So what ends up happening is that the default subtitle selection of "Forced Subtitles (auto) (English)" doesn't end up displaying anything because the forced subtitles are in a subtitle track not being monitored.

I'm guessing it's not possible for the LAV splitter to figure out which PGS subtitle stream has individually flagged forced subtitles in it at the start of playback and monitor that one for forced subtitles, but can it monitor more than the first PGS subtitle stream that the splitter returns for individually flagged forced subtitles?

Also, is it possible to have the splitter look at the disc.inf file AnyDVD HD inserts into the disc contents (in the root folder of the disc) so the splitter picks the appropriate playlist for correct playback instead of just picking the longest duration playlist? In case you weren't aware, the disc.inf file lists the correct playlist(s) for proper playback of discs that have intentional playlist obfuscation.

Thanks!

I too had been waiting for a reply to this, but days have now passed... so this is sort of a bump. :)

QB

clsid
1st April 2014, 22:45
With an AviSynth script LAV Splitter outputs I420 instead of YV12 and RGBA instead of RGB32. This causes an extra instance of LAV Video to be needed to convert the colorspace. Perhaps there is an easy fix to avoid that extra step?

nevcairiel
1st April 2014, 23:04
That's intentional. LAV Splitter is not equipped for dealing with raw video, and it shouldn't have to be, so it'll put LAV Video in to handle all the peculiarities and dealings with the video renderer.

nevcairiel
3rd April 2014, 13:12
I'm guessing it's not possible for the LAV splitter to figure out which PGS subtitle stream has individually flagged forced subtitles in it at the start of playback and monitor that one for forced subtitles, but can it monitor more than the first PGS subtitle stream that the splitter returns for individually flagged forced subtitles?

I suppose it could monitor more than one track for this, but its not setup like this right now, so it would need some re-designing internally.
Maybe in a future version..

jmone
3rd April 2014, 20:43
Also, is it possible to have the splitter look at the disc.inf file AnyDVD HD inserts into the disc contents (in the root folder of the disc) so the splitter picks the appropriate playlist for correct playback instead of just picking the longest duration playlist? In case you weren't aware, the disc.inf file lists the correct playlist(s) for proper playback of discs that have intentional playlist obfuscation.

Isn't that a Feature for the Player to do? eg JRiver's Media Center does exactly that. It reads the disc.inf (if present) and gets LAV Splitter to then then select that playlist.

Stereodude
3rd April 2014, 23:42
Isn't that a Feature for the Player to do? eg JRiver's Media Center does exactly that. It reads the disc.inf (if present) and gets LAV Splitter to then then select that playlist.I'm not really sure who makes that call.

ddjmagic
4th April 2014, 09:37
Also, is it possible to have the splitter look at the disc.inf file AnyDVD HD inserts into the disc contents (in the root folder of the disc) so the splitter picks the appropriate playlist for correct playback instead of just picking the longest duration playlist?

This has been discussed before. Nevcairiel has stated he might add support for using the 'disc.inf' file if AnyDVD adds playlist information for all discs (not just Screen Pass titles)

AnyDVD won't add playlist info for the other discs, so you are best trying to request this feature from your favorite player (as it's not going to happen anytime soon in LAV)

nevcairiel
4th April 2014, 10:04
It would help if I ever actually see a disc which uses such obfuscation. :p

ddjmagic
4th April 2014, 11:37
It would help if I ever actually see a disc which uses such obfuscation. :p

There are quite a few European discs that use it too - DVDFab keep a rough list here (http://blog.dvdfab.cn/stealthyclone-anti-protection.html).

Why would you need to actually see one of these discs? AnyDVD already does the hard work and provides the correct playlist info, it just needs to be used.

Casshern
6th April 2014, 10:31
I also often encounter tracks with forced subtitles which are not exposed as such by lav's current design. But wouldn't a simple solution just to have an option to expose ALL subtitle tracks twice. Once in their original form, and once containing only the forced subtitles. Yes this would clutter the subtitle lists a lot, but as this feature could be optional (and not the default), it would solve all problems for those interested, while not harming those who prefer the current design.


Or if the monitoring of the subtitle tracks for the force flags is difficult to extend to multipe tracks at once, why not let the user choose the track which is filtered to only contain the forced subs?

I suppose it could monitor more than one track for this, but its not setup like this right now, so it would need some re-designing internally.
Maybe in a future version..