Raspberry Pi


I did it and all worked fine.
Then I rebooted and now I have this error:
python: can't open file 'pyplex': [Errno 2] No such file or directory
What should il be?


----

dump post

You’re probably in the wrong directory



cd apps



I'll add it to the install list




From what folder do you run the python pyplex hdmi command? You need to run it from the folder you did the git clone command in.

The HDMI bug has been fixed a few commits ago.

Thank you… I was in /apps/pyplex :slight_smile:

I’ve been thinking about a few things to implement next into pyplex.



Here is a list of stuff i’m thinking about:

[list][]Locate more servers in the local network[]Myplex support for remote servers[]Media art slide show when idle (as a start for the GUI)[]Web interface for when a user doesn’t own a smartphone that has Plex installed[/list]

The first two seem quit easy to implement, the media art slideshow will be the biggest challenge. Does anyone of you have an idea how to implement this?

unfortunately hdmi sound is still not working even after a ‘git pul’. Video works very smoothly.



This is strange, I tested it today and it worked here. What branch are you working in? Or are you still in the master branch? Can you post the code from getArg() function in interface.py here? (it should return omxCommand instead of set self.omxCommand)


I did exactly what written by jsmith79 on a brand new sd card with raspberian installed. This is the getArg function (or I hope it is :D)


<br />
<br />
     def getArg(self, arg):<br />
                omxCommand = ''<br />
                if len(arg) > 1:<br />
                        if arg[1] == "hdmi":<br />
                                omxCommand = '-o hdmi'<br />
                                self.l.info("Audo output over HDMI")<br />
                        elif arg[1] == "stop":<br />
                                path = "xbmcCmds/xbmcHttp?command=stopPyplex()"<br />
                                try:<br />
                                    urllib2.urlopen("http://127.0.0.1:3000/%s" % path)<br />
                                except urllib2.URLError, e:<br />
                                    self.l.error("Reading %s failed. %s" % (path, e))<br />
                                exit()<br />
                else:<br />
                        self.l.info("Audio output over 3,5mm jack")<br />
                return omxCommand<br />





The code is correct. I'll write some extra debug lines inside pyplex to know if the command is passed along to omxplayer.


Hi ginoscola,

Can you upload you pyplex.log file?
Is hdmi audio working when you try to play a file manually? If you haven't tried it yet you can stream this file.

omxplayer -o hdmi http://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_320x180.mp4

try run git pull again, I updated some logging info that might tell you what’s going wrong.



Just tested it here and audio over hdmi is working for me.

Fixed one bug today, pyplex is now able to play madia from more than one server! Have been trying to locate windows servers through avahi but somehow it won’t work. Have been looking into other solutions but they take up a whole lot more time to execute. So i’ve disabled avahi lookup for now. This is only required when i start working on the media slide show.





One thing Windows users my try is installing Bonjour for windows.

You can find it here: https://www.apple.com/nl/support/bonjour/

To try if this works you can un-commend lines 17 and 29 and comment out line 30 in interface.py now pyplex will look for a server on startup.

Just a thought on a Web Interface: Would it be easier to add a way for the current web client to send remote commands? Then the current web gui becomes a remote for anyone.

I made a new topic dedicated for pyplex as it’s not obvious that this topic is obout pyplex. (it just deserves it’s own topic :P)

It can be found here http://forums.plexapp.com/index.php/topic/56021-pyplex/





hi,

I made a fresh installation from a new sd card, but audio still doesn't work even if I stream the file.

this is a link to my log file [https://dl.dropbox.c...5643/pyplex.log](https://dl.dropbox.com/u/365643/pyplex.log)





So, if i'm correct you also have no hdmi audio when you run the next command? (got the transcode url from your logfile, it should work if your server is running)


omxplayer -o hdmi "http://10.0.0.15:32400/video/:/transcode/segmented/start.m3u8?secondsPerSegment=10&url=http%3A%2F%2F10.0.0.15%3A32400%2Flibrary%2Fparts%2F1293%2Ffile.avi&quality=7&ratingKey=1377&subtitleSize=125&key=http%3A%2F%2F10.0.0.15%3A32400%2Flibrary%2Fmetadata%2F1377&offset=0&identifier=com.plexapp.plugins.library&3g=0&X-Plex-Client-Capabilities=protocols%3Dhttp-live-streaming%2Chttp-mp4-streaming%2Chttp-mp4-video%2Chttp-mp4-video-720p%2Chttp-streaming-video%2Chttp-streaming-video-720p%3BvideoDecoders%3Dh264%7Bprofile%3Ahigh%26resolution%3A1080%26level%3A41%7D%3BaudioDecoders%3Daac%2Cmp3%2Cac3%2Cdts&X-Plex-Access-Code=VQgsFflRJJTQfae3AxEpANb8yyMEPQCz3HsLRHRnkao%3D&X-Plex-Access-Key=KQMIY6GATPC63AIMC4R2&X-Plex-Access-Time=1357472302"



If you don't have audio over hdmi when using omxplayer, it might be omxplayer related. You could try and get it from source. If it's not omxplayer it might be some settings that are wrong. Take a look at these two topic's i've searched up: [http://www.raspberry...opic.php?t=5062](http://www.raspberrypi.org/phpBB3/viewtopic.php?t=5062) and [http://www.element14...ty/thread/18205](http://www.element14.com/community/thread/18205)

I Hope it can help you!


no audio following the link...

now I'll check your links and try to fix the omxplayer issue.

thank you very much for helping me :D


now hdmi audio works perfectly: I uncommentend the line hdmi_drive=2 in config.txt

thank you very much!





:smiley:



Happy to help! :)