Osd linux ��� ���

GLXOSD, an OSD and benchmarking tool for Linux

GLXOSD v3 has arrived!

GLXOSD is an extensible on-screen display (OSD)/overlay for OpenGL applications running on Linux with X11 which aims to provide similar functionality to MSI Afterburner/RivaTuner OSD. It can show FPS, frame timings, temperatures and more in OpenGL games and applications. It can also be used to benchmark games, much like voglperf.

Monitor performance and hardware status

The list of values that GLXOSD includes (but isn’t limited to):

  • Average Frames Per Second (FPS) over the last few seconds.
  • Average Frame Duration (AFD) over the last few seconds.

With the help of lm-sensors (libsensors):

  • CPU temperatures and other temperatures available through lm-sensors.

With NVIDIA’s proprietary drivers, GLXOSD can also display the following:

  • Graphics card temperatures
  • GPU utilisation
  • Memory utilisation
  • Clocks

Moreover, GLXOSD can be easily extended to show other characteristics.

Benchmark

GLXOSD can log precisely when an application draws something onto the screen. This information is useful for benchmarking because it allows you to graph the framerate, delays between frames, etc.

These logs are called frame timing logs, or time recordings. Each new line represents the number of milliseconds that have passed since the previous frame was rendered.

Note: the format has changed in GLXOSD v3. In previous versions of GLXOSD, each line contained two comma-separated values: the ID of the X drawable and the number of nanoseconds since the logging started.

Analyse

Because GLXOSD frame timing logs are CSVs, you will have no trouble processing them with your tool of choice.

There is also a little web tool that can calculate FPS, frame frequency, delays between frames and plot them.

Customise and extend

GLXOSD v3 is highly customisable. You can customise what information is displayed, how it is displayed, where it is displayed and how it is formatted.

You can also write your own formatting functions to add statistics or change how they are highlighted.

It is also possible to extend GLXOSD by writing plugins in Lua. GLXOSD v3 is mostly written in Lua using LuaJIT, which makes it easy to test your plugins and data providers without having to compile anything or having to directly deal with low-level languages.

Safety

While its very unlikely that you will get banned from games for using GLXOSD, you should understand that there is a risk of that happening. Please read the documentation of the anti-cheat software that you are running.

For example, VAC (Valve Anti-Cheat) seems to operate on a blacklist rather than a whitelist and doesn’t seem to ban people who use applications that function similarly to GLXOSD (for example: Mumble Overlay and RivaTuner OSD).

Disclaimer

В© 2013-2017 Nick Guletskii. All trademarks are property of their respective owners.

Источник

osd_cat(1) — Linux man page

osd_cat — X on-screen file displayer

Synopsis

Description

Display FILE, or standard input, on X screen. -p, —pos=POS This option tells osd_cat where to display the text. POS can be top, middle, or bottom. The default is top. -o, —offset=OFFSET This option specifies the offset from the top or bottom of screen the text is displayed. The default is 0. -A, —align=ALIGN This option tells osd_cat where to display the text. ALIGN can be left, right or center. The default is left. -i, —indent=OFFSET This option specifies the INDENT from the left of screen the text is displayed. The default is 0. -f, —font=FONT This option specifies the FONT to be used for displaying the text. The default is fixed. -c, —color=COLOR This option specifies the COLOR to be used for displaying the text. The default is red. -d, —delay=TIME This option specifies the number of seconds the text is displayed. The default is 5 seconds. -l, —lines=LINES This option specifies the number of LINES to scroll the display over. The default is 5. -s, —shadow=OFFSET This option specifies the OFFSET of the text shadow. The default is 0, which means no text shadow is created. -a, —age[=SCROLL_AGE] This option affects screen redrawing. If SCROLL_AGE seconds pass before a new line is ready (for example, you’re reading from a pipe), all lines are cleared at once instead of being scrolled off as new lines replace old lines. The default is 0.
When no SCROLL_AGE is explicitly given, the current value from DELAY is used. -w, —wait This option also affects screen redrawing. When there is data ready to be put on screen, this option will cause osd_cat to wait until the display is clear. An alternative to scrolling. -b, —barmode=TYPE Lets you display a percentage or slider bar instead of just text. TYPE may be percentage or slider. In this mode no text is read from any file, but the following options can be used: -P, —percentage=PERCENTAGE This option specified the position of the percentage / slider bar. PERCENTAGE may be in the range from 0 to 100, the default is 50. -T, —text=TEXT This option specifies an optional TEXT which gets displayed above the percentage bar. The default is empty, so no additional text is displayed. -h, —help display help (which is often more up to date) and exit With no FILE, or when FILE is , read standard input.

