Read the statement by Michael Teeuw here.
Video player -> would someone like to help me to write a program?
-
Hi Guys,
i need help with writing a program and unfortunately i donāt know how to start. I have already implemented a number of Raspberry projects, but only according to instructions or I only had to make small changes, for which I was able to work out the solution specifically with the help of google.
Now I want to create something completely own, for which I couldnāt find anything comparable on the Internet that I can paraphrase.
Itās about the following and probably also quite simple project:
I need a video player that pulls random videos from different folders and plays them back. The function should then be as follows:
The Raspberry starts up and pulls a random video from āFolder 1ā. The randomly selected video should now play in a continuous loop until a button is pressed via GPIO. When the button is pressed, a random video from āFolder 2ā should be played. As soon as this video has expired, a random video from āFolder 3ā should start. As soon as this video is played, a random video from āFolder 1ā should be played in a loop again, as at the beginning, until the button is pressed.
Thatās all. It would be āa nice to haveā if I can feed the videos to the memory card via my network. However, the videos have to be saved locally on the Piās memory card or an plugged in USB stick, since the application should also work without a network connection when on the move.
Can someone help me with this or, even better, write me a corresponding program?
Of course, I would also be grateful and, depending on the actual effort, give the helping person a discount on my mirror (if there is interest in it) or something similar. I would be really very grateful. Unfortunately I canāt do it alone and I just donāt have the time to teach myself everything to make this project a reality.
Thanks in Advance
Chriz -
@Goldjunge_Chriz you donāt need python for this. you can do it all in javascript
-
Unfortunately, it comes out the same. Regardless of the programming language, I am not able to set it up on my own.
In which programming language it finally runs, I donāt care :) it should just work.
-
@Goldjunge_Chriz MMM-VideoPlayer gets close.
this module has buttons on screen u can use w mouse or touchscreen. similar idea
for the storage, you always use something in the module folder. For server side, you mount the server shared folder and then use the linux ln command to make a link into the module folder.
-
The whole thing should not run on the Magicmirror, but as a completely independent solution. A completely new Pi (preferably the Zero WH) that only fulfills the above-mentioned function, nothing else. I donāt need any buttons either, you donāt have to switch anything, pause, etc., I donāt need any of that ;)
-
@Goldjunge_Chriz ok, thx. this forum is for magic mirror related work.
-
I know š thatās why I posted it in general discussions. Iāve been an active member here for years and I was just hoping someone with programming experience could help me, even if itās not a magicmirror project.
-
May be you can check https://github.com/osmc/osmc ? this is open source media player, you can modify the source code to support your feature ?
-
@ashishtank said in Video player -> would someone like to help me to write a program?:
May be you can check https://github.com/osmc/osmc ? this is open source media player, you can modify the source code to support your feature ?
many thanks :) I know this player. Unfortunately it is and remains just a player. Here too⦠some script has to be created to implement my wishes. And here is the problem again ā¦
-
I need something simple that works according to the following example scheme:
Start loop
Select random Video from Folder āplaceholder 1ā
IF GPIO āXYā ist true
THAN Select random Video from Folder āplaceholder 2ā
ELSE Loop previous selected Video from Folder āplaceholder 1ā
IF selected random Video from Folder āplaceholder 2ā is over
THAN select random Video from Folder āplaceholder 3ā
IF selected random Video from Folder āplaceholder 3ā is over
THAN go Back to start
End Loop -
@Goldjunge_Chriz got it⦠will check if i can help you with it. Is it fine that background script is starting and stopping the player based on GPIO input ?
-
@ashishtank said in Video player -> would someone like to help me to write a program?:
@Goldjunge_Chriz got it⦠will check if i can help you with it. Is it fine that background script is starting and stopping the player based on GPIO input ?
the player should actually always run automatically. So boot up and automatically play the first random video from āplaceholder 1ā. once all steps have been processed, he should simply play a video from āplaceholder 1ā again until the button is pressed. And so on in a loop, until you shut down the raspberry. I would like to avoid one or more actions.
Thank you in advance, I think itās great that you want to help :)
-
Yes, i can help. infect i have also seen few open source scripts/players where one or more things are controlled by GPIO. I have limited time so i can not commit any time line for this yet.
-
OK. I had actually hoped for relatively quick help, but if it doesnāt work sooner Iāll have to live with it :) Iām happy if someone supports me at all :)
-
@Goldjunge_Chriz could you two take this to email or chat. thanks
-
Hi @Goldjunge_Chriz you can check below post this have mostly similar feature. few changes and it should work for you. I am replying here so if some one have different opinion or better solution then can suggest, if you have any query for the below then do send me chat.
https://www.instructables.com/id/Raspberry-Pi-video-player-for-Children/
-
that looks very, very interesting.
Can you help adapt the code for my needs? :) that with the playlists seems like a really interesting approach.
-
No other ideas or help ? š
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better š
Register Login