GithubHelp home page GithubHelp logo

rahul-thakoor / balena-rpiplay Goto Github PK

View Code? Open in Web Editor NEW
1.4K 18.0 57.0 30 KB

Turn a Raspberry Pi into an Airplay server using RPiPlay to enable screen mirroring on tvs, monitors and projectors.

Home Page: https://github.com/FD-/RPiPlay

Shell 100.00%
airplay-server airplay2 apple raspberry-pi balena cast screen-mirroring

balena-rpiplay's People

Contributors

jazzagi avatar mrstonedone avatar rahul-thakoor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

balena-rpiplay's Issues

Error displayed on Raspberry Pi

Log file displayed:
Failed to download image 'registry2.balena-cloud.com/v2/a1894565efe9c6a7cffd04daa430ae75@sha256:0f9952c640715de9e1a0a5fc6b2b98e268b58ed2c12e1d7d60133450b27afecf' due to '(HTTP code 500) server error - Get https://registry2.balena-cloud.com/v2/: net/http: TLS handshake timeout '

Hardware:
Raspberry Pi 1 Model A+ (2014)
Sandisk Edge 16GB

screen goes black but no video or audio

screen shows the balena logo, device shows up as an airplay device
when I tap it, screen goes black but no video or audio.
iPhone 6 iOS v12.5.5
rPi 3B.
Connected with ethernet cable to same router as iPhone wifi.
I did not create an account, I flashed directly from the Get Started button here

Support for HiFiBerry Amp100

Hi, I'm currently using an Amp which works perfectly with balena-sound. But when it comes to balena-rpiplay, the only audio output options I see are HDMI and Analog. Please let me know if there's a plan to support Amp.

Not Posting

So I was using Air Pi Play since January and it worked seamlessly. I went for a vacation for 2 weeks and ever since it's not working. I tried making a new fork of the fleet and adding devices but nothing works. I get a blank screen and nothing shows up. The device doesn't get registered to fleet even via ethernet. Tried only connecting to 2.4Ghz band even though my raspi 3b+ supports 5ghz.

Devices used: Raspi 3B+, MacBook Pro 2020 Intel (MacOS 12.3)

Please look into this ASAP @rahul-thakoor @MrStonedOne @Jazzagi

Problem Setting Variables in Balena

It seems like environment variables set in Balena cloud are not being applied to the image or the application. I set AIRPIPLAY_NAME to a value that I would prefer and it still shows the default value in the AirPlay menu on my Mac. I restarted the services and the devices several times. This was done in both the Fleet view and in the Device view using instructions here:

https://www.balena.io/docs/learn/manage/variables/

This may be an issue with Balena cloud or my specific set up. I am using an RPI 3 with the latest production air-pi-play image. Nothing in the device logs indicate the desired variable being set:

Supervisor starting
Applying configuration change {"SUPERVISOR_POLL_INTERVAL":"900000","SUPERVISOR_DELTA":"1","SUPERVISOR_DELTA_VERSION":"3"}
Applying boot config: {"gpu_mem":"256","gpu_mem_512":"128","avoid_warnings":"1","disable_overscan":"1","disable_splash":"1","dtoverlay":["vc4-fkms-v3d"],"dtparam":["audio=on","i2c_arm=on","spi=on","audio=on"]}
Applied boot config: {"gpu_mem":"256","gpu_mem_512":"128","avoid_warnings":"1","disable_overscan":"1","disable_splash":"1","dtoverlay":["vc4-fkms-v3d"],"dtparam":["audio=on","i2c_arm=on","spi=on","audio=on"]}
Applying boot config: {}
Applied configuration change {"SUPERVISOR_POLL_INTERVAL":"900000","SUPERVISOR_DELTA":"1","SUPERVISOR_DELTA_VERSION":"3"}
Applied boot config: {}
Rebooting

Thanks for all your work containerizing this amazing piece of software!

rpiplay performance

This is a great tool, easy to use and quick.
I have tried under 3B+ and 4, both of them had frame lost, I can watch the video but not quite smooth, how can I improve that?

standard_init_linux.go:211: exec user process caused "exec format error"

Nice project!

Hope I can get it to work on one of my Raspberry Pi's (currently tying wired on a 3B), but I don't see my Pi as an AirPlay receiver. Instead I see this error (repeating over and over again) on my Balena dashboard:

