View Full Version : DirectShowSource fails on Windows 10
MysteryX
6th September 2015, 01:04
I'm having a weird issue with DirectShowSource. Whenever I'm trying to read a standard MP4 video file, it returns the error "the filter graph manager won't talk to me".
This was working before.
However, DirectShowSource can load AVI files.
I tried with both AviSynth 2.6 and AviSynth+, and the result is the same.
What could be going wrong?
Sharc
6th September 2015, 12:09
Can you open the file in graphstudio? Do the filters connect?
Can you play the file with your SW player (MPC-HC, VLC or similar)?
What does MediaInfo show?
tebasuna51
6th September 2015, 12:29
The DirectShowSource is the last method to open a file in AviSynth.
The recommended method to open a mp4 file is:
LoadPlugin("...\LSMASHSource.dll")
LSMASHAudioSource("...\file.mp4")
# or/and
LSMASHVideoSource("...\file.mp4")
MysteryX
7th September 2015, 23:49
Can you open the file in graphstudio? Do the filters connect?
Can you play the file with your SW player (MPC-HC, VLC or similar)?
What does MediaInfo show?
Yes, GraphStudio opens it.
Yes, I can play in my video players.
Here's the mediainfo of one video file
General
Unique ID : 106555786679087755391058062049318847546 (0x5029E5E561158E59C59F4CE81B30C43A)
Complete name : F:\NaturalGrounding\Rainbow\A.mkv
Format : Matroska
Format version : Version 4 / Version 2
File size : 80.4 MiB
Duration : 3mn 27s
Overall bit rate : 3 257 Kbps
Writing application : Lavf56.10.100
Writing library : Lavf56.10.100
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.1
Format settings, CABAC : Yes
Format settings, ReFrames : 1 frame
Codec ID : V_MPEG4/ISO/AVC
Duration : 3mn 27s
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 29.970 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Default : Yes
Forced : No
HANDLER_NAME : VideoHandler
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : A_AAC
Duration : 3mn 27s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 44.1 KHz
Compression mode : Lossy
Default : Yes
Forced : No
Encoded date : UTC 2015-05-24 07:29:39
HANDLER_NAME : SoundHandler
DirectShowSource is a last resort, but there are cases where it can be useful as a backup plan.
Sharc
8th September 2015, 08:16
I did a few tests with Avisynth 2.5.8 / DirectShowSource / Windows 10 and ran into the same problem with a mpeg2 .m2v video file. Remuxing the .m2v file with Muxman (which put it into a .vob container) solved the problem......
raffriff42
8th September 2015, 11:27
http://avisynth.nl/index.php/DirectShowSource Renderfile, the filter graph won't talk to me
This is a common error that occurs when DirectShow isn't able to deliver any format that is readable to AviSynth. Try creating a filter graph [GraphEdit (http://avisynth.nl/index.php/GraphEdit) .grf] manually and see if you are able to construct a filter graph that delivers any output AviSynth can open. If not, you might need to download additional DirectShow filters that can deliver correct material.
Checking the log file for clues may help:
DirectShowSource(filename, logfile="C:\mypath\log.txt")
MysteryX
22nd September 2015, 17:39
Interestingly enough, if I remove pixel_type="YV12" then it does open, but the input is corrupt.
Here's the log.
00:00:00.000 fff 0x00000000 DirectShowSource 2.6.0 build:Mar 31 2015 [16:38:37]
00:00:00.046 020 0x041F84F0 0x00004CD0 GetSample::ConnectedTo() ** VFW_E_NOT_CONNECTED **
00:00:00.046 020 0x041F84F0 0x00004CD0 GetSample::ConnectedTo() ** VFW_E_NOT_CONNECTED **
00:00:00.046 001 0x041F84F0 0x00004CD0 GetSample::QueryAccept(video) MEDIATYPE_Video
00:00:00.046 001 0x041F84F0 0x00004CD0 *** Video: Subtype rejected - 'AVC1' {31435641-0000-0010-8000-00aa00389b71}
00:00:00.046 001 0x041F84F0 0x00004CD0 *** Video: Format type - {e06d80e3-db46-11cf-b4d1-00805f6cbbea}
00:00:00.046 020 0x041F84F0 0x00004CD0 GetSample::ReceiveConnection() ** VFW_E_TYPE_NOT_ACCEPTED **
00:00:00.215 020 0x041F84F0 0x00004CD0 GetSample::ConnectedTo() ** VFW_E_NOT_CONNECTED **
00:00:00.215 001 0x041F84F0 0x00004CD0 GetSample::QueryAccept(video) MEDIATYPE_Video
00:00:00.215 001 0x041F84F0 0x00004CD0 *** Video: Subtype rejected - '....' {1b81be0a-a0c7-11d3-b984-00c04f2e73c5}
00:00:00.215 001 0x041F84F0 0x00004CD0 *** Video: Format type - {f72a76a0-eb0a-11d0-ace4-0000c0cc16ba}
00:00:00.215 020 0x041F84F0 0x00004CD0 GetSample::ReceiveConnection() ** VFW_E_TYPE_NOT_ACCEPTED **
00:00:00.215 001 0x041F84F0 0x00004CD0 GetSample::QueryAccept(video) MEDIATYPE_Video
00:00:00.215 001 0x041F84F0 0x00004CD0 *** Video: Subtype rejected - '....' {1b81be0a-a0c7-11d3-b984-00c04f2e73c5}
00:00:00.215 001 0x041F84F0 0x00004CD0 *** Video: Format type - {f72a76a0-eb0a-11d0-ace4-0000c0cc16ba}
00:00:00.215 020 0x041F84F0 0x00004CD0 GetSample::ReceiveConnection() ** VFW_E_TYPE_NOT_ACCEPTED **
00:00:00.215 001 0x041F84F0 0x00004CD0 GetSample::QueryAccept(video) MEDIATYPE_Video
00:00:00.215 001 0x041F84F0 0x00004CD0 *** Video: Subtype rejected - '....' {1b81be0c-a0c7-11d3-b984-00c04f2e73c5}
00:00:00.215 001 0x041F84F0 0x00004CD0 *** Video: Format type - {f72a76a0-eb0a-11d0-ace4-0000c0cc16ba}
00:00:00.215 020 0x041F84F0 0x00004CD0 GetSample::ReceiveConnection() ** VFW_E_TYPE_NOT_ACCEPTED **
00:00:00.215 001 0x041F84F0 0x00004CD0 GetSample::QueryAccept(video) MEDIATYPE_Video
00:00:00.215 001 0x041F84F0 0x00004CD0 *** Video: Subtype rejected - '....' {1b81be0c-a0c7-11d3-b984-00c04f2e73c5}
00:00:00.215 001 0x041F84F0 0x00004CD0 *** Video: Format type - {f72a76a0-eb0a-11d0-ace4-0000c0cc16ba}
00:00:00.215 020 0x041F84F0 0x00004CD0 GetSample::ReceiveConnection() ** VFW_E_TYPE_NOT_ACCEPTED **
00:00:00.215 001 0x041F84F0 0x00004CD0 GetSample::QueryAccept(video) MEDIATYPE_Video
00:00:00.215 001 0x041F84F0 0x00004CD0 *** Video: Subtype denied - NV12
00:00:00.215 020 0x041F84F0 0x00004CD0 GetSample::ReceiveConnection() ** VFW_E_TYPE_NOT_ACCEPTED **
00:00:00.215 001 0x041F84F0 0x00004CD0 GetSample::QueryAccept(video) MEDIATYPE_Video
00:00:00.215 001 0x041F84F0 0x00004CD0 *** Video: Subtype denied - NV12
00:00:00.215 020 0x041F84F0 0x00004CD0 GetSample::ReceiveConnection() ** VFW_E_TYPE_NOT_ACCEPTED **
00:00:00.215 001 0x041F84F0 0x00004CD0 GetSample::QueryAccept(video) MEDIATYPE_Video
00:00:00.215 001 0x041F84F0 0x00004CD0 *** Video: Subtype denied - I420
00:00:00.215 020 0x041F84F0 0x00004CD0 GetSample::ReceiveConnection() ** VFW_E_TYPE_NOT_ACCEPTED **
00:00:00.215 001 0x041F84F0 0x00004CD0 GetSample::QueryAccept(video) MEDIATYPE_Video
00:00:00.215 001 0x041F84F0 0x00004CD0 *** Video: Subtype denied - I420
00:00:00.215 020 0x041F84F0 0x00004CD0 GetSample::ReceiveConnection() ** VFW_E_TYPE_NOT_ACCEPTED **
00:00:00.215 001 0x041F84F0 0x00004CD0 GetSample::QueryAccept(video) MEDIATYPE_Video
00:00:00.215 001 0x041F84F0 0x00004CD0 *** Video: Subtype denied - YUY2
00:00:00.215 020 0x041F84F0 0x00004CD0 GetSample::ReceiveConnection() ** VFW_E_TYPE_NOT_ACCEPTED **
00:00:00.215 001 0x041F84F0 0x00004CD0 GetSample::QueryAccept(video) MEDIATYPE_Video
00:00:00.215 001 0x041F84F0 0x00004CD0 *** Video: Subtype denied - YUY2
00:00:00.215 020 0x041F84F0 0x00004CD0 GetSample::ReceiveConnection() ** VFW_E_TYPE_NOT_ACCEPTED **
00:00:00.215 001 0x041F84F0 0x00004CD0 GetSample::QueryAccept(video) MEDIATYPE_Video
00:00:00.215 001 0x041F84F0 0x00004CD0 *** Video: Subtype accepted - 'YV12' {32315659-0000-0010-8000-00aa00389b71}
00:00:00.236 001 0x041F84F0 0x00004CD0 *** Video: Format type accepted - {f72a76a0-eb0a-11d0-ace4-0000c0cc16ba}
00:00:00.236 001 0x041F84F0 0x00004CD0 *** Video: format accepted: 1920x1080, pixel_type YV12, avg_time_per_frame 417111x100ns
00:00:00.236 001 0x041F84F0 0x00004CD0 *** Video: bFixedSizeSamples=1, bTemporalCompression=0, lSampleSize=3110400
00:00:00.236 001 0x041F84F0 0x00004CD0 GetSample::QueryAccept(video) MEDIATYPE_Video
00:00:00.236 001 0x041F84F0 0x00004CD0 *** Video: Subtype accepted - 'YV12' {32315659-0000-0010-8000-00aa00389b71}
00:00:00.236 001 0x041F84F0 0x00004CD0 *** Video: Format type accepted - {f72a76a0-eb0a-11d0-ace4-0000c0cc16ba}
00:00:00.236 001 0x041F84F0 0x00004CD0 *** Video: format accepted: 1920x1080, pixel_type YV12, avg_time_per_frame 417111x100ns
00:00:00.236 001 0x041F84F0 0x00004CD0 *** Video: bFixedSizeSamples=1, bTemporalCompression=0, lSampleSize=3110400
00:00:00.236 001 0x041F84F0 0x00004CD0 GetSample::QueryAccept(video) MEDIATYPE_Video
00:00:00.236 001 0x041F84F0 0x00004CD0 *** Video: Subtype rejected - 'IMC4' {34434d49-0000-0010-8000-00aa00389b71}
00:00:00.236 001 0x041F84F0 0x00004CD0 *** Video: Format type - {f72a76a0-eb0a-11d0-ace4-0000c0cc16ba}
00:00:00.236 020 0x041F84F0 0x00004CD0 GetSample::ReceiveConnection() ** VFW_E_TYPE_NOT_ACCEPTED **
00:00:00.236 001 0x041F84F0 0x00004CD0 GetSample::QueryAccept(video) MEDIATYPE_Video
00:00:00.236 001 0x041F84F0 0x00004CD0 *** Video: Subtype rejected - 'IMC4' {34434d49-0000-0010-8000-00aa00389b71}
00:00:00.236 001 0x041F84F0 0x00004CD0 *** Video: Format type - {f72a76a0-eb0a-11d0-ace4-0000c0cc16ba}
00:00:00.236 020 0x041F84F0 0x00004CD0 GetSample::ReceiveConnection() ** VFW_E_TYPE_NOT_ACCEPTED **
00:00:00.236 001 0x041F84F0 0x00004CD0 GetSample::QueryAccept(video) MEDIATYPE_Video
00:00:00.236 001 0x041F84F0 0x00004CD0 *** Video: Subtype rejected - 'IMC3' {33434d49-0000-0010-8000-00aa00389b71}
00:00:00.236 001 0x041F84F0 0x00004CD0 *** Video: Format type - {f72a76a0-eb0a-11d0-ace4-0000c0cc16ba}
00:00:00.236 020 0x041F84F0 0x00004CD0 GetSample::ReceiveConnection() ** VFW_E_TYPE_NOT_ACCEPTED **
00:00:00.236 001 0x041F84F0 0x00004CD0 GetSample::QueryAccept(video) MEDIATYPE_Video
00:00:00.236 001 0x041F84F0 0x00004CD0 *** Video: Subtype rejected - 'IMC3' {33434d49-0000-0010-8000-00aa00389b71}
00:00:00.236 001 0x041F84F0 0x00004CD0 *** Video: Format type - {f72a76a0-eb0a-11d0-ace4-0000c0cc16ba}
00:00:00.236 020 0x041F84F0 0x00004CD0 GetSample::ReceiveConnection() ** VFW_E_TYPE_NOT_ACCEPTED **
00:00:00.236 001 0x041F84F0 0x00004CD0 GetSample::QueryAccept(video) MEDIATYPE_Video
00:00:00.236 001 0x041F84F0 0x00004CD0 *** Video: Subtype rejected - 'S340' {30343353-0000-0010-8000-00aa00389b71}
00:00:00.236 001 0x041F84F0 0x00004CD0 *** Video: Format type - {f72a76a0-eb0a-11d0-ace4-0000c0cc16ba}
00:00:00.236 020 0x041F84F0 0x00004CD0 GetSample::ReceiveConnection() ** VFW_E_TYPE_NOT_ACCEPTED **
00:00:00.236 001 0x041F84F0 0x00004CD0 GetSample::QueryAccept(video) MEDIATYPE_Video
00:00:00.236 001 0x041F84F0 0x00004CD0 *** Video: Subtype rejected - 'S340' {30343353-0000-0010-8000-00aa00389b71}
00:00:00.236 001 0x041F84F0 0x00004CD0 *** Video: Format type - {f72a76a0-eb0a-11d0-ace4-0000c0cc16ba}
00:00:00.236 020 0x041F84F0 0x00004CD0 GetSample::ReceiveConnection() ** VFW_E_TYPE_NOT_ACCEPTED **
00:00:00.236 001 0x041F84F0 0x00004CD0 GetSample::QueryAccept(video) MEDIATYPE_Video
00:00:00.236 001 0x041F84F0 0x00004CD0 *** Video: Subtype rejected - 'NV24' {3432564e-0000-0010-8000-00aa00389b71}
00:00:00.236 001 0x041F84F0 0x00004CD0 *** Video: Format type - {f72a76a0-eb0a-11d0-ace4-0000c0cc16ba}
00:00:00.236 020 0x041F84F0 0x00004CD0 GetSample::ReceiveConnection() ** VFW_E_TYPE_NOT_ACCEPTED **
00:00:00.236 001 0x041F84F0 0x00004CD0 GetSample::QueryAccept(video) MEDIATYPE_Video
00:00:00.236 001 0x041F84F0 0x00004CD0 *** Video: Subtype rejected - 'NV24' {3432564e-0000-0010-8000-00aa00389b71}
00:00:00.236 001 0x041F84F0 0x00004CD0 *** Video: Format type - {f72a76a0-eb0a-11d0-ace4-0000c0cc16ba}
00:00:00.236 020 0x041F84F0 0x00004CD0 GetSample::ReceiveConnection() ** VFW_E_TYPE_NOT_ACCEPTED **
00:00:00.257 001 0x041F84F0 0x00004CD0 GetSample::QueryAccept(video) MEDIATYPE_Video
00:00:00.257 001 0x041F84F0 0x00004CD0 *** Video: Subtype rejected - '420O' {4f303234-0000-0010-8000-00aa00389b71}
00:00:00.257 001 0x041F84F0 0x00004CD0 *** Video: Format type - {f72a76a0-eb0a-11d0-ace4-0000c0cc16ba}
00:00:00.257 020 0x041F84F0 0x00004CD0 GetSample::ReceiveConnection() ** VFW_E_TYPE_NOT_ACCEPTED **
00:00:00.257 001 0x041F84F0 0x00004CD0 GetSample::QueryAccept(video) MEDIATYPE_Video
00:00:00.257 001 0x041F84F0 0x00004CD0 *** Video: Subtype rejected - '420O' {4f303234-0000-0010-8000-00aa00389b71}
00:00:00.257 001 0x041F84F0 0x00004CD0 *** Video: Format type - {f72a76a0-eb0a-11d0-ace4-0000c0cc16ba}
00:00:00.257 020 0x041F84F0 0x00004CD0 GetSample::ReceiveConnection() ** VFW_E_TYPE_NOT_ACCEPTED **
00:00:00.363 020 0x041F84F0 0x00004CD0 GetSample::ConnectedTo() ** VFW_E_NOT_CONNECTED **
00:00:00.363 001 0x041F84F0 0x00004CD0 GetSample::QueryAccept(video) MEDIATYPE_Audio
00:00:00.363 001 0x041F84F0 0x00004CD0 *** Audio: Subtype - {53544441-0000-0010-8000-00aa00389b71}
00:00:00.363 001 0x041F84F0 0x00004CD0 *** Audio: Format type - {05589f81-c356-11ce-bf01-00aa0055595a}
00:00:00.363 020 0x041F84F0 0x00004CD0 GetSample::ReceiveConnection() ** VFW_E_TYPE_NOT_ACCEPTED **
00:00:00.363 001 0x041F84F0 0x00004CD0 GetSample::QueryAccept(video) MEDIATYPE_Audio
00:00:00.363 001 0x041F84F0 0x00004CD0 *** Audio: Subtype - {000000ff-0000-0010-8000-00aa00389b71}
00:00:00.363 001 0x041F84F0 0x00004CD0 *** Audio: Format type - {05589f81-c356-11ce-bf01-00aa0055595a}
00:00:00.363 020 0x041F84F0 0x00004CD0 GetSample::ReceiveConnection() ** VFW_E_TYPE_NOT_ACCEPTED **
00:00:00.363 001 0x041F84F0 0x00004CD0 GetSample::QueryAccept(video) MEDIATYPE_Audio
00:00:00.363 001 0x041F84F0 0x00004CD0 *** Audio: Subtype - {afbc2343-3dcb-4047-9655-e1e62a61b1c5}
00:00:00.363 001 0x041F84F0 0x00004CD0 *** Audio: Format type - {35189950-cac9-4c8d-819d-b6faee15dd9d}
00:00:00.363 020 0x041F84F0 0x00004CD0 GetSample::ReceiveConnection() ** VFW_E_TYPE_NOT_ACCEPTED **
00:00:00.392 020 0x041F84F0 0x00004CD0 GetSample::ConnectedTo() ** VFW_E_NOT_CONNECTED **
00:00:00.392 001 0x041F84F0 0x00004CD0 GetSample::QueryAccept(video) MEDIATYPE_Audio
00:00:00.392 001 0x041F84F0 0x00004CD0 *** Audio: Subtype - {00000092-0000-0010-8000-00aa00389b71}
00:00:00.392 001 0x041F84F0 0x00004CD0 *** Audio: Format type - {05589f81-c356-11ce-bf01-00aa0055595a}
00:00:00.392 020 0x041F84F0 0x00004CD0 GetSample::ReceiveConnection() ** VFW_E_TYPE_NOT_ACCEPTED **
00:00:00.392 001 0x041F84F0 0x00004CD0 GetSample::QueryAccept(video) MEDIATYPE_Audio
00:00:00.392 001 0x041F84F0 0x00004CD0 *** Audio: Subtype - {00000003-0000-0010-8000-00aa00389b71}
00:00:00.392 001 0x041F84F0 0x00004CD0 *** Audio: Format type - {05589f81-c356-11ce-bf01-00aa0055595a}
00:00:00.392 020 0x041F84F0 0x00004CD0 GetSample::ReceiveConnection() ** VFW_E_TYPE_NOT_ACCEPTED **
00:00:00.392 001 0x041F84F0 0x00004CD0 GetSample::QueryAccept(video) MEDIATYPE_Audio
00:00:00.392 001 0x041F84F0 0x00004CD0 *** Audio: Subtype - {00000001-0000-0010-8000-00aa00389b71}
00:00:00.392 001 0x041F84F0 0x00004CD0 *** Audio: Format type - {05589f81-c356-11ce-bf01-00aa0055595a}
00:00:00.392 020 0x041F84F0 0x00004CD0 GetSample::ReceiveConnection() ** VFW_E_TYPE_NOT_ACCEPTED **
00:00:00.392 001 0x041F84F0 0x00004CD0 GetSample::QueryAccept(video) MEDIATYPE_Audio
00:00:00.392 001 0x041F84F0 0x00004CD0 *** Audio: Subtype - {00000003-0000-0010-8000-00aa00389b71}
00:00:00.392 001 0x041F84F0 0x00004CD0 *** Audio: Format type - {05589f81-c356-11ce-bf01-00aa0055595a}
00:00:00.392 020 0x041F84F0 0x00004CD0 GetSample::ReceiveConnection() ** VFW_E_TYPE_NOT_ACCEPTED **
00:00:00.392 001 0x041F84F0 0x00004CD0 GetSample::QueryAccept(video) MEDIATYPE_Audio
00:00:00.392 001 0x041F84F0 0x00004CD0 *** Audio: Subtype - {00000001-0000-0010-8000-00aa00389b71}
00:00:00.392 001 0x041F84F0 0x00004CD0 *** Audio: Format type - {05589f81-c356-11ce-bf01-00aa0055595a}
00:00:00.392 020 0x041F84F0 0x00004CD0 GetSample::ReceiveConnection() ** VFW_E_TYPE_NOT_ACCEPTED **
00:00:00.435 020 0x041F84F0 0x00004CD0 GetSample::ConnectedTo() ** VFW_E_NOT_CONNECTED **
00:00:00.439 020 0x041F84F0 0x00004CD0 GetSample::ConnectedTo() ** VFW_E_NOT_CONNECTED **
00:00:00.443 fff 0x00000000 Close video log 1.
raffriff42
22nd September 2015, 18:51
Video: Subtype rejected - 'AVC1' From this, I would think you don't have the H.264 DirectShow codec installed and/or configured, but you say it works in your media players. Did you try Windows Media Player?
Going with the assumption that it's a codec or DirectShow configuration issue (unless someone has a better idea), I'm gonna suggest getting K-Lite Codec Pack (http://www.codecguide.com/download_kl.htm) ('Mega' package) and running Codec Tweak Tool with the 'repair' option during the installation. I have never seen it do bad things to anyone's system, but I have seen it fix many people's codec issues. (I know 'codec pack' generally equals 'virus installer', but this one is different)
MysteryX
22nd September 2015, 22:09
I just opened the video in Windows Media Player successfully.
I do use K-Lite Codec Pack. Without it, I was seeing much lower performance playing WebM videos.
Sharc
23rd September 2015, 09:58
DirectShowSource is a pain with Avisynth, more even so under Windows 10, it seems.
Try alternatives like FFmpegSource, or LSMASHSource, or index the file beforehand with DGindex for example, which will provide frame accurate seeking.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.