Quantcast Avisynth: Segmentedavisource - Any Workaround for More than 100 Files? - digitalFAQ.com Forums [Archives]
  #1  
06-05-2003, 10:30 AM
Icarus3000 Icarus3000 is offline
Free Member
 
Join Date: Feb 2003
Posts: 258
Thanks: 0
Thanked 0 Times in 0 Posts
Is there any way to join more than 100 segmented avi files?

I have files that are labelled:
"Name.001.avi", "Name.002.avi", ... , "Name.143.avi".

Thanks,
Icarus
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
06-05-2003, 11:23 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts

You're going to have to type a lot
It would be something like this:

AviSource("Name.001.avi"") + AviSource("Name.002.avi"") + AviSource("Name.003.avi"") etc.
Check the correct syntax at www.avisynth.org

-kwag
Reply With Quote
  #3  
06-05-2003, 12:01 PM
Icarus3000 Icarus3000 is offline
Free Member
 
Join Date: Feb 2003
Posts: 258
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks Kwag!

I know I can do it that way, you can even do:

Avisource ("Name.01.avi", "Name.02.avi") (a bit less typing )

I was hoping there was an easier way, such as renaming the files > 100 to a new name, and then merging two segmentedavisource commands.

Does anyone know if there is a way to do this?

Thanks,
Icarus
Reply With Quote
  #4  
06-05-2003, 01:26 PM
sbin sbin is offline
Free Member
 
Join Date: May 2003
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Doesn't VirtualDub have an option to automatically detect and load additional segments? Seems to me that would be the easiest way if you can get it to work.....
Reply With Quote
  #5  
06-06-2003, 12:12 AM
urban tec urban tec is offline
Free Member
 
Join Date: Nov 2002
Location: West Australia
Posts: 272
Thanks: 0
Thanked 0 Times in 0 Posts
Why not frameserve from virtualdub then there is no need bother with multiple avisorce commands in a script
Reply With Quote
  #6  
06-06-2003, 08:46 AM
Icarus3000 Icarus3000 is offline
Free Member
 
Join Date: Feb 2003
Posts: 258
Thanks: 0
Thanked 0 Times in 0 Posts
Urban Tec:

Can you please elaborate?

How do I frameserve a multi-segmented .avi file from virtualdub to avisynth?

Thanks,
Icarus
Reply With Quote
  #7  
06-06-2003, 10:07 AM
urban tec urban tec is offline
Free Member
 
Join Date: Nov 2002
Location: West Australia
Posts: 272
Thanks: 0
Thanked 0 Times in 0 Posts
G'day Icarus

Check
this guide to get the frame serving setup.

Instead of opening the dummy avi file directly with tmpgenc as in the guide use it as the source in your avs script.

Hope this makes it a little more clear
Reply With Quote
  #8  
06-06-2003, 01:09 PM
MrTibs MrTibs is offline
Free Member
 
Join Date: Aug 2002
Location: Canada
Posts: 200
Thanks: 0
Thanked 0 Times in 0 Posts
I think you are looking for the Avisynth command:

SegmentedAviSource(string base_filename [, ... ], bool audio, string pixel_type)


Your line would simply look like:

SegmentedAviSource(Name.avi)
Reply With Quote
  #9  
06-06-2003, 01:52 PM
ARnet_tenRA ARnet_tenRA is offline
Free Member
 
Join Date: Jan 2003
Location: Illinois, USA
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
@Icarus3000

For greater than 100 files like you requested follow these steps:

Batch rename your files.
  • Name.001.avi to Name-0.01.avi
    Name.002.avi to Name-0.02.avi
    ...
    Name.099.avi to Name-0.99.avi
    Name.100.avi to Name-1.00.avi
    Name.101.avi to Name-1.01.avi
    ...
    Name.143.avi to Name-1.43.avi
Then use the following command to load the files.
  • SegmentedAviSource(Name-0.avi)+SegmentedAviSource(Name-1.avi)
Regards, Tenra
Reply With Quote
  #10  
06-06-2003, 01:52 PM
Icarus3000 Icarus3000 is offline
Free Member
 
Join Date: Feb 2003
Posts: 258
Thanks: 0
Thanked 0 Times in 0 Posts
Mr Tibs:

It was my understanding that the SegmentedAviSource() command only works for:

Name.01.avi , Name.02.avi, ... , Name.99.avi

I have files labelled:

Name.001.avi, Name.002.avi..., Name.143.avi

Hence, looking for a way to expand the capability of the SegmentedAviSource() command.

Thanks,
Icarus
Reply With Quote
  #11  
06-06-2003, 02:54 PM
MrTibs MrTibs is offline
Free Member
 
Join Date: Aug 2002
Location: Canada
Posts: 200
Thanks: 0
Thanked 0 Times in 0 Posts
@Icarus3000

Sorry about that. You are correct, I wasn't paying attention. Personally, I like ARnet_tenRA's method.

Do you often have more than a hundred segments?
Reply With Quote
  #12  
06-09-2003, 08:30 AM
Icarus3000 Icarus3000 is offline
Free Member
 
Join Date: Feb 2003
Posts: 258
Thanks: 0
Thanked 0 Times in 0 Posts
ARnet's method sounds like what I was looking for, but unfortunately I couldn't get it to work.

Actually I couldn't get SegmentedAviSource () to work with 100 files. I didn't have time to experiment, but it worked fine with 50 files.

When I tried SegmentedAviSource() with 100 segments, I received a TMPGenc error: Unsupported file type.

When I tried SegmentedAviSource() with 50 segments, it worked fine.

When I tried SegmentedAviSource(1-50) + Segmented AviSource(51-100), I received a TMPGenc error: Unsupported file type.

I worked around this by doing the encoding in 3 batches, but has anyone else run into this problem?

Thanks,
Icarus
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: Loading ogm files? shgr Avisynth Scripting 5 10-06-2005 05:00 AM
VOB files and avisynth? Koekies Avisynth Scripting 3 05-31-2004 11:02 AM
TMPGEnc: Large Wav file workaround? Timster Video Encoding and Conversion 2 02-20-2003 02:09 PM
Avisynth: Joining files using avisynth? black prince Avisynth Scripting 12 08-19-2002 03:20 AM
Avisynth: Scripts for VRO files? Bud Avisynth Scripting 8 06-04-2002 09:04 AM

Thread Tools



 
All times are GMT -5. The time now is 06:06 PM  —  vBulletin © Jelsoft Enterprises Ltd