Friday, September 10th 2010, 10:01am UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to Linux VDR/DVB форум. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

dremius

Beginner

Posts: 17

Thanks: 9

1

Saturday, January 9th 2010, 7:22am

VDR + XBMC + Xine

На днях попробовал ещё один вариант запуска Xine в качестве frontend из под XBMC через Питоновский скрипт - сработало.
Что нужно:
работающий VDR в качестве backend, далее
в папке /usr/local/share/xbmc/scripts/ создаем скрипт RunXine.py

Source code

1
2
import os
pid = os.spawnv(os.P_NOWAIT, "/usr/local/bin/xine", ['xine', '-f', '-D', '-B', '-A alsa', '-V vdpau', '--no-splash', '-g', 'vdr://tmp/vdr-xine/stream'])

Запускается скрипт через меню Скрипты в XBMC, при выходе из Xine остаемся в XBMC.
Для удобства запуска скрипта в главном меню можно создать кнопку.
Для этого, на примере скина PM3.HD, правим в каталоге /usr/local/share/xbmc/skin/PM3.HD/720p/ файлик Home.xml,
в конце файла перед последними двумя строками вставляем следующую секцию:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
<control>
      <description>My Button for VDR</description>
      <type>button</type>
      <posx>110</posx>
      <posy>125</posy>
      <width>360</width>
      <height>50</height>
      <font>font20</font>
      <label>[B]VDR Xine[/B]</label>
      <onclick>RunScript(/usr/local/share/xbmc/scripts/RunXine.py)</onclick>
      <align>center</align>
</control>

готовые файлики в аттаче
dremius has attached the following files:
  • RunXine.zip (281 Byte - 34 times downloaded - Last download: Sep 4th 2010, 12:18am)
  • Home.zip (3.35 kB - 22 times downloaded - Last download: Aug 18th 2010, 12:23am)
Dreambox 7000S, Diseq позиционер, актуатор+полярная подвеска,
4W-90E,три конвертера через Diseq switch: Ku (лин), Ku (круг), C (универс)
P4 1.8 Ghz, 1 Gb RAM, Nvidia 9600GT, TT S2-3200
Ubuntu 9.04+VDR-1.7.10+S2API+VDPAU+xine-0.9.3
XBMC (pvr-testing) 9.11-alpha1 r24730, Streamdev: 0.5.0-pre

4 registered users thanked already.

Users that thanked:

Alextuzov (09.01.2010), Bikalexander (09.01.2010), dimka_9 (09.01.2010), Hikaru (12.01.2010)