Difference between revisions of "Windows"

From VideoLAN Wiki
Jump to navigation Jump to search
m (Reverted edits by Jajo9 (Talk); changed back to last version by Mrlitsta)
Line 1: Line 1:
<div id="nolabel" style="overflow:auto;height:1px;">
+
The '''Windows port''' of VLC usually starts up with the [[WxWindows]] interface which is used in the [[Linux]] one as well. The user can decide to use the [[Skins]] interface instead to be able to modify the interface according to his or her mood.
  
[http://www.action-meds.com cheap butalbital]
+
==Keyboard shortcuts in the Windows (directx) video output==
[http://www.5stardrugs.com buy tramadol]
 
[http://www.24-7pills.net tramadol online]
 
[http://www.american-meds.net butalbital discount]
 
[http://www.amazing-pills.com butalbital cheap]
 
buy tramadol online. online tramadol from our pharmacy, taking tramadol buy information tramadol, side effects tramadol, purchase tramadol online. cod online tramadol, tramadol india, cheap tramadol online, tramadol online, pharmacy online store
 
tramadol 50 mg. low price tramadol, tramadol pain treatment - tramadol hcl 50? - 120 tramadol. tramadol sales, buying cod tramado l, tramadol for humans, cheap tramadol online, overdose tramadol. order tramadol pictured tramadol pill tramadol seizure. cod tramadol cod, tramadol pdr, order pharmacy tramadol. buy prescription tramadol drug tramadol - tramadol side.
 
is tramadol a, order tramadol online, tramadol hcl, tramadol drug test .tramadol uses order tramadol overnight paypal tramadol
 
tramadol com tramadol tablets tramadol no perscription remove tramadol.
 
[http://20six.co.uk/cheaptramadol cheap tramadol]
 
[http://20six.co.uk/ordertramadol order tramadol]
 
[http://20six.co.uk/onlinetramadol1 online tramadol]
 
[http://20six.co.uk/tramadolonline tramadol online]
 
[http://20six.co.uk/tramadoldiscount tramadol discount]
 
[http://20six.co.uk/purchasetramadol purchase tramadol]
 
[http://20six.co.uk/ordersoma order soma]
 
[http://20six.co.uk/onlinesoma1 online soma]
 
[http://20six.co.uk/online-viagra online viagea]
 
[http://20six.co.uk/orderviagra order viagra]
 
[http://20six.co.uk/cheapviagraonline cheap viagra online]
 
[http://20six.co.uk/purchaseviagra purchase viagra]
 
[http://20six.co.uk/cheap-ultram cheap ultram]
 
  
[http://spaces.msn.com/cheap-tramadol/ cheap tramadol]
+
Note: these shortcuts are only default settings and can be customized (along with many others). To tweak hotkeys settings, go to Settings->Preferences->Hot keys
[http://spaces.msn.com/buy-viagra/ buy viagra]
 
  
SEO: UndoneHeaven
+
* Left/Right/Up/Down/Enter: DVD menus navigation keys
 +
* Page Up/Page Down: seek (10 secs)
 +
* Home/End: Beginning/End of file
 +
* Space: Pause/Play
 +
* a/A/z/Z: Volume Control
 +
* f/F: fullscreen
 +
* q/Q: quit vlc
 +
* Esc: exit fullscreen/Stop input
  
[http://www.replicahours.com rolex replica]
+
==How to associate media files to VLC==
[http://www.replicahours.com/index.php?cPath=51_25 fake rolex daydate]
 
[http://www.replicahours.com/index.php?cPath=29 replica swiss]
 
[http://www.google.com/search?sourceid=navclient&gfns=1&ie=UTF-8&q=replicahours replicahours]
 
buy replica cheap best price rolex discounf fake. watches fake watch online store using paypal fedex rolex replicahours. order rolex replica now. cheap wholesale fake rolex online free shipping. 80% discount rolex replica and replicas watches. woman how to adjust a chronometer watch authorized rolex dealer, rolex watches rolex dial rolex oyster perpetual date reloj panerai replica en usa rolex watches serial numbers rolex woman daytona daytona watch replica panerai watch rolex 50th anniversary rolex daytona paul newman replica rolex buy rolex watches. ladies rolex yachtmaster white dial faux. rolex daytona manual cellini rolex for sale pictures of rolex oyster perpetual datejust rolex rolex gmt-master ii buying rolex on line fake rolex daytona gold on silver how to tell fake tag rolex oyster perpetual new tell. Replica rolex? Swiss made replica rolex watch! Cost does fake much rolex rolex presidential rolex. Rolex dials rolex sea dweller. Rolex  tudor fake rolex turkey datejust oyster perpetual rolex man rolex submariner cosmograph daytona oyster professional rolex? Datejust rolex rolex replica rolex fake rolexes for sale. Rolex submariner for sale, rolex yachtmaster! Explorer ii rolex preowned rolex watch? Cheap rolex watch, rolex daytona 116520 forum rolex. 18k gold replica ex part rolex daytona review rolex submariner 50 anniversary rolex cellini replica rolex watch fake rolex omega?
 
  
[http://www.customsoftwarenow.com custom software development]
+
VLC hasn't got a module to associate files so that if you click on a file VLC opens - the developers are working on this, and one should be available in the next full release. But you can
Software Development, custom software development, offshore  software development, outsourcing software development
+
do it yourself by following these instructions:
  
[http://www.thepublish.com press release]
+
* Rerun the installer
press release, articles, business directory, ezines, classifieds, job search,business free  b2b search advertising aerospace defense agriculture airlines automotive chemicals computers electronics semiconductors energy utilities
 
  
[http://www.ez-agents.com wholesale atv]
+
----
</div>
+
'''OR'''
 +
 
 +
'''Warning''': do this association only if you really know what you are doing!
 +
 
 +
* Open a text editor like Notepad.
 +
 
 +
* Copy this text:
 +
<pre>
 +
Windows Registry Editor Version 5.00
 +
 
 +
[HKEY_CLASSES_ROOT\.ASF]
 +
@="VlcFile"
 +
 
 +
[HKEY_CLASSES_ROOT\.ASX]
 +
@="VlcFile"
 +
 
 +
[HKEY_CLASSES_ROOT\.AVI]
 +
@="VlcFile"
 +
 
 +
[HKEY_CLASSES_ROOT\.DIVX]
 +
@="VlcFile"
 +
 
 +
[HKEY_CLASSES_ROOT\.MPEG]
 +
@="VlcFile"
 +
 
 +
[HKEY_CLASSES_ROOT\.MPG]
 +
@="VlcFile"
 +
 
 +
[HKEY_CLASSES_ROOT\.VOB]
 +
@="VlcFile"
 +
 
 +
[HKEY_CLASSES_ROOT\.WMV]
 +
@="VlcFile"
 +
 
 +
[HKEY_CLASSES_ROOT\VlcFile]
 +
@="VLC File"
 +
 
 +
[HKEY_CLASSES_ROOT\VlcFile\DefaultIcon]
 +
@="C:\\Program Files\\VideoLAN\\VLC\\vlc.exe,0"
 +
 
 +
[HKEY_CLASSES_ROOT\VlcFile\shell\Open]
 +
[HKEY_CLASSES_ROOT\VlcFile\shell\Open\command]
 +
@="C:\\Program Files\\VideoLAN\\VLC\\vlc.exe \"%L\""
 +
</pre>
 +
 
 +
* Modify the strings ''C:\\Program Files\\VideoLAN\\VLC\\vlc.exe'' to match your VLC installation.
 +
 
 +
* Save as ''vlc.reg''.
 +
 
 +
* Execute ''vlc.reg'' (add it to your registry).
 +
 
 +
* Enjoy VLC :)
 +
 
 +
'''Note''': This associate ''asf'', ''asx'', ''avi'', ''divx'', ''mpeg'', ''mpg'', ''vob'' and ''wmv'' files. If you get the idea, you can associate any file you want.
 +
 
 +
----
 +
 
 +
'''OR'''
 +
 
 +
You can also right-click the file you want to open with VLC, and then click Properties.
 +
 
 +
On the General tab, click Change.
 +
 
 +
Click the name of the program (VLC) which you want to be used to open the file.
 +
 
 +
This change affects all files that have the same file name extension as the file you selected. For example, if you change the program that opens a .jpg file, all .jpg files will be opened with this program.
 +
 +
You can also change the program that opens a file by right-clicking the file, clicking Open With, and then clicking the program name.
 +
 
 +
If VLC is not displayed, click Browse to locate it on your hard drive.
 +
 
 +
Alternatively, you can just associate media files on install.
 +
 
 +
==How To Start VLC Server with http Interface==
 +
VLC ships with a little HTTP server integrated. It is used both to stream using HTTP, and for the HTTP remote control interface.
 +
 
 +
===VLC Server Preferences Settings===
 +
1. Set up the http interface details in the VLC server application. Open VLC then select Settings > Preferences.  Click on the Advanced Settings button in the lower right hand corner of the dialog box to see all the options that are available.
 +
 
 +
2. In the left hand window click on the + button next to Interface. This will display three choices. Control interfaces, Hotkeys settings, and Main Interfaces.  Click on the plus button next to Main interfaces. This will display four settings HTTP, RC, Skins, wxWidgets. Click on HTTP to dispaly the "HTTP remote control interface settings".
 +
 
 +
3. Host address: Enter the port number that you want to use.  Default is 8080.
 +
 
 +
4. Source directory: c:\Program Files\VideoLan\VLC\http\ or enter the path where you have elected to install the application.
 +
 
 +
5. Character set: UTF-8 default
 +
 
 +
6. If you are NOT using handlers or SSL certificates the setup is complete.
 +
 
 +
7. Click on the Save button in the lower left hand corner.
 +
 
 +
 
 +
===Command Line Startup===
 +
 
 +
The VLC appplication can be run in a server or client environment.  For complicated
 +
video and audio streaming on a LAN, one should consider dedicating a machine to act
 +
as the VLC server.
 +
 
 +
To start the VLC application in a server mode with the http interface automatically
 +
set, use the following command line in your desktop shortcut. This assumes the default
 +
location for installation was selected.
 +
 
 +
<nowiki>"C:\Program Files\VideoLAN\VLC\vlc.exe" --extraintf http --intf wx</nowiki>
 +
 
 +
===Testing the Interface===
 +
 
 +
From another computer, connect to the VLC server computer using your browser to the URL
 +
 
 +
<nowiki>http://server_ip_address:8080, such as http://192.168.0.186:8080</nowiki>
 +
 
 +
The Main VLC Interface page will be displayed,
 +
 
 +
See [[Web_Interface]] for additional information
 +
 
 +
==VLC Plugin for Internet Explorer==
 +
 
 +
This section will provide guidelines to incorporate the VLC ActiveX plugin to be used to view streaming audio and video from a VLC server.
 +
 
 +
How to embed the ActiveX Plugin in a Web Page
 +
http://wiki.videolan.org/index.php/ActiveX/HTML
 +
 
 +
Supported ActiveX Function Calls
 +
http://wiki.videolan.org/index.php/ActiveX
 +
 
 +
==VLC Plugin for Firefox (Mozilla)==
 +
The Mozilla plugin
 +
(Excerpted from Chapter 4 of the VLC User Guide, found at http://www.videolan.org/doc/play-howto/en/ch04.html#id293608)
 +
 
 +
'''Install
 +
'''
 +
There are at least two ways to install the VLC Mozilla Plugin.  One way is to to check the "Install Firefox Plugin" when you install VLC.  The second way involves several steps:
 +
 +
1. Quit Firefox or Mozilla
 +
 
 +
2. Copy the two files in VLC_Installation_folder\mozilla (usually C:\Program Files\VideoLAN\VLC\mozilla) to your mozilla plugins directory (Usually C:\Program Files\Mozilla\plugins or C:\Program Files\Mozilla Firefox\plugins).
 +
 
 +
3. Restart Firefox or Mozilla
 +
 
 +
'''Use the plugin'''
 +
 
 +
If you open a link to a video file handled by the VLC plugin (To get the list of handled types, browse to about:plugins) or a page with an embedded video, the plugin should open and read the video.
 +
 
 +
'''Build HTML pages that use the plugin'''
 +
 
 +
Additionally to viewing video on all pages, you can build custom pages that will use the advanced features of the plugin, using Javascript functions to control playback or extract information from the plugin.
 +
 
 +
The vlc plugin for Firefox/Mozilla supports the following function calls:
 +
 
 +
      play() : Start playing media in the plugin.
 +
      pause() : Pause playback.
 +
      stop() : Stop media playback.
 +
      fullscreen() : Switch the video to full screen.
 +
      set_volume(vol) : Set the volume. vol has to be an int in the 0-200 range.
 +
      get_volume() : Get the current volume setting.
 +
      mute() : Toggle volume muting.
 +
      set_int_variable(var_name, value) :
 +
      set_bool_variable(var_name, value) :
 +
      set_str_variable(var_name, value) :
 +
      get_int_variable(var_name) :
 +
      get_bool_variable(var_name) :
 +
      get_str_variable(var_name) :
 +
      clear_playlist() : Clear the playlist.
 +
      add_item(mrl>) : Append an item whose location is given by the Media Resource Locator to the playlist.
 +
      next()
 +
      previous()
 +
      isplaying() : return true if the plugin is playing something.
 +
      get_length() : Get the media's length in seconds.
 +
      get_position() : Get the current position in the media in percent.
 +
      get_time() : Get the current position in the media in seconds.
 +
      seek(seconds,is_relative) : If is_relative is true, seek relatively to current time, else seek from beginning of the stream. Seek time is specified in seconds.
 +
 
 +
Here are a few examples of HTML pages that use the Mozilla plugin.
 +
Example 1
 +
 
 +
In this example, the plugin will read an HTTP stream inside the web page. If the user goes fullscreen, he will have to press f to go back in normal view.
 +
 
 +
<html>
 +
<head><title>Demo of VLC mozilla plugin</title></head>
 +
 
 +
<body>
 +
 
 +
<h1>Demo of VLC mozilla plugin - Example 1</h1>
 +
 
 +
<embed type="application/x-vlc-plugin"
 +
        name="video1"
 +
        autoplay="no" loop="yes" width="400" height="300"
 +
        target="http://server.example.org/video1.vob" />
 +
<br />
 +
  <a href="javascript:;" onclick='document.video1.play()'>Play video1</a>
 +
  <a href="javascript:;" onclick='document.video1.pause()'>Pause video1</a>
 +
  <a href="javascript:;" onclick='document.video1.stop()'>Stop video1</a>
 +
  <a href="javascript:;" onclick='document.video1.fullscreen()'>Fullscreen</a>
 +
 
 +
</body>
 +
</html>
 +
 
 +
Example
 +
 
 +
In this example, the plugin will read a multicast UDP stream in a dedicated video output window.
 +
 
 +
<html>
 +
<head><title>Demo of VLC mozilla plugin</title></head>
 +
 
 +
<body>
 +
 
 +
<h1>Demo of VLC mozilla plugin - Example 2</h1>
 +
 
 +
<embed type="application/x-vlc-plugin"
 +
        name="video2"
 +
        autoplay="no" loop="no" hidden="yes"
 +
        target="udp:@239.255.12.42" />
 +
<br />
 +
  <a href="javascript:;" onclick='document.video2.play()'>Play video2</a>
 +
  <a href="javascript:;" onclick='document.video2.stop()'>Stop video2</a>
 +
  <a href="javascript:;" onclick='document.video2.fullscreen()'>Fullscreen</a>
 +
 
 +
</body>
 +
</html>
 +
 
 +
More example code, as well as a working implementation using Javascript, XHTML, and PHP that auto-detects browsers (the code is good, but the stream doesn't work) can be found at http://altair.videolan.org/~dionoea/vlc-plugin-demo/
 +
 
 +
== Related article ==
 +
* [[Common Problems]]
 +
* [[VLC command-line help]]
 +
* [[VLCSout]]  how to create a DVD

Revision as of 14:34, 29 June 2006

The Windows port of VLC usually starts up with the WxWindows interface which is used in the Linux one as well. The user can decide to use the Skins interface instead to be able to modify the interface according to his or her mood.

Keyboard shortcuts in the Windows (directx) video output

Note: these shortcuts are only default settings and can be customized (along with many others). To tweak hotkeys settings, go to Settings->Preferences->Hot keys

  • Left/Right/Up/Down/Enter: DVD menus navigation keys
  • Page Up/Page Down: seek (10 secs)
  • Home/End: Beginning/End of file
  • Space: Pause/Play
  • a/A/z/Z: Volume Control
  • f/F: fullscreen
  • q/Q: quit vlc
  • Esc: exit fullscreen/Stop input

How to associate media files to VLC

VLC hasn't got a module to associate files so that if you click on a file VLC opens - the developers are working on this, and one should be available in the next full release. But you can do it yourself by following these instructions:

  • Rerun the installer

OR

Warning: do this association only if you really know what you are doing!

  • Open a text editor like Notepad.
  • Copy this text:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.ASF]
@="VlcFile"

[HKEY_CLASSES_ROOT\.ASX]
@="VlcFile"

[HKEY_CLASSES_ROOT\.AVI]
@="VlcFile"

[HKEY_CLASSES_ROOT\.DIVX]
@="VlcFile"

[HKEY_CLASSES_ROOT\.MPEG]
@="VlcFile"

[HKEY_CLASSES_ROOT\.MPG]
@="VlcFile"

[HKEY_CLASSES_ROOT\.VOB]
@="VlcFile"

[HKEY_CLASSES_ROOT\.WMV]
@="VlcFile"

[HKEY_CLASSES_ROOT\VlcFile]
@="VLC File"

[HKEY_CLASSES_ROOT\VlcFile\DefaultIcon]
@="C:\\Program Files\\VideoLAN\\VLC\\vlc.exe,0"

[HKEY_CLASSES_ROOT\VlcFile\shell\Open]
[HKEY_CLASSES_ROOT\VlcFile\shell\Open\command]
@="C:\\Program Files\\VideoLAN\\VLC\\vlc.exe \"%L\""
  • Modify the strings C:\\Program Files\\VideoLAN\\VLC\\vlc.exe to match your VLC installation.
  • Save as vlc.reg.
  • Execute vlc.reg (add it to your registry).
  • Enjoy VLC :)

Note: This associate asf, asx, avi, divx, mpeg, mpg, vob and wmv files. If you get the idea, you can associate any file you want.


OR

You can also right-click the file you want to open with VLC, and then click Properties.

On the General tab, click Change.

Click the name of the program (VLC) which you want to be used to open the file.

This change affects all files that have the same file name extension as the file you selected. For example, if you change the program that opens a .jpg file, all .jpg files will be opened with this program.

You can also change the program that opens a file by right-clicking the file, clicking Open With, and then clicking the program name.

If VLC is not displayed, click Browse to locate it on your hard drive.

Alternatively, you can just associate media files on install.

How To Start VLC Server with http Interface

VLC ships with a little HTTP server integrated. It is used both to stream using HTTP, and for the HTTP remote control interface.

VLC Server Preferences Settings

1. Set up the http interface details in the VLC server application. Open VLC then select Settings > Preferences. Click on the Advanced Settings button in the lower right hand corner of the dialog box to see all the options that are available.

2. In the left hand window click on the + button next to Interface. This will display three choices. Control interfaces, Hotkeys settings, and Main Interfaces. Click on the plus button next to Main interfaces. This will display four settings HTTP, RC, Skins, wxWidgets. Click on HTTP to dispaly the "HTTP remote control interface settings".

3. Host address: Enter the port number that you want to use. Default is 8080.

4. Source directory: c:\Program Files\VideoLan\VLC\http\ or enter the path where you have elected to install the application.

5. Character set: UTF-8 default

6. If you are NOT using handlers or SSL certificates the setup is complete.

7. Click on the Save button in the lower left hand corner.


Command Line Startup

The VLC appplication can be run in a server or client environment. For complicated video and audio streaming on a LAN, one should consider dedicating a machine to act as the VLC server.

To start the VLC application in a server mode with the http interface automatically set, use the following command line in your desktop shortcut. This assumes the default location for installation was selected.

"C:\Program Files\VideoLAN\VLC\vlc.exe" --extraintf http --intf wx

Testing the Interface

From another computer, connect to the VLC server computer using your browser to the URL

http://server_ip_address:8080, such as http://192.168.0.186:8080

The Main VLC Interface page will be displayed,

See Web_Interface for additional information

VLC Plugin for Internet Explorer

This section will provide guidelines to incorporate the VLC ActiveX plugin to be used to view streaming audio and video from a VLC server.

How to embed the ActiveX Plugin in a Web Page http://wiki.videolan.org/index.php/ActiveX/HTML

Supported ActiveX Function Calls http://wiki.videolan.org/index.php/ActiveX

VLC Plugin for Firefox (Mozilla)

The Mozilla plugin (Excerpted from Chapter 4 of the VLC User Guide, found at http://www.videolan.org/doc/play-howto/en/ch04.html#id293608)

Install There are at least two ways to install the VLC Mozilla Plugin. One way is to to check the "Install Firefox Plugin" when you install VLC. The second way involves several steps:

1. Quit Firefox or Mozilla

2. Copy the two files in VLC_Installation_folder\mozilla (usually C:\Program Files\VideoLAN\VLC\mozilla) to your mozilla plugins directory (Usually C:\Program Files\Mozilla\plugins or C:\Program Files\Mozilla Firefox\plugins).

3. Restart Firefox or Mozilla

Use the plugin

If you open a link to a video file handled by the VLC plugin (To get the list of handled types, browse to about:plugins) or a page with an embedded video, the plugin should open and read the video.

Build HTML pages that use the plugin

Additionally to viewing video on all pages, you can build custom pages that will use the advanced features of the plugin, using Javascript functions to control playback or extract information from the plugin.

The vlc plugin for Firefox/Mozilla supports the following function calls:

     play() : Start playing media in the plugin.
     pause() : Pause playback.
     stop() : Stop media playback.
     fullscreen() : Switch the video to full screen.
     set_volume(vol) : Set the volume. vol has to be an int in the 0-200 range.
     get_volume() : Get the current volume setting.
     mute() : Toggle volume muting.
     set_int_variable(var_name, value) :
     set_bool_variable(var_name, value) :
     set_str_variable(var_name, value) :
     get_int_variable(var_name) :
     get_bool_variable(var_name) :
     get_str_variable(var_name) :
     clear_playlist() : Clear the playlist.
     add_item(mrl>) : Append an item whose location is given by the Media Resource Locator to the playlist.
     next()
     previous()
     isplaying() : return true if the plugin is playing something.
     get_length() : Get the media's length in seconds.
     get_position() : Get the current position in the media in percent.
     get_time() : Get the current position in the media in seconds.
     seek(seconds,is_relative) : If is_relative is true, seek relatively to current time, else seek from beginning of the stream. Seek time is specified in seconds.

Here are a few examples of HTML pages that use the Mozilla plugin. Example 1

In this example, the plugin will read an HTTP stream inside the web page. If the user goes fullscreen, he will have to press f to go back in normal view.

Demo of VLC mozilla plugin

Demo of VLC mozilla plugin - Example 1


Play video1 Pause video1 Stop video1 Fullscreen

Example

In this example, the plugin will read a multicast UDP stream in a dedicated video output window.

Demo of VLC mozilla plugin

Demo of VLC mozilla plugin - Example 2


Play video2 Stop video2 Fullscreen

More example code, as well as a working implementation using Javascript, XHTML, and PHP that auto-detects browsers (the code is good, but the stream doesn't work) can be found at http://altair.videolan.org/~dionoea/vlc-plugin-demo/

Related article