Читайте также:  Minecraft mods minecraft mac os

Author

Martijn van de Streek , Some patching done by Malcolm Valentine and Tim Wright .
xosd was written by Andre Renaud and is maintained by Tim Wright

See Also

More information on the X OSD Library and its author can be found on http://www.ignavus.net/software.html

It is distributed under the GNU General Public License.

Источник

Forum

Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

Thread: OSD For linux

Thread Tools
Rate This Thread
Display

[Plugin] OSD For linux

I made a simple lua script that will show who is talking in your channel on the screen as an overlay, even when you are playing games or doing other full screen activities. See the attached screenshot for how it looks. There are some few simple steps to install the script.

Download and install osd-bin
If you use ubuntu then you can write in a terminal:

Save the script
Save the following as «osd.lua» in » /plugins/lua_plugin/»

to the bottom of the code.

Enable lua in teamspeak
Settings -> plugins -> check Lua plugin.

Some information
This is a very simple script and the program used is not really made for this purpose so if something goes wrong don’t blame me. There are some stuff you can change in the script at the top, like color, positioning and more for the OSD. Read the comments and try to edit some yourself. For more information type «osd_cat —help» in a terminal.

Changelog
8/6-2010
— Removed the need for a temp file
— Made the script call any old hooks to the client talk status

Last edited by Otharath; June 8th, 2010 at 09:24 AM .

Work in beta21? I follow the manual but i dont see names on speak

PD: My fault, work perfectly in beta21 on arch64. THANKS.

Last edited by viodream; June 4th, 2010 at 06:27 PM .

Enhancements

Firstly, great plugin! I’m sure a lot of users will find it useful. I wanted a little more information in the OSD though and that leads me nicely to.

I’ve used your script as the basis for an overlay similar to that used in Mumble. I’ve not used Lua before and found your plugin of great help in starting out. I wanted to increase the information shown in the OSD without adding to the requirements or installation procedure.

Читайте также:  Install arch linux with xfce

The changes I have made:

  • OSD first launched upon successful connection to server
  • OSD now lists channels that are children of the root channel and the clients within
  • Currently speaking user prefixed with «>>»
  • OSD now shows away status

The changes I intend to make:

  • Include clients when they join/leave channels (currently updates the next time any user speaks).
  • Update OSD when client updates away status (currently updates the next time any user speaks).
  • Retrieve PID of osd_cat started by the plugin and kill only that PID in case other programs are using osd_cat.

I can post the enhanced version here or start a new thread if you’d rather I did that. Either way I’ll credit you as the author of the original script and include the URL of this thread. Credit where credit’s due

Last edited by Nachtkinder; June 9th, 2010 at 12:30 PM . Reason: Added future enhancement involving PID

Firstly, great plugin! I’m sure a lot of users will find it useful. I wanted a little more information in the OSD though and that leads me nicely to.

I’ve used your script as the basis for an overlay similar to that used in Mumble. I’ve not used Lua before and found your plugin of great help in starting out. I wanted to increase the information shown in the OSD without adding to the requirements or installation procedure.

The changes I have made:

  • OSD first launched upon successful connection to server
  • OSD now lists channels that are children of the root channel and the clients within
  • Currently speaking user prefixed with «>>»
  • OSD now shows away status

The changes I intend to make:

  • Include clients when they join/leave channels (currently updates the next time any user speaks)
  • Update OSD when client updates away status (currently updates the next time any user speaks).

