Difference between revisions of "Documentation:Streaming HowTo/Stream a File"

From VideoLAN Wiki
Jump to navigation Jump to search
m (Add wikilinks)
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
==Stream a file with VLC==
 
==Stream a file with VLC==
  
  % '''vlc -vvv video1.xyz --sout udp:192.168.0.42 --ttl 12'''
+
  {{%}} '''vlc -vvv video1.xyz --sout udp:192.168.0.42 --ttl 12'''
 
where:
 
where:
 
* '''video1.xyz''' is the file you want to stream,
 
* '''video1.xyz''' is the file you want to stream,
 
* '''192.168.0.42''' is either:
 
* '''192.168.0.42''' is either:
** the IP address of the machine you want to unicast to;
+
** the [[IP address]] of the machine you want to [[unicast]] to;
 
** or the DNS name the machine you want to unicast to;
 
** or the DNS name the machine you want to unicast to;
** or a multicast IP address.
+
** or a [[multicast]] IP address.
* '''12''' is the value of the TTL (Time To Live) of your IP packets (which means that the stream will be able to cross 11 routers).
+
* '''12''' is the value of the [[TTL]] (Time To Live) of your IP packets (which means that the stream will be able to cross 11 routers).
  
 
If you want to stream the file continuously, add the '''--loop''' option.
 
If you want to stream the file continuously, add the '''--loop''' option.
  
 +
Of course, you can add more options (like [[transcoding]], or streaming to a TCP port, etc.), but this should get you started.
  
 
{{Documentation}}
 
{{Documentation}}

Latest revision as of 04:08, 28 February 2019

VLC Streaming HowTo

Introduction
Streaming, Muxers and Codecs

Main
Easy Streaming
Advanced Streaming Using the Command Line
Command Line Examples

VLM
VLM - Multiple Streaming and Video on Demand

Tutorials and examples
Receive and Save a Stream
Convert files to other formats
Stream a File
Stream a DVD
Stream a DVB Channel
Stream from Encoding Cards and Other Capture Devices
Stream from a DV Camcorder
Streaming for the iPhone

IPv6
Streaming over IPv6
View this alone

Stream a file with VLC

% vlc -vvv video1.xyz --sout udp:192.168.0.42 --ttl 12

where:

  • video1.xyz is the file you want to stream,
  • 192.168.0.42 is either:
    • the IP address of the machine you want to unicast to;
    • or the DNS name the machine you want to unicast to;
    • or a multicast IP address.
  • 12 is the value of the TTL (Time To Live) of your IP packets (which means that the stream will be able to cross 11 routers).

If you want to stream the file continuously, add the --loop option.

Of course, you can add more options (like transcoding, or streaming to a TCP port, etc.), but this should get you started.

This page is part of official VLC media player Documentation (User GuideStreaming HowToHacker GuideModules)
Please read the Documentation Editing Guidelines before you edit the documentation
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.