vMix Forums
»
General
»
General Discussion
»
Snapshot file naming for sequence?
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.
|
|
|
|
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)
|
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 2/23/2017(UTC) Posts: 189 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.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,218 Location: Belgium Thanks: 291 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
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 7/1/2015(UTC) Posts: 1,151 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.
|
|
|
|
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.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 3/7/2012(UTC) Posts: 2,636 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
|
|
|
|
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.
|
|
|
|
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.
|
|
|
|
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?
|
|
|
|
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.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 2/26/2014(UTC) Posts: 81 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}.jpgAnd 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)
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 2/26/2014(UTC) Posts: 81 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).
|
|
|
|
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
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 4/4/2016(UTC) Posts: 235 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.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,218 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: RichShumaker 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
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 4/4/2016(UTC) Posts: 235 Location: Not Los Angeles CA Thanks: 86 times Was thanked: 28 time(s) in 23 post(s)
|
Originally Posted by: doggy Originally Posted by: RichShumaker 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.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 4/23/2017(UTC) Posts: 1,212 Location: Germany Thanks: 3 times Was thanked: 168 time(s) in 150 post(s)
|
Originally Posted by: daniel514 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.
|
|
|
|
vMix Forums
»
General
»
General Discussion
»
Snapshot file naming for sequence?
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.
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close