Showing posts with label stream. Show all posts
Showing posts with label stream. Show all posts

Tuesday, September 26, 2017

Stream MP3 with VLC

Stream MP3 with VLC


1. Download VLC 0.9.8a from http://www.videolan.org/. It can be used as both a server and a client.

2. On the server computer, lauch VLC. Go to Media->streaming.

  • Pick up a MP3 file. It can contain Chinese characters.
  • On the Stream Output page, check RTP in the Outputs section; fill address with the IP of the client computer
  • Click Stream button at the bottom right.

3. On the client computer, lauch VLC. Go to Media->Open Network; select RTP for Protocol, fill Address with the IP of the client computer; click Play at the bottom right.

Note: WMA files cannot be streamed in this way.


download file now

Read more »

Sunday, September 24, 2017

Stream Video with VLC

Stream Video with VLC


The procedure is the exactly same as MP3 except one point: in the Stream Output window, in the profile section, you need to select MPEG-TS.
If you can only hear the sound, try to select MPEG-4 from the Video Codec tag in the profile section.
Because of the big size of video files, wireless internet connection leads to choppy video and is thus not recommended. Use network cable.

download file now

Read more »

Friday, September 22, 2017

Stream video from Raspberry Pi 3 Camera V2 play in Android VideoView

Stream video from Raspberry Pi 3 Camera V2 play in Android VideoView


This video show how to stream Camera Module NoIR V2 video from Raspberry Pi 3/Raspbian Jessie using vlc, play in Android App with VideoView. Details, refer my another blogspot.


download file now

Read more »

Tuesday, September 19, 2017

Stream your webcam to see it through a browser using YawCam

Stream your webcam to see it through a browser using YawCam


YawCam

YawCam, Yet Another Webcam software, this is a free program that, unlike tons of others, will let you easy stream your webcam to see it through your browser.

Now, let�s do this. First download and install.

Let�s configure it. First you need to select the cam you want to use.

YawCam Setting

Now, go to Settings > Edit settings. Copy your public IP and port.

YawCam connection

Now (assuming that you already forwarded the port, otherwise use this) enable the Stream option.

YawCam streaming

Go to the browser and paste the IP followed by the port, like this:

xxx.xxx.xxx.xxx:PORT

Where xxx.xxx.xxx.xxx is your public IP, and PORT is the port that the program is using.

IP

And that�s it. You�ll receive a notification each time someone is watching you. Also, you need to keep the program running to be able to access it, so if you shut it down, no one will be able to access your camera.


download file now

Read more »

Sunday, September 10, 2017

Stream Data

Stream Data



After taking the big data class, we�ve learned fairly cool and useful concepts and skills. This blog will be bringing up a new concept called �stream data�. Yes, as we can image, stream data refers to the data that flows into and out of the system like streams. Normally, stream data is in vast volume, changing dynamically and containing multi-dimensional features. Examples of such data typically include audio and video recording of engineering processes, computer network information flow, web click streams, and satellite data flow. Like every new stuff is expected to come up with new challenges, this kind of data cannot be handled by traditional database systems, and moreover, most systems can only be able to read a data stream in sequential order. Therefore, this poses great challenges to people to find a way of effective mining of stream data.


Till these days, the basis techniques for stream data mining consists of sampling, load shedding and sketching techniques, synopsis data structures and clustering. Progress has been made on efficient approachs for mining frequent patterns in data streams, multidimensional analysis of stream data (such as construction of stream cubes), stream data classification, stream clustering, stream outlier analysis, rare event detection, and so on. The basic idea is to build single-scan algorithms to gather information from stream data in tilted time windows,  imited aggregation, exploring micro-clustering and approximation.


Well, recently the focus of stream pattern analysis has been moved to approximate the frequency counts for infinite stream data. Algorithms have been developed to count frequency using tilted windows based on the fact that users are more interested in the most recent transactions; approximate frequency counting based on previous historical data to calculate the frequent patterns incrementally and track the most frequent k items in the continuously arriving data.


 

