Архив форума Ace Stream       Wiki        Info

перейти на новый форум
Расширенный поиск  

Автор Тема: acestream в http на Ubuntu  (Прочитано 9076 раз)

0 Пользователей и 1 Гость смотрят эту тему.

digitalcelery

  • Newbie
  • *
  • Оффлайн Оффлайн
  • Сообщений: 3
acestream в http на Ubuntu
« : 27 Октября 2017, 20:55:21 »

Доброго времени суток,

Ни как не могу вывести acestream поток в http для просмотра на других клиентах. Пробую вот так:

acestreamengine --client-console acestream://f01dd99ffaa3b1d271ff1f14cc57ecb38a86dbbb --sout "duplicate{dst="http{mux=ts,dst=:8902/tv.asf}",dst=display}"

Подскажите, что делаю не так?

Benny

  • Administrator
  • Hero Member
  • *****
  • Оффлайн Оффлайн
  • Сообщений: 666
Re: acestream в http на Ubuntu
« Ответ #1 : 27 Октября 2017, 21:15:42 »

Подскажите, что делаю не так?
Все "не так". Откуда вообще возникла мысль "скрестить" командную строку VLC и движка?
Нужно:
1. запустить движок ("acestreamengine --client-console", как вариант)
2. обратиться к движку по НТТР, открыв в плеере ссылку вида "http://127.0.0.1:6878/ace/getstream?id=8911ad304f7c7432045f959989a3976fbe45e71f" (где id - это "content id", вместо "127.0.0.1" может быть частный или публичный адрес, в настройках движка должно быть разрешено подключение "извне").
Подробнее см. http://wiki.acestream.media/Engine_HTTP_API

digitalcelery

  • Newbie
  • *
  • Оффлайн Оффлайн
  • Сообщений: 3
Re: acestream в http на Ubuntu
« Ответ #2 : 27 Октября 2017, 23:16:57 »


по 127.0.0.1 не могу достать стрим

Делаю так:

acestreamengine --client-console
2017-10-27 23:04:30,047|MainThread|acestream|platform=linux
2017-10-27 23:04:30,047|MainThread|acestream|app=acestream
2017-10-27 23:04:30,047|MainThread|acestream|version=3.0.3 code=3000300 revision=1355 date=2014-10-31
2017-10-27 23:04:30,047|MainThread|acestream|use_local_db=True
2017-10-27 23:04:30,048|MainThread|acestream|use_m2crypto=True
2017-10-27 23:04:30,048|MainThread|acestream|enable debug: 0
2017-10-27 23:04:30,048|MainThread|acestream|get_default_api_version: 2
2017-10-27 23:04:30,048|MainThread|acestream.coreapp|use fixed i2i_port: 62062
2017-10-27 23:04:30,179|MainThread|acestream.SocketHandler.InterruptSocket|bound on 127.0.0.1:58045
2017-10-27 23:04:30,180|MainThread|acestream.SocketHandler.SocketHandler|bind: socket bound: host=0.0.0.0 port=8621
2017-10-27 23:04:30,180|MainThread|acestream.LM|listen on 8621
2017-10-27 23:04:30,196|MainThread|acestream.VideoServer|start: addr=127.0.0.1 port=6878
2017-10-27 23:04:30,230|MainThread|acestream.SocketHandler.InterruptSocket|bound on 127.0.0.1:44531
2017-10-27 23:04:30,231|MainThread|acestream.SocketHandler.SocketHandler|bind: socket bound: host=127.0.0.1 port=62062
2017-10-27 23:04:30,249|Instance2InstanceThread-24|acestream.APIServer|run: ready to receive remote commands on 62062


Запускаю VLC
/usr/local/bin/cvlc -vvv http://127.0.0.1:6878/ace/getstream?id=9eba690be925a98e8aecfc758070b874e19260c6 --sout "#std{access=http,mux=ts,dst=12345}"

получаю в VLC
http access error: error: HTTP/1.0 500 Internal Server Error

Если запускаю
/usr/local/bin/cvlc -vvv http://127.0.0.1:62062/ace/getstream?id=9eba690be925a98e8aecfc758070b874e19260c6 --sout "#std{access=http,mux=ts,dst=12345}"

