Recent

Author Topic: SDL2+ffplay  (Read 4764 times)

guest59697

  • Guest
SDL2+ffplay
« on: November 26, 2017, 03:41:49 pm »
hello,
can somebody suggest me a tutorial or sample code to reach this target:
play a mp4 inside/from a SDL2 application, my idea is to call ffplay (ffmpeg) into the running SDL2 context,
can you help?

thank you
R

guest59697

  • Guest
Re: SDL2+ffplay
« Reply #1 on: November 27, 2017, 01:44:01 pm »
btw. solved binding another SDL z-index layer

mdalacu

  • Full Member
  • ***
  • Posts: 233
    • dmSimpleApps
Re: SDL2+ffplay
« Reply #2 on: November 27, 2017, 01:48:12 pm »
Please, can you provide a working simple example.
Thank you.

guest59697

  • Guest
Re: SDL2+ffplay
« Reply #3 on: November 27, 2017, 02:38:12 pm »
sorry I forgot to tell you that I'm using raspbian core video on rpi3, you simply should call those api in sequence:
vc_dispmanx_display_open();
vc_dispmanx_update_start();
vc_dispmanx_element_add( here you have the layer number parameter)
by default the first SDL works at zindex 10000, so executing another app at layer eg.10001 will overlay etc.

 

TinyPortal © 2005-2018