- Console
- rc interface
- ncurses interface
- telnet interface
- Unick-soft
- Категории
- Использование командной строки VLC
- Как получить справку о командах консоли VLC?
- Получение обычной справки
- Получение справки по VLC и модулям
- Получение полной справки, также справки по модулям
- Как получить информацию отладки в VLC?
- Как запустить VLC в полноэкранном режиме?
- Как запустить VLC с возможностью удалённого управления?
- Управление VLC через веб-браузер
- Управление VLC через RC
- Где log файл VLC?
- Как запустить vlc с определенного интерфейса?
- Command-line interface
- Windows
- macOS
- Linux/Unix
- Documentation:Streaming HowTo/Command Line Examples
- Contents
- Transcoding
- More complex transcoding example
- Multiple streaming
- Transcoding and multiple streaming
- More complex multi-transcoding example
- HTTP streaming
- RTSP live streaming
- RTSP on-demand streaming
- MMS / MMSH streaming to Windows Media Player
- Use the es module
- Keeping the stream open
- Using VLC as a reflector
- Documentation:Command line
- Contents
- Use the command line
- Getting help
- Opening streams
- Opening a file
- Opening a DVD or VCD, or an audio CD
- Receiving a network stream
- Modules selection
- Stream Output
- Other Options
- Audio options
- Video options
- Desktop/Screen grab options
- Playlist options
- Network options
- CPU options
- Miscellaneous options
- Item-specific options
- Filters
- Deinterlacing video filter
- Invert video filter
- Image properties filter
- Wall video filter
- Video transformation filter
- Distort video filter
- Clone video filter
- Crop video filter
- Motion blur filter
- Video pictures blending
- Video scaling filter
- Subpictures Filters
- Marquee display sub filter
- Logo video filter
Console
VLC has three terminal interface modules. These are rc, telnet and ncurses.
rc interface
The rc module is a interactive command line interface. It allows you to type commands to make VLC do things. To start it, run vlc —intf rc . This is the default interface if no GUI environment is available. To get started type «help» followed by enter. Starting with VLC 0.8.0 you can access this interface through a network with a telnet-client by using the —rc-host localhost:port option.
ncurses interface
The ncurses module is something like a text-mode GUI, built with the well-known ncurses library. Linux users should be familiar with this kind of interface. This interface is not built by default, you need to add —enable-ncurses to the configure call. To start VLC with this interface run vlc —intf ncurses .
telnet interface
The telnet interface will allow you to use the telnet command to connect to VLC remotely from the network. It is comparable to the rc interface, but less advanced. It can be launched by running VLC like: vlc —intf telnet . Starting with the VLC 0.7.x-series, you can control VLC’s VLM-module with this interface to manage multiple simultaneous streams. Notice that you should use the rc-interface if you don’t need this feature.
to launch VLC with telnet interface:
The telnet interface is essentially over a «raw TCP socket.» To interact with the instance at the command line (assuming the telnet interface’s address is 10.0.0.100:4212 ):
Источник
Unick-soft
Категории
- В статье описана реализация метода отражения Фонга и анизотропной модели Варда с использованием OpenGL 3. Также приводится пример использования карты с коэфициентами для анизотропной модели. читать.
- В статье описан метод создания статической библиотеки lib по dll. Вам не нужны исходники dll файла для создания lib-ы. читать.
- В статье описан метод удалённого управления VLC плеером и использования RC интерфейса. Также приведён пример кода на C#. читать.
Использование командной строки VLC
Как получить справку о командах консоли VLC?
Для получения доступных команд есть несколько команд консоли, рассмотрим их ниже
Получение обычной справки
В результате будет создан файл: vlc-help.txt
Получение справки по VLC и модулям
В результате будет создан файл: vlc-help.txt
Получение полной справки, также справки по модулям
В результате будет создан файл: vlc-help.txt
Протестировано на версии VLC 1.0.0
Как получить информацию отладки в VLC?
Информация отладки выводит много дополнительной информации, в том числе ошибки, дополнительную информация о файлах. Это очень удобно для выявления причин, вызывающих ошибку.
Для получения отладочной информации необходимо набрать команду:
Стоит отметить, что в данном случае VLC запустится и также запустится окно консоли с информацией об отладке, но вся отладочная информация будет дублироваться в файл vlc-log.txt. Файл vlc-log.txt должен быть в кодировке UTF8. Также поддерживается разный уровень детальности:
- —verbose=2 — значит, что будет выводиться вся информация отладки.
- —verbose=1 — значит, что будут выводиться предупреждения и ошибки.
- —verbose=0 — значит, что будут выводиться только ошибки.
Протестировано на версии VLC 1.0.0
Как запустить VLC в полноэкранном режиме?
Для запуска в полноэкранном режиме необходимо набрать команду:
Протестировано на версии VLC 1.0.0
Как запустить VLC с возможностью удалённого управления?
Удалённое управление позволяет делать несколько интерфейсов управления.
Управление VLC через веб-браузер
Для запуска VLC плеера необходимо набрать команду:
После запуска необходимо открыть в браузере страницу:
Через эту страницу можно управлять работой плеера.
Управление VLC через RC
Данное управление очень удобно для создания программы, которая будет управлять VLC плеером, так как управление осуществляется отправкой простых команд. Для запуска плеера необходимо набрать команду:
Для управления необходима программа, которая может передавать бинарные команды. Для этого подойдёт команда putty. Запускаем программу и выбираем протокол RAW, IP адрес 127.0.0.1 и порт 4444. Стоит отметить, что если установлен русский язык, то на вкладке Windows->Translation необходимо установить UTF-8.
После жмём Open.
Если сообщений об ошибке не было, то можете набирать команду help и нажимать Enter, тогда вы увидите справку о доступных командах. Команд там много. Например, чтобы заставить ролик играть, необходимо набрать команду
Протестировано на версии VLC 1.0.0
Где log файл VLC?
Обычно лог файл VLC расположен там, где находится сам исполняемый файл, то есть в C:\Program Files\VideoLAN\VLC\. Если там файла нет, то он может быть в директории, в которой находится файл, который вы запускали.
Протестировано на версии VLC 1.0.0
Как запустить vlc с определенного интерфейса?
VLC включает в себя много различных интерфейсов, как стандартных, так и специфических. Например, управление им через браузер или управление удалённо. Также возможен запуск сразу с несколькими интерфейсами. Для того, чтобы запустить VLC с определённым интерфейсом, необходимо набрать в командной строке команду:
В данном случае dummy — название интерфейса, вместо ИМЯ_ФАЙЛА следует написать файл, который вы хотите запустить, в принципе его можно и не указывать. Кроме него там могут быть и другие названия, которые приведены ниже:
- dummy — интерфейс без ничего, то есть полное отсутствие всех элементов управления.
- http — интерфейс управления через веб-браузер.
- telnet — управление через Telnet.
- skins2 — графические скины. Для запуска с определённым скином необходимо выполнять следующую команду:
- blackpearl.vlt — название файла скина, который расположен в папке skins.
logger — интерфейс лога, подробнее читайте в разделе [[#debuginf | получение информации об отладке в VLC.
- qt4 — стандартный интерфейс под Windows.
- rc — интерфейс удалённого управления.
- ntservice — запуск как служба, может и не сработать. Возможно необходимы дополнительные параметры.
- lua — для запуска необходимо задать дополнительные параметры.
- gestures — управление мышью.
Также вместо -I можно использовать —extraintf, при этом интерфейс будет не основным, а добавочным. Команда может выглядит так:
Источник
Command-line interface
This page describes how to access the terminal and start VLC in it.
A terminal is a text-based way to run programs. It is normally pre-installed on your computer. The command prompt may also be called the «Command Prompt», «Console», «Terminal», «MS-DOS Prompt», or something similar.
Running VLC from the terminal gives you access to many commands and features in VideoLAN which you would not otherwise have: see the VLC command-line help page to find out more about options from the command line.
Note that % is used on many of the examples on the VLC Wiki to represent the prompt, so you don’t need to type that in.
Depending on your operating system, the prompt could appear as a > , % , $ or # symbol. Read on for a detailed explanation.
Tip: For extended command-line work (or play) it may be worth changing to the directory of VLC. Most command-line interpreters will understand vlc or vlc.exe to be the program in that directory.
Windows
In Windows, this is called the command prompt. To open the command prompt:
- Click on the Start Menu and select Run.
- In the Run box, type cmd (or command for older versions of Windows) and press enter.
The command prompt will look something like this:
To run VLC, you will need to know where you installed VLC; the default is «%PROGRAMFILES%\VideoLAN\VLC» . So to start VLC, type the full path to VLC and the options:
replacing options with the name of the file to play and its options.
macOS
You can run VLC on macOS using a terminal application, such as Terminal.app in /Applications/Utilities. In the terminal window type
replacing options with VLC options, commands, the name of the file to play, and so on.
To suppress the launch of any Mac-like interface, you have to add the Option -I or —intf followed by the interface you want to use instead.
Available interfaces are:
- rc (remote control)
- ncurses (command-line-gui)
- http (web interface, usually on port 8080)—this interface will prevent VLC from appearing even in the Dock.
In older versions you could replace the «VLC» at the end of the path with «clivlc» to suppress the launch of any Mac-like interface.
Linux/Unix
How to get a Linux terminal varies by distribution (for any desktop setup it will be somewhere in the applications; these are merely shortcuts). If you use Ubuntu or Linux Mint, gnome-terminal can be opened with the key combination Ctrl+Alt+T . If you use RHEL/Fedora/CentOS, gnome-terminal can be opened by right-clicking on the desktop and selecting Open terminal .
- The standard user prompt may appear as $ or % or something else.
- The root user prompt is represented with a # . This is an indication that you must either log in as root (potential security risk) or prefix the command with sudo and enter your password.
To run VLC, you can normally type
replacing options with the name of the file to play and its options.
Источник
Documentation:Streaming HowTo/Command Line Examples
Examples for advanced use of VLC’s stream output (transcoding, multiple streaming, etc. ) ContentsTranscodingTranscode a stream to Ogg Vorbis with 2 channels at 128kbps and 44100Hz and save it as foobar.ogg: Transcode the input stream and send it to a multicast IP address with the associated SAP announce: Display the input stream, transcode it and send it to a multicast IP address with the associated SAP announce: Transcode the input stream, display the transcoded stream and send it to a multicast IP address with the associated SAP announce: To receive the input stream that is being multicasted above on a client: More complex transcoding exampleStream a SDI card to H.264 and AAC in TS on UDP Multiple streamingSend a stream to a multicast IP address and a unicast IP address: Display the stream and send it to two unicast IP addresses: Send parts of a multiple program input stream: This command sends the program of the input stream which id is 12345 to 239.255.12.42 and all video programs with id between 1234 and 2345 to 239.255.12.43. Transcoding and multiple streamingTranscode the input stream, display the transcoded stream and send it to a multicast IP address with the associated SAP announce and an unicast IP address: Display the input stream, transcode it and send it to two unicast IP addresses: Send the input stream to a multicast IP address and the transcoded stream to another multicast IP address with the associated SAP announces: More complex multi-transcoding exampleTake a SDI input, and transcode it twice, once in HD, and one in SD and send both on udp. Take a SDI input, and restreaming it once in raw and transcoding it for the second HTTP streamingTranscode and stream in HTTP: Recording a live video stream: For example, if you want to stream an audio CD in Ogg/Vorbis over HTTP: RTSP live streamingStream with RTSP and RTP: RTSP on-demand streamingMMS / MMSH streaming to Windows Media PlayerVLC media player can connect to this by using the following url: mmsh://server_ip_address:8080. Windows Media Player can connect to this by using the following url: mms://server_ip_address:8080. Use the es moduleSeparate audio and video in two PS files: Extract the audio track of the input stream to a TS file: Stream in unicast the audio track on a port and the video track on another port (NOTE: This will not only work with VLC 0.8.6 or older — FIXME?): [Please check this]
Stream in multicast the video and dump the audio in a file: Note: You can also combine the es module with the other modules to set-up even more complex solution. Keeping the stream openThe basic transcoding is an mp3 stream from the file you select (if it is a video file, then the video is ignored). It is streamed via http to localhost:8080/stream.mp3 The combination of :sout-keep and dst=gather:std mean that the stream is kept open and subsequent items are played through the same stream. Using VLC as a reflectorTaking a UDP input and resending it once raw via IPv6 multicast, and once in HLS Источник Documentation:Command line
ContentsUse the command lineTODO: completely outdated You need to be quite comfortable with command line usage to use this. Getting helpVLC uses a modular structure. The core mainly manages communication between modules. All the multimedia processing is done by modules. There are input modules, demultiplexers, decoders, video output modules, . This chapter will only describe the «general» options, i.e., the core options. Each module adds new options. For example, the HTTP input module will add options for caching, proxy, authentication, . By using vlc —help, you will get the basic core options. vlc —longhelp will give all the basic options (core + modules). Adding —advanced will give the «advanced options» (for advanced users). So vlc —longhelp —advanced will give you all options. You can also append —help-verbose if you want more detailed help. Also, you might want to get debug informations. To do this, use -v or -vv (this will show lower severity messages). If your console supports it, you can add —color to get messages in color. Opening streamsThe following commands start VLC and start reading the given element(s): Opening a fileVLC should be able to recognize the file type. If it does not, you can force demultiplexer and decoder (see below). A list of all video and audio codecs supported by VLC is available on the VLC features list. Opening a DVD or VCD, or an audio CDIn most cases, vlc dvd:// or vlc dvd://[device] will do.
Receiving a network streamTo receive an unicast RTP/UDP stream (sent by VLC’s stream output), start VLC with: If 5004 is the port to which packets are sent. 1234 is another commonly used port number. you use the default port (1234), vlc rtp:// will do. For more information, look at the Streaming Howto. To receive an multicast UDP/RTP stream (sent by VLC’s stream output), start VLC with: To receive a SSM (source specific multicast) stream, you can use: This only works on OSs that support SSM (Windows XP and Linux). To receive a HTTP stream, start VLC with: To receive a RTSP stream, start VLC with: Modules selectionVLC always tries to select the most appropriate interface, input and output modules, among the ones available on the system, according to the stream it is given to read. However, you may wish to force the use of a specific module with the following options.
You can get a listing of the available modules by using vlc -l Stream OutputThe Stream output system allows vlc to become a streaming server. For more details on the stream output system, please have a look at the Streaming HowTo. Other OptionsAudio optionsNote that in recent versions (3.x.x branch, possibly earlier):
Video options
Desktop/Screen grab optionsYou can see the various options for «grabbing the desktop» (VLC’s built-in screen grabber capture device) by using the GUI. See http://forum.videolan.org/viewtopic.php?f=4&t=46971 Playlist options
Network options
CPU optionsYou should probably not touch these options unless you know what you are doing.
Miscellaneous options
Item-specific optionsThere are many options that are related to items (like —novideo, —codec, —fullscreen). For all of these, you have the possibility to make them item-specific, using «:» instead of «—» and putting the option just after the concerned item. will play file1.mpg in fullscreen mode and file2.mpg in the default mode (which is generally no fullscreen), whereas will play both files in fullscreen mode will play file1.mpg in windowed (no-fullscreen) mode with the subtitles file file1.srt and will play file2.mpg with video filter distort enabled in fullscreen mode (item-specific options override global options). FiltersThese are the old style VLC filters. They only apply to on screen display and thus cannot be streamed. However, on version 1.1.11 you are still able to apply these filters in transcode module using parameter vfilter. More information can be found on Advanced Streaming Using the Command Line. Deinterlacing video filterModule name: deinterlace
Invert video filterModule name: invert Image properties filterModule name: adjust
Wall video filterModule name: wall This filter splits the output in several windows.
Note: for —wall-active , to select windows 2 and 4 you would write —wall-active 2,4. When this option isn’t specified, all windows are displayed. Video transformation filterModule name: transform
Distort video filterModule name: distort Clone video filterThis filter clones the output window. Module name: clone
Crop video filterModule name: crop
Motion blur filterModule name: motionblur
Video pictures blendingModule name: blend Video scaling filterModule name: scale Subpictures FiltersThese are the new VLC filters. They can be streamed. Marquee display sub filterModule name: marq
The time sub filter was merged into this module. Logo video filterModule name: logo This filter can be used both as an old style filter or a subpictures filter. Note: You can move the logo by left-clicking on it. Источник |