Package: picast
Descriptionpicast is a simple wifi display receiver written by Python3 on Raspberry Pi.
Current status is early alpha. Bug reports and contributions are welcome.Dependencypicast depends several external utilities and some are only on Raspbian.tvservice  (raspbian only)udhcpd (debian/ubuntu only)wpa_supplicantwpa_clivlcInstallation and runRun apt install command on Raspbian(buster or later) / Raspberry Pi Zero W/WH, RaPi 3B+, RaPi 4.$sudoaptinstallnet-toolspython3udhcpdpython-gst-1.0libgtk-3-devpython3-gipython3-pipgir1.2-gtk-3.0$sudoaptinstallgir1.2-gstreamer-1.0gir1.2-gst-plugins-base-1.0$sudoaptinstallgstreamer1.0-plugins-goodgstreamer1.0-gtk3gstreamer1.0-plugins-rtp$sudoaptinstallgstreamer1.0-omx-rpigstreamer1.0-omx-rpi-configvlc$sudoaptinstall--no-install-recommendslxde$python3-mpipinstallpicast$picastCustomizeWhen you want customize for your environment, please copypicast/settings.inito your favorit
place and edit it.then launch picast such as follows:$picast--config/home/pi/settings.iniDevelopmentIt is recommended to use virtualenv to deploy development environment.
Because python3-gi module is a binding library to GTK++ libraray,
so it is not easy to install using python standard pip.It is recommended to use system’s site-packages python3-gi library.$sudoaptinstallgstreamer1.0-tools$gitclonehttps://github.com/miurahr/picast.gitpicast$cdpicast$python3-mvenv--system-site-packagesvenv$sourcevenv/bin/activateAnd then install picast as an editable development environment.$pipinstall-e.Then you can launch in increased debug level.$picast--debugDebug logThere is a debug log at/var/tmp/picast.log. It is configured inlogging.ini.IDEIt is recommended to use PyCharm professional edition, which has a remote deploy
and debug feature.PreparationIncrease GPU memory for decoding fullHD video stream.
addgpu_mem=128to/boot/config.txtUsagePicast search for the wireless display named “picast” on the source device you want to cast.
Use “12345678” for a WPS PIN number.
It is recommended to initiate the termination of the receiver on the source side.
After Pi connects to the source, it has an IP address of192.168.173.80.These parameters are configured insettings.ini.AutostartEdit/home/pi/.config/lxsessions/LXDE/autostart@xscreensaver-no-splash@lxterminal-l-e/home/pi/picast/bin/picastKnown issuesLatency: Limited by the implementation of the RTP player used.WiFi: The on-board WiFi chip on Pi 3/Zero W only supports 2.4GHz. Due to the overcrowded nature of the 2.4GHz
spectrum and the use of unreliable rtp transmission, you may experience some video glitching/audio stuttering.
It may be better with Pi 3B+/4 that support IEEE802.11ac 5GHz.HDCP(content protection): Neither the key nor the hardware is available on Pi and therefore is not supported.License and copyrightCopyright 2019 Hiroshi MiuraCopyright 2018 Hsun-Wei ChoThis program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.