получаю в acestreamengine
2017-10-27 23:05:44,412|BGTaskQueueThread-1|acestream.coreapp|got command: GET /ace/getstream?id=9eba690be925a98e8aecfc758070b874e19260c6 HTTP/1.1
2017-10-27 23:05:44,412|BGTaskQueueThread-1|acestream.BGInstanceConnection|send NOTREADY
2017-10-27 23:05:44,412|BGTaskQueueThread-1|acestream.coreapp|got command: Host: 127.0.0.1:62062
2017-10-27 23:05:44,412|BGTaskQueueThread-1|acestream.BGInstanceConnection|send NOTREADY
2017-10-27 23:05:44,413|BGTaskQueueThread-1|acestream.coreapp|got command: User-Agent: VLC/2.2.4 LibVLC/2.2.4
2017-10-27 23:05:44,413|BGTaskQueueThread-1|acestream.BGInstanceConnection|send NOTREADY
2017-10-27 23:05:44,413|BGTaskQueueThread-1|acestream.coreapp|got command: Range: bytes=0-
2017-10-27 23:05:44,413|BGTaskQueueThread-1|acestream.BGInstanceConnection|send NOTREADY
2017-10-27 23:05:44,413|BGTaskQueueThread-1|acestream.coreapp|got command: Connection: close
2017-10-27 23:05:44,413|BGTaskQueueThread-1|acestream.BGInstanceConnection|send NOTREADY
2017-10-27 23:05:44,413|BGTaskQueueThread-1|acestream.coreapp|got command: Icy-MetaData: 1
2017-10-27 23:05:44,413|BGTaskQueueThread-1|acestream.BGInstanceConnection|send NOTREADY
2017-10-27 23:05:44,413|BGTaskQueueThread-1|acestream.coreapp|got command:
2017-10-27 23:05:44,413|BGTaskQueueThread-1|acestream.BGInstanceConnection|send NOTREADY
2017-10-27 23:05:45,348|Instance2InstanceThread-24|acestream.coreapp|connection_lost: ip=127.0.0.1 port=44792
2017-10-27 23:05:45,348|Instance2InstanceThread-24|acestream.coreapp|external_connection_made: ip=127.0.0.1 port=44800 myip=127.0.0.1 myport=62062 connections=1
2017-10-27 23:05:45,348|BGTaskQueueThread-1|acestream.coreapp|got command: GET /ace/getstream?id=9eba690be925a98e8aecfc758070b874e19260c6 HTTP/1.0
2017-10-27 23:05:45,348|BGTaskQueueThread-1|acestream.BGInstanceConnection|send NOTREADY
2017-10-27 23:05:45,349|BGTaskQueueThread-1|acestream.coreapp|got command: Host: 127.0.0.1:62062
2017-10-27 23:05:45,349|BGTaskQueueThread-1|acestream.BGInstanceConnection|send NOTREADY
2017-10-27 23:05:45,349|BGTaskQueueThread-1|acestream.coreapp|got command: User-Agent: VLC/2.2.4 LibVLC/2.2.4
2017-10-27 23:05:45,349|BGTaskQueueThread-1|acestream.BGInstanceConnection|send NOTREADY
2017-10-27 23:05:45,349|BGTaskQueueThread-1|acestream.coreapp|got command: Icy-MetaData: 1
2017-10-27 23:05:45,349|BGTaskQueueThread-1|acestream.BGInstanceConnection|send NOTREADY
2017-10-27 23:05:45,349|BGTaskQueueThread-1|acestream.coreapp|got command:
2017-10-27 23:05:45,349|BGTaskQueueThread-1|acestream.BGInstanceConnection|send NOTREADY
2017-10-27 23:05:45,349|Timer-Thread-29|acestream.BGInstanceConnection|shutdown: shutdownplugin=1
2017-10-27 23:05:45,349|Timer-Thread-29|acestream.BGInstanceConnection|cleanup_playback
2017-10-27 23:05:45,349|Timer-Thread-29|acestream.BGInstanceConnection|send NOTREADY
2017-10-27 23:05:45,350|Timer-Thread-29|acestream.coreapp|connection_lost: ip=127.0.0.1 port=44792
2017-10-27 23:05:46,349|Instance2InstanceThread-24|acestream.coreapp|connection_lost: ip=127.0.0.1 port=44800
2017-10-27 23:05:46,349|Timer-Thread-30|acestream.BGInstanceConnection|shutdown: shutdownplugin=1
2017-10-27 23:05:46,349|Timer-Thread-30|acestream.BGInstanceConnection|cleanup_playback
2017-10-27 23:05:46,350|Timer-Thread-30|acestream.BGInstanceConnection|send NOTREADY
2017-10-27 23:05:46,350|Timer-Thread-30|acestream.coreapp|connection_lost: ip=127.0.0.1 port=44800
2017-10-27 23:05:46,350|Instance2InstanceThread-24|acestream.coreapp|external_connection_made: ip=127.0.0.1 port=44806 myip=127.0.0.1 myport=62062 connections=1
2017-10-27 23:05:46,351|BGTaskQueueThread-1|acestream.coreapp|got command: GET /ace/getstream?id=9eba690be925a98e8aecfc758070b874e19260c6 HTTP/1.0
2017-10-27 23:05:46,351|BGTaskQueueThread-1|acestream.BGInstanceConnection|send NOTREADY
2017-10-27 23:05:46,351|BGTaskQueueThread-1|acestream.coreapp|got command: Host: 127.0.0.1:62062
2017-10-27 23:05:46,351|BGTaskQueueThread-1|acestream.BGInstanceConnection|send NOTREADY
2017-10-27 23:05:46,351|BGTaskQueueThread-1|acestream.coreapp|got command: Accept: */*
2017-10-27 23:05:46,351|BGTaskQueueThread-1|acestream.BGInstanceConnection|send NOTREADY
2017-10-27 23:05:46,351|BGTaskQueueThread-1|acestream.coreapp|got command: User-Agent: NSPlayer/7.10.0.3059
2017-10-27 23:05:46,351|BGTaskQueueThread-1|acestream.BGInstanceConnection|send NOTREADY
2017-10-27 23:05:46,351|BGTaskQueueThread-1|acestream.coreapp|got command: Pragma: no-cache,rate=1.000000,stream-time=0,stream-offset=0:0,request-context=1,max-duration=0
2017-10-27 23:05:46,351|BGTaskQueueThread-1|acestream.BGInstanceConnection|send NOTREADY
2017-10-27 23:05:46,351|BGTaskQueueThread-1|acestream.coreapp|got command: Pragma: xClientGUID={0xbabac001-0xcea0-0xb7f7-0x95ae33ba9b74171c}
2017-10-27 23:05:46,351|BGTaskQueueThread-1|acestream.BGInstanceConnection|send NOTREADY
2017-10-27 23:05:46,352|BGTaskQueueThread-1|acestream.coreapp|got command: Connection: Close
2017-10-27 23:05:46,352|BGTaskQueueThread-1|acestream.BGInstanceConnection|send NOTREADY
2017-10-27 23:05:46,352|BGTaskQueueThread-1|acestream.coreapp|got command:
2017-10-27 23:05:46,352|BGTaskQueueThread-1|acestream.BGInstanceConnection|send NOTREADY
2017-10-27 23:05:47,350|Instance2InstanceThread-24|acestream.coreapp|connection_lost: ip=127.0.0.1 port=44806
2017-10-27 23:05:47,350|Timer-Thread-31|acestream.BGInstanceConnection|shutdown: shutdownplugin=1
2017-10-27 23:05:47,350|Timer-Thread-31|acestream.BGInstanceConnection|cleanup_playback
2017-10-27 23:05:47,351|Timer-Thread-31|acestream.BGInstanceConnection|send NOTREADY
2017-10-27 23:05:47,351|Timer-Thread-31|acestream.coreapp|connection_lost: ip=127.0.0.1 port=44806
« Последнее редактирование: 28 Октября 2017, 00:13:49 от digitalcelery »

Benny

  • Administrator
  • Hero Member
  • *****
  • Оффлайн Оффлайн
  • Сообщений: 666
Re: acestream в http на Ubuntu
« Ответ #3 : 28 Октября 2017, 00:14:56 »

по 127.0.0.1 не могу достать стрим

>>2017-10-27 23:04:30,047|MainThread|acestream|version=3.0.3<<
Для начала нужно установить там свежую версию (3.1.16) - http://wiki.acestream.media/Download

А затем см. http://oldforum.acestream.media/index.php?topic=12086.msg24298#msg24298 и ниже ("--access-token" "--bind-all").

Benny

  • Administrator
  • Hero Member
  • *****
  • Оффлайн Оффлайн
  • Сообщений: 666
Re: acestream в http на Ubuntu
« Ответ #4 : 28 Октября 2017, 00:35:55 »

Явно не мой день
Было бы гораздо проще и быстрее, если бы ошибки сопровождались пояснением (где, после чего и т.п), а мне не приходилось бы гадать - этот трейс:
- после запуска свежей версии на том же сервере?
- перед запуском все нужные зависимости были удовлетворены (http://wiki.acestream.media/Install_Ubuntu)?
- а предыдущая версия удалена была? И если нет, то "свежая" запускалась бинарником acestreamengine или скриптом start-engine (разница в том, где движок будет искать библиотеки)?

digitalcelery

  • Newbie
  • *
  • Оффлайн Оффлайн
  • Сообщений: 3
Re: acestream в http на Ubuntu
« Ответ #5 : 28 Октября 2017, 02:07:44 »

Завелось, правда VLC с 4го раза запустил.

Спасибо