standard_init_linux.go:211: exec user process caused "exec format error"
Service exited 'rpiplay sha256:<redacted>'
Restarting service 'rpiplay sha256:<redacted>'

I can't access the rpiplay terminal (also repeating over and over again, except for the first line):

Connecting to <redacted>...
Spawning shell...
Error response from daemon: Container <redacted> is restarting, wait until the container is running
Error response from daemon: Container <redacted> is restarting, wait until the container is running
SSH session disconnected
SSH reconnecting...

What can be wrong here? How to fix it?

(Note: I'm completely new to balenaCloud; apologies upfront if I make a rookie mistake)

No audio output

Using a new Belena account, forked the fleet and deployed the image on Rpi3B
Shows up on the network, and my iPhone happily selected it as a target as is sending data.
The log files show the "aacDecoder_DecodeFrame error" once in a while, so I now it is receiving data.
I have it connected with an audio out cable to a receiver which I know is working.
I've set the device AIRPIPLAY_AUDIO_OUT variable to 'analog' (without quotes).
I've tested with headphones, still no sound.
Is there someway to check what the level it thinks its putting out?

Peer-Peer or WiFi Access point

I would like to use your image with a Pi Zero but connect to the Pi without using a router - Peer-Peer by using WiFi Access point
From https://github.com/FD-/RPiPlay/issues/9
I could set up the pi zero as a WiFi access point.
Is this possible with your image or should I build using rpiplay?

I am already using balena-rpiplay with a Pi4 and as a teacher I really like your image for dedicated mirroring with my ipad.

Pi Zero 2 Support

Salutations!

I've recently noticed this project while flashing something onto a USB drive and thought I would check it out, as I have recently been looking to implement such a thing for a tech-illiterate family member.

I recently snagged a couple of the new Zero 2 W's, and was just curious if there are plans to add an additional option for device images to accommodate this new board to utilize the Cortex-A53 that is has. If not, would you consider making the changes to add a new image for this board?

Many Thanks!

Error - Requested access to the resource is denied

Hi i have try your project but i receive the following errors

Supervisor starting
Downloading image 'registry2.balena-cloud.com/v2/5f425bb56cd807866eb0ed443fac3299@sha256:88c0d709e705ca6fd6e419ce7a7c826d82a612174de7d181915efe4de9e62124'
Failed to download image 'registry2.balena-cloud.com/v2/5f425bb56cd807866eb0ed443fac3299@sha256:88c0d709e705ca6fd6e419ce7a7c826d82a612174de7d181915efe4de9e62124' due to 'error pulling image configuration: errors:
denied: requested access to the resource is denied
unauthorized: authentication required

aacDecoder_DecodeFrame error : 0x4002/0x400c

Thank you for solving #16!

With this fix I now indeed see a RPiPlay AirPlay receiver on my iOS devices.

However, I'm unable to stream any video to it. Instead my log fills up with either of these two lines:

  • rpiplay aacDecoder_DecodeFrame error : 0x4002
  • rpiplay aacDecoder_DecodeFrame error : 0x400c

Sources tried:

  • Disney+ (on iPad running iOS 15.2 RC)
  • Home made video in VLC (on same iPad)
  • Apple TV+ (on iPhone running iOS 14.8.1)

Setup:

  • Raspberry Pi 3 Model B Vi.2
  • balenaOS 2.83.21+rev1
  • wired network

Hope you can fix this too!

USB Soundcard Audio

Hello!

The project is great! Congratulations! I want to use external USB card for audio output, because of better sound.
Do you have an idea how to achieve that?

Thanks!
Martin

* failed to open vchiq instance

I tried to deploy the docker image. But it yields this output and does stop running immediately:

Air-Pi-Play v0.3.1 powered by RpiPlay 
Device is discoverable as Air-Pi-Play@572761756fa1 
* failed to open vchiq instance 

I have tested it on a RPi 4B and a Pi Zero (1.3)

Code to login air-pi-play

Hi.
When trying to airplay connection from my iPad, the iPad requires a code that should appear on the airplay screen. This code does not appear.
Thanks.

Screen Mirroring does not work

Hi,

I could see the device on the Airplay option but connecting to it does not do anything.
The balenaEtcher logo displays

Improve Readme

  • Clarify what this project is -> dockerizes RpiPlay
  • Clarify that only 'Screen Mirroring' from control center works, not playing audio from music app -> use balenaSound instead

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.