vaapidecode to xvimagesink
Joe McDonald
joe.mcdonald at vecima.com
Mon May 5 12:07:38 PDT 2014
rrazavi wrote
> please check the output of a simple command like :
> gst-launch-1.0 filesrc location=yourfile ! vaapidecode ! vaapidownload !
> videoconvert ! xvimagesink
> has correct aspect ratio or not
Verbose output below. I've added the vaapipostproc element as I was hoping
to implement some video scaling (if I attempt to add the width=720 property
to the vaapipostproc however the gst-launch call crashes), but the file
plays with or without. Admittedly quite poorly.
A few notes:
- VAinfo launch always seems to cause a delay (about 0.5 seconds) on every
call to gst-launch with hardware accel.
- This pipeline information doesn't really make sense to me. Why does it
appear to have some doubling up on the various SRC and SINK options for each
element?
- It's beginning to look like the prospect of creating a video mosaic
(tiling multiple sources on the video output) may not be feasible from a
hardware perspective. At least based on the preliminary performance of the
system with just 1 stream.
-Joe
gst-launch-1.0 -v filesrc location= testfile.ts ! tsdemux ! h264parse !
vaapidecode ! vaapipostproc ! vaapidownload ! videoconvert ! xvimagesink
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_35
libva info: va_openDriver() returns 0
Hardware limitation is set on HaswellMax 4096X4096
Setting pipeline to PAUSED ...
*** You are using hardware decoder ***
Pipeline is PREROLLING ...
Got context from element 'vaapidecode0': gst.vaapi.Display=context,
display=(GstVaapiDisplay)NULL;
/GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:sink: caps =
video/x-h264, stream-format=(string)byte-stream, alignment=(string)nal
/GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:src: caps =
video/x-h264, stream-format=(string)byte-stream, alignment=(string)au,
width=(int)1920, height=(int)1080, parsed=(boolean)true,
pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstVaapiDecode:vaapidecode0.GstPad:sink: caps =
video/x-h264, stream-format=(string)byte-stream, alignment=(string)au,
width=(int)1920, height=(int)1080, parsed=(boolean)true,
pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstVaapiDecode:vaapidecode0.GstPad:src: caps =
video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080,
pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive,
colorimetry=(string)bt709, framerate=(fraction)0/1
(gst-launch-1.0:2262): GStreamer-CRITICAL **: _gst_util_uint64_scale:
assertion 'denom != 0' failed
/GstPipeline:pipeline0/GstVaapiPostproc:vaapipostproc0.GstPad:src: caps =
video/x-raw(memory:VASurface), format=(string)ENCODED, width=(int)1920,
height=(int)1080, pixel-aspect-ratio=(fraction)1/1,
interlace-mode=(string)progressive, framerate=(fraction)0/1
/GstPipeline:pipeline0/GstVaapiDownload:vaapidownload0.GstPad:src: caps =
video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080,
framerate=(fraction)0/1, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:src: caps =
video/x-raw, width=(int)1920, height=(int)1080, framerate=(fraction)0/1,
pixel-aspect-ratio=(fraction)1/1, format=(string)YUY2
/GstPipeline:pipeline0/GstXvImageSink:xvimagesink0.GstPad:sink: caps =
video/x-raw, width=(int)1920, height=(int)1080, framerate=(fraction)0/1,
pixel-aspect-ratio=(fraction)1/1, format=(string)YUY2
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:sink: caps =
video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080,
framerate=(fraction)0/1, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstVaapiDownload:vaapidownload0.GstPad:sink: caps =
video/x-raw(memory:VASurface), format=(string)ENCODED, width=(int)1920,
height=(int)1080, pixel-aspect-ratio=(fraction)1/1,
interlace-mode=(string)progressive, framerate=(fraction)0/1
/GstPipeline:pipeline0/GstVaapiPostproc:vaapipostproc0.GstPad:sink: caps =
video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080,
pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive,
colorimetry=(string)bt709, framerate=(fraction)0/1
/GstPipeline:pipeline0/GstVaapiDecode:vaapidecode0.GstPad:src: caps =
video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1088,
pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive,
colorimetry=(string)bt709, framerate=(fraction)0/1
(gst-launch-1.0:2262): GStreamer-CRITICAL **: _gst_util_uint64_scale:
assertion 'denom != 0' failed
/GstPipeline:pipeline0/GstVaapiPostproc:vaapipostproc0.GstPad:src: caps =
video/x-raw(memory:VASurface), format=(string)ENCODED, width=(int)1920,
height=(int)1088, pixel-aspect-ratio=(fraction)1/1,
interlace-mode=(string)progressive, framerate=(fraction)0/1
/GstPipeline:pipeline0/GstVaapiDownload:vaapidownload0.GstPad:src: caps =
video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1088,
framerate=(fraction)0/1, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:src: caps =
video/x-raw, width=(int)1920, height=(int)1088, framerate=(fraction)0/1,
pixel-aspect-ratio=(fraction)1/1, format=(string)YUY2
/GstPipeline:pipeline0/GstXvImageSink:xvimagesink0.GstPad:sink: caps =
video/x-raw, width=(int)1920, height=(int)1088, framerate=(fraction)0/1,
pixel-aspect-ratio=(fraction)1/1, format=(string)YUY2
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:sink: caps =
video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1088,
framerate=(fraction)0/1, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstVaapiDownload:vaapidownload0.GstPad:sink: caps =
video/x-raw(memory:VASurface), format=(string)ENCODED, width=(int)1920,
height=(int)1088, pixel-aspect-ratio=(fraction)1/1,
interlace-mode=(string)progressive, framerate=(fraction)0/1
/GstPipeline:pipeline0/GstVaapiPostproc:vaapipostproc0.GstPad:sink: caps =
video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1088,
pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive,
colorimetry=(string)bt709, framerate=(fraction)0/1
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/vaapidecode-to-xvimagesink-tp4664635p4666745.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list