0% found this document useful (0 votes)
5K views2 pages

Video Streaming (Linux) : Apt-Get Install kernel-headers-X.X.X.X

This document provides instructions for setting up video streaming from a webcam on Linux. It describes: 1) Installing the latest kernel headers and searching for and installing the appropriate webcam driver. 2) Installing VLC media player for streaming. 3) Starting the video stream server from the command line using VLC and specifying options like the video device, size, and port. Other computers can then receive the stream by connecting to the server's IP address and port in VLC.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5K views2 pages

Video Streaming (Linux) : Apt-Get Install kernel-headers-X.X.X.X

This document provides instructions for setting up video streaming from a webcam on Linux. It describes: 1) Installing the latest kernel headers and searching for and installing the appropriate webcam driver. 2) Installing VLC media player for streaming. 3) Starting the video stream server from the command line using VLC and specifying options like the video device, size, and port. Other computers can then receive the stream by connecting to the server's IP address and port in VLC.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

VIDEO STREAMING (LINUX)

-web kamera-

Informacije o kernelu koji koristimo: uname -a

a) instaliranje novog kernela bez skidanja cijelog kernela:


apt-get install kernel-headers-X.X.X.X
(X.X.X.X predstavlja numeričku oznaku najnovijeg kernela – njegov header)

b) traženje drivera za web kameru i instaliranje:


apt-get search logitech | less

- nakon nalaženja drivera:


apt-get install ime_drivera

c) provjeravanje s kojim je kompajlerom kompajliran naš kernel, pa s istim treba iskompajlirati


instalirane drivere (dosta važno, kamera inače ne radi ako to nije napravljeno kako treba):
dmesg | less

- podešavanje kompajlera na onaj koji nam treba:


export CC=/usr/bin/gcc-3.4
(pronađeno u [Link] koji dolazi s driverima)

d) skriptu za učitavanje modula i drivera pokrećemo upisujući u konzolu naredbu:


./[Link]
(naziv datoteke može zavisiti o modelu kamere te skinutim driverima)

****Time je na računalu instalirana kamera.****

INSTALACIJA VLC PROGRAMA:


apt-get install vlc*
(* označava zadnju verziju programa)
POKRETANJE/PRIMANJE STREAM-A

- što se tiče streamanja iz linuxa pomoću VLC-a, GUI (graphic user interface) je jako
nestabilan te često dolazi do segmentacijskih grešaka i rušenja programa, stoga stream
pokrećemo iz konzole

- za pokretanje stream servera (računalo koje će posluživati streamingom druga računala, a


ostala računala se trebaju spojiti na njega putem vlc-a ili nekog drugog programa, npr.
Windows Media Player) u konzolu upisujemo sljedeći kod (uzet sa adrese
[Link]

vlc -I dummy -v --noaudio --ttl 12 v4l:/dev/video0:size=320x240 \ --sout


'#transcode{vcodec=mp4v,vb=128}:std{access=mmsh,dst=:8080}'

- gornji kod se pokazao najstabilnijim pa ga stoga koristimo

- stream na nekom drugom računalu primamo naredbom (konzola):


vlc mmsh://x.y.z.u:8080
(gdje je x.y.z.u ip adresa našeg stream servera,a 8080 trenutni port preko kojeg se vrši streaming)

Više o samom streamanju iz VLC-a:

[Link]
[Link]
[Link]

You might also like