Just off the top of my head Bruce, the for loop is not picking up you start and end properly.
FOR /L %i IN (1 SET end 1000 1) DO (CALL :loopbody %i )
SET start=1 SET end=1000
should be on separate lines
Announcement
Collapse
No announcement yet.
Wolverine-Hawkeye Telecine
Collapse
X
-
Hi Stan, first time using/testing the HDR function, for some reason unable to make the Enfuse v4.2 batch file work.
When running the batch file named HDR.bat contents as below:-
SET Input_PATCH1=C:\High
SET Input_PATCH2=C:\Low
SET OUTPUT_PATCH=C:\Out
SET start=1 SET end=1000
FOR /L %%i IN (%start%,1,%end%) DO (CALL :loopbody %%i)
GOTO :eof
:loopbody
enfuse.exe --soft-mask --exposure-weight=1.0 --saturation-weight=0.2 --contrast-weight=0.0 --entropy-weight=0.0 --exposure-optimum=0.4 --exposure-width=0.2 -v -o "%OUTPUT_PATCH%\%1.tiff" "%Input_PATCH1%\%1.tiff" "%Input_PATCH2%\%1.tiff" GOTO :eof
I notice that in C:\High and C:\Low the file names are exactly the same, 1.tiff 2.tiff etc. (I thought at one time they were supposed to be odd and even numbers). I Have the batch file in the same folder as the exe and dll files.
In command only the following occurs with nothing in the Out folder:-
C:\>cd C:\1_Reference Info Files\Wolverine - Hawkeye\1_Enfuse v4.2\bin
C:\1_Reference Info Files\Wolverine - Hawkeye\1_Enfuse v4.2\bin>HDR.bat
C:\1_Reference Info Files\Wolverine - Hawkeye\1_Enfuse v4.2\bin>SET Input_PATCH1=C:\High
C:\1_Reference Info Files\Wolverine - Hawkeye\1_Enfuse v4.2\bin>SET Input_PATCH2=C:\Low
C:\1_Reference Info Files\Wolverine - Hawkeye\1_Enfuse v4.2\bin>SET OUTPUT_PATCH=C:\Out
C:\1_Reference Info Files\Wolverine - Hawkeye\1_Enfuse v4.2\bin>SET start=1 SET end=1000
C:\1_Reference Info Files\Wolverine - Hawkeye\1_Enfuse v4.2\bin>FOR /L %i IN (1 SET end 1000 1) DO (CALL :loopbody %i )
C:\1_Reference Info Files\Wolverine - Hawkeye\1_Enfuse v4.2\bin>GOTO :eof
C:\1_Reference Info Files\Wolverine - Hawkeye\1_Enfuse v4.2\bin>
Thanks Stan
Leave a comment:
-
Added Bruce's note to the postprocessing manual. It is version 1.3 now.
https://github.com/vintagefilmography/Hawkeye
Leave a comment:
-
Looks like you went a long way ahead with HDR Chris. I used Python on some other projects but not on this one. It is a very powerful set of tools and tons of examples available.
The schematic and the layout are definitely available. The design is here (eagle.zip)
https://drive.google.com/drive/folde...1r?usp=sharing
You can open up the design with the Eagle cad (freeware). I am also enclosing the png version in the same link.
Leave a comment:
-
Thanks Stan
My Hawkeye is behaving again. I still want to examine the frame sync mechanism but I'll put it off for now.
I've changed the timing in the MSP to 15 seconds per frame. This may seem excessive but I needed the time for averaging frames and for bias and flat frame correction. Stan, did you share the schematic for the v12 board? If not can I get a copy?
I've been following the HDR discussions and thought this might be relevant.
I changed the frame format of the TIScam Python project from BGRA to grbg. Even though the library said it was acquiring in 8 bit raw it was hard coded for the de-bayered image format. Next I changed my capture sequence to 7 frames at each of 5 exposures. Calibration frames were created using the method here, though instead of using a white background for the flats I used the out of focus lightbox directly based on the idea that I'm correcting for not just lens and sensor artifacts but also for light variations from LED placement and the blue hue of the LED.
Each of the exposures has the master bias and exposure specific flats applied in raw. Then they're converted to BGR and passed to the opencv HDR calibrate / merge Debevec function followed by tone-mapping and normalizing to 8 bit BGR. Takes a long time to capture a reel and I don't save the intermediate HDR because of space limitations. The finished frames are saved as PNG compressed and I use Cinelerra to do the compositing to video.
If anyone's interested I can post the python code for acquisition.
Regards
Chris
Leave a comment:
-
-
Updated the hawkeye-post manual to V1.2.
https://github.com/vintagefilmography/Hawkeye
Leave a comment:
-
My instructions in the manual are very similar Bruce. Here are the differences.
1. Import the tiff files under the Media Tab by dragging into the Medai Pool window
2. Change to the Edit Tab and click on the Project Settings Icon 🎆 and set Timeline Frame Rate to 50fps then set Retime Process to Optical Flow
I do not do timeline change here only Optical Flow
3. Click on Save, a dialog box will pop up, Change Project Frame Rate, click on Change
No frame rate change at this point.
4. Right click on the imported/opened tiff files icon and select Create new Timeline using selected clips, first option at top of drop down
Before creating new timeline I change the clip attributes FPS to 60
5. A dialog box will appear, select a timeline name click on Create
Before clicking on create I click on Use Custom Settings, then Format tab and change FPS to 60
Edited:
5a. Right click on the timeline in the timeline window and change the clip speed to 24 FPS or whatever the desired speed is
required. Also make sure that Ripple sequence is selected.
6. Click on the Deliver Tab, select the appropriate options, NVIDIA gpu if available for encoding, file name, location, save etc.,
7. Click on Add to Render Queue button then click on Render All button to export the video at 50fps
Have tested this and from the original 3223 tiff images the rendered video has 8952 frames and the run time is 2min 59secs which is the same as the original run time at 18fps in VirtualDub2.Last edited by Stan Jelavic; June 02, 2021, 10:57 AM.
Leave a comment:
-
Hi David and Stan, again thanks for the replies, David I have spent some minor time in trying to figure out how to use Vegas 18, the time line response on my computer is terrible (reasonably old computer) so for now I will continue to persevere with DaVinci as I find no such problems with it.
Stan have tried your new method, may not have understood your instructions and so was unable to make it work for me.
What I have done :-
1. Import the tiff files under the Media Tab by dragging into the Medai Pool window
2. Change to the Edit Tab and click on the Project Settings Icon 🎆 and set Timeline Frame Rate to 50fps then set Retime Process to Optical Flow
3. Click on Save, a dialog box will pop up, Change Project Frame Rate, click on Change
4. Right click on the imported/opened tiff files icon and select Create new Timeline using selected clips, first option at top of drop down
5. A dialog box will appear, select a timeline name click on Create
6. Click on the Deliver Tab, select the appropriate options, NVIDIA gpu if available for encoding, file name, location, save etc.,
7. Click on Add to Render Queue button then click on Render All button to export the video at 50fps
Have tested this and from the original 3223 tiff images the rendered video has 8952 frames and the run time is 2min 59secs which is the same as the original run time at 18fps in VirtualDub2.
Thanks for your help Stan & David
Regards - Bruce
Leave a comment:
-
Cannot think of anything obvious Chris. Perhaps you can try it with and without film several times just to make sure it is consistent. When running without film make sure the gate is closed. Also try running it in a dark area just to make sure it is not some external light source that is falsing the optical detector.
Failing that you can lay the unit flat down on its back cover and make sure the claw is engaging the optical detector properly. You may need to connect the camera usb cable directly to the camera for this test.
Leave a comment:
-
Hello Everyone
I experienced an issue with my Hawkeye this weekend where the frames continued to advance but a new image was not acquired. Seemed like the trigger event stopped firing. When I removed the film from transport, the pawl was moving and the trigger began firing again. I'll be pulling it apart later this week but figured I'd as if anyone else has experienced such a thing.
Thanks in advance for feedback.
Regards
Chris
Leave a comment:
-
Ok found an easy way of interpolating the frames without changing the final speed of the video.
Follow the procedure in the manual but set the FPS as shown.
- make sure project retime is set to optical flow
- Clip attributes - set to 60 FPS
- create timeline at 60 FPS
- change timeline speed to 24 FPS or whatever your final speed is.
And that is it.
Updated the post manual.
https://github.com/vintagefilmography/HawkeyeLast edited by Stan Jelavic; June 01, 2021, 12:32 PM.
Leave a comment:
-
There may be a way. I just have not found it. The closest I got is by changing the FPS to slow motion (lower clip FPS than project FPS). This causes interpolation. But now there is no way of switching the clip back to original speed without dropping the frames.
Leave a comment:
-
Hey All!
Bruce, I don't know, but I would be surprised to find Davinci can't manipulate speeds. On a happy note I have been able to eliminate the GPU MEMORY error, at least so far! I'm impressed with the layout, features, and I have rendered a couple of test files.
Without knowing your specific issue above, I know my father panned the camera way too fast and spent too little time on each scene. All movies, even if shot at 24fps can have choppy motion in a pan. That is if the shutter speed was too high. Motion Blur smooths the jerky motion. Shutter speed should (have been) be only twice the frame rate. If the frames are blurred when panning, the motion is smoothed. Motion blur can be added in post if needed. I have some home movies on video that had high shutter speeds, now I can fix those!
The other problem is when you want to see more of a fast scene. I captured an old 8mm film that even played at the right speed, made everyone say "Stop, go back, pause."
Here's the Vegas way: Set the project speed to the frame rate of the film. 8mm=16, S8mm=18 or 24. Don't allow the incoming media to change the project speed. In my case it will ask every time a clip is dropped on the timeline, "Do you want to change the project setting to match the clip"? Just say NO!
I still render at "typical speeds" 24,30,or 60. I usually render 1440x1080_30fps. SPEED can be slowed or sped up by 'stretching' any clip on the timeline or entering the playback rate into the clip properties. Multiple clips can have multiple speeds different than the RENDER SPEED or the PROJECT SPEED.
I expect Davinci can do this, I don't know yet.
Still, depending on the film, a little slower is better! At least if my father shot the film!
P.S. There is a preference setting for the length of each frame when importing frames. Saves changing each clip after the fact.
Leave a comment:
Leave a comment: