Encode into H264 on Windows (Has anyone been able to do this?)
hoyt6 at llnl.gov
Mon Aug 1 10:43:42 PDT 2011
> the link to repository is http://ossbuild.googlecode.com/svn/trunk/ you need a subversion client (tortoisesvn.net/ ). Must be compiled under MSVS2008
There's no need to compile it yourself. The latest beta is more than stable enough.
Download the OSSBuild beta – it’s more up-to-date than the last official release. Use the GPL version instead of LGPL. I don’t believe x264enc is included in the LGPL one. Be sure and delete the registry file typically located in C:\Users\<Account>\.gstreamer-0.10\registry.i686.bin before running the new install. That just makes things much less complicated. At that point you can do something like:
gst-launch filesrc location=test.mjpg ! multipartdemux ! jpegdec ! videorate ! video/x-raw-yuv, framerate=30/1 ! ffmpegcolorspace ! x264enc speed-preset=9 profile=2 ! qtmux ! filesink location=test.mov
That pipeline takes a MJPEG file and coverts it to h.264 @ 30 FPS. You’ll need to adjust the pipeline to what you need. You can change containers using asfmux or avimux or whatever. But you can see that it’s fairly straight forward.
More information about the gstreamer-devel