Stream data is typically happened in science and engineering applications. It is essential to do stream data mining in these applications and develop application-specific approaches, e.g., real-time anomaly detection in computer network analysis, in electric power grid supervision, in weather modeling, in engineering and security surveillance.
Reference: text book


download file now

Read more »

Saturday, September 2, 2017

Stream Desktop with VLC

Stream Desktop with VLC


On the server computer, lauch VLC. Go to Media->streaming.
Go to Capture tag, select Desktop for Capture mode; pick up a right number for the frame rate.
Click Stream.
On the Stream Output page, check RTP, fill Address with the IP of the client computer.
In the Profile section, check MPEG-TS on Encapsulation tag; check video, select MPEG-4 ( or other codes, which have been installed on your computer) for Codec on Video codec tag; check Audio, select MP3 for Codec on Audio codec; click stream.

However, you cannot watch good video played on the desktop because the stream is produced in real time with compromised quality.

download file now

Read more »

Friday, September 1, 2017

stream editing shell php

stream editing shell php


place var1,var2,.... inside common file tempale.xml which u need to add values automatically,
eg :- config file with 2 variables, user_name=VAR1 and path=VAR2

inside php file,

$username=udara;
$path=/var/www/mobsync;
$create=cat tempale.xml | sed -e "s/VAR1/.$username./g" | sed -e "s/VAR2 /.$path./g" > template_new.xml;
exec($create);


download file now

Read more »

Thursday, August 31, 2017

Stream Videos To Chromecast From The Command Line Using Stream2Chromecast

Stream Videos To Chromecast From The Command Line Using Stream2Chromecast



Stream2Chromecast is a command line Chromecast media streamer for Linux. The tool can transcode unsupported formats in real time and play them on the Chromecast.

Those who prefer a GUI for for streaming videos to Chromecast can use Videostream for Google Chromecast, a Chrome extension that allows playing local videos (including formats that arent directly supported by Chromecast) on your Chromecast. It supports subtitles, comes with iOS and Android remote controls, and more.


Stream2Chromecast features:
  • cast audio and video to a Chromecast device;
  • pass an URL to be played on the Chromecast; the file must be streamable and a Chromecast supported format since it cant be transcoded;
  • can transcode any formats not supported by the Chromecast in real time (using FFmpeg or Libav), so you dont have to convert any video manually;
  • provides basic control commands: pause / unpause / stop playback (currently this only works when not transcoding), set or mute volume;
  • allows specifying a device when multiple Chromecasts are connected on the same network;
  • supports passing custom custom transcoder parameters to ffmpeg or avconv (thanks to this, you can set the quality, add subtitles even though Stream2Chromecast doesnt directly support it, etc.);
  • supports specifying the port to use for streaming media.

For audio-only files, no metadata (artist, title, cover image, etc.) is displayed by Chromecast.

You may be wondering how Stream2Chromecast compares to castnow, another command-line Chromecast player. 

I initially wanted to write about both castnow and Stream2Chromecast. However, castnow had quite a few issues in my test under Ubuntu 16.04, such as stuttering playback for MKV files, subtitles didnt work with the "--tomp4" flag (which transcodes the video to MP4), and more.

Furthermore, castnow is currently looking for a new maintainer, and its last GitHub commit dates back to April, 2016, so it doesnt look like it will receive any improvements or bug fixes anytime soon.


Basic Stream2Chromecast usage


Notes:
  • the instructions below assume youve installed Stream2Chromecast from the main WebUpd8 PPA (see the installation instructions below). If you install Stream2Chromecast manually, youll need to use the full path to stream2chromecast.py (e.g.: "/path/to/stream2chromecast.py /path/to/my_media.mp4") for the commands below;
  • the computer running Stream2Chromecast and the Chromecast device must be in the same network;
  • ffmpeg or libav-tools are required for transcoding. If both are installed, ffmpeg is used by default.

