sandbox that collects code snippets from bug tickets and ffmpeg/libav forum entries which tries to encode a given volume with h264 and h265. As I am so glad, that the code seems to work, I am lacking documentation. Feel free to ask any question through the issue tracker, upon which I might add documentation.
I tested this with ffmpeg 2.5.8 with the following flags/versions:
ffmpeg version 2.5.8 Copyright (c) 2000-2015 the FFmpeg developers
built on Aug 11 2015 08:55:10 with gcc 4.9.2 (GCC) 20150212 (Red Hat 4.9.2-6)
configuration: --prefix=/home/steinbac/software/ffmpeg/2.5.8 --enable-libx265 --enable-libx264 --enable-gpl --enable-shared
libavutil 54. 15.100 / 54. 15.100
libavcodec 56. 13.100 / 56. 13.100
libavformat 56. 15.102 / 56. 15.102
libavdevice 56. 3.100 / 56. 3.100
libavfilter 5. 2.103 / 5. 2.103
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
See LICENSE for details. If I overlooked some legal requirements, accept apologies. I invite you to get in touch through the issue tracker, so we can find an agreement.