You are not logged in.

#1 2007-02-22 02:04:28

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Raw image frames to x264?

Does anyone know if it's possible to encode raw image frames, like a directory of PNG files, directly into x264? I know how to use FFMPEG and Mencoder to do it, but I would like to be able to go straight in.

Offline

#2 2007-02-22 10:05:47

smoon
Member
Registered: 2005-08-22
Posts: 468
Website

Re: Raw image frames to x264?

I'm not sure what you mean by being "able to go straight in". But since mencoder can encode to H.264 using x264 and you already know how to convert a bunch if image files to a video stream using mencoder you're basically set. Something along the lines of

mencoder "mf://*.png" -mf fps=25 -nosound -of rawvideo -o output.264 -ovc x264 -x264opts bitrate=800:bframes=2:b_pyramid:deblockalpha=2:deblockbeta=2:subq=3:4x4mv

should work (with all the options being just examples and not required).

Note: You may have to recompile mplayer to make it actually support x264. But it works and I've already done it wink

Offline

#3 2007-02-22 12:52:58

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Raw image frames to x264?

x264 is far more powerful than the interface from Mencoder or FFMPEG will currently allow. The documentation of x264 is far beyond what Mencoder or FFMPEG current documentation is (for this encoder). The syntax for x264 is way more clear and concise than Mencoder.

Offline

Board footer

Powered by FluxBB