I can post the enhanced version here or start a new thread if you’d rather I did that. Either way I’ll credit you as the author of the original script and include the URL of this thread. Credit where credit’s due

It doesn’t matter to me. I can check the code if you want, I have done a lot of lua earlier and know how to do stuff. So either post it here, send it to me in a pm or make a new thread and I’ll try to help in anyway I can.

I was thinking about adding more features wasn’t sure if I should try to make a real plugin in c instead that uses the lib which osd_cat uses. In that lib the possibility to get some better control over the osd window which means that it’s not needed to kill the osd process all the time.

Источник

Linux.yaroslavl.ru

1.4. Субтитры и OSD
Пред. Глава 1. Введение След.

1.4. Субтитры и OSD

Вместе с фильмом MPlayer может показывать и субтитры. В настоящий момент поддерживаются следующие форматы:

CC (closed caption[скрытые титры])

MPlayer может конвертировать вышеперечисленные форматы субтитров ( кроме первых трёх ) в следующие форматы с помощью соответствующих опций:

MEncoder может выдавать DVD субтитры в VobSub формате.

Опции значительно различаются для различных форматов:

VobSub субтитры. VobSub субтитры состоят из большого (несколько мегабайт) .SUB файла, и необязательных .IDX и/или .IFO файлов. Использование: если у Вас, например, есть файлы sample.sub, sample.ifo (необязательно), sample.idx — Вы должны указать MPlayer ‘у опции -vobsub sample [-vobsubid id] (можно указать полный путь). Опция -vobsubid похожа на -sid для DVD, с её помощью, Вы можете выбирать между дорожками субтитров (языками). В случае, если -vobsubid пропущена, MPlayer попытается использовать языки, полученные через опцию -slang и перейти к пункту langidx в .IDX файле, чтобы выбрать язык субтитров. Если и это не удаётся, то субтитров не будет.

Другие субтитры. Прочие форматы субтитров состоят из единого текстового файла, содержащего информацию о синхронизации, местоположении и тексте субтитра. Использование: Если у Вас есть, например, файл sample.txt, Вы должны указать опцию -sub sample.txt (можно указать полный путь).

Регулировка синхронизации и местоположения субтитров:

-subdelay sec Задерживает субтитры на sec секунд. Это значение может быть отрицательным. -subfps RATE Указывает количество кадров/сек для файла субтитров (вещественное число) -subpos 0-100 Указывает позицию субтитров.

Читайте также:  What is local windows profile

Если Вы наблюдаете увеличивающуюся задержку между фильмом и субтитрами, используя файл субтитров в формате MicroDVD, наиболее вероятно, что частота кадров у фильма и файла субтитров не совпадают. Пожалуйста, обратите внимание, что формат MicroDVD использует абсолютные номера кадров для синхронизации, и поэтому опция -subfps не может использоваться с этим форматом. Поскольку MPlayer не может угадать частоту кадров для субтитров, Вы должны вручную конвертировать частоту кадров. В каталоге contrib MPlayer ‘овского FTP сайта есть специальный Perl’овый скрипт для такой конверсии.

О DVD субтитрах, читайте в секции DVD.

1.4.1. MPlayer ‘s own subtitle format (MPsub)

MPlayer ввёл в употребление новый формат субтитров, называемый MPsub . Он был разработан Gabucino. По существу, его основная особенность — это использование динамической временной привязки (хотя существует и режим покадровой привязки). Пример (из DOCS/tech/mpsub.sub):

Как видите, основной целью было сделать простым редактирование/синхронизацию/ объединение/разрезание простым . И, если Вы, например, получили SSA субтитры но они плохо синхронизированы с Вашей версией фильма, Вы просто запускаете . В текущем каталоге будет создан файл dump.mpsub, содержащий исходный текст субтитров, но в MPsub формате. После этого, Вы можете свободно добавлять/вычитать секунды к/от субтитра.

Субтитры выводятся, используя технику ‘OSD’, On Screen Display . OSD используется для вывода текущего времени, полос громкости и перемещения, и т. п.

1.4.2. Установка OSD и субтитров

