Forum

Author Topic: Frame index zero fill option for movie import function  (Read 1308 times)

KotaYonezawa

  • Newbie
  • *
  • Posts: 3
    • View Profile
Frame index zero fill option for movie import function
« on: October 15, 2024, 01:06:14 PM »
Thanks for very good photogrammetry software!
I heavily use now.

Today, I have a feature request for movie import function.
When we import movie, we can choose split image file names like "frame{filenum}.png"
{filenum} will be replaced to 0, 1, 2, ... 10, 11, 12,.. 100, 101, 102...
So the split image file name will be:
frame0.png, frame1.png, frame2.png, ... frame10.png, frame11.png, frame12.png, ... frame100.png, frame101.png, frame102.png...



But these file name sometimes not good for other software/applications.
Some external application automatically arrange the image file names as alphabetical order, and then uses them as chronological order image input.
In such case, above files will be a arranged like as follows:

frame0.png
frame1.png
frame10.png
frame100.png
...

So, image files will be imported non-chronological order for such external applications...
To avoid such case, Now I need to change image file names after importing movie like as follows.

frame0000.png
frame0001.png
frame0002.png
...
frame0010.png
frame0011.png
frame0012.png
...
frame0100.png
frame0101.png
frame0102.png
...
I can do it but it's not convenient...

So, my request is, could you add a option to change split image file name using zero-filled index like as above?
For example, if we set in movie import dialog like:
frame{zfillfilenum}.png
the split image file can become like "frame0000.png"
(number of zero is determined by total file number of split image files)

What do you think?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15177
    • View Profile
Re: Frame index zero fill option for movie import function
« Reply #1 on: October 15, 2024, 08:04:04 PM »
Hello KotaYonezawa,

You can use the following filename template:
Code: [Select]
frame{filenum:04}.png
Thus you will get frame00000.png, frame00001.png, frame00002.png labeling for the produced frames.
Best regards,
Alexey Pasumansky,
Agisoft LLC

KotaYonezawa

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Frame index zero fill option for movie import function
« Reply #2 on: October 16, 2024, 03:31:53 AM »
Hi Alexey Pasumansky

> frame{filenum:04}.png

I've never found this in the manual...
I'll use it.
Thanks a lot!!

JMR

  • Hero Member
  • *****
  • Posts: 526
    • View Profile
Re: Frame index zero fill option for movie import function
« Reply #3 on: October 16, 2024, 10:22:20 AM »
Hello KotaYonezawa,

You can use the following filename template:
Code: [Select]
frame{filenum:04}.png
Thus you will get frame00000.png, frame00001.png, frame00002.png labeling for the produced frames.

Hi, Alexey
Where can be found some documentation about templates usage?
Thanks