1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

virtualdubmode does not accept avisynth script

Discussion in 'Convert video to another format' started by Tarafun, Mar 2, 2012.

  1. Tarafun

    Tarafun Member

    Joined:
    Mar 2, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    11
    Attar solved the problems of mp4<->VirtualDubMod as I red it in the post #721370, 23 Nov 2008. I need uncrompessed avi made by VDM from the mp4 files of my camera.

    I installed VDM (1.5.10.2._all_inclusive) and avisynth also, wrote the proba.avs by Notepad, put it into VDM, and got the message on VDM: "Avisynth open failure: I don't know what 'proba' means (C:\Program Files\VirtualDub\proba.avs, line1)"


    I thank any helps, been trying with this problem since 2 weeks.

    Tarafun
     
  2. attar

    attar Senior member

    Joined:
    Jun 17, 2005
    Messages:
    11,568
    Likes Received:
    41
    Trophy Points:
    128
    There are so many variations of mp4 that it's hard sometimes to get VDub to handle it.

    Have you tried opening it in AviDemux.
    If it opens ok, you can set the Video as YV12(RAW) which is uncompressed video.
    Audio as PCM (if you want uncompressed).
    Output as AVI

    You understand that 'uncompressed' video creates huge files.
    The Raw file can now be opened in VirtualDub (the old VirtualDubMod hasn't been updated for years - but it should also open there)).
     
  3. Tarafun

    Tarafun Member

    Joined:
    Mar 2, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    11
    Thank you attar!

    I made many mistakes because I have not learned the proper form of scripting yet. Last night I found out this:

    video = Mp4Source(".....mp4", pixel_type="RGB24"), audio = false

    Hope, it works! I don't need the Audio track because I usually get it by any audio editor in wav. I edit my videos with Vegas that accepts uncompressed avi only. My earlier cameras made avi files and VD accepted and saved them raw forms without any problems. I used to cut them roughly by VD to shorter them.
     
  4. hello_hello

    hello_hello Member

    Joined:
    Mar 14, 2012
    Messages:
    77
    Likes Received:
    0
    Trophy Points:
    16
    Open the MP4 using VirtualDubMod. As you do, you'll see there's an AVISynth Template drop down box at the bottom of the File/Open window. Select DirectShowSource. VirtualDubMod will automatically create a basic AVISynth script to open the MP4 via directShow, then it'll open the MP4 with it.
    The above method works for any file type you can decode on your PC using DirectShow, so if you have something like ffdshow installed and doing the decoding, you should be able to open all the common video formats that way. For some, you may also need to install the Haali (Matroska) media splitter (I'd post a link but the forum won't let me as I'm a new member).

    I dont think VirtualDub has an option to create AVISynth templates as VirtualDubMod does, but via Google you'll find plugins for VirtualDub which allow it to directly open non-AVI file types such as MP4 and MKV.
     
  5. Tarafun

    Tarafun Member

    Joined:
    Mar 2, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    11
    Many thanks hello_hello! Opening my mp4 and checking the DirectShow I do not get an automatically scripted line! :((( I could open the ScriptEditor (Ctrl/E) to write.

    Another problem, that VDMod streches my video vertically, but the VLC shows it correctly. The size is 720x576 and this is shown in the FileInformation of VDMod too!!

    How can I correct these problems, do you think?
     
  6. hello_hello

    hello_hello Member

    Joined:
    Mar 14, 2012
    Messages:
    77
    Likes Received:
    0
    Trophy Points:
    16
    I'm confused. VDMod should create it's own script. It's not? So you can't open the MP4s that way?
    I'm assuming you do have AVISynth installed?? You also need to have the appropriate codecs installed to decode the video and audio. Do you have something like ffdshow installed?

    If you do already have them installed, try this. Open Notepad, and copy and paste the following into it (I've not used the VDMod script editor).

    DirectShowSource("D:\video.mp4")

    Change the path (and name) to wherever the video is located on your PC. Save it as a text file somewhere, navigate to where you saved it, and change the extension from .txt to .avs
    Now, try opening the AVS file using VDMod. If everything's working correctly, the video should open fine.

    Are we still talking about the same MP4s?
    720x576 is typical PAL DVD resolution. DVDs don't use square pixels. The video is stretched to the correct aspect ratio on playback. You'd need to resize the video using VDMod's resize filter. Something like 1024x576 if you want to resize up, or 720x400 if you want to resize down.

    As I seem to have missed out, can you describe exactly what you're trying to achieve? As in why you're wanting to convert MP4s to uncompressed video and whether you'll be converting them again from there etc. Also whether the 720x576 videos you're referring to are the MP4s or something else, and what you're trying to convert them to etc?
    It's just that once I know what sort of files you're starting with, what you're trying to end up with, and what you're wanting to play them with when it's all done, I might be able help with a more clever method for getting there.
     
  7. Tarafun

    Tarafun Member

    Joined:
    Mar 2, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    11

    My videocamera makes clips: 720x576 mpg. I want to edit them by VDM first but these are stretched vertically. I don't know why? What meseaures do you suggest to write in Resize filter because of the stretching? If I would get a good looking video, I edit then save it in uncompressed avi to edit it more precisely by Vegas (I can handle that program a little bit but like very much).
     
  8. hello_hello

    hello_hello Member

    Joined:
    Mar 14, 2012
    Messages:
    77
    Likes Received:
    0
    Trophy Points:
    16
    Okay, so I guess the camera produces MP4s containing mpeg2 video. It'll be the same as DVD video, where the aspect ratio is different to the resolution (video gets stretched on playback). It's not something you really have to worry about when editing, even if the picture does look squished, it's just that VDMod is displaying the video as though the pixels are square.

    In theory once you've finished editing the video you then re-save it or re-encode it, setting the correct aspect ratio in the process, and once again the edited video will be stretched to the correct aspect ratio on playback.

    As I don't know anything about Vegas or what format you want to end up with after you've finished editing or what you'll be using to play the final video, I don't know whether you need to bother resizing at all. If you want to use VirtualDubMod's resize filter before converting to uncompressed AVI though, 1024x576 is the aspect ratio which I assume the original MP4s will be displaying at on playback (16:9).
     

Share This Page