Чтобы использовать возможности OSD/SUB, Вам нужен пакет шрифтов MPlayer ‘а. Есть много способов их получить:

Использовать средство генерации шрифтов в TOOLS/subfont-c. Это законченное средство для преобразования из TTF/Type1/и т. п. шрифтов в mplayer’овские шрифтовые пакеты. (подробности читайте в TOOLS/subfont-c/README)

используйте GIMP’овый плагин генерации шрифтов из TOOLS/subfont-GIMP (замечание: также, у Вас должен быть установлен HSI RAW плагин, см. http://realtime.ssu.ac.kr/

используйте TrueType (TTF) шрифт, через библиотеку freetype . Обязательна версия 2.0.9 или выше! Тогда у Вас есть два метода:

используйте опцию -font /path/to/arial.ttf, чтобы указывать каждый раз путь к TrueType шрифту

Если MPlayer был скомпилирован с поддержкой fontconfig, эти методы не будут работать, вместо этого, опция -font ожидает fontconfig’овское название шрифта, и по умолчанию это фонт без засечек (sans-serif). Чтобы получить список фриштов известных fontconfig’у, используйте fc-list. Пример: -font ‘Bitstream Vera Sans’

Скачать готовый к употреблению пакет шрифтов с сайта MPlayer’а. Замечание: Доступные в настоящий момент шрифты ограничены до поддержки ISO 8859-1/2, но существуют другие (включая корейские, русские, ISO 8859-8 и др.) сделанные пользователями шрифты в contrib/font секции FTP.

Шрифт должен содержать соответствующий font.desc файл, который создаёт соответствия между Unicode позицией в шрифте и кодовой страницей субтитра. Другим решением является наличие субтитра в utf8 кодировке и использование опции -utf8, или просто обозвать файл субтитра .utf и разместить его в каталоге с фильмом. Перекодировка из различных кодировок в utf8 может быть осуществлена с помощью программ konwert (Debian) или iconv (Red Hat).

Таблица 1.1. Некоторые URL’ы

URL Comment
ftp://ftp.mplayerhq.hu/MPlayer/releases/fonts/ ISO шрифты
ftp://ftp.mplayerhq.hu/MPlayer/contrib/fonts/ различные шрифты, сделанные пользователями
http://realtime.ssu.ac.kr/

lethean/mplayer/

корейские шрифты и RAW плагин

Если Вы решите использовать не-TTF шрифты, UNZIP’ните скаченный файл в

/.mplayer или $PREFIX/share/mplayer. Затем переименуйте, или слинкуйте (создайте ссылку) один из каталогов в font (напр.: ). Теперь Вы должны увидеть таймер в левом верхнем углу фильма (выключите его кнопкой o ).

(субтитры всегда включены , чтобы узнать, как их отключить, читайте страницу man)

У OSD 4 состояния: (переключаются кнопкой o ):

  1. полосы громкости + перемещения (по умолчанию)
  2. полосы громкости + перемещения + таймер + позиция в файле в процентах при перемещении
  3. полосы громкости + перемещения + таймер + длина всего фильма
  4. только субтитры

Вы можете изменить действия по умолчанию, установив в нужное значение переменную osdlevel в конфигурационном файле, или используя опцию -osdlevel командной строки.

1.4.3. OSD меню

У MPlayer ‘а существует целиком определяемый пользователем интерфейс OSD меню.

Замечание

меню Preferences[Настройки] в настоящий момент НЕ НАПИСАНО!

  1. скомпилируйте MPlayer , указав ./configure параметр —enable-menu
  2. убедитесь, что у Вас установлен OSD шрифт
  3. скопируйте etc/menu.conf в Ваш каталог .mplayer
  4. скопируйте etc/input.conf в Ваш каталог .mplayer, или в системный конфигурационный каталог MPlayer ‘а (по умолчанию: /usr/local/etc/mplayer)
  5. проверьте и отредактируйте input.conf, чтобы включить кнопки перемещения по меню (это здесь описано).

запустите MPlayer как в следующем примере:

  • нажмите любую меню-кнопку, которую Вы определили
  • Источник

    Оцените статью