How to use VideoLAN's x265 encoder..

Hi,

So basically I want to convert a stream of raw images to video and I've opted for h.264 format.

I found a commonly used x264 encoding library here:
https://github.com/videolan/x265
although sources can also be found here:
http://www.videolan.org/developers/x265.html
but I'm having trouble figuring out how to use it / compile it.

They have included a neat example.c of how to use the API which I think I couldn't easily add to my app, but that was all useless without the .dll

I have tried to follow those instructions in order to compile it:
http://www.ayobamiadewole.com/Blog/How-to-build-x264-or-libx264.dll-in-Windows
but I simply couldn't get it to compile regardless of what I try.

I have also tried to look for a compiled version of x265.dll but failed to find anything other than the compiled version of x265.exe, which I really can't incorporate into my app.

Is there anyone here that used VideoLAN's x265 encoder before, because I would really need some pointers?
Are you set on doing it programmatically? What you're trying to do is pretty trivial. FFmpeg (command-line program) should be able to handle it.
The reason is that I have to store the frames as I get them.

I have tried using FFmpeg library just before doing this and have tried their c example to encode some images, but was getting a runtime error that the codec does not exist.
I then found out that FFmpeg has to be compiled together with the x265 encoder to be able to work. But I couldn't figure out how to do that and have decided to use x265 directly.

Side note: I have previously managed to store the frames
as image.TGA (it's easy because I can just dump the uncompressed frame into it)
as image.PNG (using lodepng encoder which results in a file 5% the original size)
and have also tried using Direct3D's built-in function SaveTextureToFile, which can export in a variety of file formats like .JPG or .PNG, but have opted for lodepng because it has better compression plus I didn't want to make the app just for Windows.

If I don't find a way to use this x265 library I'll probably either write my own encoder (which would probably have pretty bad compression) or use an external tool to convert the .png images into video.
Topic archived. No new replies allowed.