FFmpeg produces 0 file size

For all the users of Twilight Render (V1 & V2), to ask questions and get started
kevo777no3
Posts: 9
Joined: Tue Sep 04, 2018 2:30 pm
OS: Win10
SketchUp: 2017

Re: FFmpeg produces 0 file size

Post by kevo777no3 » Wed Sep 05, 2018 6:51 pm

With the latest test I did, the box was unchecked and is divisible by 4. The previous rendering was checked and it did change the resolution size, however, it ended up being divisible by 4 based on the property details of the image.

Still waiting for ffmpeg forums to approve my first post so not sure when I'll get a response over there.

Fletch
Posts: 12905
Joined: Fri Mar 20, 2009 2:41 pm
OS: PC 64bit
SketchUp: 2016-2023
Contact:

Re: FFmpeg produces 0 file size

Post by Fletch » Thu Sep 06, 2018 2:27 pm

:!
trying to think of some idea what may be the problem...

could it be a folder permission issue?

it sounds like FFMPEG is not finding its own codecs for some reason. :? Not sure why that would be?

Do you have any other video editing software on your machine? If so, you should be able to use it to turn your rendered images into a video.

kevo777no3
Posts: 9
Joined: Tue Sep 04, 2018 2:30 pm
OS: Win10
SketchUp: 2017

Re: FFmpeg produces 0 file size

Post by kevo777no3 » Thu Sep 06, 2018 2:32 pm

Well took a lot of tries to capture this screenshot because it was really just a flash but it appears that I've solved the issue. The pixel height is not divisible by 2. I'll re-run the rendering at 1920x1080 and hopefully all is well. I did a quick test at 200x112 and it worked out fine.
Attachments
Capture.PNG
Capture.PNG (217.82 KiB) Viewed 6391 times

Chris
Posts: 5346
Joined: Sun Mar 08, 2009 3:00 am
OS: Win10
SketchUp: 2016

Re: FFmpeg produces 0 file size

Post by Chris » Thu Sep 06, 2018 4:15 pm

Good catch! I didn't know that the H264 format required a height divisible by 2 (but I'm not surprised). Thanks for narrowing that down. We will update our tutorials and documentation to reflect those requirements. Let us know if it ends up working.

Fletch
Posts: 12905
Joined: Fri Mar 20, 2009 2:41 pm
OS: PC 64bit
SketchUp: 2016-2023
Contact:

Re: FFmpeg produces 0 file size

Post by Fletch » Thu Sep 06, 2018 5:16 pm

if it's divisible by 4, then it's divisible by 2. :|

kevo777no3
Posts: 9
Joined: Tue Sep 04, 2018 2:30 pm
OS: Win10
SketchUp: 2017

Re: FFmpeg produces 0 file size

Post by kevo777no3 » Thu Sep 06, 2018 5:26 pm

Yeah, but I think I misunderstood originally. I was multiplying the resolution to get the total number of pixels, which was always divisible by 2 or 4 (even when it resized the image from my specified resolution). The problem was that the height and width separately weren't divisible by 2 or 4.

Chris
Posts: 5346
Joined: Sun Mar 08, 2009 3:00 am
OS: Win10
SketchUp: 2016

Re: FFmpeg produces 0 file size

Post by Chris » Thu Sep 06, 2018 11:09 pm

:D

I always thought the restriction was only on the width. Interesting to see that it is also on the height.

Fletch
Posts: 12905
Joined: Fri Mar 20, 2009 2:41 pm
OS: PC 64bit
SketchUp: 2016-2023
Contact:

Re: FFmpeg produces 0 file size

Post by Fletch » Fri Sep 07, 2018 10:49 am

Good to know that both Chris and I were correct about the image size being the issue. It's a quirky issue for sure. :roll:

kevo777no3
Posts: 9
Joined: Tue Sep 04, 2018 2:30 pm
OS: Win10
SketchUp: 2017

Re: FFmpeg produces 0 file size

Post by kevo777no3 » Fri Sep 07, 2018 12:18 pm

Yes, thanks! Works significantly better than the animated gif option. I appreciate the help!

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 18 guests