---
# System prepended metadata

title: Stream video using VLC

---

# Stream video using VLC

* Open VLC instance. 
* In *File* tab choose Convert/Stream


---

### 1. Upload Media and Choose Profile
* Upload video with MP4 format
* Set *Profile* to be Video-H.264(TS)


![](https://i.imgur.com/6ZqKMc8.png =500x60)



---

### 2. Calculate bitrate for output video
720x1024 = 737,280 pixel count
> resolution. height x width

frame rate = 25 
> fps of output video stream

scale = 1
choose average motion = 2 
>where 1 - low motion 4 - high motion

***Formula:***
(737,280 * 25) * 2 * 0.07 = 2,580,480 / 1000 = **2,580 kbps bitrate**
> multiply by 0.07 in order to get the bit rate in bps


---

### 3. Profile customization
* Set *Encapsulation*  to MPEG/TS
* Fill *Video codec* tab with calculated parameters. 
> We set small resolution in order to get smooth image. 


![](https://i.imgur.com/tE9o6Sm.png =500x350)

* Turn off the *Audio codec*
* Press Apply


---

### 4. Choose Destination
* Go to *Setup Streaming*

![](https://i.imgur.com/ui7v5kt.png =500x350)


![](https://i.imgur.com/uhGip7d.png =500x350)

1. Select *Type* - RTP
2. *Address* - set your local address 
 > You can set 0.0.0.0, 127.0.0.1 or your IP address 
3. *TTL("Time-To-Live")*- leave it default
4. Set free *Port*. 
> Other fields leave empty

* Press Apply and Stream
 


---

### Now you can have access to your stream in local network by link:

    rtp://<your_ip_address>:<port>/
### 


---

### [Extra] Multiple VLC instances for Mac OS 

> On the Mac, running multiple instances of VLC is not supported out of the box.

Create a Droplet/App by pasting the code below into a new AppleScript Editor script and save it as an application:


    on run
        do shell script "open -n /Applications/VLC.app"
        tell application "VLC" to activate
    end run

    on open theFiles
        repeat with theFile in theFiles
            do shell script "open -na /Applications/VLC.app " & quote & (POSIX path of theFile) & quote
        end repeat
        tell application "VLC" to activate
    end open
    
    