Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#213 m2v files won't play

v2.5x
closed-invalid
nobody
Internals (76)
5
2012-06-22
2012-01-03
Squeeto
No

Hello,
This has worked in the past with mplayer. I am not sure if AviSynth is supposed to support "frame serving" to mplayer though.

Avisynth 2.58
files:
-d:\temp\test.avi
-d:\temp\test.m2v (made from hc encoder)
-d:\temp\playAVI.avs :
AVISource("test.avi")

-d:\temp\playM2V.avs :
#LoadPlugin("DirectShowSource.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DirectShowSource.dll")
DirectShowSource("D:\temp\test.m2v")

with mplayer:
test.avi WORKS
test.m2v WORKS
playAVI.avs WORKS
playM2V.avs reports:
Import: couldn't open "C:\Program Files\MPlayer\mp:D:\temp\playM2V.avs"

C:\Program Files\MPlayer>mplayer "D:\temp\playM2V.avs" reports:
Import: couldn't open "C:\Program Files\MPlayer\mp:D:\temp\playM2V.avs"

I thought that AviSynth was messing up the file location such as the error message displays but this may be a separate issue.
I noticed when I renamed test.avi to test2.avi, playAVI.avs reports the same oddity when it can't find the file:
Import: couldn't open "C:\Program Files\MPlayer\mp:D:\temp\playAVI.avs"

Thank you

Discussion

  • Squeeto
    Squeeto
    2012-01-03

    Re-installed VideoWave (my AVI editor), required Indeo codecs and AviSynth.

    Now:
    playM2V.avs WORKS

    and a further avs file playAC3 started working too:
    LoadPlugin("NicAudio.dll")
    NicAC3Source("test.ac3")

    But, playAVI.avs now has no sound, yet has video.

    I would sure like to know the registry requirements for AviSynth for this to work.

    Yet another step that fails, dub.avs :
    LoadPlugin("NicAudio.dll")
    NicAC3Source("test.ac3")
    DirectShowSource("test.m2v")
    audiodub()

    Import: couldn't open "C:\Program Files\MPlayer\mp:D:\temp\dub.avs"

     
  • Squeeto
    Squeeto
    2012-01-04

    audiodub fixed with a 'return'

    Not sure why playAVI.avs has no sound but I don't care. It was just a test step and not required.
    Not sure why one or both of the two apps would affect AyiSynth. Mystery.

    I will do a registry compare if I ever fall into this trap again.
    Thanks, bye

     
  • You will get more help when asking on the doom9 forums.

     
  • Squeeto
    Squeeto
    2012-01-08

    It's okay. I have moved on. The part that I really need is working.
    Avisynth is an invaluable tool.

     
  • Ian Brabham
    Ian Brabham
    2012-06-22

    Seems to be a bug with MPlayer's handling of script errors. i.e. if "script error" then try "path emulation", oops the resulting path points nowhere, report that instead.

    Use a self healing script like this to test more fully :-
    try {
    LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DirectShowSource.dll")
    DirectShowSource("D:\temp\test.m2v")
    }
    catch (errtext) {
    BlankClip(1, 1024, 64)
    Subtitle(errtext)
    }

     
  • Ian Brabham
    Ian Brabham
    2012-06-22

    • labels: --> Internals
    • milestone: --> v2.5x
    • status: open --> closed-invalid