To stream a supported media file (you can find a list of the media supported by Google Cast, HERE)
 to your Chromecast, simply use the following command:
stream2chromecast "/path/to/some-video.mp4"
Replacing "/path/to/some-video.mp4" with the exact path and filename of the video you want to play (e.fg.: stream2chromecast "/home/andrei/Videos/VIDEO1.mp4").

In my test, Stream2Chromecast failed to connect to my Chromecast if I didnt specify the Chromecast IP address, while other tools, such as pulseaudio-dnla, didnt have this issue, so Im guessing this is a bug.

If thats the case for you too, you can specify the Chromecast IP by adding the "-devicename" flag followed by the Chromecast IP address, to the stream2chromecast command, like this:
stream2chromecast -devicename CHROMECAST_IP_ADDRESS "/path/to/some-video.mp4"
Where "CHROMECAST_IP_ADDRESS" is the Chromecast IP address. You can find out your Chromecast IP address either by looking at your routers connected devices list or from the Google Cast mobile app, under "Device settings", under "Information" (at the bottom of the Device Settings).

Note that if youre having the same issue as me, and you need to enter the device IP address, you must do this for all Stream2Chromecast commands!

In the same way, you can also specify the Chromecast name:
stream2chromecast -devicename CHROMECAST_NAME "/path/to/some-video.mp4"

If you want to play an unsupported format (you can find a list of the media supported by Google Cast, HERE) on your Chromecast, you need to add the "-transcode" flag and have either Libav or FFmpeg installed:
stream2chromecast -transcode "/path/to/some-video.avi"
Where "/path/to/some-video.avi" is the exact path and filename of the media file you want to play on your Chromecast. You can append other flags to this command, like "-devicename CHROMECAST_IP_ADDRESS", which Ive mentioned above.

Stream2Chromecast also supports specifying custom transcoder parameters. As an example, heres a command that passes the device IP address, transcodes the video, and adds subtitles via a custom FFmpeg parameter (for FFmpeg only):
stream2chromecast -devicename CHROMECAST_IP_ADDRESS -transcodeopts -vf subtitles="/path/to/some-video.srt" -transcode "/path/to/some-video.avi"
Where CHROMECAST_IP_ADDRESS is your Chromecast IP address, "/path/to/some-video.avi" is the exact path and filename of the video you want to play on the Chromecast, and "/path/to/some-video.srt" is the exact subtitle path and filename of the subtitle file you want to use.

More about the FFmpeg subtitle filters, HERE.

Update: the app now allows playing a supported file from an URL (the file must be streamable and cannot be transcoded). To play a file from an URL, simply use:
stream2chromecast -playurl URL
Where URL is the video file URL, e.g. "http://www.example.com/my_media.mp4".

To stop stream2chromecast from streaming, either press Ctrl + C in the terminal where you ran the Stream2Chromecast (sometimes this can throw an exception / error - ignore it), or run the following command in a different terminal window:
stream2chromecast -stop

To view all the Stream2Chromecast options, run it in a terminal without any parameters:
stream2chromecast
Or visit the Stream2Chromecast GitHub page.


Download / Install Stream2Chromecast


Ubuntu 16.04 and 14.04 / Linux Mint 18 or 17.x users can install Stream2Chromecast by using the main WebUpd8 PPA. Add the PPA and install it using the following commands:
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt update
sudo apt install stream2chromecast

If you dont want to add the PPA or you dont use Ubuntu, you can grab the deb from HERE or download Stream2Chromecast from GitHub (either via Git or by downloading the latest code as a .tar.gz archive - HEREs a direct link).

Report any bugs you may find @ GitHub.

Also see: How To Stream Audio To A Chromecast Or DLNA / UPnP Device From Linux (Using pulseaudio-dnla)

Thanks to Mahdi for the tip! Image via Wikipedia.

download file now

Read more »