Re: Problem streaming to Windows with Gstreamer SDK Mon May 18, 2015 9:28 am CostasVav wrote: I am attempting to stream my PiCam on my Pi2 to a Windows 7 machine on the same WiFi network. Install Compiz Fusion. Open Synaptic Package Manager, type 'simple-ccsm' (without quotes) right click and mark for installation. This should also install 'ccsm', if it doesn't, install that as well. We also need compiz, compiz-plugins, compiz-core, compiz-gnome and compiz-fusion-plugins-extra.
Intel® Media SDK GStreamer* Installation Process
This document provides the system requirements, installation instructions, issues and limitations. System Requirements:
- Intel® Core™ Processor: SkyLake, Broadwell.
- Fedora* 24 / 25
- Intel® Media Server Studio 2017 R2.
2.1 Download Fedora*
Go to the Fedora* download site and download Workstation OS image:
Fedora* 24: http://mirror.nodesdirect.com/fedora/releases/24/Workstation/x86_64/iso/Fedora*-Workstation-Live-x86_64-24-1.2.iso
Fedora* 25: http://mirror.nodesdirect.com/fedora/releases/25/Workstation/x86_64/iso/Fedora*-Workstation-Live-x86_64-25-1.3.iso
Fedora* 25: http://mirror.nodesdirect.com/fedora/releases/25/Workstation/x86_64/iso/Fedora*-Workstation-Live-x86_64-25-1.3.iso
2.2 Create the installation USB
Get an imaging tool like Rufus to create the USB bootable image
2.3 Install Fedora* 24 / 25 on the system
For Fedora 25, you may log on to the system with 'GNOME on Xorg' option in the Gnome login manager. This is because the default desktop for Fedora 25 uses Wayland, and the renderer plugin (mfxsink) native Wayland backend is not very well supported by the Fedora Wayland desktop. In this case, you should use the Wayland EGL backend in mfxsink for native Wayland rendering in Fedora 25 Wayland.
2.4 Configure the Fedora system (optional)
In case the user is behind a VPN, you may use the following method to set up the network proxy:
Enable sudo privileges:
2.5 Install rpm fusion
Fedora* 24:
Fedora* 25:
2.6 Update system
3.1 Download Intel® Media Server Studio (2017 R2) Community Edition
Go to software.intel.com/intel-media-server-studio and download the tar.gz file
3.2 Installing the user-space modules
Note: Before starting the following command sequence, note that the last cp command may reset the system, the system may freeze for awhile and logout automatically. This is expected, continue logging in and resume the installation procedure. Create a folder for installation, for example “development”, download the tar file MediaServerStudioEssentials2017R2.tar.gz to this folder.
3.3 Install the custom kernel module package
3.3.1 Install the build tools
3.3.2 Download and build the kernel
3.3.3 Validate the kernel change
Reboot the system with kernel 4.4 and check the kernel version
3.3.4 Validate the Intel® Media SDK installation
The vainfo utility should show the Media SDK iHD driver details (installed in /opt/intel/mediasdk) and several codec entry points that indicate the system support for various codec formats.
Prebuilt samples are available for installation smoke testing in MediaSamples_Linux_*.tar.gz
This test should pass on successful installation.
4.1 Install GStreamer and corresponding plugins packages
4.2 Validate the installation
5.1 Install the GStreamer Media SDK plugin dependencies
5.2 Download the GStreamer Media SDK plugin
Go to github.com/01org/gstreamer-media-SDK and download the package to a 'development' folder.
5.3 Build and install the plugin
5.4 Validate the installation
You can go to the following site to download the clip: download.blender.org/peach/bigbuckbunny_movies/
For more complete information about compiler optimizations, see our Optimization Notice.
Webcam live-streaming solution using GStreamer and Node.js
Installation
To obtain this module, type in
npm install livecam
. You also need GStreamer 1.3+ runtime installed on your machine.Windows
Depending on your architecture, you may download the latest runtimes provided and maintained by the GStreamer project. They usually come in MSI installer format. You do not need the development installers. Naming of the runtime package follows the
gstreamer-1.0-<arch>-<version>.msi
convention.Make sure you select COMPLETE installation and NOT typical. If you go with typical,
ksvideosrc
plugin will not be available for you, and livecam will not be able to use it.After installation, make sure you have
GSTREAMER_1_0_ROOT_<arch>
environment variable defined in your system. This is a variable created by the MSI installer, pointing to where you installed the runtime package. You might need to restart your computer after installation for this variable to show up.Linux
GStreamer might be already available on your machine. You may verify its existence by typing
gst-launch-1.0 --version
on your command line. If this command is not available, you can obtain GStreamer from your distro's package manager. For example on Ubuntu 16.04:Mac OSX
![Gstreamer Gstreamer](/uploads/1/2/5/8/125859036/225009954.png)
You may obtain GStreamer runtime via Homebrew.
Usage
If all goes fine, you will see a message like this in your console:
Open http://127.0.0.1:11000/ in your browser!
.Configuration
LiveCam
takes an object in as its launch configuration:In the configuration above:
NOTE 1broadcast address and UI address need to be visible to each other. NOTE 2broadcast address and gst_tcp address need to be visible to each other. NOTE 3UI address and gst_tcp address need NOT to be visible to each other.
That means you can hide gst_tcp address behind your firewall.
FAQ
- Q. What's the max resolution supported for broadcast?A. This is a very generic and broad question, and the answer to it is highly platform, network, and hardware dependent. If you are looking for a generic answer, I have successfully streamed 1920x1080@30fps in my home network to five different clients (including a Galaxy Edge) at once.
- Q. Can this module stream a static file instead of a webcam?A. Yes. in
livecam.js
, look forgst_video_src
variable and assign the following value to it:
License
LGPL-v3.0.