PDA

View Full Version : Simple AviSynth script won't play in Media Player Classic


TC03
3rd April 2009, 21:02
So I am using this script in order to ensure the right framerate:

DirectShowSource("sample.avi")
AssumeFPS(24, 1, true)

When I open the .avs file, I get the following error:
http://i39.tinypic.com/1zb77dt.jpg

For those who are Googleing the same problem, the error is: "Media Player Classic could not render some of the pins in the graph, you may not have the needed codecs or filters installed on the system."

The full error given by MPC is:
C:\Users\Terry\sample.avs::Avisynth video #1

Media Type 0:
--------------------------
Video: YV12 624x352 24.00fps

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: 329472
cbFormat: 88

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

BITMAPINFOHEADER:
biSize: 40
biWidth: 624
biHeight: 352
biPlanes: 1
biBitCount: 12
biCompression: YV12
biSizeImage: 329472
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 9a 5b 06 00 00 00 00 00 ........š[......
0030: 28 00 00 00 70 02 00 00 60 01 00 00 01 00 0c 00 (...p...`.......
0040: 59 56 31 32 00 07 05 00 00 00 00 00 00 00 00 00 YV12............
0050: 00 00 00 00 00 00 00 00 ........

To me it seems a bit odd that MPC says there is something wrong with my codecs, because everything just plays fine, except for the .avs files. I'm using ffdshow for .avi files and CoreAVC Pro/Haali for .mkv files. After closing the error, the file starts to play but there's no video, just audio.

Can anyone please help fixing this? Thanks!

Inspector.Gadget
3rd April 2009, 21:05
You need to enable YV12 decoding in ffdshow -> video decoder configuration -> codecs -> raw video -> Set to "all supported". Bear in mind that you don't want to leave this on all the time as it will break DXVA in player apps.

Also, Rule 6.

TC03
3rd April 2009, 21:10
You need to enable YV12 decoding in ffdshow -> video decoder configuration -> codecs -> raw video -> Set to "all supported". Bear in mind that you don't want to leave this on all the time as it will break DXVA in player apps.

Also, Rule 6.Thanks, that solved it. :D

Leak
3rd April 2009, 21:19
Thanks, that solved it. :D
Not the rule 6 violation, I'm afraid...

np: Autechre - Left Blank (EP7)

TC03
3rd April 2009, 21:27
Not the rule 6 violation, I'm afraid...

np: Autechre - Left Blank (EP7)Fixed.

Wilbert
3rd April 2009, 22:54
Please read the rules. Closed thread.