/home/Notoveryet

Tutorial, how to stream video on VLC 1.0.0

Posted in Technology by notoveryet on July 8, 2009

VLC 1.0.0 released today. πŸ˜€
Yes, after more than 8 years of development, finally !!!

Here is the dowload link for windows and here for ubuntu.

VLC:
——
– Free, Open Source and cross-platform
– Independant of systems codecs to support most video types
– Live recording
– Instant pausing and Frame-by-Frame support
– Finer speed controls
– New HD codecs (AES3, Dolby Digital Plus, TrueHD, Blu-Ray Linear PCM, Real Video 3.0 and 4.0, …)
– New formats (Raw Dirac, M2TS, …) and major improvements in many formats…
– New Dirac encoder and MP3 fixed-point encoder
– Video scaling in fullscreen
– RTSP Trickplay support
– Zipped file playback
– Customizable toolbars
– Easier encoding GUI in Qt interface
– Better integration in Gtk environments
– MTP devices on linux
– AirTunes streaming
– New skin for the skins2 interface

Now they support Blue-ray, that’s a nice thing came along… πŸ˜‰

Anyways, after I read this news on Phoronix, I told Amit, so he downloaded installer for windows.

and we started to play with streaming,

After an hour of playing with the options and googling, we got unicast and broadcast working….

Here is the way:

first, output of ipconfig on my machine:
__________________________________

Connection-specific DNS Suffix . :

IP Address. . . . . . . . . . . . : 10.73.1.68

Subnet Mask . . . . . . . . . . . : 255.255.254.0

Default Gateway . . . . . . . . . : 10.73.0.1
__________________________________

UNICAST:
————
1- Find out the ip-address of the client computer, where you want to enjoy the video. e.g. – 10.73.1.6.
2- on the server computer, run vlc
3- Press “ctrl+s” or click on Media->Streaming.
4- Add the file to stream.
5- Press the button “Stream”.
6- Press “Next”
7- Choose “New destination” – “UDP”.
8- Press “Add”
9- give the client ip-address in the “Address” field – 10.73.1.6
10- Press “Next”
11- Press the button “Stream”
12- It’s (server) now streaming the video.
13- open vlc on client
14- Press “ctrl+n” or click on Media->open network stream
15- Choose Protocol as UDP (leave the Address field blank)
16- Press the button “Play”…

BROADCAST:
—————
– Find out the broadcast address of the network, follow the steps below for that (thanks to Amit)
———-Calculate the “Network Address”
————–“Network Address” = “IP Address” AND “Subnet Mask”
———-Now calculate the “Broadcast Address”
————–“Broadcast Address” = “Network Address” OR NOT(“Subnet Mask”)
———-here in my case “Broadcast Address” comes as 10.73.1.255
———-for more information visit this link or this one.
– Now follow the same steps as above (just use “Broadcast Address” instead of ip-address of client’s computer)

Now you can enjoy the show anywhere on the network…..

Here are some screenshots-

26 Responses

