Also, feel free to comment here or write me a mail with your experiences. If you have a Miracast compatible device, then please try out the copr repository. The below video shows gnome-screencast in action streaming my laptop screen with the Blender short film “ Caminandes 3: Llamigos“ playing. With all this in place, it is possible to implement proper support for screen-casting using Miracast in GNOME. I worked on adding the required support and thanks to Thomas Haller this has now been merged into NetworkManager 1.16. While this was supported in the lower parts of the stack (Kernel and wpa_supplicant), we were lacking the required bits in NetworkManager to enable the usage in GNOME. One major piece that was missing for Miracast devices is integrated support for Wi‑Fi Direct (a.k.a. The API is still improving in mutter, and in the future it will be possible to add support to stream the cursor separately. When available, gnome‑screencast will make use of the Mutter Screencasting API which allows it to grab the screens content on Wayland. If you have better encoders installed, then these may be used automatically. And finally, once the sink is connected, a GStreamer pipeline is used to fetch the screen content from mutter, encode it and send it to the Miracast sink.įor the encoding, gnome-screencast will make use of the OpenH264 and Frauenhofer FDK ACC codecs that are available on Fedora. We also need to start an RTSP server that the sink can connect to. First we need to establish a Wi‑Fi Direct connection. To stream to a Miracast (revision 1) device, a few things need to happen. If you are on Fedora, you can try out gnome‑screencast by using my copr repository. It requires a current development version of NetworkManager, but should work out of the box otherwise. I have been working on a gnome‑screencast application, which currently has working support for Miracast devices. Also, at least Miracast requires the use of the H264 or H265 codecs, which have been problematic due to licensing requirements. VLC for example does support streaming to Chromecast, but the Miracast implementations were all not integrated well enough to be usable. After that, byzanz will startīyzanz-record -verbose -delay=0 $ -duration=$D "$FOLDER/byzanz-record-region-$TIME.On GNOME we usually had no good way of using remote display devices like Chromecast, Miracast or AirPlay. #!/bin/bashĪRGUMENTS=$(xrectsel "-x=%x -y=%y -width=%w -height=%h") || exit -1Įcho Delaying $DELAY seconds. (If it protests there is no makefile, run. Clone the repository and run make to get the executable. If Default recording duration 10s to /tmp/recorded.gifīyzanz-record -verbose -delay=0 -x=$X -y=$Y -width=$W -height=$H $Dĭependency: xrectsel from xrectsel. Paplay /usr/share/sounds/KDE-Im-Irc-Event.ogg & # Sound notification to let one know when recording is about to start (and ends) See man byzanz-record or byzanz-record -help for more details. You can use the video in presentations, email it to your colleagues and students, or post it in social media. Save as video Your screencast will be a WMV video of HD quality (720p). The -c flag tells byzanz to also include the cursor in the screencast. Enter your YouTube account in Free Cam and share your videos with a single click. I included the -c flag in byzanz-record-window to illustrate that any arguments to my shell script are appended to byzanz-record itself. After 30 seconds (that's the meaning of 30 in step 1), byzanz ends.After the beep (defined in the beep function), byzanz will start.Wait 10 seconds (hard-coded in $DELAY), in which you prepare for recording.Go to the window (alt-tab) you want to capture.Run byzanz-record-window 30 -c output.gif.Here's an example on using the first script to make a screencast of a specific window. Save one/all of the following two scripts in a folder within your $PATH. The colours may be off in some cases, but the file size makes up for it. Thanks Bruno Pereira for introducing me to byzanz! It's quite useful for creating GIF animations. byzanz-record-region - To select a part of the screen for recording.byzanz-record-window - To select a window for recording.This answer contains three shell scripts:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |