mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
be40a1d479
This patch adds a simple-encoder test program that uses libgstvaapi for video encoding to elementary (raw) streams. Input stream is raw YUV in the Y4M format. That can be from a regular file or standard input when the input filename is "-". Usage: simple-encoder [options]* <source> Options: --output|-o output file name --codec|-c codec to use for video encoding --bitrate|-b desired bitrate (kbps) By default, and as an initial patch, the encoded stream shall conform to the minimally supported profile. That is "Constrained Baseline Profile" for H.264 and "Simple Profile" for MPEG-2. Though, those are the defaults to be generated by libgstvaapi. You can find Y4M sample files here http://samples.mplayerhq.hu/yuv4mpeg2/ Original-patch-by: Changzhi Wei <changzhix.wei@intel.com> * general code clean-up * removed the yuv reader thread * re-wrote the y4m file parser * updated used API fixed some wrong usage * fixed a lot of memory leaks * added the bitrate setting * keep fps' numerator and denominator * simplified the thread control * removed custom logging and use glib Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com> https://bugzilla.gnome.org/show_bug.cgi?id=719528 |
||
---|---|---|
.. | ||
codec.c | ||
codec.h | ||
decoder.c | ||
decoder.h | ||
image.c | ||
image.h | ||
Makefile.am | ||
output.c | ||
output.h | ||
simple-decoder.c | ||
simple-encoder.c | ||
test-decode.c | ||
test-decode.h | ||
test-display.c | ||
test-filter.c | ||
test-h264.c | ||
test-h264.h | ||
test-jpeg.c | ||
test-jpeg.h | ||
test-mpeg2.c | ||
test-mpeg2.h | ||
test-mpeg4.c | ||
test-mpeg4.h | ||
test-subpicture-data.c | ||
test-subpicture-data.h | ||
test-subpicture.c | ||
test-surfaces.c | ||
test-textures.c | ||
test-vc1.c | ||
test-vc1.h | ||
test-windows.c | ||
y4mreader.c | ||
y4mreader.h |