Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video boot intro #1502

Open
schmurtzm opened this issue Mar 12, 2024 · 0 comments
Open

Video boot intro #1502

schmurtzm opened this issue Mar 12, 2024 · 0 comments
Assignees
Milestone

Comments

@schmurtzm
Copy link
Member

schmurtzm commented Mar 12, 2024

Related to this discussion : #1325
Note that it would impact the boot time of course but if it optional why not.
A simple use of ffplay could come just after init_system function

echo 0 > "/sys/module/gpio_keys_polled/parameters/button_enable"
LD_PRELOAD=$miyoodir/lib/libpadsp.so $sysdir/bin/ffplay -autoexit -vf "hflip,vflip" -i -nostats  $sysdir/boot.mp4
echo 1 > "/sys/module/gpio_keys_polled/parameters/button_enable"

We could run it even before audioserver but it would triggers a second pop sound at boot :

/customer/app/tinymix set 6 70    # avoid too loud sound
echo 0 > "/sys/module/gpio_keys_polled/parameters/button_enable"
$sysdir/bin/ffplay -autoexit -vf "hflip,vflip" -i -nostats  $sysdir/boot.mp4
echo 1 > "/sys/module/gpio_keys_polled/parameters/button_enable"

Note that we disable the controls during the boot video.
Optimizing the video encoding is a good idea for example : h264,640x480, mono sound, mp3 128mbps

It could be nice to load some Onion components in background during the boot video (time sync for example but it would require to disable the UI (bootScreen binary) if the video is still playing. Also the video could replace the Onion splash.

May be we don't need any Tweaks app new option : the video is launched only if the file exist.

@schmurtzm schmurtzm added this to the v4.4 milestone Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog / To do
Development

No branches or pull requests

2 participants