Log in

View Full Version : DirectshowSource opens double icons in taskbar and video does not open


MalickT
12th January 2012, 21:44
im usong only this line of script:


DirectshowSource("E:\x264_DTS_1080p.mkv")


I have installed the latest Core AVC, Haali Media Splitter, AC3 Filter. Everything is fine when I open the video in Windows Media Player Classic (only one Haali Media Splitter icon and AC3Filter icon are showing in taskbar) and the movie plays OK

But when I drag the script into WMP Classic it shows me this warning in message box:


Media Type 0:
--------------------------
Video: YV12 3840x1072 23.98fps

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Video {73646976-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_YV12 {32315659-0000-0010-8000-00AA00389B71}
formattype: FORMAT_VideoInfo {05589F80-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 6174720
cbFormat: 88

VIDEOINFOHEADER:
rcSource: (0,0)-(0,0)
rcTarget: (0,0)-(0,0)
dwBitRate: 0
dwBitErrorRate: 0
AvgTimePerFrame: 417082

BITMAPINFOHEADER:
biSize: 40
biWidth: 3840
biHeight: 1072
biPlanes: 1
biBitCount: 12
biCompression: YV12
biSizeImage: 6174720
biXPelsPerMeter: 0
biYPelsPerMeter: 0
biClrUsed: 0
biClrImportant: 0

pbFormat:
0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0020: 00 00 00 00 00 00 00 00 3a 5d 06 00 00 00 00 00 ........:]......
0030: 28 00 00 00 00 0f 00 00 30 04 00 00 01 00 0c 00 (.......0.......
0040: 59 56 31 32 00 38 5e 00 00 00 00 00 00 00 00 00 YV12.8^.........
0050: 00 00 00 00 00 00 00 00 ........


after I click Ok

Haali Media Splitter and AC3Filter icons are shown in doulbe in taskbar and only audio stream is played, no video

I have set WMP Classic to use Core AVC in the external filters options

I can not go on with my script if the video does not open...

Please advice

hello_hello
13th January 2012, 19:22
I can take a guess or two....

I'd be thinking the double icons thing is "kind of" normal. I use ffdshow and by enabling raw/uncompressed video and audio in ffdshow's list of formats to decode (which I generally wouldn't) I get double icons too. I assume the video/audio has to be decoded for AVIsynth to serve it in the form of uncompressed video/audio, then MPC-HC uses ffdshow again to display it. For instance in my case the tooltip for the first ffdshow audio decoder icon says the input is AC3 and the output PCM, while the second says it's PCM in and out. I don't know anything about the AC3 filter but if it has an option to disable uncompressed audio decoding that'd probably take the icon count back to one.

Logically, the problem is CoreAVC isn't decoding the video for AVIsynth. It needs to be a system codec for AVIsynth to use it, whereas MPC-HC can use it as an external codec rather than as a system codec. If you remove CoreAVC as an external filter in MPC-HC and disable MPC-HC's internal h264/AVC filter I suspect you'd end up with the same problem when playing the video directly with MPC-HC. If you do it probably means CoreAVC isn't registered as a system codec and there's no other codec installed for decoding the video.

I haven't used CoreAVC in a long time but I do seem to recall it has an option to register/unregister it as a system codec. If that doesn't help then someone else maybe able to suggest a fix. Which flavor of Windows are you using? Or have you tried disabling CoreAVC's hardware decoding if it's enabled to see if that makes a difference? (although I'm not sure why it would).

Failing all of the above, you could try installing ffdshow-tryouts to use with AVIsynth unless you're particularly attached to CoreAVC. If MPC-HC is setup to use CoreAVC as an external filter, installing ffdshow shouldn't effect that when opening video directly. If you prefer to use the AC3 filter you could disable AC3 in the ffdshow audio decoders list of codecs.

the_weirdo
13th January 2012, 21:02
@MalickT

What is your intention? If you're going to feed that script to an encoder or something, then just changing DirectShowSource to FFmpegSource2 (http://code.google.com/p/ffmpegsource/downloads/list) and you won't have to solve those DirectShow filters mysteries!

MalickT
13th January 2012, 22:16
@MalickT

What is your intention? If you're going to feed that script to an encoder or something, then just changing DirectShowSource to FFmpegSource2 (http://code.google.com/p/ffmpegsource/downloads/list) and you won't have to solve those DirectShow filters mysteries!

It says there is no function named "ffindex" what I am missing?

My intention is just to open my x264_DTS_1080p.mkv file. After I manage to open it going to convert it to ColorCode 3D (the file is full SBS 3D)

hello_hello
14th January 2012, 05:00
@MalickT

What is your intention? If you're going to feed that script to an encoder or something, then just changing DirectShowSource to FFmpegSource2 (http://code.google.com/p/ffmpegsource/downloads/list) and you won't have to solve those DirectShow filters mysteries!

I was going to suggest the same thing but couldn't get DTS audio to play correctly when opening the script with MPC-HC and thought it might confuse the issue. Should FFmpegSource2 work with DTS? I seem to only get the surround channels or something odd like that. It worked fine with AC3.


It says there is no function named "ffindex" what I am missing?

I assume you don't need to worry about audio when encoding anyway, so you probably just need to load the ffms2 plugin. Your script would look something like this (change the path to match the ffms2 location on your PC and I'd assume ffmsindex is located in the same folder).

LoadPlugin("C:\Program Files\ffms2\ffms2.dll")
FFVideoSource("E:\x264_DTS_1080p.mkv")

The first time you try to open the script it'll appear as though MPC-HC has frozen. Don't worry about it as ffmsindex should be indexing the file. Once the index file is created (it might take a minute or so) the video should play normally and it only needs to be indexed once. You won't get any audio that way though.

the file is full SBS 3D

Would that be the basis of your problem? I've never encoded a 3D video so I have no idea if decoding via AVIsyth works or if there's a particular way to go about it.

the_weirdo
14th January 2012, 07:20
I was going to suggest the same thing but couldn't get DTS audio to play correctly when opening the script with MPC-HC and thought it might confuse the issue. Should FFmpegSource2 work with DTS? I seem to only get the surround channels or something odd like that. It worked fine with AC3.

Oh, I forgot about the problem FFMS2 have with some audio formats, because I always encode audio separately. Actually, at first I was going to suggest him using FFVideoSource, then I read he mentioned about audio so I suggest FFmpegSource2 while I seldom use it, sorry about that. I don't use FFMS2 for audio so I don't know if that issue is fixed or not.

After I manage to open it going to convert it to ColorCode 3D (the file is full SBS 3D)
Now I'm not sure using FFMS2 is the right way in this case, because I have no idea if FFMS2 could decode full SBS 3D properly or not.

MalickT
14th January 2012, 15:44
well using this script did not help:


LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\ffms2.dll")
FFmpegSource2("E:\x264_DTS_FULLSBS_1080p.mkv")


still says that can not open video.

My ultimate goal is to open x264_DTS_FULLSBS_1080p.mkv and convert it to ColorCode Anaglyph in REALTIME with subtitles that are muxed in the video file. And I need to keep the audio untoutched (I need the audio to be like I regulary open the file in WMPC HC, using AC3 filter with my custom settings). I only need to convert the video in realtime...