digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: SegmentedAvisource - any workaround for more than 100 files? (http://www.digitalfaq.com/archives/avisynth/3878-avisynth-segmentedavisource-workaround.html)

Icarus3000 06-05-2003 10:30 AM

SegmentedAvisource - any workaround for more than 100 files?
 
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

kwag 06-05-2003 11:23 AM

8O
You're going to have to type a lot :lol:
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

Icarus3000 06-05-2003 12:01 PM

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 :lol:)

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

sbin 06-05-2003 01:26 PM

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.....

urban tec 06-06-2003 12:12 AM

Why not frameserve from virtualdub then there is no need bother with multiple avisorce commands in a script

Icarus3000 06-06-2003 08:46 AM

Urban Tec:

Can you please elaborate?

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

Thanks,
Icarus

urban tec 06-06-2003 10:07 AM

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 :)

MrTibs 06-06-2003 01:09 PM

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)

ARnet_tenRA 06-06-2003 01:52 PM

@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

Icarus3000 06-06-2003 01:52 PM

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

MrTibs 06-06-2003 02:54 PM

@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?

Icarus3000 06-09-2003 08:30 AM

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


All times are GMT -5. The time now is 09:04 AM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.