logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
AlanZ  
#1 Posted : Friday, December 28, 2018 1:03:54 AM(UTC)
AlanZ

Rank: Advanced Member

Groups: Registered
Joined: 7/11/2015(UTC)
Posts: 354
Location: NJ

Thanks: 9 times
Was thanked: 45 time(s) in 38 post(s)
I have a need to create multiple snapshots with unique file names.

Currently I am using a shortcut that creates the unique name based on file date and time.

I used "C:\Users\myuser\pictures\snapshot {0:yyyy-MM-dd H-mm-ss.f}.png" as the value in the shortcut.

This works very well, creating file names like "snapshot 2018-12-26 21-36-47.1.png"
I am combining the snapshots into a time-lapse movie, so I need unique, sortable file names.

My question is whether there is a value that will increment a file name in much the same way that "new file every" does in recording capture.

I would like filenames to automatically increment as they are added... something like "snapshot00001.png", "snapshot00002.png"

Your thoughts are appreciated.
AlanZ  
#2 Posted : Sunday, December 30, 2018 3:18:55 AM(UTC)
AlanZ

Rank: Advanced Member

Groups: Registered
Joined: 7/11/2015(UTC)
Posts: 354
Location: NJ

Thanks: 9 times
Was thanked: 45 time(s) in 38 post(s)
Anyone?
MartLeib  
#3 Posted : Sunday, December 30, 2018 3:47:30 AM(UTC)
MartLeib

Rank: Advanced Member

Groups: Registered
Joined: 2/23/2017(UTC)
Posts: 189
Estonia

Thanks: 1 times
Was thanked: 52 time(s) in 42 post(s)
I would write a small script that renames all the files in a folder according to the creation time.
doggy  
#4 Posted : Sunday, December 30, 2018 5:10:08 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,223
Belgium
Location: Belgium

Thanks: 293 times
Was thanked: 955 time(s) in 790 post(s)
if all you want is it to be sortable the date you are using is already chronological not ?

and one could even simplify it say with just using the time , one can even omit the dashes like /snapshots {0: hhmmss tt}.png

else will need MartLeib's suggestion or use some (existing) mass file renamer
mjgraves  
#5 Posted : Sunday, December 30, 2018 7:00:58 AM(UTC)
mjgraves

Rank: Advanced Member

Groups: Registered
Joined: 7/1/2015(UTC)
Posts: 1,151
Man
United States
Location: Houston TX

Thanks: 319 times
Was thanked: 263 time(s) in 233 post(s)
I use a very nice image management tool called ThumbsPlus. One of its many features is that it will auto-rename a sequence of pics, appending numbers after a prefix.
AlanZ  
#6 Posted : Sunday, December 30, 2018 10:08:50 AM(UTC)
AlanZ

Rank: Advanced Member

Groups: Registered
Joined: 7/11/2015(UTC)
Posts: 354
Location: NJ

Thanks: 9 times
Was thanked: 45 time(s) in 38 post(s)
I appreciate the comments, but does someone know how to do what I asked?
The current naming does not pose a sorting issue for me... but I would prefer a simple sequence number without post processing of the files.
This way it could be easily turned into an image sequence when the capture is complete.
IceStream  
#7 Posted : Monday, December 31, 2018 1:43:36 AM(UTC)
IceStream

Rank: Advanced Member

Groups: Registered
Joined: 3/7/2012(UTC)
Posts: 2,636
Man
Location: Canada

Thanks: 33 times
Was thanked: 506 time(s) in 475 post(s)
@ AlanZ

How are you creating your Image Sequences now?
The vMix Image Sequence Input does this automatically with sequential images in a folder, is it that the timestamp is not recognized as a sequence?



Ice
AlanZ  
#8 Posted : Monday, December 31, 2018 9:13:24 AM(UTC)
AlanZ

Rank: Advanced Member

Groups: Registered
Joined: 7/11/2015(UTC)
Posts: 354
Location: NJ

Thanks: 9 times
Was thanked: 45 time(s) in 38 post(s)
I was under the impression that vmix and some other programs expect sequentially named files when defining an image sequence. I don’t think they look at the file date/time to determine order.

AlanZ  
#9 Posted : Monday, December 31, 2018 9:14:14 AM(UTC)
AlanZ

Rank: Advanced Member

Groups: Registered
Joined: 7/11/2015(UTC)
Posts: 354
Location: NJ

Thanks: 9 times
Was thanked: 45 time(s) in 38 post(s)
I am creating the files by taking snapshots in vMix, as stated in my original post.
AlanZ  
#10 Posted : Thursday, January 3, 2019 3:14:54 PM(UTC)
AlanZ

Rank: Advanced Member

Groups: Registered
Joined: 7/11/2015(UTC)
Posts: 354
Location: NJ

Thanks: 9 times
Was thanked: 45 time(s) in 38 post(s)
Pinging the group again with the original question: Is there a shortcut value for a snapshot that will increment a file name in much the same way that "new file every" does in recording capture?
richardgatarski  
#11 Posted : Tuesday, February 5, 2019 2:51:07 AM(UTC)
richardgatarski

Rank: Advanced Member

