PDA

View Full Version : Need help with piping mpeg2 ES stream to Avisynth!


TEB
2nd January 2009, 18:21
Hi. I can't get this simple workflow working.
Workflow is : XDCAM EX Content demuxed in mp4box so it gives me a 35mbit VBR mpeg2 ES stream --> Avisynth --> x264.exe
It works with x264.exe but i cant preview it in Mediaplayer Classic HC, any help is apriciated ! ;)

UPDATE2: It seems to work in Vdub, but not in Mediaplayer Classic HC 940 IA32... Tho with half speed (its 720p60) + that Avisynth Info says its bottom field first even if its progressive??

br TEB


MY AVS script:
LoadPlugin("Z:\dgmpgdec\DGDecode.dll")
MPEG2Source("Z:\temp2\20081389_01_track1.d2v")

And when i try it in Mediaplayer Classic HC, i get : (could not render some pins and so on..)

Z:\temp2\TEST.avs::Avisynth video #1

Media Type 0:
--------------------------
Video: YV12 1280x720 59.94fps

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

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

BITMAPINFOHEADER:
biSize: 40
biWidth: 1280
biHeight: 720
biPlanes: 1
biBitCount: 12
biCompression: YV12
biSizeImage: 1382400
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 b1 8b 02 00 00 00 00 00 ........±‹......
0030: 28 00 00 00 00 05 00 00 d0 02 00 00 01 00 0c 00 (.......Ð.......
0040: 59 56 31 32 00 18 15 00 00 00 00 00 00 00 00 00 YV12............
0050: 00 00 00 00 00 00 00 00 ........

neuron2
2nd January 2009, 18:41
Fix thread title ASAP to avoid a rule 9 strike.

What is the intended result of your workflow? Are you saying your AVS script does not play in VirtualDub? Your post is very unclear.

Inspector.Gadget
5th January 2009, 05:53
If you're getting that error in MPC, chances are you need to set ffdshow to decode YV12 video (see "Raw video" at the bottom of the codecs list, and make sure it's set to YV12).