Developing Games on Intel Graphics
If you are gaming on graphics integrated in your Intel Processor, this is the place for you! Find answers to your questions or post your issues with PC games
508 Discussions

gst_vaapi_video_memory_copy: failed to copy partial memory

hoge_a_
Beginner
1,103 Views
It was successful to transcode from mpeg2-ts to h264 and resize from 1080i to 720p with gstreamer-base filter like decodebin and videoscale But It was failed to decode error with gstreamer-vaapi Is correct this one? gst-launch-1.0 --gst-debug=2 filesrc location=test.ts ! progressreport ! tsdemux ! mpegvideoparse ! vaapidecode ! videoparse format=i420 width=1920 height=1080 framerate=30000/1001 ! vaapipostproc width=1280 height=720 ! queue ! vaapiencode_h264 tune=1 max-bframes=4 bitrate=2200 rate-control=cbr cabac=1 ! h264parse ! mp4mux ! filesink location=test.mp4 libva info: VA-API version 0.36.0 libva info: va_getDriverName() returns 0 libva info: Trying to open /usr/lib/dri/i965_drv_video.so libva info: Found init function __vaDriverInit_0_36 libva info: va_openDriver() returns 0 Setting pipeline to PAUSED ... 0:00:00.110404562 5889 0x15ad430 WARN basesrc gstbasesrc.c:3470:gst_base_src_start_complete:<filesrc0> pad not activated yet Pipeline is PREROLLING ... Got context from element 'vaapidecode0': gst.vaapi.Display=context, display=(GstVaapiDisplay)NULL; 0:00:00.112654635 5889 0x160f590 WARN tsdemux tsdemux.c:1321:create_pad_for_stream: Non-media stream (stream_type:0xd). Not creating pad 0:00:00.112765959 5889 0x160f590 WARN tsdemux tsdemux.c:1321:create_pad_for_stream: Non-media stream (stream_type:0xd). Not creating pad 0:00:00.112810491 5889 0x160f590 WARN tsdemux tsdemux.c:1321:create_pad_for_stream: Non-media stream (stream_type:0xd). Not creating pad 0:00:00.112852719 5889 0x160f590 WARN tsdemux tsdemux.c:1321:create_pad_for_stream: Non-media stream (stream_type:0xd). Not creating pad 0:00:00.112895127 5889 0x160f590 WARN tsdemux tsdemux.c:1321:create_pad_for_stream: Non-media stream (stream_type:0xd). Not creating pad 0:00:00.112935975 5889 0x160f590 WARN tsdemux tsdemux.c:1321:create_pad_for_stream: Non-media stream (stream_type:0xd). Not creating pad 0:00:00.112976871 5889 0x160f590 WARN tsdemux tsdemux.c:1321:create_pad_for_stream: Non-media stream (stream_type:0xd). Not creating pad 0:00:00.149486868 5889 0x7f4734015b20 ERROR vaapivideomemory ../../../gstreamer-vaapi-0.5.9/gst/vaapi/gstvaapivideomemory.c:447:gst_vaapi_video_memory_copy: failed to copy partial memory (unsupported operation) (gst-launch-1.0:5889): GStreamer-CRITICAL **: gst_buffer_get_sizes_range: assertion 'GST_IS_BUFFER (buffer)' failed Caught SIGSEGV #0 0x00007f474cc365bd in poll () from /usr/lib/libc.so.6 #1 0x00007f474d15fca4 in ?? () from /usr/lib/libglib-2.0.so.0 #2 0x00007f474d160032 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0 #3 0x00007f474d6b274a in gst_bus_poll () from /usr/lib/libgstreamer-1.0.so.0 #4 0x00000000004046e8 in ?? () #5 0x0000000000403726 in ?? () #6 0x00007f474cb77040 in __libc_start_main () from /usr/lib/libc.so.6 #7 0x0000000000403d1b in ?? () Spinning. Please run 'gdb gst-launch-1.0 5889' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.
0 Kudos
4 Replies
Jeffrey_M_Intel1
Employee
1,103 Views

Thanks for this report.  A few more details may make it easier for us to replicate the problem.  This post has some hints on information that could help,  Could you send more info on the type of processor, operating system, versions of gstreamer-vaapi, libva, etc?  Also, does this happen with all files or only specific streams?

 

0 Kudos
hoge_a_
Beginner
1,103 Views

delete

0 Kudos
hoge_a_
Beginner
1,103 Views

Thank you for reply

I heard videoparse element before vaapipostproc make performance problem
After I removed videoparse element I got a another error like below
It seems vaapiencode_h264 didn't configure source framerate

It happened at all transport stream file

System Setup Information:
-----------------------------------------

