Quantcast
Channel: Intel® Software - Media
Viewing all articles
Browse latest Browse all 2185

Linux MSDK 2014R2 - Alpha blending Composition don't seem to work

$
0
0

Hi there,

I tried the alpha blending composition feature on the latest MSDK 2014R2. Unfortunately I couldn't get it to work.

Here is the detail information.

Hardware: Intel XEON E3-1285 v3

OS: SLES SP11SP3 64 bit

MediaSDK version: 1.10 (Release note claimed that alpha composition is supported since 1.9 API)

Repro steps:

1) Preparing two NV12 video (main video w/ 1920x1080, alpha-blended video w/ 480x200)

  • - ffmpeg -ss 00:02:00 -i Sintel.mkv -sn -an -pix_fmt nv12 -frames:v 480 -s 1920x1080 -r 24 -f rawvideo sintel.yuv
  • - ffmpeg -ss 00:02:00 -i TearsOfSteel.mov -sn -an -pix_fmt nv12 -frames:v 480 -s 480x200 -r 24 -f rawvideo tos.yuv

2) Composition config file (composite.par)

stream=sintel.yuv

width=1920

height=818

cropx=0

cropy=0

cropw=1920

croph=818

dstx=0

dsty=0

dstw=1920

dsth=818

framerate=24

fourcc=nv12

stream=tos.yuv

width=480

height=200

cropx=0

crop=0

cropw=480

croph=200

dstx=0

dsty=0

dstw=480

dsth=200

framerate=24

fourcc=nv12

3) run sample_vpp_drm

  • sample_vpp_drm -lib hw -dcc nv12 -df 24 -composite composition.par -o out.yuv

4) encode to h264 and mux to mp4

  • sample_encode_drm h264 -hw -nv12 -i out.yuv -o out.264 -w 1920 -h 818
  • ffmpeg -i out.264 -c:v copy out.mp4

5) Playback the video. The secondary video is all garbled. You can view the result here.

 

Thanks,

Ken


Viewing all articles
Browse latest Browse all 2185

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>