Archive

Articles taggués ‘vidéo’

How to live stream video from webcam on Linux

18/03/2016 Comments off

Source: Xmodulo

Have you ever wanted to live stream a video feed from your webcam for someone else? You could use any existing video chat software such as Skype, Google+ Hangouts. However, if you do not want to rely on any third-party streaming infrastructure, you can set up your own webcam streaming server in house.

In this tutorial, I will describe how to live stream video from webcam by using VLC. VLC is an open-source, cross platform media player which can handle virtually all video and audio formats. VLC can also run as a streaming server supporting various streaming protocol such as RTP, HTTP, RTSP, etc.

Before attempting to set up webcam streaming on your own, you need to understand the huge potential security risk of streaming a webcam over the Internet. Anyone can tap into your streaming feed unless you properly access control the streaming server, and encrypt the streaming traffic. I’ll briefly mention several security protections against threats towards the end of the tutorial.

Install VLC on Linux

Before setting up a streaming server with VLC, install VLC first.

To install VLC on Debian, Ubuntu or Linux Mint:

$ sudo apt-get install vlc

To install VLC on Fedora, first enable RPM Fusion’s free repository, and then run:

$ sudo yum install vlc

To install VLC on CentOS or RHEL 6, first set up EPEL repository, and then use the following commands:

$ cd /etc/yum.repos.d/
$ sudo wget http://pkgrepo.linuxtech.net/el6/release/linuxtech.repo
$ sudo yum install vlc

Verify Webcam Device on VLC

Next, verify whether a webcam device is successfully detected on your Linux system and VLC.

To do so, first find out the device name of your webcam with the following command. In this example, the device name of the webcam is /dev/video0.

$ ls /dev/video*
/dev/video0

Now use the following command to test video from your webcam. Replace « video0 » with your own device name.

$ vlc v4l2:///dev/video0

If your webcam is successfully detected by VLC, you should see a video stream of yourself.

Configure Webcam Streaming on VLC

Assuming that your webcam is successfully recognized by VLC, I am going to show how to configure webcam streaming. In this setup, webcam is streamed over HTTP in WMV format.

To configure VLC for webcam streaming, first launch VLC.

$ vlc

Choose « Streaming » from VLC menu.

9652347212_67126e2037

On the screen, choose webcam/audio device name (e.g., /dev/video0 for webcam, and hw:0,0 for audio). Click on the checkbox of « Show more options ». Make a note of value strings in « MRL » and « Edit Options » fields. We will use these strings later in the tutorial. Click on « Stream » button at the bottom.

Lire la suite…

Categories: Logiciel Tags: , ,

Installation de Plexmediaserver

07/07/2015 Comments off

Installation de Plexmediaserver

L’installation de Plexmediaserver se fera en deux parties (console et sur Plexmediaserver).

1er Partie :

sudo apt-get install curl
echo "deb http://shell.ninthgate.se/packages/debian squeeze main" | sudo tee -a /etc/apt/sources.list.d/plexmediaserver.list
sudo curl http://shell.ninthgate.se/packages/shell-ninthgate-se-keyring.key | sudo apt-key add -
sudo apt-get update
sudo apt-get install plexmediaserver

Plexmediaserver est installé normalement .

Code Init qui peuvent être utile :

Start

service plexmediaserver start

Stop

service plexmediaserver stop

Restart

service plexmediaserver restart

Status

service plexmediaserver status

Résumons un peu la situation
Nous avons maintenant accès à http:// IPSERVEUR:32400/web/ et nous pouvons nous connecter mais le serveur ne dis que nous n’avons pas les permissions !

Remarque : Pour se connecter , il faut un compte Plex (aller sur plex.tv et inscrivez vous c’est gratuit)

2e Partie :

