VLC Application VII: Use VLC to do unicast, multicast and on-demand server "turn"

Source: Internet
Author: User

VLC Application VII: Using VLC for unicast, multicast, and on-demand servers2009-05-31 15:56:03Tags: VOD multicast VLC VLM unicast http://ubuntu.mezoka.com/file/original works, allowed to reprint, please be sure to use hyperlinks in the form of the original source of the article, the author information and this statement. Otherwise, the legal liability will be investigated. http://jeremiah.blog.51cto.com/539865/161876or the first two days to help "pig sister" thinking about graduation design, think of VLC can be used as a VOD server, instead of the live555 Media server on the blog, because live555 Media server does not really good. Looked up some information, in the VLC group inside disorderly asked a pass, finally solved. Good things, everyone share.
In this thanks VLC research group "cherry wood" children's shoes provide help. 1. Required Software
vlc-0.9.9 or vlc-0.8.6i, the main test is compared to the new version of 0.9.9.
Putty: A very good piece of software that sets Telnet,ssh remote login. : Http://wrc.gro.clinux.org/putty/putty.exe 2. Command line to start VLC, and open background information display, help to observe the background information
Open cmd, and CD to VLC directory, executeVLC-VV--extraintf=logger 3. Turn on VLC's Telnet service
vlc-0.9.9 on the interface select Tools, interface->telnet Console
The Background DOS window will react and show[00000403] Main interface debug:looking for interface Module:1 candidate
[00000403] Main interface debug:creating VLM
[00000405] main VLM daemon debug:thread 5112 (VLM thread) created at priority 0
(.. /.. /src/input/vlm.c:112)
[00000405] main VLM Daemon Debug:thread started
[00000403] Telnet interface:using the VLM interface plugin ...
[00000403] Main interface debug:net:listening to 127.0.0.1 Port 4212
[00000403] Telnet interface:telnet interface started on interface 127.0.0.1 421
2
[00000403] Main interface debug:using interface module "Telnet"
[00000403] Main interface Debug:timer module_need (): 19.000 ms-total 19.000
MS/1 INTVLS (AVG 19.000 ms)
[00000403] Main interface debug:thread 5136 (interface) created at priority 0 (
.. /.. /src/interface/interface.c:168)
[00000403] Main interface Debug:thread startedNote that the main interface debug: net:listening to 127.0.0.1 Port 4212 This sentence, that VLC now telnet monitoring is 127.0.0.1 this address and 4212 this Port. If the IP is not shown, the general use of 127.0.0.1 is no problem. 127.0.0.1 the native, and localhost is the same meaning. 4. Start Putty.exe
Host name (or IP) input: 127.0.0.1
Port: 4212
Connection type: Select Telnet
Click Open.
If the word "Password:" does not appear, the point is turned off, which means that there is no telnet. (This time you can enter the cmd inside the telnet 127.0.0.1 4212, see the result should be connected to the 127.0.0.1 ... The connection to the host could not be opened on port 4212: The connection failed, or the connection to the host was lost. The main reason for a telnet connection without cmd is that it is not visible when the command is entered. This time, please shut down the firewall, anti-virus software and all related software , but poisoned don't look for me hey. (*^__^*) hehe ... Continue on.
If the above problem does not occur, after password: enter "Admin", there is no clear text echo. Successful login will show:Welcome, Master. 5. VOD Service set up on demand
Enter separately:New VOD1 VOD enabled
Setup VOD1 input D:/01.aviexplained below:
New has a name called Vod1 of the VOD, set VOD1 input to D:/01.avi. verify: Turn on another VLC and open rtsp://127.0.0.1/vod1. It should be ready to play. 127.0.0.1 can be replaced by their own IP. 6. Set up a multicast server
Continue typing:New CH1 Broadcast enabled
Setup CH1 input D:/02.avi [loop]
Setup Ch1 output #duplicate {dst=rtp{dst=226.0.0.6,mux=ts,port=1234}}
Control CH1 PlayExplained below:
New has a name called Ch1 's broadcast. The input of the set CH1 is D:/02.avi,loop optional, which indicates loop playback. Set the output of Ch1 to #duplicate{dst=rtp{dst=226.0.0.6,mux=ts,port=1234}, which indicates that the TS stream of the RTP protocol is sent to the multicast address of 226.0.0.6, port 1234. Controls CH1 playback.
Expansion:
1) output can be followed by the Sout parameter. You can refer to the generated stream output string for the streaming output interface, vlc-> media, and so on.
2) Control ch1 can also add Stop,pause,seek percentage later. Represents a stop, pause, and jump to a percentage of a position. verify: Turn on a VLC and open rtp://226.0.0.6:1234. It should be ready to play. 7. Erecting a unicast server
The output in the 6th step is replaced by the unicast address on the line. The others are the same. Be careful not to have new names. 8. Save the operation just now
Continue typingSave D:/01.cfg has just saved the operation to d:/01.cfg inside, except control. You can view the contents in a text editor such as Notepad.
If VLC is turned on again, you can enter the load d:/01.cfgread the action you just saved and continue with the operation or control.          with this configuration, an instance of VLC can provide multiple services, including unicast, multicast, and on-demand. Really powerful. so the last blog of the streaming media server can be replaced by VLC. It's not technically difficult to keep up with the previous log as a Web site for a simple streaming service or a client like pplive.

VLC Application VII: Use VLC to do unicast, multicast and on-demand server "turn"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.