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.

 
Finding Eof
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
mousey
Posted: Jun 2 2004, 03:20 PM


Unregistered









I'm trying to get VirtualDubMod to remove an audio channel from a dual audio file, but the problem is I have to do this for every file, and I didn't like the idea of manually doing it 174 times.

What I've done is let VDM create a job file which would process an mkv file, remove the first audio stream, and do a direct stream copy.

It works fine that way, but when I modified the job file to another filename, I realised that the "VirtualDub.subset.AddRange(0,????);" part of the script would needed to be changed to the final frame of each file.

Is there a way in VDM to specify the final frame number in a file?

I've tried doing this

****
declare EOF;
EOF = VirtualDub.video.GetRange(3);
VirtualDub.subset.AddRange(0,EOF);
****

but the output file contains nothing in it. Any help would be appreciated. biggrin.gif
 
  Top
phaeron
Posted: Jun 3 2004, 06:39 AM


Virtualdub Developer


Group: Administrator
Posts: 7773
Member No.: 61
Joined: 30-July 02



You cannot retrieve the frame count from a script, but you don't have to. Simply delete the subset instead (VirtualDub.subset.Delete(), I think).
 
    Top
mousey
Posted: Jun 3 2004, 08:07 AM


Unregistered









thanks for the help, all i had to do was delete the two lines

CODE

VirtualDub.subset.Clear();
VirtualDub.subset.AddRange(0,???);
 
  Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
2 replies since Jun 2 2004, 03:20 PM Track this topic | Email this topic | Print this topic

<< Back to Avisynth Filtering, Processing and Scripts Discussion