Pour pouvoir activer Plexmediaserver, nous devons nous connecter à l’URL (http:// IPSERVEUR:32400/web/) local comme si nous étions le serveur. Et pour ça , rien de plus facile , nous allons créer un tunnel SSH.

ssh -L 32400:127.0.0.1:32400 root@IPSERVEUR

De là, aller sur votre navigateur web (chrome, firefox,…) à l’adresse suivante :

127.0.0.1:32400/web/

Vous accéderez en local et pourrez activer Plexmediaserver.

140125062519321314

Une fois installé , vous arrêtons le Tunnel SSH avec cette ligne code suivante :

quit

Vous pouvez accéder maintenant à cette URL :

http://IPSERVEUR:32400/web/
Categories: Logiciel, Tutoriel Tags: ,

Connecting to your Hikvision IP camera

26/05/2015 Comments off

Try the following connection options in iSpy to connect to your Hikvision IP camera. If VLC or FFMPEG options are available we recommend you try those first as they will often be faster and include audio support. If you don’t have VLC installed (or are experiencing problems with the VLC plugin) you may be able to use the same URL under the FFMPEG source type (VLC is based on FFMPEG).

hikvision-domeThe settings for Hikvision cameras are built into our open source project ispy – click « Add » then « IP camera with wizard » to automatically setup your Hikvision cameras. If the camera is not listed in iSpy then click « Get Latest List » when on the add camera wizard. If you need to modify the URL then add or edit the Hikvision camera in iSpy and you can modify the connection type and URL in the video source dialog (button is top of the first tab). Lire la suite…

Categories: Matériel, Réseau, Système Tags:

Raspberry Pi Camera Streaming to VLC Player

09/02/2014 Comments off

Recently I discovered the pi’s in my quest for making a device with recognition software to locate items on the ground while being attached to a multi-rotor helicopter.

The Raspberry Pi is perfect. only needing 5v to run means its great for running off batteries etc. anyway to the streaming part.

To stream to VLC from your Raspberry Pi Camera to your computer over a network you need to install VLC Player on both the Raspberry Pi & PC/ Mac what ever.

for the PC/ MAC its simple just go to the VLC downloads page – http://www.videolan.org/ as for the Pi its more complicated.
Lire la suite…

How to convert .rmvb to .avi (on PowerPC and Intel Macs)?

28/01/2014 Comments off

The good news is it’s very easy. The bad news is you’ll need a PowerPC Mac.A big thank you to Bluemint for pointing out an Universal Binaries version of the Real Codec is actually available, making the conversion possible on both PowerPC and Intel Mac. The instructions below are herewith updated.

What you’ll need:

  1. ffmpegX – It’s a Mac OS X graphic user interface designed to easily operate more than 20 powerful Unix open-source video and audio processing tools
  2. mpeg2enc – Download to your Downloads folder.
  3. mencoder & mplayer – Download and decompress the zip file.

Setup:

The first time you launch ffmpegX it’ll ask you to locate three components (items 2 & 3 above). Click on the respective “Locate” buttons to tell ffmpegX where they are. After that, enter your Mac OS X login password (ffmpegX won’t work if your login password is empty) and click the “Install” button.

Download and Install the Real Codec (Universal Binaries)

  1. Download the “Mac OS X x86″ binary codec package from one of these links on this page.
  2. Unzip the downloaded zip file and install the codec package.
  3. Select “Go to folder …” from Finder’s “Go” menu.
  4. Type “/usr/local/lib/” in the input text field and click “Go”
  5. You should see a “codecs” folder in the new window.
  6. Drag the “codecs” folder to your Desktop, and rename it to “reallib”.
  7. Move the “reallib” folder to “/Library/Applications Support/ffmpegx/”.

Performing the conversion to .avi

UB Rockz on any valid unicode Path/Filename.

ffmpegx-rmvb
Drag and drop your rmvb file into the “From” well and just click the “Encode” button to start encoding. Unless you’re an expert user, do not be tempted to change any settings when converting a .rmvb file.

In other words, for a successful run, just drag, drop, and click Encode. What more can you ask for?

Footnotes:

  • Re-launch ffmpegX if you messed up the default settings.
  • You can close ffmpegX’s main window after clicking Encode; a new stand-alone Progress window shows you the progress.
  • Repeat the process to convert more files.
  • The “Play” button plays the .rmvb.
  • The “Preview” button plays the (partially) converted .avi file.
  • Press the Return key to stop playback.
  • You can download and install MPlayer to play your .rmvb files. However, it has a bug whereby it only plays video and totally ignores embedded links and other wonderful added features Real is famous for.
Categories: Logiciel, Système Tags: , ,

Setting up Wireless motion-detect cam

28/01/2014 Comments off

This project is based on a post by dozencrows here which explored the use of a Raspberry Pi camera board as a motion detecting video cam. It is based on the motion package in Debian. He has recompiled this with a slightly different configuration, making it convenient to work with the Raspberry Pi cam board. I take no credit for the code, but hope that details of how I have se it up on my system, and how I have connected it to a Synology NAS with built in Surveillance Station will be of interest to others. The original thread has multiple posts on it, and it can be confusing to get to grips with the code as a result.

Lire la suite…