System Used: ASRock Incorporation Device
CPU SKU: Intel(R) Celeron(R) CPU J1900 @ 1.99GHz
GPU SKU: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Graphics
Processor Line:
System BIOS Version: AMI P1.20
CMOS settings:
Graphics Driver Version: libva-intel-driver 1.4.1 libva 1.4.1
GOP/VBIOS Version:
Operating System: Linux X86_64
OS Version: 3.17.1
API:
gst-plugins-base 1.4.3
gst-vaapi 0.5.9
gstreamer 1.4.3

Occurs on non-Intel GPUs?:

Steps to Reproduce:
-------------------------------
1.Prepare for any mpeg2-ts file (eg. test.ts)

2.

gst-launch-1.0 --gst-debug=2 filesrc location=test.ts ! progressreport ! tsdemux ! mpegvideoparse ! vaapidecode ! vaapipostproc format=i420 width=1280 height=720 ! queue ! vaapiencode_h264 tune=1 max-bframes=4 bitrate=2200 rate-control=cbr cabac=1 ! h264parse ! mp4mux ! filesink location=test.mp4

 

3.

libva info: VA-API version 0.36.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_36
libva info: va_openDriver() returns 0
Setting pipeline to PAUSED ...
0:00:00.106728543 22206 0x1617ef0 WARN basesrc gstbasesrc.c:3470:gst_base_src_start_complete: pad not activated yet
Pipeline is PREROLLING ...
Got context from element 'vaapidecode0': gst.vaapi.Display=context, display=(GstVaapiDisplay)NULL;
0:00:00.109376344 22206 0x160fe80 WARN tsdemux tsdemux.c:1321:create_pad_for_stream: Non-media stream (stream_type:0xd). Not creating pad
0:00:00.109483684 22206 0x160fe80 WARN tsdemux tsdemux.c:1321:create_pad_for_stream: Non-media stream (stream_type:0xd). Not creating pad
0:00:00.109532176 22206 0x160fe80 WARN tsdemux tsdemux.c:1321:create_pad_for_stream: Non-media stream (stream_type:0xd). Not creating pad
0:00:00.109577824 22206 0x160fe80 WARN tsdemux tsdemux.c:1321:create_pad_for_stream: Non-media stream (stream_type:0xd). Not creating pad
0:00:00.109625380 22206 0x160fe80 WARN tsdemux tsdemux.c:1321:create_pad_for_stream: Non-media stream (stream_type:0xd). Not creating pad
0:00:00.109663516 22206 0x160fe80 WARN tsdemux tsdemux.c:1321:create_pad_for_stream: Non-media stream (stream_type:0xd). Not creating pad
0:00:00.109702528 22206 0x160fe80 WARN tsdemux tsdemux.c:1321:create_pad_for_stream: Non-media stream (stream_type:0xd). Not creating pad
0:00:00.210123952 22206 0x160ff20 ERROR vaapi ../../../../gstreamer-vaapi-0.5.9/gst-libs/gst/vaapi/gstvaapiencoder.c:467:check_video_info: invalid framerate (0/1)
0:00:00.210227152 22206 0x160ff20 WARN videoencoder gstvideoencoder.c:649:gst_video_encoder_setcaps: rejected caps video/x-raw(memory:VASurface), format=(string)I420, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, framerate=(fraction)0/1
0:00:00.210320284 22206 0x160ff20 WARN videoencoder gstvideoencoder.c:1473:gst_video_encoder_chain: error: encoder not initialized
ERROR: from element /GstPipeline:pipeline0/GstVaapiEncodeH264:vaapiencodeh264-0: GStreamer error: negotiation problem.
Additional debug info:
gstvideoencoder.c(1473): gst_video_encoder_chain (): /GstPipeline:pipeline0/GstVaapiEncodeH264:vaapiencodeh264-0:
encoder not initialized
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...

Expected Results:

-------------------------------
Transcode from mpeg2-ts to h264

Actual Results:
-------------------------------
Failed to transcode

Additional Information:
-------------------------------
 

libva info: VA-API version 0.36.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_36
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.36 (libva 1.4.1)
vainfo: Driver version: Intel i965 driver for Intel(R) Bay Trail - 1.4.1
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Simple            :	VAEntrypointEncSlice
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSlice
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSlice
      VAProfileH264StereoHigh         :	VAEntrypointVLD
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileNone                   :	VAEntrypointVideoProc
      VAProfileJPEGBaseline           :	VAEntrypointVLD

 

0 Kudos
Mitchell_L_Intel
Employee
1,103 Views

Jeff,

Thanks for helping look into this!

~Mitch

0 Kudos
Reply