Log in

View Full Version : Windows Service + x264.exe + MOV file...


Serge2k
7th December 2009, 17:33
Hi... I hope somebody will be able to help me.

I've developed a windows service for video encoding. This service is using avisynth and command line tools listed below:
x264.exe
wavi.exe
mp4box.exe
neroaacenc.exe

The problem is that when a MOV file comes to the service as an input x264 failes showing message like this:
avis [error]: unsupported input format (DIB )
x264 [error]: could not open input file `E:\video\tmp\failed\_video_ld.avs'

i am using this avs script:
SourceClip = DirectShowSource("E:\video\tmp\1\1.mov", fps=29.970, convertfps=true)
aspect_ratio = 1.333
output_ar = (aspect_ratio == 0) ? (SourceClip.Width / SourceClip.Height) : aspect_ratio

ld_width = 320
ld_height = Round(ld_width / output_ar / 2) * 2

Lanczos4Resize(SourceClip, ld_width, ld_height)
ConvertToYV12()

The problem is that when i try using the code of my service as a windows forms application(coping all the methods to the new forms project), everything works correctly. But when it is run as a service i get this error. It appears only when trying to encode MOV files. Other containers are encoded correctly. I think the problem is in haali media splitter or in ffdshow when using these filters in windows service.

I'll be very gratefull for any help. Thanks...