Groups: Registered
Joined: 2/18/2014(UTC)
Posts: 1,837
Location: Stockholm

Thanks: 144 times
Was thanked: 297 time(s) in 250 post(s)
Alan,
AFAIK it is not possible to add a sequence number field to file name templates in Snapshots, Recorder, etc.
I thought I made a Feature Request for that years ago, but can't find it.
daniel514  
#12 Posted : Thursday, April 11, 2019 12:06:06 AM(UTC)
daniel514

Rank: Advanced Member

Groups: Registered
Joined: 2/26/2014(UTC)
Posts: 81
Canada
Location: Canada

Thanks: 18 times
Was thanked: 15 time(s) in 15 post(s)
AlanZ

If you code Python... or find a nice coder... you can probably get a script to capture your sequences as a timed delay if you do time-lapse.. and name your snapshots as you desire directly in Python...


I got SnapshotInput working as a weblink... cool!

For vMix 22!

Stored in C:\Users\YourUser\Documents\vMixStorage

http://localhost:8088/API/?Function=SnapshotInput&Input=1&Value=mysnapshot%20{0:yyyy-MM-dd%20H-mm-ss.f}.jpg

And this little Python 2.7 script ....

Code:
import socket
import time

s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)

s.connect(("localhost",8088))

sleeper = 1 #Time to wait in seconds between snapshots!

SnapshotInput = "GET /API/?Function=SnapshotInput&Input=1&Value=mysnapshot%20{0:yyyy-MM-dd%20H-mm-ss.f}.jpg HTTP/1.0\n\n"


def your_function1():
		s.send(SnapshotInput)
		#s.close()

		
while True:
    your_function1()
    time.sleep(sleeper)
daniel514  
#13 Posted : Thursday, April 11, 2019 12:54:06 AM(UTC)
daniel514

Rank: Advanced Member

Groups: Registered
Joined: 2/26/2014(UTC)
Posts: 81
Canada
Location: Canada

Thanks: 18 times
Was thanked: 15 time(s) in 15 post(s)
I like a lot ReNamer

snapshotRenamer.JPG (145kb) downloaded 1 time(s).



AlanZ  
#14 Posted : Sunday, April 14, 2019 2:20:23 AM(UTC)
AlanZ

Rank: Advanced Member

Groups: Registered
Joined: 7/11/2015(UTC)
Posts: 354
Location: NJ

Thanks: 9 times
Was thanked: 45 time(s) in 38 post(s)
As I previously mentioned, I am not having any difficulty converting the capture images into a time-lapse file. I “simply” was looking for an alternative to the date/time naming convention (at create time, not via post processing)

For anyone interested, here is my possibly unique use of vMix with an X-key controller to capture 3D print progress

RichShumaker  
#15 Posted : Thursday, March 24, 2022 7:06:24 AM(UTC)
RichShumaker

Rank: Advanced Member

Groups: Registered
Joined: 4/4/2016(UTC)
Posts: 235
United States
Location: Not Los Angeles CA

Thanks: 86 times
Was thanked: 28 time(s) in 23 post(s)
Just ran into this issue today.

I wanted to use sequential names like many other image programs offer.

So Image#####.png would give me a sequence starting Image00000.png Image00001.png Image00002.png.

But I was only able to come up with a date time stamped version.

What is that leading 0 in the name?

Quote:
0:yyyy-MM-dd H-mm-ss.f


I was thinking the 0 was for numbering except mine keep coming out with the same number to start.
Since this is a test right now I wonder if later today it will change or if tomorrow it will be a different number.
doggy  
#16 Posted : Thursday, March 24, 2022 9:00:47 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,223
Belgium
Location: Belgium

Thanks: 293 times
Was thanked: 955 time(s) in 790 post(s)
Originally Posted by: RichShumaker Go to Quoted Post


What is that leading 0 in the name?

Quote:
0:yyyy-MM-dd H-mm-ss.f




is part of the String.Format method in .net
RichShumaker  
#17 Posted : Tuesday, March 29, 2022 8:29:08 AM(UTC)
RichShumaker

Rank: Advanced Member

Groups: Registered
Joined: 4/4/2016(UTC)
Posts: 235
United States
Location: Not Los Angeles CA

Thanks: 86 times
Was thanked: 28 time(s) in 23 post(s)
Originally Posted by: doggy Go to Quoted Post
Originally Posted by: RichShumaker Go to Quoted Post


What is that leading 0 in the name?

Quote:
0:yyyy-MM-dd H-mm-ss.f




is part of the String.Format method in .net


Honestly I have no idea I just copied from the example to make sure I didn't mess it up.
mavik  
#18 Posted : Tuesday, March 29, 2022 11:35:15 PM(UTC)
mavik

Rank: Advanced Member

Groups: Registered
Joined: 4/23/2017(UTC)
Posts: 1,214
Man
Location: Germany

Thanks: 3 times
Was thanked: 168 time(s) in 150 post(s)
Originally Posted by: daniel514 Go to Quoted Post
I like a lot ReNamer

snapshotRenamer.JPG (145kb) downloaded 1 time(s).





I use total commander for this task. It's a swiss army knife anyway.
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.