Patrefans
SkinRays from patreon
SkinRays patreon

Tutorial Post 1: From Renders to Movie

🕑 Added 2020-10-04 17:57:05 +0000 UTC

Comments

Sorry for the late reply! You probably already figured this out, but here's my answer anyway! ... There's still a -framerate option I just checked with the latest (April 4 2022) version. It only works with images not video input, so maybe you tried it with a video? I would have to see your ffmpeg command to be sure. I see what is happening though. ffmpeg default framerate is 25fps so you got a clip 500/25 = 20s long. I am guess your -r was after your -i so it just upconverted the output framerate from 25 to 60. The animation speed is still 25fps but frames are being repeated to hit 60. Putting the -r after the -i repeats (or drops) frames to hit a target fps, but animations stay the same speed. You need -framerate before the -i with images (or -r before the -i with a video) to set speed of the animation since that's the ffmpeg ingestion speed. I should make a post about this, it confused me too at first. For what you want to do, this is how I would do it, using defaults to keep the example simple: "ffmpeg -framerate 60 -i frame%02d.jpg clip.mp4" followed by "ffmpeg -stream_loop 9 -i clip.mp4 -c copy clip_looped.mp4" (-stream_loop 9 will loop it 9 times after the first time, you always have to subtract 1 with -stream_loop. I've had to get very familiar with ffmpeg over the last few years! I use it instead of a video editor, for pretty much everything.)

Epicuren

Has ffmpeg changed options since this? I'm using version 2022-03-07-git-e645a1ddb9-full_build-www.gyan.dev. The "-framerate FPS" option doesn't do anything, help file shows "-r FPS". I'm trying to create a 60 fps video. I've create 50 frames, which I've duplicated 10 times for looping, total of 500 frames. My video says it is 60 fps, but it shows as 20 seconds long, so playback is slow motion. Not sure where it came up with 20 seconds out of this input.

Ok, thanks for letting me know. Didn't have any problems using the section plane the other day. Maybe it's been fixed.

actually it sends out the rays as a first step in path tracing so never mind, maybe it would be 2x faster.

also, daz will crash if you use section planes in the latest version 4.14, you need to turn section caps on. That's a new setting in Render Settings when using iRay.

Found this camera that has two section planes built in so can clip scene to the fov. Only need one plane for 180 so I don't use it, but fyi (need to copy/paste link they don't seem to work in comments): https://www.deviantart.com/heroineadventures/art/Iray-Interior-Camera-V1-4-758604718

That's a clever little trick, thanks for that.

True but it isn’t twice as long to do 360 as 180, all the light calculations take the same amount of time up front before it takes into account the viewport. But Daz could allow us to access stereo rendering which I think iRay already can do, just isn’t something Daz passes along to us. Here’s a trick though: put a section plane as a child to the camera (same position so zero out the translation) but rotated along X axis 90 degrees (maybe -90 forget without checking.) This will cut out all the scene stuff not in the 180 frame so less time is spent on it. also let’s you use outdoor dome light indoors without needing windows to do it all. Thing is it can cut out realism by removing stuff you might need for reflections or shadows. Still, it cuts down render time lots.

It's a shame daz doesn't provide some support for VR (like blender), because native180 would massively cut down on render times.

that’s right

Ok, so you're rendering a full 360 image and then cropping it?

For 180 I use those same two cameras, but keep only half of each image (centered)

I'm interested to know how you render 180 degrees in Daz. I can do 360 images using two spherical cameras set 6.4cm apart, then stitch them together afterwards. But I can't work out how to do 180 degrees.

thx it is pretty simple but i guess was just trial and error. hope to get to it soon

DoCK

This is fantastic, thanks. I'm very interested in your process, especially how you figured out the Daz settings.


More Creators