Subscribe to comments with RSS.

  1. how said, on July 10, 2009 at 10:14 pm

    How i can watch broadcast in client vlc?Way the same like unicast?Thank you

  2. notoveryet said, on July 12, 2009 at 10:54 pm

    ohh, yes..
    in the same way…
    you just need to open the VLC client for UDP…..
    that’s it…. no need to fill address or anything else..
    it’ll direcly play the stream….

  3. satish said, on August 3, 2009 at 2:02 pm

    Streaming is not happening in the client side. But it showing as streaming.

    But in the server, its streaming.

    • notoveryet said, on August 3, 2009 at 2:08 pm

      what r u trying, unicast or multicast?
      I would suggest you to try unicast first, if you find any problem, let me know….
      be sure that you are using UDP and entering correct IP address…..

  4. satish said, on August 3, 2009 at 2:36 pm

    Thanks notoveryet .

    I am trying to stream video using multicast.

    I can able to play Unicast streaming with Non HD video, uable to stream with HD Video.

    • notoveryet said, on August 3, 2009 at 3:32 pm

      1) double check the “Broadcast Address” calculated.
      2) make sure that both client and server are under the same gateway (if you are trying to watch the stream between the same machines where you tried unicast, it should worked though).
      3) All the steps will se same as in the unicast, just the address will be “Broadcast Address” insteadof “client address”.

      let’s see if it works…. πŸ™‚

  5. satish said, on August 3, 2009 at 4:22 pm

    I have tried with Unicast, its working fine. But when i try to
    do streaming through multicast.

    This is the configuration i am giving in the server machine and client machine.

    Server Side:
    ================

    1.Goto Media Tab
    2.Goto Streaming.
    3.Goto Network Tab. Give Protocol as UDP and Addres as Multicast Address (234.1.1.1).
    4.Goto File Tab. Choose Video file in the Add Tab.
    5.Click Stream Tab.
    6.Click Next. In the New Destination field, choose file as UDP and
    then click Add.Give the Multicast address with the same port no.
    7.Choose Next.
    8.Give TTL value between between 1- 255.
    9.Click Stream

    Client side:
    ==============

    1.Goto Media Tab.
    2.Choose Open Network Stream. Choose the protocol as UDP.
    3.In the Address tab, give multicast Address as 234.1.1.1
    4.Play.

    Streaming is not happening in the client machine.

    • notoveryet said, on August 3, 2009 at 5:20 pm

      here is how you should do….

      @ server:
      ————
      1) Goto Media Tab
      2) Goto Streaming
      3) Choose the media file in the file tab (no need to go for “network tab” here, since the file you are broadcasting resides locally in your system)…
      4) Click Stream Tab
      5) Click Next. In the New Destination field, choose file as UDP and then click Add, Give the broadcast address (let the port be default).
      6) Click Stream (no more next needed)…(remove the check “Activate transcoding” for lower CPU utilization at the server, but bandwidth rquirement would be more)….

      @ client:
      ———–
      1) Goto Media Tab.
      2) Choose Open Network Stream. Choose the protocol as UDP.
      3) Leave the “Address” field blank here….since client is listening to broadcast….
      4) Click the “Play” button….

      I would suggest you to try this method on the same machine, first.
      Open two VLC instances, make one of them – server with the same “Broadcast address” you are using,
      and other VLC would be the client.

      It should work this time….. πŸ™‚

  6. satish said, on August 3, 2009 at 7:13 pm

    Hai notoveryet ,

    I tried as u said with 2 vlc instances running in the same machine.

    I am using 15.15.103.x network. So i gave 15.15.103.255 in the Server machine, its streaming but in client its not happening.

    I am using this for testing notoveryet, so it will be very useful if u help me in sorting out this issue.

    – Satish.

    • notoveryet said, on August 3, 2009 at 8:21 pm

      I would be glad to sort your problems out…..
      could you provide the output of “ipconfig” of your machine?

  7. satish said, on August 4, 2009 at 9:51 am

    C:\Documents and Settings\Satish>ipconfig

    Windows IP Configuration

    Ethernet adapter Local Area Connection 3:

    Connection-specific DNS Suffix . : users.atheros.com
    IP Address. . . . . . . . . . . . : 10.12.12.101
    Subnet Mask . . . . . . . . . . . : 255.255.252.0
    IP Address. . . . . . . . . . . . : fe80::221:91ff:fe79:44a8%4
    Default Gateway . . . . . . . . . : 10.12.12.1

    Ethernet adapter Local Area Connection 2:

    Connection-specific DNS Suffix . :
    IP Address. . . . . . . . . . . . : 15.15.103.114
    Subnet Mask . . . . . . . . . . . : 255.255.255.0
    IP Address. . . . . . . . . . . . : fe80::219:d1ff:fe30:ab67%5
    Default Gateway . . . . . . . . . :

    Tunnel adapter Teredo Tunneling Pseudo-Interface:

    Connection-specific DNS Suffix . :
    IP Address. . . . . . . . . . . . : fe80::ffff:ffff:fffd%6
    Default Gateway . . . . . . . . . :

    Tunnel adapter 6to4 Tunneling Pseudo-Interface:

    Connection-specific DNS Suffix . :
    IP Address. . . . . . . . . . . . : 2002:f0f:6772::f0f:6772
    Default Gateway . . . . . . . . . : 2002:c058:6301::c058:6301

    Tunnel adapter Automatic Tunneling Pseudo-Interface:

    Connection-specific DNS Suffix . : users.atheros.com
    IP Address. . . . . . . . . . . . : fe80::5efe:10.12.12.101%2
    Default Gateway . . . . . . . . . :

    Tunnel adapter Automatic Tunneling Pseudo-Interface:

    Connection-specific DNS Suffix . :
    IP Address. . . . . . . . . . . . : fe80::5efe:15.15.103.114%2 Default Gateway . . . . . . . . . :

    I am using Local Area connection2(15.15.103.114) network notoveryet .

  8. satish said, on August 4, 2009 at 9:54 am

    I am using Local Area connection 2 notoveryet(15.15.103.114).

    C:\Documents and Settings\Satish>ipconfig

    Windows IP Configuration

    Ethernet adapter Local Area Connection 3:

    Connection-specific DNS Suffix . : users.atheros.com
    IP Address. . . . . . . . . . . . : 10.12.12.101
    Subnet Mask . . . . . . . . . . . : 255.255.252.0
    IP Address. . . . . . . . . . . . : fe80::221:91ff:fe79:44a8%4
    Default Gateway . . . . . . . . . : 10.12.12.1

    Ethernet adapter Local Area Connection 2:

    Connection-specific DNS Suffix . :
    IP Address. . . . . . . . . . . . : 15.15.103.114
    Subnet Mask . . . . . . . . . . . : 255.255.255.0
    IP Address. . . . . . . . . . . . : fe80::219:d1ff:fe30:ab67%5
    Default Gateway . . . . . . . . . :

    Tunnel adapter Teredo Tunneling Pseudo-Interface:

    Connection-specific DNS Suffix . :
    IP Address. . . . . . . . . . . . : fe80::ffff:ffff:fffd%6
    Default Gateway . . . . . . . . . :

    Tunnel adapter 6to4 Tunneling Pseudo-Interface:

    Connection-specific DNS Suffix . :
    IP Address. . . . . . . . . . . . : 2002:f0f:6772::f0f:6772
    Default Gateway . . . . . . . . . : 2002:c058:6301::c058:6301

    Tunnel adapter Automatic Tunneling Pseudo-Interface:

    Connection-specific DNS Suffix . : users.atheros.com
    IP Address. . . . . . . . . . . . : fe80::5efe:10.12.12.101%2
    Default Gateway . . . . . . . . . :

    Tunnel adapter Automatic Tunneling Pseudo-Interface:

    Connection-specific DNS Suffix . :
    IP Address. . . . . . . . . . . . : fe80::5efe:15.15.103.114%2
    Default Gateway . . . . . . . . . :

  9. satish said, on August 4, 2009 at 5:06 pm

    C:\Documents and Settings\Satish>ipconfig

    Windows IP Configuration

    Ethernet adapter Local Area Connection 3:

    Connection-specific DNS Suffix . : users.atheros.com
    IP Address. . . . . . . . . . . . : 10.12.12.101
    Subnet Mask . . . . . . . . . . . : 255.255.252.0
    IP Address. . . . . . . . . . . . : fe80::221:91ff:fe79:44a8%4
    Default Gateway . . . . . . . . . : 10.12.12.1

    Ethernet adapter Local Area Connection 2:

    Connection-specific DNS Suffix . :
    IP Address. . . . . . . . . . . . : 15.15.103.114
    Subnet Mask . . . . . . . . . . . : 255.255.255.0
    IP Address. . . . . . . . . . . . : fe80::219:d1ff:fe30:ab67%5
    Default Gateway . . . . . . . . . :

  10. satish said, on August 4, 2009 at 5:07 pm

    This is my Ip configuration. I am using Local Area connection 2(15.15.103.114) network.

    • notoveryet said, on August 4, 2009 at 7:50 pm

      try with Connection 3 (10.12.12.101):
      with broadcast address : 10.12.15.255…..

  11. satish said, on August 6, 2009 at 11:27 am

    Its working now.

    I just disabled Local Area Connection 3. In LAN 3, Interference Metric was 1 and Local Area Connection 2 Interference Metric was 0.

    When i disabled the LAN 3 interface, it started working notoveryet.

    But i dont know, how this Interference metric is stoping the Streaming in the Client Machine????

    • notoveryet said, on August 6, 2009 at 7:34 pm

      well, i don’t have any idea about “Interference metric”….
      but good to hear that it’s working for you now…..
      and thanks for letting me know….. πŸ˜‰

  12. satish said, on August 7, 2009 at 10:25 am

    notoveryet,

    Do u have any Idea about IGMP???/

    Can we learn IGMP by streaming Video and capturing the sniffer traces in both Server machine and Client Machine.

  13. satish said, on August 7, 2009 at 12:31 pm

    Notoveryet,

    Normal video file is working, but when i use HD video streaming is not happening in the client machine.

    But when i play the same file directly in the client machine, its playing.

    Whethet VLC 1.0 supports HD Streaming???/

    • notoveryet said, on August 15, 2009 at 11:27 pm

      i’m able to stream the HD videos….
      the only problem was Transcoding is happening even if I uncheck the option “Activate Transcoding”…
      Workaround is, just delete all the default transcoding profile, using the “cross button” (don’t worry next time when you open VLC you get the profiles back), uncheck the “Activate Transcoding” and “Stream”…. it will work…. πŸ™‚
      Video wasn’t smooth though….since the network I have here is an ad-hoc network with 11 Mbps bandwidth and these 1080p video require atleast 20 Mbps bandwidth to run smoothly…..
      what’s the bandwidth of your LAN?

  14. xxx said, on August 12, 2009 at 11:08 am

    how 2 broadcast in different gateways by http or other means….

  15. Ken said, on August 13, 2009 at 10:53 pm

    I’m still struggling with this. I just downloaded it
    version 1.0.1

    What I am trying to do is what I have been doing
    with Windows Media Encoder 9. Stream my USB TV adapter
    to the internet for anyone to see.

    Can I do this with VLC meaning multiple people using
    Windows Media Player can connect to watch the video/audio?

    How do I do this. Every example I found is for the older
    versions what don’t look like this new one.

    thanks
    Ken

    • notoveryet said, on August 15, 2009 at 11:35 pm

      sorry Ken,
      but i’ve not tried it yet..as soon as I get my hands on it,
      i’ll post the howto…. πŸ™‚

  16. Satish said, on August 18, 2009 at 5:49 pm

    Notoveryet,

    I am using 2 Laptops with 1Giga byte Ethernet conectec back to back with Cat6 Lan cable.

    Even in Lan Status, it shows 1GBPS connection.

    But when i try to stream, video is not continous in the client machine. But with the normal video file, streaming is proper in the client machine.

    • notoveryet said, on August 18, 2009 at 7:49 pm

      there can be two possibilities-
      1) VLC server is trying to encode the video while streaming, and the CPU is unable to do it for realtime. Check the CPU usage of server computer while streaming, If CPU usage is 100% then try to deactivate the transcoding.
      2) Or the enough bandwidth is not available (even if you are using “gigabit” ethernet). Try to transfer a big file (say, a movie file) between the computers and check the transfer speed, if the speed is less than 3 MBps (Mega bytes per second) then problem is this one.

      One more thing, LAN status does not show connection in “Bytes per second (Bps)”, it shows in “bits per second (bps)”, so the connection is 1 Gbps (Giga bits per second).

  17. Fred said, on September 11, 2009 at 6:14 pm

    Hi, I tried your unicast across 2 computers on my network and it works. However I’m trying to do broadcast now. First question: is broadcast the same as multicast?

    Anyways I followed your steps. However, I realized the Default Gateway in my server (Windows 2000 Professional) is 10.20.2.1 whereas the Default Gateway on my client (Windows 7 Professional RTM) is 10.5.2.1.

    I followed your steps for unicast and entered in the broadcast IP for the server, which didn’t work. Then I tried the broadcast IP for the client, still no success. Can you help me try to get broadcast up?


Leave a reply to notoveryet Cancel reply