gstreamer/tests
Víctor Manuel Jáquez Leal be40a1d479 tests: add simple-encoder program
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
2015-05-12 11:24:41 +02:00
..
codec.c update and move gstcompat.h 2015-04-03 17:08:30 +03:00
codec.h legal: add per-file authorship information. 2013-11-22 06:39:15 +01:00
decoder.c legal: add per-file authorship information. 2013-11-22 06:39:15 +01:00
decoder.h legal: add per-file authorship information. 2013-11-22 06:39:15 +01:00
image.c legal: update copyright notice dates. 2013-11-22 06:39:20 +01:00
image.h legal: update copyright notice dates. 2013-11-22 06:39:20 +01:00
Makefile.am tests: add simple-encoder program 2015-05-12 11:24:41 +02:00
output.c egl: update tests. 2015-02-24 15:20:03 +01:00
output.h legal: update copyright notice dates. 2013-11-22 06:39:20 +01:00
simple-decoder.c legal: update copyright notice dates. 2014-01-22 19:02:35 +01:00
simple-encoder.c tests: add simple-encoder program 2015-05-12 11:24:41 +02:00
test-decode.c legal: add per-file authorship information. 2013-11-22 06:39:15 +01:00
test-decode.h legal: add per-file authorship information. 2013-11-22 06:39:15 +01:00
test-display.c display: don't use GstCaps for decode or encode profiles list. 2013-12-20 17:16:58 +01:00
test-filter.c Removal of gstreamer-0.10 support 2015-04-03 16:55:27 +03:00
test-h264.c legal: add per-file authorship information. 2013-11-22 06:39:15 +01:00
test-h264.h legal: add per-file authorship information. 2013-11-22 06:39:15 +01:00
test-jpeg.c legal: update copyright notice dates. 2013-11-22 06:39:20 +01:00
test-jpeg.h legal: update copyright notice dates. 2013-11-22 06:39:20 +01:00
test-mpeg2.c legal: add per-file authorship information. 2013-11-22 06:39:15 +01:00
test-mpeg2.h legal: add per-file authorship information. 2013-11-22 06:39:15 +01:00
test-mpeg4.c legal: update copyright notice dates. 2013-11-22 06:39:20 +01:00
test-mpeg4.h legal: update copyright notice dates. 2013-11-22 06:39:20 +01:00
test-subpicture-data.c tests: add test for subpictures. 2011-12-12 15:08:42 +01:00
test-subpicture-data.h tests: add test for subpictures. 2011-12-12 15:08:42 +01:00
test-subpicture.c Remove HAVE_GST_VIDEO_OVERLAY_HWCAPS macro 2015-04-03 16:55:43 +03:00
test-surfaces.c videopool: add optional flags for surface pool allocation. 2015-01-27 18:11:45 +01:00
test-textures.c texture: move to core libgstvaapi base library. 2015-01-27 18:11:44 +01:00
test-vc1.c legal: add per-file authorship information. 2013-11-22 06:39:15 +01:00
test-vc1.h legal: add per-file authorship information. 2013-11-22 06:39:15 +01:00
test-windows.c legal: update copyright notice dates. 2013-11-22 06:39:20 +01:00
y4mreader.c tests: add simple-encoder program 2015-05-12 11:24:41 +02:00
y4mreader.h tests: add simple-encoder program 2015-05-12 11:24:41 +02:00