Log in

View Full Version : AVS script error


picrade
5th May 2019, 19:41
I want to create a subtitle track for a blu-ray movie. The video is MPEG2.
I use this script in Aegisub:

DirectShowSource("G:\BDMV\STREAM\00000.m2ts",fps=23.976,audio=false)

But in Aegisub I get this error:

YUV4MPEG: video is not in a supported format.
FFmpegSource: file not found.
AviSynth: AviSynth error: Script error: there is no function named "DirectShowSource"

I have Avisynth 2.60 and ffdshow installed.

manono
6th May 2019, 00:41
M2ts contains MPEG-2 video (as you said). If I were you, I'd index it using DGIndex followed by opening it using MPEG2Source (http://avisynth.nl/index.php/DGDecode/MPEG2Source). This is thoroughly explained in the docs included with the DGMPGDec (https://www.videohelp.com/software/DGMPGDec) package. If I could possibly avoid it, I'd never ever use DirectShowSource.