Vlc управление по telnet
Информация отладки выводит много дополнительной информации, в том числе ошибки, дополнительную информация о файлах. Это очень удобно для выявления причин, вызывающих ошибку.
Для получения отладочной информации необходимо набрать команду:
Стоит отметить, что в данном случае VLC запустится и также запустится окно консоли с информацией об отладке, но вся отладочная информация будет дублироваться в файл vlc-log.txt. Файл vlc-log.txt должен быть в кодировке UTF8. Также поддерживается разный уровень детальности:
- --verbose=2 - значит, что будет выводиться вся информация отладки.
- --verbose=1 - значит, что будут выводиться предупреждения и ошибки.
- --verbose=0 - значит, что будут выводиться только ошибки.
Протестировано на версии VLC 1.0.0
Ncurses
This is a text interface, using ncurses library.
Start VLC with -I ncurses or --extraintf ncurses. You will then get something like that:
The ncurses interface
Press h to get the list of all available commands, with a short description.
There is also a filebrowser available for the ncurses interface in order to add playlist items. Press 'B' to use it.
The ncurses filebrowser
You can set the filebrowser starting point by launching vlc with the --browse-dir option:
Примечание
Кроме собственности " append ", все свойства могут последовать один за другим .
� input ( input _ name ) : Добавьте вклад к концу входного списка носителя.
� output ( output _ name ) : Определите выход носителя. Синтаксис такой же как и vlc ":sout=. " vlc option but you do not have to put the ":sout=. " string. See Advanced streaming using the command line for more information concerning stream outputs (sout).
Video On Demand
Basic example
First launch the vlc
- 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).
- telnet launches the telnet interface of the vlc.
- videolan is the password to connect to the telnet interface.
- 0.0.0.0 is the host address.
- 554 is the port on which you stream.
Then you connect to the vlc telnet interface and create the vod object. You can connect to vlc telnet interface by use the terminal.
and create the vod object.
You can access to the stream with:
- server is the address of the streaming server (IP or DNS)
Advanced example
You can also specify options, a muxer, or an additional output chain that will be prepended to the RTP output used by VoD (e.g. to enable transcoding).
Note: make sure to enter the corresponding commands before the VoD media is enabled, or before you setup the input.
This page is part of official VLC media player Documentation (User Guide • Streaming HowTo • Hacker Guide • Modules)
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.
Chapter 5. VLM - Multiple streaming and Video on demand
VLM Elements
Medias
A Media is composed with a list of inputs (the video and audio streams you want to stream), an output (how and where you want to stream them) and some options.
There are two types of medias:
- vod: A vod media is commonly used for Video on Demand. It will be launched only if a vod client asks for it.
- broadcast: A broadcast media is very close to a TV program or channel. It is launched, stopped or paused by the administrator and may be repeated several times. The client has no control over this media.
Schedules
A Schedule is a script with a date. When the schedule date is reached, the script is launched. There are several options available like a period or a number of repetitions.
3 ответа 3
Нажмите «Файл> Открыть файл», чтобы открыть диалоговое окно «Открыть».
Ваш выбор должен появиться в текстовом поле рядом с кнопкой «Обзор». Установите флажок «Потоковый вывод», а затем нажмите кнопку «Настройки».
Установите флажок «Играть локально» в разделе «Методы вывода». При потоковой передаче в другую систему вам не нужно воспроизводить файл на сервере, но мы будем использовать эту опцию, чтобы визуально подтвердить, что наше видео воспроизводится правильно, прежде чем пытаться получить доступ к потоку с другого компьютера.
Установите флажок «UDP» и введите IP-адрес компьютера, на который вы хотите передать файл. Затем нажмите «ОК». Файл готов к воспроизведению, поэтому нажмите «ОК» в диалоговом окне «Открыть».
[Этот шаг не работал с моим видео .flv. Хотя сервер воспроизводил видео локально, клиент (localhost:8181) не воспроизводил видео. Корректирующим действием было снятие флажка "UDP" (это могло быть из-за того, что мой транспортный протокол UDP не работал на моем ноутбуке или MPEG-TS не являлся контейнером корректирующего формата для потоковой передачи. MPEG-TS был единственным контейнером формата или методом инкапсуляции, доступным при выборе "UDP"), и установите флажок "HTTP", затем установите "Адрес" как 127.0.0.1 и порт как "8181". Теперь выберите "ASF" в качестве метода инкапсуляции и оставьте остальные параметры диалога "Поток вывода" по умолчанию. Нажмите "ОК", чтобы перейти в диалоговое окно "Открыть", а затем нажмите "ОК" в диалоговом окне "Открыть", чтобы начать воспроизведение видео.]
Видео или аудио файл должен начать воспроизводиться на компьютере. Последнее, что нужно сделать перед переключением на второй компьютер, - это включить веб-интерфейс VLC, нажав «Настройки> Добавить интерфейс> Веб-интерфейс».
Откройте VLC на вашем втором компьютере. Мы используем машину Linux.
Нажмите «Файл> Открыть сетевой поток». UDP уже выбран, поэтому вам просто нужно нажать кнопку «ОК», и VLC начнет воспроизведение вашего потока.
Interfaces
Telnet interface
You can launch the telnet interface as a common interface using the command line:
The telnet interface can also be launched in the wxWindows interface:
The default port is 4212. The default password is "admin". These can be changed using --telnet-port and --telnet-password command line options. They can also be changed in the preferences panel when using the wxWindows interface in the Modules->interface->telnet section (check the Advanced options checkbox).
Как запустить VLC с возможностью удалённого управления?
Удалённое управление позволяет делать несколько интерфейсов управления.
Управление VLC через веб-браузер
Для запуска VLC плеера необходимо набрать команду:
После запуска необходимо открыть в браузере страницу:
Через эту страницу можно управлять работой плеера.
Управление VLC через RC
Данное управление очень удобно для создания программы, которая будет управлять VLC плеером, так как управление осуществляется отправкой простых команд. Для запуска плеера необходимо набрать команду:
Для управления необходима программа, которая может передавать бинарные команды. Для этого подойдёт команда putty. Запускаем программу и выбираем протокол RAW, IP адрес 127.0.0.1 и порт 4444. Стоит отметить, что если установлен русский язык, то на вкладке Windows->Translation необходимо установить UTF-8.
После жмём Open.
Протестировано на версии VLC 1.0.0
Как запустить VLC в полноэкранном режиме?
Для запуска в полноэкранном режиме необходимо набрать команду:
Протестировано на версии VLC 1.0.0
Примечание
loop | unloop только для широковещательных типов носителя.
� mux (mux_name) : This option should only be specified if you want the elementary streams to be sent encapsulated instead of raw. The (mux_name) should be specified as a four characters length identifier such as mp2t for MPEG TS or mp2p for MPEG PS. See Streaming, Muxers and Codecs.
Examples
This section provides several small vlm configuration files.
Multiple streams
Simple broadcasting
- if you are using direct show and are getting "control : unknown error" try "setup channel enabled"
Scheduled broadcasting
Configuration Files
A VLM configuration file is a list of command lines : one line corresponds to one command line.
To create a configuration file, just edit a text file and type a list of VLM commands. Beware of recursive calls: you can put a load (file) in a configuration file which can lead to recursive inclusion of the same file and result in VLC's crash.
You can automatically load a VLM configuration when launching VLC with the --vlm-conf command line option. The minimal command to make that work is:
VLM Elements (Элементы)
Medias
Media сформирован списком вводов ( видео и аудио потоки ), выход и некоторые опции.
Есть два типа носителей:
� vod : vod носитель обычно использован для Видео по Требованию. Он запустится только если vod клиент требует этого.
� broadcast : Широковещательный носитель очень близкий к TV program или канал. Запущен и остановлен или остановиться администратором, и может повторяться несколько раз. Клиент не имеет управление над этим носителем.
Schedules (Спецификации)
Спецификация является сценарием с датой. Когда запланированная дата достигнута, сценарий запущен. Есть нескольких опций доступных подобно периоду или множеству повторений.
Как запустить vlc с определенного интерфейса?
VLC включает в себя много различных интерфейсов, как стандартных, так и специфических. Например, управление им через браузер или управление удалённо. Также возможен запуск сразу с несколькими интерфейсами. Для того, чтобы запустить VLC с определённым интерфейсом, необходимо набрать в командной строке команду:
В данном случае dummy - название интерфейса, вместо ИМЯ_ФАЙЛА следует написать файл, который вы хотите запустить, в принципе его можно и не указывать. Кроме него там могут быть и другие названия, которые приведены ниже:
- blackpearl.vlt - название файла скина, который расположен в папке skins.
- qt4 - стандартный интерфейс под Windows.
- rc - интерфейс удалённого управления.
- ntservice - запуск как служба, может и не сработать. Возможно необходимы дополнительные параметры.
- lua - для запуска необходимо задать дополнительные параметры.
- gestures - управление мышью.
Также вместо -I можно использовать --extraintf, при этом интерфейс будет не основным, а добавочным. Команда может выглядит так:
Available pages for 1.0.3 :
Примечание
Вы не должны определять выход для vod элементов
� option ( option _ name )[= value ] : Добавляет ( option _ name ) в список выбора носителя. Синтаксис является эквивалентом ":( option )=. " option , но Вы нет должны помещать ":" строка. Выборы глобальные: они приложены ко всем вкладам носителя.
� enabled | disabled : разрешите или блокируйте носитель. Если носитель выведен из строя, он не может вещать, остановиться, запущен спецификацией или сыгран как VoD .
� loop | unloop ( broadcast only ) : Если носитель с выбором " loop " получает команду " play ". автоматически перезапустится, чтобы воспроизводить входной список, как только конец входного списка будет достигнут.
Как запустить VLC в полноэкранном режиме?
Для запуска в полноэкранном режиме необходимо набрать команду:
Протестировано на версии VLC 1.0.0
RC, Telnet
These two interfaces allow you to control VLC from a command shell (possibly using a remote connexion or a Unix socket).
Start VLC with -I rc or --extraintf rc. When you get the Remote control interface initialized, `h' for help message, press h and Enter to get help about available commands.
To be able to remote connect to your VLC using a TCP socket (telnet-like connexion), use --rc-host your_host:port. Then, by connecting (using telnet or netcat) to the host on the given port, you will get the command shell.
To use a UNIX socket (local socket, this does not work for Windows), use --rc-unix /path/to/socket. Commands can then be passed using this UNIX socket.
The RTCI interface is an old module merged into the RC interface.
Command line syntax
Command lines
Media Properties
Note: Except the "append" property, all properties can be followed by another one.
- input (input_name): Add an input to the end of the media's input list.
- output (output_name): Define the media's output. The syntax is the same as the vlc ":sout=. " vlc option but you do not have to put the ":sout=. " string. See Documentation:Streaming HowTo/Advanced Streaming Using the Command Line for more information concerning stream outputs (sout). Note: You do not have to specify an output for vod elements.
- option (option_name)[=value] : Adds the (option_name) to the media option list. The syntax is equivalent to the ":(option)=. " option , but you do not have to put the ":" string. Options are global: they are applied to all inputs of the media.
- enabled|disabled: Enable or Disable the media. If a media is disabled, it cannot be streamed, paused, launched by a schedule, or played as VoD.
- loop|unloop (broadcast only): If a media with the "loop" option receives the "play" command, it will automatically restart to play the input list once the end of the input list is reached. Note: loop|unloop is only used for broadcast media types.
- mux (mux_name): This option should only be specified if you want the elementary streams to be sent encapsulated instead of raw. The (mux_name) should be specified as a four characters length identifier such as mp2t for MPEG TS or mp2p for MPEG PS. See Documentation:Streaming HowTo/Streaming, Muxers and Codecs. Note: The mux property is only used for vod media types.
Schedule Properties
- enabled|disabled: A disabled schedule will never be launched.
- append (command_until_rest_of_the_line): Add a command to the command line lit. The command line can be every command VLM can understand. Note: The rest of the line will be considered as part of the command line. You cannot put another option after the append one.
- date (year)/(month)/(day)-(hour):(minutes):(seconds)|now: Specify the first date the schedule should be launched. You can specify a date using the (year)/(month)/(day)-(hour):(minutes):(seconds) format (example: 2004/11/16-00:43:12) or using the now keyword. If now is used, the schedule will be launched as soon as possible (i.e. as soon as it is enabled) and the current date will be used as the first date of the schedule.
- period (years_aka_12_months)/(months_aka_30_days)/(days)-(hours):(minutes):(seconds): Specify the period of time a schedule must wait for launching itself another time. (Months are considered as 30 days, Years as 12 months) If a period is specified without a repeat property, the schedule will be launched endlessly.
- repeat (number_of_repetitions): Specify the number of times the schedule will be launched again. For example, if a schedule has repeat 11 it will be launched 12 times.
Control Commands
- play: Stat a broadcast media. The media begins to launch the first item of the input list, then launches the next one and so on. (like a play list)
- pause: Put the broadcast media in paused status.
- stop: Stop the broadcast media.
- seek (percentage): Seek in the current playing item of the input list.
Command line syntax (Командный синтаксис линии)
Command lines (Командные линии)
� help : Отображает полный командный список линий
� new ( name ) vod | broadcast | schedule [ properties ] : Создайте новый vod , широковещательный или элемент спецификации. Элементные имена должны быть уникальными и не и не могут быть" media " или "спецификация". Вы можете определить свойства в этой командной строке или позже используя команду установки
� setup ( name ) ( properties ) : Установите собственность элементов. Смотри Media Properties.
� show [( name )| media | schedule ] : Отобразите текущие элементные состояния и конфигурации.
o show ( name ) - Определите элементное имя, чтобы показывать всю информацию относительно этого элемента.
o show media отображает итог состояний носителя.
o show schedule отображает итог состояний спецификации.
� del ( name )| all | media | schedule : Удалите элемент или группу элементов. Если элемент не, отключён то сначала отключите прежде, чем удалять.
o del ( name ) - Удалите (имя) элемент.
o del all - Удалите все элементы
o del media - Удалите все элементы носителя.
o del schedule - Удалите все элементы спецификации
� control (name) [instance_name] (command) : Измените состояние примера (instance_name) (имени) носителя. Если ( instance _ name ), не определен, управляющая команда влияет на встроенный пример. See Control Commands for available control commands.
� save ( config _ file ) : Сохраните все конфигурации носителя и планируйте в определенном config файле. Файловый путь config - относительно директория, в котором vlc был запущен. Если файл существует, он будет переписан. Отметьте, что состояния, как например, воспроизведение, остановившееся или остановка, не сохранена. See Configuration Files for more info.
� load (config_file) : Загрузите файл конфигурации. Файловый путь config - относительно директория, в котором vlc был запущен. See Configuration Files for more info.
Media Properties (Свойства Носителя)
Hotkeys
This module allows you to control VLC and playback via hotkeys. It is always enabled by default. You can use hotkeys in the video output window, you can't in the audio dummy interface.
Hotkeys can be hacked by:
Code is composed by modifiers keys (Alt, Shift, Ctrl, Meta,Command) separated by a dash (-) and terminated by a key (a. z, +, =, -, ',', +, , `, /, ;, ', \, [, ], *, Left, Right, Up, Down, Space, Enter, F1. F12, Home, End, Menu, Esc, Page Up, Page Down, Tab, Backspace, Mouse Wheel Up and Mouse Wheel Down). Main controls are available from hotkeys, such as : fullscreen, play-pause, faster, slower, next, prev, stop, quit, vol-up, etc. (use the --longhelp option for full list of functions). For example, for binding fullscreen to Ctrl-f, run:
The list of the default hotkeys is available here.
Other control interfaces
VLC includes a number of so-called interfaces that are not really interfaces, but means of controlling VLC. Nevertheless, they are enabled by setting them as interface or extra interface, either in the Preferences, in General/Interface, or using -I or --extraintf on the command line.
Interfaces (Интерфейсы)
Telnet interface
Вы можете запустить интерфейс telnet как общий интерфейс, использовавший командную линию:
Интерфейс telnet может быть запущен на интерфейсе wxWindows :
Запуск интерфейса Telnet - интерфейс wxWindows
Встроенный порт - 4212. Встроенный паролем является " admin ". Эти настройки могут быть изменены используя --- telnet - port < integer >and -- telnet - password < string >командные выборы линии. Они могут быть также изменены на панели предпочтений при использовании интерфейса wxWindows в Modules -> interface -> telnet секции (проверьте Передовые опции checkbox ).
Примечание
Остальная часть линии посчитается как часть командной линии. Вы не можете поместить другой выбор после append один.
� date (year)/(month)/(day)-(hour):(minutes):(seconds)|now : Specify the first date the schedule should be launched. You can specify a date using the (year)/(month)/(day)-(hour):(minutes):(seconds) format (example: 2004/11/16-00:43:12) or using the now keyword. If now is used, the schedule will be launched as soon as possible (i.e. as soon as it is enabled) and the current date will be used as the first date of the schedule.
� period (years_aka_12_months)/(months_aka_30_days)/(days)-(hours):(minutes):(sec onds) : Specify the period of time a schedule must wait for launching itself another time. (Months are considered as 30 days, Years as 12 months) If a period is specified without a repeat property, the schedule will be launched endlessly.
� repeat (number_of_repetitions) : Specify the number of times the schedule will be launched again. For example, if a schedule has repeat 11, it will be launched 12 times.
Control Commands (Управляющие Команды)
� play : Stat Широковещательный носитель. Носитель начинает запускать сначала пункт входного списка затем запускает следующий один и так далее.
� pause : широковещательный носитель, остановить.
� stop : Остановите широковещательный носитель.
� seek (percentage) : Seek in the current playing item of the input list.
Gestures
Gestures provide a simple mouse gestures control. TODO
This page is part of official VLC media player Documentation (User Guide • Streaming HowTo • Hacker Guide • Modules)
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.
Примечание
The mux property is only used for vod media types. ( mux Собственность только использована для типов vod носителя.)
Schedule Properties
� enabled | disabled : Выведенная из строя спецификация никогда не будет запущена.
� append ( command _ until _ rest _ of _ the _ line ) : Добавьте команду к освещенной командной линии. Командная линия может быть командой VLM .
Глава 5. VLM - Широковещательная передача и Видео по требованию
(VLM - Multiple streaming and Video on demand)
Где log файл VLC?
Обычно лог файл VLC расположен там, где находится сам исполняемый файл, то есть в C:\Program Files\VideoLAN\VLC\. Если там файла нет, то он может быть в директории, в которой находится файл, который вы запускали.
Протестировано на версии VLC 1.0.0
Configuration Files (Файлы Конфигурации)
Файл конфигурации VLM является списком командных линий : одна линия переписывается,
Для того чтобы создавать файл конфигурации, просто отредактируйте текстовый файл и набирайте список команд VLM . Сберегитесь рекурсивных вызовов: Вы поместившее нагрузку (файл) в файле конфигурации, который может провести к рекурсивному включению того же самого файла и заканчиваться аварией VLC ' s .
Можно ли вообще настроить VLC на серверном ПК таким образом, чтобы я мог получить доступ к списку всех моих видео с другого ПК и выбрать одно из них для потоковой передачи по требованию?
Я указал на это руководство по потоковой передаче (pdf), но оно довольно бесполезно. Для начала, большинство меню на этих скриншотах не соответствуют текущей текущей версии VLC, а затем это предполагает, что вы уже знаете, что делаете.
До сих пор мне удалось выяснить, как транслировать один файл, который я должен выбрать перед просмотром на серверном ПК - довольно бесполезно, если вы спросите меня! Непроницаемый "интерфейс" тоже не помогает .
(PS Причина, по которой я собираюсь использовать потоковую передачу, а не очень простую настройку сетевого диска, описана в этом вопросе)
Читайте также: