omxplayer | commandline OMX player for the Raspberry Pi
kandi X-RAY | omxplayer Summary
kandi X-RAY | omxplayer Summary
OMXPlayer is a commandline OMX player for the Raspberry Pi. It was developed as a testbed for the XBMC Raspberry PI implementation and is quite handy to use standalone.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of omxplayer
omxplayer Key Features
omxplayer Examples and Code Snippets
Community Discussions
Trending Discussions on omxplayer
QUESTION
I'm running some videos on a headless Raspberrypi using OMXPlayer. However, there is quite a gap when loading the video so I wanted to try out mpg123
which is supposed to be quite fast.
I used VLC to convert my m4v video to an MPG format. However when I want to play the file I do consistently get the following error:
...ANSWER
Answered 2022-Mar-14 at 15:21... that video has a very misleading filename, it has no audio. try a file which actually contains audio, like
QUESTION
Got this Dahua vto stream link: that works with omxplayer, but vlc won't play it:
...ANSWER
Answered 2021-Nov-10 at 05:29So what happened is that the library in Debian providing support for live555 was removed in February of this year, this affects all downstream distros including but not limited to RPi OS and Ubuntu:
https://askubuntu.com/a/1363113
The 2 active versions were 2020.01.19-1 and 2018.11.26-1.1, Live555 has since added GPL license headers to the offending files, however the RFC issue remains.
Now you may be tempted to just download the latest Live555 source code and compile it... it does not work. There have been changes to function names and structures referenced by VLC, and as such VLC will not compile against the source. You need to get an older version, I specifically used this one, which is a tweaked snapshot from 2020 prior to the modifications that prevent VLC compilation:
https://github.com/rgaufman/live555
The configuration you want is ./genMakefiles linux-with-shared-libraries
, I do not know if it is required but since my system is x86-64-bit I added -m64 to the compiler options first
After compilation and install, I went on to compile VLC, adding '--enable-live555'
and '--with-live555-tree=extras/live555-master'
after placing the root Live555 folder in the VLC extras folder, however VLC failed to compile, it turns out the Live555's make install does not copy all the header files needed to where VLC is looking. They were dropped as 4 subfolders into /usr/local/include/, and the actual libs into /usr/local/lib/. Adding the correct CXX/CPP flags will make it look where they were put, however I put them all in a single folder and used 1 flag.
I also had to '--disable-mod'
to work around a dependency version issue that I had no interest in fixing, since I do not use modplug or any mod files.
50 minutes later... VLC successfully compiled! However it was expecting the libraries for Live555 to be in /usr/lib/ not /usr/local/lib/, since it took so long to compile I was just fine with linking or copying the libraries into the expected folder, and after that VLC works with RTSP when linked to the new file. Or you can choose to maintain the original VLC and run the new file directly if you need to load the camera feeds.
QUESTION
Is there a way to get OMXPlayer to display the embedded subtitles in foo.mp4 without extracting the subtitles with ffmpeg to foo.srt, and without hardcoding the subtitles into foo.mp4?
...ANSWER
Answered 2021-Apr-06 at 15:57The problem was solved by adding SRT subtitles to a MKV-container instead of MP4:
QUESTION
I'm facing a problem trying to execute a command with each individual URL loaded from XML, everytime I press the button the same URL is being loaded.
XML
...ANSWER
Answered 2021-Mar-03 at 16:53What you did wrong is you are making 3 forms without id and it makes every submit button send all the URLs to the backend. Put incremental id to form.. below code works.
QUESTION
Omxplayer won't play any videos generated with FFmpeg on a Raspberry Pi
I found this thread showing that it is necessary to include '-profile baseline -level 3.0' parameters: https://github.com/popcornmix/omxplayer/issues/577
The full command is:
...ANSWER
Answered 2020-Dec-31 at 18:55Most players don't like such a low frame rate. Add -r 10
output option:
QUESTION
I have RPi running raspbian. I want a solution to convert a folder of image files to an mp4 slide show video that can be played with omxplayer. I did it with ffmpeg and following command:
...ANSWER
Answered 2020-Nov-25 at 10:55So the problem was I should have force both input and output rates(r .2 and -r 30) Here is my final command:
QUESTION
I am just having the hardest time getting sound output from my RPi Zero to either bluetooth or a USB sound card from python script outside of IDE using omxplayer in a subprocess. I have searched and tried various "fixes" without success. Here is an example from the code.
...ANSWER
Answered 2020-Aug-26 at 01:06Okay, I solved it. The above is correct, however, my card number and device number were off. To see list of devices:
aplay -l
From there, find your device and it should work! This was mine:
QUESTION
The following code receives an MP3, writes it to disk and plays it using OMXPlayer. I want to eliminate the need to write the MP3 to disk before playing it.
...ANSWER
Answered 2020-Aug-24 at 00:31Established in chat and comments:
cat temp.mp3 | omxplayer -o local --vol -500 /dev/stdin
causes a segfault.omxplayer -o local --vol -500 /dev/fd/3 3< <(cat temp.mp3)
works correctly.
Thus, we can pass a MP3's data in... but not on stdin (which omxplayer
uses for controls: pausing, early exiting, etc).
This is equivalent to "Approach 3", but instead of using very new and modern Python functionality to do the FD wrangling in-process, it launches a copy of /bin/sh
to do the work (and consequently will work with much older Python releases).
QUESTION
I am building a Telegram bot installed on my Raspberry Pi that will perform multiple functions. One of those is to play/pause/stop a 10-hours mp3 file in the Raspberry. So what I need is to control the audio playback with telegram messages.
To simplify it, I can save some instructions into a .txt file, and another python (or shell) script will check for those and perform an action to the audio player.
I am able to reproduce a file on the Raspberry's headphone jack using omxplayer:
...ANSWER
Answered 2020-Aug-19 at 12:57I would suggest going with VLC
QUESTION
I want to use this python module: https://python-omxplayer-wrapper.readthedocs.io/en/latest/ on my c++ app.
It is a omxplayer python wrapper and has some callback events that I want to link to my c++ class function member.
I did it with success using a static function like this:
...ANSWER
Answered 2020-Jul-24 at 15:26Ok, with @pptaszni help I found how to do it.
The problem was that boost could not detarmine the function signature because boost::bind
return a function object.
To avoid this problem, I have to specify the signature when call make_function
.
Example:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install omxplayer
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page