Convert PNG to MP4 (H.264)

HandBrake for Windows support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
cre3d1nr
Posts: 1
Joined: Wed Nov 06, 2019 1:43 am

Convert PNG to MP4 (H.264)

Post by cre3d1nr » Wed Nov 06, 2019 1:46 am

Description of problem or question:

Rendering out large 360 animation from Cinema 4D. Getting constant compression issues. I have exported each frame as a PNG and now I am looking to use handbrake 1.2.2 to stitch these images to MP4 (H.264) not sure how to do this or if it is possibe ! please H E L P


Steps to reproduce the problem (If Applicable):




HandBrake version (e.g., 1.0.0):

1.2.2


Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):

Windows 10 latest


HandBrake Activity Log ***required*** (see How-to get an activity log)

Code: Select all

Please replace this text with the contents of your log file between the two code tags - OR -  provide a pastebin URL in place of these 3 lines.

User avatar
Rodeo
HandBrake Team
Posts: 12250
Joined: Tue Mar 03, 2009 8:55 pm

Re: Convert PNG to MP4 (H.264)

Post by Rodeo » Wed Nov 06, 2019 1:57 am

HandBrake cannot convert PNG sequences directly, but if you can find software that can create a QuickTime MOV from a PNG sequence, it can definitely re-encode that.

musicvid
Veteran User
Posts: 3334
Joined: Sat Jun 27, 2009 1:19 am

Re: Convert PNG to MP4 (H.264)

Post by musicvid » Wed Nov 06, 2019 3:41 am

1. Can be done in most video editors -- Vegas, Premiere, FCP.
2. Can be done in ffmpeg with something like:

Code: Select all

ffmpeg -i img-%02d.png video_name.mov
Untested!
In this example, ffmpeg will look for images with file names with ‘img-‘ followed by a two-digit number and a .png file extension, and convert these images into a mov video file named ‘video_name.MOV".
I think an .avi output would also work in Windows, but again, untested.
Caution! Wrapped files will be quite large. No audio included but it can be.

User avatar
Rodeo
HandBrake Team
Posts: 12250
Joined: Tue Mar 03, 2009 8:55 pm

Re: Convert PNG to MP4 (H.264)

Post by Rodeo » Wed Nov 06, 2019 5:51 pm

Your ffmpeg command should specify a frame rate somewhere. Don't remember the exact syntax.

musicvid
Veteran User
Posts: 3334
Joined: Sat Jun 27, 2009 1:19 am

Re: Convert PNG to MP4 (H.264)

Post by musicvid » Fri Nov 08, 2019 1:46 am

Yes, it should, unless one wants the default of 25 fps.
Here's the code examples:
https://en.m.wikibooks.org/wiki/FFMPEG_ ... e_sequence

Post Reply