Git Product home page Git Product logo

Comments (4)

ljy396 avatar ljy396 commented on August 31, 2024

Sorry, Missed some characters. Post again

from pyomxplayer import OMXPlayer
from pprint import pprint
omx = OMXPlayer('/home/pi/1.mp3')
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/pyomxplayer.py", line 32, in init
file_props = self._FILEPROP_REXP.match(self._process.readline()).groups()
AttributeError: 'NoneType' object has no attribute 'groups'

from pyomxplayer.

leucos avatar leucos commented on August 31, 2024

File properties are not outputed by omxplayer on some versions. Just comment out the 3 lines below # Get file properties and the 3 lines starting with if self.audio['streams'] > 0:

from pyomxplayer.

alfredoivan avatar alfredoivan commented on August 31, 2024

Hello, jbaiter

I have rpi raspbian #737 , latest omxplayer. And had this problem. Managed to solve it by commenting those lines , and ALSO the audio lines (group error) below.

Now it works almost flawless.

Hope this helps you ,

good work !
Alfredo Martínez Cáceres

from pyomxplayer.

PangolinPaw avatar PangolinPaw commented on August 31, 2024

Hello all,

I appreciate this is quite old but I've had similar experiences. leucos's suggestion and the 13 Oct 2015 commit resolved the problem for .mkv files, however .mp4 (while they no longer produce an error) do not play. Any suggestions would be appreciated.

from pyomxplayer.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.