furkantokac / buildroot

Buildroot fork customized for RPI3, iMX6, TK1, Qt, FastBoot.
Other
157 stars 37 forks source link

Help for start a video after booting #27

Closed l0l0l0 closed 3 years ago

l0l0l0 commented 3 years ago

Hello, Already great job thank you. I am on this project: https://withrow.io/simpsons-tv-build-guide and I want to launch a video after booting the raspberry. I found this that could do the trick but it looks old and complicated to me: https://thebugfreeblog.blogspot.com/p/build-procedure-for-piomxtextures.html https://github.com/carlonluca/pot maybe you have a simpler solution? Thank you in advance for your help

furkantokac commented 3 years ago

If you just need to run a video, the simplest thing that comes in my mind is;

  1. adding gstreamer libraries to your buildroot image
  2. adding a simple player to your buildroot image
  3. triggering the video on the startup

To get help about the gstreamer libraries that you'll need, check this config: https://github.com/furkantokac/buildroot/blob/tk1/br2-external-ftdev/configs/ftdev_tk1_defconfig This config is prepared to run ogg sound files from a qt application. Also the second option is, which will give you much more flexibility is;

  1. adding gstreamer libraries to the buildroot image (qt will use this to play video)
  2. building the qt statically from the source (you can use the script: https://github.com/furkantokac/buildroot/blob/ftdev/build-rpi3-qt.sh )
  3. managing your video by qt application that you write (you can develop your application on your PC at this point)
  4. statically compiling your qt application with the qt that you will be built on the step 2
  5. putting your your statically compiled qt application to the RPI and running it on the startup

If you've some experience about the topics, you can do it. It's not that hard, just requires some time.

l0l0l0 commented 3 years ago

Great, thanks for your reply.