Меню Рубрики

Darwin linux streaming server

Установка Darwin Streaming Server в Ubuntu 10

Darwin Streaming Server (DSS) позволяет использовать RTSP для потоковой передачи файлов от сервера клиенту. Яркий пример — m.youtube.com. Однако DSS это ПО Apple, поэтому установка его в Ubuntu Linux обладает некоторыми особенностями. Эта тема слабо освещена на Хабре, поэтому привожу инструкция по установке DSS в Ubuntu 10.04, 10.10.

Зайдем под root’ом и скачаем необходимые исходники:

Создадим qtss группу и пользователя (без домашней папки):

Установим необходимый пакет:

Теперь нужно пропатчить скачанный исходник, так как изначально он предназначается под Mac OS X. Воспользуемся скачанными патчами:

Теперь переходим непосредственно в каталог с исходниками, и подменяем файл установки пропатченым:

И, наконец, собираем и устанавливаем:

Это все. Теперь мы можем запустить Darwin Streaming Server:

Чтобы запустить административный интерфейс выполняем:

Затем переходим по адресу и входим, используя имя пользователя и пароль, указанные при установке. Интерфейс панели управления описывать не буду. Там все предельно просто.

Чтобы убедиться, что все установилось нормально открываем в браузере ссылки. Рекомендую делать это в FireFox, т.к. Chrome такие ссылке открывать отказывается и кидает на поиск в Google.
rtsp://127.0.0.1/sample_h264_300kbit.mp4
rtsp://ваш_ip/sample_h264_300kbit.mp4

Пожалуй, это все. Из минусов использования Darwin Streaming Server я заметил, что файлы транслируются только из установленной в панели управления папки. А хотелось бы, чтобы можно было открывать таким образом любые файлы на локальном (production) сервере. Пока способа это сделать я не нашел, если кто знает — прошу поделиться.

Данная статья не подлежит комментированию, поскольку её автор ещё не является полноправным участником сообщества. Вы сможете связаться с автором только после того, как он получит приглашение от кого-либо из участников сообщества. До этого момента его username будет скрыт псевдонимом.

Источник

Easy.Mutant.Blog

понедельник, 12 октября 2009 г.

Установка DSS(Darwin Streaming Server 6.0.3) на Linux (Ubuntu 9.04 server)

2. sudo apt-get install build-essential — если еще не установили(этот пакет необходим для сборки пакетов Debian);

3. sudo addgroup -–system qtss
sudo adduser –system –no-create-home –ingroup qtss qtss
— добавляем группу и пользователя, от которого будет запускаться DSS.

4. cd /usr/local/src/ — переходим в каталог, в котором будем собирать наш сервер из исходников.

5. с сервера http://github.com/lstoll/dss скачиваем последнюю версию DSS (в моем случае это версия lstoll-dss-984a136).

6. tar -xvf lstoll-dss-984a136.tar — распаковываем;

7. cd lstoll-dss-lstoll-dss-984a136/ — переходим в образовавшийся каталог;

8. /Buildit install — подготавливаем пакет к инсталяции;

9. cd DarwinStreamingSrvr6.0.3-Linux переходим в образовавшийся каталог;

10. ./Install — инсталлируем, в процессе установки возникнет необходимость ввести имя пользователя и пароль;

11. если инсталляция прошла успешно, то введя в браузер адрес хоста и порт 1220 увидете панель администрирования (логин и пароль введенные значения в пункте 10)

12. Создаем скрипт запуска
cd /etc/init.d/
cat > dss
#!/bin/sh
#
# chkconfig: 35 92 12
# description: Quicktime Streaming Media Server
#
# Slight tweak of file create by Larry Underhill 05/20/02
#
# init script to start up the quicktime (Darwin) streaming server
# tested on Redhat 7.2, Fedora Core 4 and CentOS-4.3
# source function library
#. /etc/rc.d/init.d/functions

*)
echo «Usage: $0 [start|stop|restart]»
exit 1
esac
exit 0

выходим из cat нажав ctrl + d

13. chmod +x dss — делаем созданный скрипт исполняемым;

14. root@vombantu:/etc/init.d# update-rc.d dss defaults
update-rc.d: warning: /etc/init.d/dss missing LSB information
update-rc.d: see
Adding system startup for /etc/init.d/dss .
/etc/rc0.d/K20dss -> ../init.d/dss
/etc/rc1.d/K20dss -> ../init.d/dss
/etc/rc6.d/K20dss -> ../init.d/dss
/etc/rc2.d/S20dss -> ../init.d/dss
/etc/rc3.d/S20dss -> ../init.d/dss
/etc/rc4.d/S20dss -> ../init.d/dss
/etc/rc5.d/S20dss -> ../init.d/dss

15. для проверки можем перезапустить наш Darwin Streaming Server
masteruser@vombantu:

Источник

Darwin linux streaming server

Any resources to get more details on Monitoring Darwin Servers while doing a 3GP Live Streaming Load Test? Am working on performing a Load Test on the server to baseline it and would like to find out what relevant Parameters we should capture besides basic OS ones like: CPU, Mem, I/O, Bandwidth used, Concurrent Connections? Goal is to gauge Streaming Server Performance as load increases and if there is any deterioration in Stream Quality.

Any help is appreciated.

Thanks,
Deepa Sign In· View Thread

QTSSMyAuthModule Kills Admin

