Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

 
Vdscript: Selecting Input Driver
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
Malaksbane
Posted: Aug 1 2014, 11:24 AM


Member


Group: Members
Posts: 13
Member No.: 32779
Joined: 24-August 11



With scripting, is it possible to open media using an other input driver then the default AVI/VfW Open()? And if so, how?
 
     Top
raffriff42
Posted: Aug 2 2014, 05:13 AM


Advanced Member


Group: Members
Posts: 384
Member No.: 35081
Joined: 25-June 12



Excellent question. I'd like to know myself.
From the documentation, it seems like you should be able to do it with this call:

VirtualDub.Open("D:\\test.avi", "type", 0);

...where type must (as I understand it) be one of the following:
QUOTE
Adobe filmstrip input driver (internal)
Animated GIF input driver (internal)
Audio/video interleave input driver (internal)
AVIFile/Avisynth input driver (internal)
IFF ANIM input driver (internal)
Image sequence input driver (internal)
MPEG audio input driver (internal)
MPEG-1 input driver (internal)
Raw video input driver (internal)
Test video input driver (internal)
Wave input driver (internal)
...unfortunately I don't think DirectShow input, Quicktime input, FFmpeg etc. can be invoked this way.

I hope I am wrong but that's how it seems to me, based on experimentation and reading the source code.
 
     Top
Malaksbane
Posted: Aug 13 2014, 08:21 PM


Member


Group: Members
Posts: 13
Member No.: 32779
Joined: 24-August 11



Ok.

It doesn't directly complain when using "FFMpeg Supported File" for type, but ... it opens some, and not others.

What I am trying is opening HDV footage recorded with a sony Z5. Now, it complains about not being able to open MPEG-2 streams when opening files recorded with the memory-card recorder, but it will open files 'captured' from tape to that memory-card recorder. It's also happy dubbing AVCHD (in m2ts). Manually opening the offending hdv files is no problem either.


 
     Top
dloneranger
Posted: Aug 13 2014, 08:37 PM


Moderator


Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07



VirtualDub.Open("c:\\some video.mkv","ffmpeg",0);

To get the code 'ffmpeg' or others, just open a video with the plugin you want, queue a job and then read the .jobs file in notepad
If the code you used isn't actually valid virtualdub uses it's normal auto-detection routine, the same as if you open the video without selecting a plugin
Which is why
QUOTE
It doesn't directly complain when using "FFMpeg Supported File" for type, but ... it opens some, and not others.


--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
-vdub-
Posted: Aug 14 2014, 04:45 PM


Advanced Member


Group: Members
Posts: 613
Member No.: 27087
Joined: 24-February 10



Easy way to know if something does work or not is to load the file normal virtualdub way using

1. File - Open Video File > Select a video file to open
2. Files Of Type choose a decoder to use to load and view the video
3. File > Queue To Batch > Save As AVI

Look in the Virtualdub folder for the file Virtualdub.jobs this can be opened using notepad. Where you will see what the filter you are using is or to change to a filter that you require

VirtualDub.Open("Drive:\\Filename.ext","DirectShow",0);
VirtualDub.Open("Drive:\\Filename.ext","QuickTime",0);
VirtualDub.Open("Drive:\\Filename.ext","ffmpeg",0);


I do this often for Batch Wizard where virtualdub doesn't allow us to choose decoder to use after dropping file|s. If did so virtualdub would error at every file if it cannot decode them. Looking at the jobs file you can edit to what you require for example x264-aac mp4 cannot be loaded without a decoder

When load a video using virtualdub without decoder this is how the Virtualdub.jobs file will look with no decoder set inside the ,"",0 quotes
VirtualDub.Open("c:\\Some Video File.mp4","",0);

Using notepad you can then Replace as you need. example for ffchandlers Quicktime decoder plugin (which doesn't require Quicktime to be installed)
VirtualDub.Open("c:\\Some Video File.mp4","QuickTime",0);

Doing the above will enable Virtualdub to process those videos



Try also instead of the above mux your video to mkv using mkvtoolnix mkvmerge.exe after virtualdub may see your file with need use of a decoder plugin
 
    Top
malky
Posted: Aug 14 2014, 06:42 PM


Advanced Member


Group: Members
Posts: 290
Member No.: 22386
Joined: 6-November 07



I find it to be File > Queue batch operation > Save as avi..
Also, if VirtualDub folder is in C:\Program Files, no *.jobs file is created.
Same version 1.10.4 on Desktop creates a *.jobs file ok.
 
    Top
dloneranger
Posted: Aug 14 2014, 07:14 PM


Moderator


Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07



Depends on version - it's moved around a bit in the menus over time

From Vista onwards, programs should not write to the 'program files' folders
If they do, their files are intercepted and actually saved to your virtualization store
Usually you'll find them somewhere starting here %AppData%\..\Local\VirtualStore\

The desktop doesn't have this restriction as it's part of your user profile and already allows writes etc by users

You can set the folder's security to allow control by users and writes can then happen to the folder (NEVER do that to the program files directory itself, just eg virtualdub's own one)

Better is to use version 1.10.xx and in its options there's a setting for using your profile, or the folder virtualdub's in

--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
malky
Posted: Aug 14 2014, 09:51 PM


Advanced Member


Group: Members
Posts: 290
Member No.: 22386
Joined: 6-November 07



Thanks for the heads up, I've reset the permissions on the VDub folder and can see the *.jobs file now.
 
    Top
-vdub-
Posted: Aug 16 2014, 08:30 PM


Advanced Member


Group: Members
Posts: 613
Member No.: 27087
Joined: 24-February 10



QUOTE (malky @ Aug 14 2014, 06:42 PM)
I find it to be File > Queue batch operation > Save as avi..
Also, if VirtualDub folder is in C:\Program Files, no *.jobs file is created.
Same version 1.10.4 on Desktop creates a *.jobs file ok.


The .jobs file is located where your virtualdub is located and virtualdub. or vdub.exe is executed (run) from

Your correct it is
File > Queue Batch Operation > Save as AVI
also
File > Queue Batch Operation > Batch Wizard

When I have multiple same tasks I find it easier to load one video set the settings then add it to batch queue. After I open Batch Wizard and multi drop all the other videos to the Batch Wizard window. After choose the destination then Add To Queue > Re-save As AVI. Afterwards I edit the .jobs file in Virtualdub folder as written above for correct decoder. Which more often I copy from the first batch I added

Can be many .jobs file with each with a ''Another_Name.jobs'' file than virtualdub.jobs. I mention this since you could have many projects and load them all to one batch or many open virtualdub working at same time batch .jobs Load them using File > Job Control > File > Load Job List. That is if the decoders, encoders and Virtualdub are able to do this at the same time
 
    Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
8 replies since Aug 1 2014, 11:24 AM Track this topic | Email this topic | Print this topic

<< Back to Advanced Video Processing