Jump to content

Converting unusual image file resolutions into videos

Martin Pfeifer

Recommended Posts

I made an HAP Alpha file out of image sequences with 3452x3070 px. I did it with ffmpeg by setting the output resolution to 
3452x3072 px so that the pixel sizes are divisible by 4 and ffmpeg could do its job.

However with pixel sizes from 268x3070 to 268x3072 or from 2929x3070 to 2928x3072 ffmpeg promts the error message
Invalid frame size.

Does anyone know a solution or do I have to leave the image sequences as they are?




Link to comment
Share on other sites

I found a solution:


ffmpeg -video_size 2928x2416 -start_number 00287 -i C:\MEDIA\SHOWROOM\GRAFITTY\1COLOR\IN\5G\05-2929x4217_%05d.png C:\MEDIA\SHOWROOM\GRAFITTY\1COLOR\OUT\5Gdemux\05-2928x4216_%05d.png
ffmpeg -start_number 00287 -i C:\MEDIA\SHOWROOM\GRAFITTY\1COLOR\OUT\5Gdemux\05-2928x4216_%05d.png -vcodec hap -format hap_alpha -chunks 8 -b:v 50000k -minrate 50000k -maxrate 50000k -s 2928x4216 C:\MEDIA\SHOWROOM\GRAFITTY\1COLOR\OUT\5G-2\5G-2.mov
however ffmpeg ignores the specified bitrate and encodes with aproximately max. 120000Kbit/s
Link to comment
Share on other sites

There is no way to set the bitrate i Hap, that's why ffmpeg ignores your bitrate setting. It is inherent to the compression algorithms used in Hap that there is no way to control the bitrate, except for the fact that HapQ uses a higher bitrate than regular Hap. This means that the only way to lower the bitrate if using HapQ is to switch to standard Hap (or lower the resolution). I you want a lower bitrate when using standard Hap, the only way is to lower the resolution and scale the movie in Watchout. 



Link to comment
Share on other sites

I use HAP for all video material. The great advantage with HAP is that it streams more or less directly to the GPU. When it comes to odd aspects, which I use a lot, I use good old Quicktime. Yes, you get bigger files, but with HAP its not a problem. I used to do conversions to mpg, but also experienced a lot of problems doing that, when I used odd aspect video. True you can make a regular aspect video, a resize it in Watchout, but then you might get a quality degrade.I tried to run 5 enormous QT HAP 1 minute video loops in 6400x1080, and it played out perfectly. I normally don't use HAP Q, since I don't experience any quality improvement in the shows I normally design. With QT HAP you can do all your work in Adobe After Effects, and render it out directly and it'll be ready to use. BTW - I've discovered there's a difference rendering out from PC and MAC. Loops from MAC with HAP doesn't loop correctly. The same loop rendered on PC works like they should.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...