RenderHeads / UnityPlugin-AVProMovieCapture

AVPro Movie Capture is a Unity Plugin for advanced video capture to AVI/MP4/MOV files
https://renderheads.com/products/avpro-movie-capture/
45 stars 8 forks source link

Unable to judge File.Exists( captureFromCamera.LastFilePath ) #345

Closed ShenKang4181 closed 6 months ago

ShenKang4181 commented 7 months ago

the captureFromCamera.LastFilePath has like "%06d" character how to replace "%06d" to universalize file name?

Chris-RH commented 7 months ago
  1. Which version of AVPro Movie Capture are you using?
  2. What platform are you using?
  3. Where in the file path are you getting that character?
  4. What are your output settings?

component-capture-from-base-output

ShenKang4181 commented 7 months ago

image image image image I don't know if the information is enough. What else I will provide?

Chris-RH commented 7 months ago

ahh, its an image sequence.
So frame-%06d is the format string for the filename, because it is directing you to a group of files. The files would be as follows: frame-000001.png, frame-000002.png etc. It should make it easier to put into something like ffmpeg. Its tricky, because its not just a single file. In your case, what would you want it to point to?

ShenKang4181 commented 7 months ago

I want to judge whether the first image already exists. How do I judge?

Chris-RH commented 6 months ago

well, you know the format that the first file is going to be, so you could just look for that?

ShenKang4181 commented 6 months ago

I wrote this method to solve this problem. image