View Full Version : Error code 80040217: running .m2ts files.


Mak0rz
3rd October 2011, 17:39
Hi everyone.

I'm not interested in editing video specifically. I'm a grad student studying insect behavior and I need something to view my video recordings; I require a program that runs HD video, is able to zoom and pan, and is frame-accurate. After going through tons of them I came across AviSynth, which does everything I need and it's great!

On my laptop (Windows 7 Home Premium 64-bit) someone told me to do the following in order to get it to run .m2ts files:

Download and instal Avisynth
Download and instal Haali Media Splitter (http://haali.su/mkv/)
Copy avss.dll from where Haali was installed to Avisynth\plugins folder
Download AvsPmod (http://forum.doom9.org/showthread.php?t=153248) and run it


Then all I do is type this and hit F5:

DSS2 ("C:\MyDirectory\MyFile.m2ts")

And it's done. Everything works far, far better than my expectations!

I want to move my work to the lab computer, (Windows Vista Pro 32-bit), which has more horsepower and a way bigger screen. Here's where I run into problems. I did all the steps posted above: installed AviSynth, installed Haali MS, copied avss.dll to the plugins folder in AviSynth's directory. I even installed ffdshow (http://sourceforge.net/projects/ffdshow-tryout/files/SVN%20builds%20by%20clsid/generic%20builds/), because I was told that I may have to if I run into trouble.

However, running the same script above horks up the following message:

Can't open C:\MyDirectory\MyFile.m2ts: 80040217
(New File, line 1)


I tried searching error code 80040217, but I can't seem to find anything relevant. Any idea what's going on? I tried to take a stab and say that the plugins are an issue somewhere along the line. Here's what my plugin directory contains:

doc (folder)
avss.dll
colors_rgb.avsi
DirectShowSource.dll
FFMS2.avsi
ffms2.dll
ffmsindex.exe
TCPDeliver.dll


The lab computer has:

avss.dll
colors_rgb.avsi
DirectShowSource.dll
ffavisynth.avsi
ffavisynth.dll
TCPdeliver.dll


So their contents are different. However, on my computer I tried removing all of the contents except avss.dll and it was still able to run it fine. Removing avss.dll gave a different error message ("'DSS2' Is not a valid command" or something similar), so I'm not sure about it being a plugin problem any more. I have no idea what's going on.

For what it's worth, using the DirectShowSource command outputs this error:

DirectShowSource: Could not open as video or audio.
Video returned: "DirectShowSource: couldn't open file C:\MyDirectory\MyFile.m2ts: No such interface supported"
Audio returned: "DirectShowSource: couldn't open file C:\MyDirectory\MyFile.m2ts: No such interface supported"
(New File, line 1)


I seriously have no idea what's going on here. Is there a step that I missed or somehow messed up? It doesn't seem so...

IanB
3rd October 2011, 22:12
0x80040217 VFW_E_CANNOT_CONNECT No combination of intermediate filters could be found to make the connection.

You are missing some Direct Show component needed to open, parse, decode or render this media.

Haali usually takes care of the open, parse and render, so that leaves the decoder. Can plain media player play your files? Can anything else play your files?

Mak0rz
5th October 2011, 18:35
Try to open your file in a video player first. Probably your system cannot recognize the file extension, or have no H.264 codec installed, or similar things.

0x80040217 VFW_E_CANNOT_CONNECT No combination of intermediate filters could be found to make the connection.

You are missing some Direct Show component needed to open, parse, decode or render this media.

Haali usually takes care of the open, parse and render, so that leaves the decoder. Can plain media player play your files? Can anything else play your files?

The videos play fine in VLC and Media Player Classic.

Taurus
5th October 2011, 20:37
VLC and MPC by default use their integrated Decoders and/or Splitters.
Try to open the *.m2ts with windows mediaplayer on your vista computer.
Win7 has it's own decoders for many modern codecs like h264.
Vista needs thirdparty decoders for this task.
FFDShow with the right settings should decode the content in mediaplayer and for avisynth gui's.
And maybe tell us what's inside your m2ts?
Mediainfo can do this for you...

Mak0rz
5th October 2011, 23:23
The videos run fine on Windows Media Player on both the Vista and Win7 computer. Here's what Mediainfo says:


General
ID : 0 (0x0)
Complete name : C:\<OMITTED>.m2ts
Format : BDAV
Format/Info : Blu-ray Video
File size : 370 MiB
Duration : 1mn 57s
Overall bit rate mode : Variable
Overall bit rate : 26.5 Mbps
Maximum Overall bit rate : 28.0 Mbps

Video
ID : 4113 (0x1011)
Menu ID : 1 (0x1)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.2
Format settings, CABAC : Yes
Format settings, ReFrames : 2 frames
Format settings, GOP : M=1, N=15
Codec ID : 27
Duration : 1mn 57s
Bit rate mode : Variable
Bit rate : 25.2 Mbps
Maximum bit rate : 26.0 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 59.940 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.203
Stream size : 352 MiB (95%)

Audio
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Codec ID : 129
Duration : 1mn 57s
Bit rate mode : Constant
Bit rate : 256 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 3.57 MiB (1%)

Text
ID : 4608 (0x1200)
Menu ID : 1 (0x1)
Format : PGS
Codec ID : 144
Duration : 1mn 56s

TheRyuu
5th October 2011, 23:53
Nuke what you got, install CCCP (http://www.cccp-project.net/). Try opening again, should work.

setarip_old
6th October 2011, 04:58
@Mak0rz

Hi!

Are you now, by any chance, trying to use a 64bit version of Avisynth on your 32bit lab machine?

ronnylov
6th October 2011, 11:10
You can also try ffmpegsource as an alternative.
My workchain is to demux the m2ts file with tsmuxer and then mux it to mkv with mkvextract gui.
Then use ffmpegsource in avisynth.
I found that mkv container works better than m2ts container.

Mak0rz
6th October 2011, 21:17
Nuke what you got, install CCCP (http://www.cccp-project.net/). Try opening again, should work.

The problem is that this is a professional work computer shared by myself, my supervisor, five other lab mates, and a number of other colleagues. I want to reduce the amount of stuff I have to install during this process as much as possible. Not only because of the large number of users, but also because I need administrative access to get it installed, which bothers my supervisor.

Why would the lab computer need CCCP and my laptop not?

@Mak0rz

Hi!

Are you now, by any chance, trying to use a 64bit version of Avisynth on your 32bit lab machine?

I'm pretty sure I'm not. If I recall right, 64-bit applications refuse to even install on 32-bit machines. Even so, I'm still able to run it, I just can't launch a video preview in it. I'll double-check to make sure that I'm not using the 64-bit plugin, however.

You can also try ffmpegsource as an alternative.
My workchain is to demux the m2ts file with tsmuxer and then mux it to mkv with mkvextract gui.
Then use ffmpegsource in avisynth.
I found that mkv container works better than m2ts container.

This works, but I should also probably mention that I have over 300 individual videos to convert for this, which is not feasible.

The one thing I have left to try is just moving my computer's avss.dll file to the plugins director on the lab computer. I haven't had a chance to get around to this because I require administrative access, and I'm not sure how it would be different seeing as I got them both from the same source, but I just have no idea what else I can do...

TheRyuu
7th October 2011, 00:58
Why would the lab computer need CCCP and my laptop not?

Who knows... What is known is that your lab computer lacks a required component needed and cccp will take care of all the components needed to use dss2 with a m2ts file.

You can also look into alternatives like DGAVCDecodeDI/NV which will take the uncertainty of directshow(source) out of the mix and should work out of the box if used correctly. ffms2 isn't exactly the best method for sourcing transport streams (especially if they are interlaced) although ymmv so it might not hurt to at least try it.

sdancer75
20th May 2016, 11:05
Hi,

The problem occurs in a machine with Windows XP with SP3 and DirectX9c installed.


Async Filter --> LavSplitter --> LavVideo Decoder

(Async Filter is loaded either with AVI or Mp4 file).

The error I get is VFW_E_CANNOT_CONNECT (0x080040217)

I tried with older LAV filters version ie .60 as well as with the newest one 0.68.1

Any recommendations ?

http://i64.tinypic.com/34j2dsx.jpg

Motenai Yoda
20th May 2016, 12:35
reinstall haali media splitter