View Full Version : Avisynth producing grey screen


Ikaragua
1st June 2015, 04:46
Hi everyone,

I'm currently trying to frameserve these files with Avisynth (http://www.videohelp.com/software/Avisynth) via DirectShowSource() to MPC-HC (http://www.videohelp.com/software/Media-Player-Classic-Home-Cinema) looking for a rendition of the video with "hardsubbed" subtitles which, however, produces a grey screen in the respective file's resolution and working audio with file #1 and audio on fast forward with file #2.

[Saizen]_Kuroko's_Basketball_-_01_[1080p][Blu-Ray][F64381D7].mkv
General
Unique ID : 181734229447955904632565719224783255414 (0x88B8BD4C0804A54C89C4393A92B0B776)
Format : Matroska
Format version : Version 4 / Version 2
File size : 1.36 GiB
Duration : 24mn 9s
Overall bit rate mode : Variable
Overall bit rate : 8 068 Kbps
Encoded date : UTC 2014-04-06 18:04:06
Writing application : mkvmerge v6.4.1 ('Omega Point') built on Sep 16 2013 22:05:10
Writing library : libebml v1.3.0 + libmatroska v1.4.1
Attachements : 321impact.ttf / A-OTF-ShinGoPr5-Bold.otf / ArchitectsDaughter.ttf / arial.ttf / BebasNeue.otf / calibri.ttf / calibrib.ttf / calibriz.ttf / cambria.ttc /
DCHLei5.ttc / DK Crayon Crumble.ttf / full Pack 2025 filling.ttf / indiestarbb_bld.ttf / indiestarbb_reg.ttf / IwaGyoPro-Bd-Kami.ttf / IwaOMinPro-Hv-Fate.ttf / Just Gotta Smile.ttf /
KozGoPr6N-Bold-Mikakunin.ttf / KozGoProH-Madoka.ttf / Miss Monkey.ttf / pdf file write up.pdf / Something Blue.ttf / times.ttf / timesbd.ttf / YummyCupcakes.ttf

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High 10@L5.1
Format settings, CABAC : Yes
Format settings, ReFrames : 16 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 24mn 9s
Width : 1 912 pixels
Height : 1 080 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 : 10 bits
Scan type : Progressive
Writing library : x264 core 142 r2409 d6b4e63
Encoding settings : cabac=1 / ref=16 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=1.00: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=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=16 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 /
keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=crf / mbtree=1 / crf=15.0 / qcomp=0.80 / qpmin=0 / qpmax=32 / qpstep=4 /
ip_ratio=1.40 / aq=2:1.00
Language : English
Default : Yes
Forced : No
Matrix coefficients : BT.709
Color range : Limited

Audio
ID : 2
Format : FLAC
Format/Info : Free Lossless Audio Codec
Codec ID : A_FLAC
Duration : 24mn 9s
Bit rate mode : Variable
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Writing library : libFLAC 1.2.1 (UTC 2007-09-17)
Language : Japanese
Default : Yes
Forced : No

Text
ID : 3
Format : ASS
Codec ID : S_TEXT/ASS
Codec ID/Info : Advanced Sub Station Alpha
Compression mode : Lossless
Language : English
Default : Yes
Forced : No

Menu
00:00:00.000 : :Prologue
00:00:42.020 : :Opening
00:02:11.980 : :Main
00:22:24.020 : :Ending
00:23:54.030 : :Preview

[Asenshi] Kuroko no Basuke 2 - 01 [BEAAD944].mkv
General
Unique ID : 183811980559438134522991456039054763895 (0x8A48E655FE4D402EBCDB6154A1EE6777)
Format : Matroska
Format version : Version 2
File size : 398 MiB
Duration : 24mn 9s
Overall bit rate : 2 305 Kbps
Encoded date : UTC 2013-10-06 03:00:58
Writing application : mkvmerge v5.0.1 ('Es ist Sommer') built on Oct 9 2011 11:55:43
Writing library : libebml v1.2.2 + libmatroska v1.3.0
Attachements : BeeMarkerInk.TTF / belligerent.ttf / cambriab.ttf / Lato-Bol.ttf / Lato-BolIta.ttf / Marker SD 1.2.ttf / Marker SD.ttf / Marker_SD_1.2.ttf /
Aero Matics Display Bold.ttf / arialbd.ttf

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High 10@L5.0
Format settings, CABAC : Yes
Format settings, ReFrames : 16 frames
Muxing mode : Header stripping
Codec ID : V_MPEG4/ISO/AVC
Duration : 24mn 9s
Width : 1 280 pixels
Height : 720 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 : 10 bits
Scan type : Progressive
Writing library : x264 core 135 r2345kMod f0c1c53
Encoding settings : cabac=1 / ref=16 / deblock=1:1:1 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / fade_compensate=0.76 / psy_rd=0.65:0.05 /
mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-3 / threads=6 / lookahead_threads=1 /
sliced_threads=0 / nr=0 / decimate=1 / 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=40 / intra_refresh=0 / rc_lookahead=60 / rc=crf / mbtree=1 / crf=16.8000 / qcomp=0.70 / qpmin=0 /
qpmax=81 / qpstep=4 / ip_ratio=1.40 / aq=3:0.80
Language : English
Default : Yes
Forced : No
Matrix coefficients : BT.709
Color range : Limited

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : A_AAC
Duration : 24mn 9s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Compression mode : Lossy
Default : Yes
Forced : No

Text
ID : 3
Format : ASS
Codec ID : S_TEXT/ASS
Codec ID/Info : Advanced Sub Station Alpha
Compression mode : Lossless
Default : Yes
Forced : No

Menu
00:00:00.000 : :Prologue
00:02:13.759 : :OP
00:03:44.015 : :Part A
00:09:45.919 : :Part B
00:22:21.757 : :ED
00:23:51.722 : :Preview
00:24:06.612 : :See you next week!

My video playback setup: (all up-to-date as far as I know)
Avisynth 2.6.0 (x86)
LAVFilters 0.65 x86 (LAVAudio, LAVVideo, LAVSplitter in use)
xy-VSFilter 3.0.0.306 x86
MPC-HC 1.7.8 x86 (no internal filters used)

After testing various files, I've realised that the subtitles must be reason for this. I'm trying to make it work with LAVFilters and DirectShowSource(), so Haali Media Splitter (http://www.videohelp.com/software/Haali-Media-Splitter) and FFmpegSource2() is no option for me. When using Haali Media Splitter 23062013 with Automatic Loading of VSFilter (http://www.videohelp.com/software/VSFilter-DirectVobSub), it works though. Does someone know how I have to tweak my setup to make it work?

By the way, I also would like to know why Avisynth loads two splitters all the time.

Thanks in advance!

creaothceann
1st June 2015, 21:23
I've never had problems with loading video with DSS2 and audio with DirectShowSource(file, video=false), followed by AudioDub. But I also always encoded the data to a file... Try loading the script in AvsP and/or VirtualDub to see if it's an issue with MPCH.

EDIT: Btw. forum rule #6 (http://forum.doom9.org/forum-rules.htm) applies...

Ikaragua
5th June 2015, 18:50
All right, to make a long story short: these files are crap.

Meanwhile, I encoutered a malfunction in FFMS2. Two files I served to x264 had delayed video. Did someone else encounter this behaviour? Apparently, this didn't occur when serving an m2v file, but it did with raw h264 as well as mkv h264.

Another thing that happend to me was when I was serving a PAL m2v in mkv via DirectShowSource(), speed and frame count doubled. Again, someone else encountered that?