Member 8219537 7-Sep-11 7:35
This is a great tutorial thankyou. However after compiling QTSSMyAuthModule, copying to /usr/local/sbin/StreamingServerModules/ and enabling in the config the admin page will no longer load giving the error «Server is Not Running». The server is however running, and the module works although. Something else seems to be breaking the admin page access. If I remove the module, the admin page works again.

Anyone else experienced this? Anyone know a workaround, or have a link to a working version of a custom authentication module. I am also specifically looking at implementing user agent checks as part of the authentication process and would appreciate any comments on this.

regards

Sign In· View Thread
Real time billing module(Diameter)

mahiccc 27-Jun-11 20:20
Super article. Helped me a lot. We are trying to build Realtime Billing module for Darwin. If any ready module is there let me know
Sign In· View Thread
solution pour sécurité du seveur DSS 6.0.3

chenouf 17-Apr-11 10:54
Bonjour ;

Je prépare mon PFE pour soutenir mon M2 en Info dont le sujet tourne sur la sécurité du server darwin streaming server

J’ai télécharger la dernière version «6.0.3» et apparemment un minimum de sécurité est assuré «ex. accées des utilisateurs . «

Je veut proposer des améliorations pour assurer le max de sécurité et je demande au gens qui ont déjà travailler ou qui ont une idée sur cet serveur de m’aidiez avec leurs idées ou proposition «failles, solutions».

N’importe quel informations de votre part est la bienvenue ;n’hésitez pas .

Merci d’avance

Sign In· View Thread
great article! but i’m having compiling issues

macdabby 2-Apr-11 23:40
I starting with the sample project provided. it compiles perfectly, and darwin reports:

2011-04-02 20:03:54: INFO: Module Loaded. QTSSMyAuthModule [dynamic]

i added my own code, which compiles without errors, but when loading into darwin, I get:

2011-04-02 20:05:16: WARNING: The module QTSSMyAuthModule is not a compatible QTSS API module.

i started commenting out the code, until i found the culprit to be:
mysql_init(&mysql);
from the
# include library.

i can’t figure out why that line would prevent the server from loading it. i set the error log to debug level, and there is no other explanation offered. I tried writing to the log before that line is called, and its like its not even running the code, just checking it somehow.

any idea?

Sign In· View Thread
Issue in Streaming to Mobile Handsets

sterlite 25-May-10 22:00
My aim is to do audio/video streaming on mobile handsets via GPRS. I am able to stream on handsets but it is not consistent. Most of the time stream doesn’t get played, it just says Loading and eventually throws Server Time Out error. I have checked network firewall and all UDP ports are open. Is there any setting, either on DSS or handset that i am missing to configure. My testing handsets are mostly of Nokia made(N95 8 GB). This issue doesn’t come with Samsung handsets when using same mobile operator connection.

This inconsistency issue also occurs when i try to connect on handsets through WiFi.

Any help/suggestion is welcome.

Sign In· View Thread
Re: Issue in Streaming to Mobile Handsets

prashant_tamanekar 12-Nov-10 21:22

I am also Working on Streaming on mobile.i want to stream 3gp file on mobile.
what is format need to change for video Files
compress and hint specification
can you please guide me.

Thanks,
Prashant Tamanekar

Sign In· View Thread
Admin console could not display DSS information after install QTSSMyAuthModule

lgshen 7-May-10 23:30
Dear Sir,
DSS admin console could not display DSS information after install QTSSMyAuthModule,it looks like that parser_xml.cgi could not parser xml message and display some wrong information like followings:
Server: Connect Failed: 鎷掔粷杩炴帴

Status: Started Thu, 1. Jan 1970 08:00:00
Current Time On Server: Thu, 1. Jan 1970 08:00:00
Up Time:
DNS Name (default): Connect Failed: 鎷掔粷杩炴帴

Server Version: Connect Failed: 鎷掔粷杩炴帴
Server API Version: 0.0

CPU Load: 0.00%
Current # of Connections:
Current Throughput: bps
Total Bytes Served:
Total Connections Served:

Please help me to work it out.
Thank you!
Johnshen

Sign In· View Thread
Re: Admin console could not display DSS information after install QTSSMyAuthModule

Member 8219537 7-Sep-11 6:57

I am seeing this error too whilst testing the custom authentication module, did you find a work around for this problem?

Sign In· View Thread
Very nice

Zelalem09 10-Nov-09 7:37
I really enjoyed your article. Thank you very much. Actually it is now clear to understand the QTSSAPIDocs file.

Thanks again.
P.S. BTW, I was looking for an open source rtsp stack to implement my own rtsp proxy kind of thing. Do you know any rtsp stack. I could find on the internet.

Sign In· View Thread
Excellent

innoz 25-Sep-09 13:12
Very good article. Well done!
I think crash problem may be the same as this: http://dss.macosforge.org/trac/ticket/9
In OS.cpp code we can see the same behaviour on all operating systems.
Sign In· View Thread
Excellent stuff Chakrabarty Rajib 29-Aug-09 18:50
Excellent stuff as usual.
Sign In· View Thread
Last Visit: 20-Sep-20 21:17 Last Update: 20-Sep-20 21:17 Refresh 1

General News Suggestion Question Bug Answer Joke Praise Rant Admin

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Источник

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

  • High sierra wallpapers mac os
  • Hex редактор для mac os
  • Hex editor mac os
  • Heroes of newerth mac os
  • Heroes of might and magic iii для mac os