my python script for reversign and loop frames:
Python:
import os, shutil
import subprocess
img_or = []
print()
a = os.getcwd()
#print (a)
os.chdir("images")
a = os.getcwd()
print (a)
# pulisci prima le image*.jpg
p = subprocess.run ("del image*.jpg", shell=True)
print(p)
for root, dirs, files in os.walk("."):
for filename in files:
img_or.append(filename)
quanti = len(img_or)
print ()
print (quanti)
print ()
#giro normali
for i in range (0,(quanti)):
newname = "image{:03d}".format(i) + ".jpg"
shutil.copy2(img_or[i], newname)
print(img_or[i] + " -> " + newname);
print()
# reverse
nn = quanti
for i in range ((quanti -2),0,-1):
newname = "image" + "{:03d}".format(nn) +".jpg"
shutil.copy2(img_or[i], newname)
print(img_or[i] + " -> " + newname);
nn += 1
print()
very fast
in daz save imges sequence with a name not "image"
scene pic a b z
install
You must be registered to see the links
and
use whit powershell
my scenario:
dir with the ffmpeg.exe and specchia.img.py file
and a subdir images (where to save the daz image sequence) :
blabla
blabla/images
open blabla in file explorer
then shift and rmb -> open powershell here
PS C:\Users\mc\Desktop\1111test> py .\specchia_img_z-002.py
in eng yuo can rename the prg: mirror_img.py
then u have in folder image/image001 to .....
make an uncompressed avi with:
Code:
ffmpeg.exe -hide_banner -y -i images/image%3d.jpg -c copy 1.avi
et voila, few seconds an alll done
for compress the file i use
You must be registered to see the links
:
Code:
ffmpeg.exe -hide_banner -r 18 -i 1.avi -c:v libvpx-vp9 -crf 30 -vf hqdn3d,fps=18 -quality good -rc_lookahead 16 -speed 3 -vprofile 0 -qmax 51 -qmin 4 -slices 4 -tile-columns 6 -frame-parallel 1 -auto-alt-ref 1 -lag-in-frames 25 -row-mt 1 -g 120 -bf 2 -pix_fmt yuv420p out.webm
-r 18 rate input lower to slow the speed, raise for more speed
(-r 25 and fps=25 1 :1 speed, -r 12 and fps=25 slow down 50% the speed)
-crf 30 (5 - 37) quality
fps=18 final fps of the video
if u r maniacs, and use png change all
.jpg with .png
25 frames mirrored and compress -r 8 fps=18 crf 15
all in fews seconds:
View attachment out.webm