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

Working on an interactive video - guidance #17

Open
remiDubois2304 opened this issue Nov 12, 2024 · 4 comments
Open

Working on an interactive video - guidance #17

remiDubois2304 opened this issue Nov 12, 2024 · 4 comments

Comments

@remiDubois2304
Copy link

remiDubois2304 commented Nov 12, 2024

Hello,

I am working on an interactive video project where users are asked to choose path A or B at the end of a full screen video, just like the feature on youtube. At the end of the short clip, two thumbnails appear while the video is still running in the background and viewer selects path A/B and then is redirected to the selected path and so on.

I have read the pp manual but I can't figure out where to start as my project is aiming at a touch screen so the video needs touch areas. I have trouble finding the right profile to start and also which setting to use to acheive this. I also mention that English is also not my native language so it is sometimes difficult to understand the technical details in the manual.

Can you give me some guidance please ? Thank you very much and thanks for this amazing program that is pi presents.

@KenT2
Copy link
Owner

KenT2 commented Nov 16, 2024

There is a German translation of the manual if that helps.

I think you should use a hyperlinkshow. Show the video fullscreen with a video track. At its end (onend) it automatically starts a second video track which shows the video small size and also has the two buttons A and B.

For the touchscreen the click areas will cover the two buttons. They could also cover the area of video which might allow switching to a track which shows the video fullscreen, however you cannot show images or text above videos.

@remiDubois2304
Copy link
Author

remiDubois2304 commented Nov 18, 2024

Thank you for your help, I have started the project with a hyperlinkshow.

I was first using pipresent KMS installed on a Pi 3B+ but full screen videos were slow and tend to stutter. I guess this is my Pi model that was not powerful enough. I started again with GAPLESS (and buster) and now this is perfect, very smooth.

I have one question to go further :
Is it possible to create touch areas over a video in full screen ? I tried but it's not working. I have successfully created a hyperlinkshow with touch areas but images only, and it works great. But I can't find to make it work with videos in full screen.

Thank you,

@KenT2
Copy link
Owner

KenT2 commented Nov 20, 2024

KMS uses MPV for its video player and Gapless uses omxplayer. omxplayer is now unfortnately obsolete. It looks like MPV is less efficient at playing videos. I have not used a Pi3 for some while so I am not sure if it is underpowered but I would have thought 720p should be no problem with a Pi3. I do not think PP is the problem but you could install the mpv gui (sudo apt install mpv) and try the video from the RPi menu. One possibility is that you have a slow SD card.

I may not have tried click areas over a video as I saw little use for them. Do the click areas work when positioned over a smaller video window? I wonder if the full screen click area is one pixel too large. Instead of 0,0,1920,1080 try 1,1,1919,1079

@remiDubois2304
Copy link
Author

Hello, I worked further on my project I wanted to give some news :

  • I have not been successfull with KMS and full screen videos on my RPI 3B+. I am using a Sandisk 32Gb A1 SD card so I think this is more related to the power of the RPI.
  • I have not managed to create touch areas over my video. I edited the video file inserting 2 buttons "A" and "B" at the end of the clip and for about 15 sec. I wanted to reproduce the user experience of interactive videos in Netflix. Once in pp, I think pp places touch areas under the video window (which is fullscreen) so touch areas are hidden.

I followed your advice : create a video track and followed by another track that shows the video in a small windows and the two buttons on the background

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants