omxplayer

Python + TKinter + OMXPlayer window on top

倾然丶 夕夏残阳落幕 提交于 2020-01-07 09:02:26
问题 I own a raspberry pi 2 and i start learning Python. I would like to do something very basic : the window of my Python program on top of omxplayer window like a notification system. I have been able to make an "always on top" window with TKinter but when i launch omxplayer my window is no more on top. I would apreciate some help ! Thanks 回答1: Try : from Tkinter import * root = Tk() root.wm_attributes('-topmost', 1) Source: http://tkinter.unpythonic.net/wiki/always_on_top 回答2: My solution is to

OMXplayer-wrapper and Python - jump to a specific point in video

痞子三分冷 提交于 2019-12-13 03:41:30
问题 **It's my first time posting on Stack Overflow so please excuse any formatting issues - I'll try to improve as I go! ** I am building an artwork that uses looped videos on multiple screens, and I need the video to jump to a specific point when a trigger is activated (in the end via a motion sensor). I would like the program to make the video jump to a specific point in a video using OMXplayer on Raspberry Pi. In the end, I hope to do this with a signal coming from a PIR motion sensor wired

Adjust audio volume level with CLI omxplayer - Raspberry Pi

为君一笑 提交于 2019-12-04 10:30:00
问题 I have a bash script that plays .mp3 files on my Raspberry Pi via omxplayer. But can not control the local (earphone) audio volume with the GUI . Is there a command for the CLI that I can implement in the bash script? I have searched quite a bit, but can not find such a command. Code: omxplayer Song_Title.mp3 Set audio for local (earphone) output: sudo modprobe snd_bcm2835 sudo amixer cset numid=3 1 omxplayer -o local Thanks! 回答1: to provide more precise information for playing through

Adjust audio volume level with CLI omxplayer - Raspberry Pi

℡╲_俬逩灬. 提交于 2019-12-03 05:56:42
I have a bash script that plays .mp3 files on my Raspberry Pi via omxplayer. But can not control the local (earphone) audio volume with the GUI . Is there a command for the CLI that I can implement in the bash script? I have searched quite a bit, but can not find such a command. Code: omxplayer Song_Title.mp3 Set audio for local (earphone) output: sudo modprobe snd_bcm2835 sudo amixer cset numid=3 1 omxplayer -o local Thanks! to provide more precise information for playing through scripts, there are 3 ways to change sound volume in current version of omxplayer, and values are not so intuitive: