1

I'm trying to play a video file with gst-launch on a embedded board.

First of all, I can play a video with the command below. - gst-launch-1.0 filesrc location=test.mp4 ! qtdemux ! h264parse ! omxh264dec ! waylandsink

Secondly, I tried to play this video at a specific window position. - gst-launch-1.0 filesrc location=Ex_H.264_AAC_400x300.mp4 ! videobox left=20 right=20 top=20 bottom=20 ! qtdemux ! h264parse ! omxh264dec ! waylandsink (Use gst-launch to output a video frame to certain position on framebuffer)

However, this command makes Error. - WARNING: erroneous pipeline: no element "videobox"

How can I use videobox option or use other ways to show a video at a specific window position?

Community
  • 1
  • 1
KONE Seion
  • 51
  • 1
  • 7
  • can you check if you have videobox element by typing gst-inspect-1.0 videobox? What does that command show? – Samer Tufail Oct 18 '16 at 10:02
  • Thank you to reply. I tryed it and I added videobox. So, now I can use videobox. However, it makes an error. - "wl_shm_pool@3: error 0: invalid format 0x32315559". On the internet, this error means format yuv420... I'm not sure what is the problem. – KONE Seion Oct 19 '16 at 04:03
  • You can use the 'videoconvert' to convert to a suitable format supported by the 'videobox' alternatively you use 'videocrop' element which supports a multitude of formats for what you are trying to do. You can find the documentation on the videocrop element under the gst-plugins-good documentation – Samer Tufail Oct 19 '16 at 07:59
  • Do you have to use Wayland? I've had all sorts of problems trying to do X,Y window coordinates in Wayland and eventually just gave up. I don't think it's really part of how they've conceptualized their API. Also, will your system know the final output resolution? If so, you may be able to use a videomixer to get the desired result. – mpr Oct 19 '16 at 14:27
  • Yes, I'm using wayland. I avoided the invalid format error. It because of the order of videobox, video/x-raw. Howerver, this videobox option is just add border. So, I cannot use this option for this problem. I will try to use videomixer. Thanks a lot! – KONE Seion Oct 20 '16 at 01:28

1 Answers1

1

You should check the Gstremer Bad & weston(or others) source code about waylandsink(or others). Please check it. In case of weston, weston_view_set_position() will decide the video play position.

Baruian
  • 122
  • 4
  • 12