View Full Version : Piping straight into x264 on Linux
skottish
1st March 2007, 18:46
I've been using x264 through FFMPEG to produce H264 videos from raw PNG frames. I would like to be able to skip using FFMPEG or Mencoder and pipe straight into x264. For instance, Mencoder has:
mencoder mf://*.png ...........
and FFMPEG has:
ffmpeg -i frame_%06d.png ..........
Of course both of these solutions work, but the interface doesn't expose all of the functionality of x264. On top of that, the x264 command line interface is very well documented; A lot of which comes out of this forum.
Any help will be greatly appreciated.
akupenguin
1st March 2007, 22:47
mencoder does expose all the functionality of x264. Any options you put under -x264encopts get passed straight to x264's commandline parser. The only difference is they're separated by ':' instead of ' --'.
skottish
1st March 2007, 22:55
mencoder does expose all the functionality of x264. Any options you put under -x264encopts get passed straight to x264's commandline parser. The only difference is they're separated by ':' instead of ' --'.
I guess if I'm going to be wrong about something, this is a good one to be wrong about. Thanks.
Thasp
2nd March 2007, 01:18
mencoder will ruin the sync of your video :/ See http://forum.doom9.org/showthread.php?t=106365&page=2&highlight=mencoder+sync , http://forum.doom9.org/showthread.php?t=122082&page=2 , http://forum.doom9.org/showthread.php?t=122018
Well, it works for me (tm).
skottish
2nd March 2007, 14:09
Thasp, thanks for the heads up, although I don't think it applies here. All of my current video work is using raw image frames, and so far both Mencoder and FFMPEG have been right on the mark.
jruggle
8th March 2007, 15:36
mencoder will work fine, but since you asked about other solutions... MJPEG tools makes a little commandline util called png2yuv. It takes a sequence of png files and outputs a YUV4MPEG stream, which happens to be what x264 takes as commandline input.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.