WWBN / AVideo-Encoder

Encoder Server for AVideo Platform Open-Source
https://platform.avideo.com
GNU Affero General Public License v3.0
152 stars 189 forks source link

Installing Avideo Encoder on Ubuntu #514

Closed bee-media closed 1 year ago

bee-media commented 1 year ago

Help understand. I do everything according to the instructions, on Ubuntu 20.04 When installing, the inscription PROCESS hangs and that's it. There are no errors in the log file.

DanielnetoDotCom commented 1 year ago

Must have something in the logs

check the apache log, or check the JS console for errors

bee-media commented 1 year ago

Understood this. But when considering YPTSocket (YPTSocket), the site crashes and on the main page says Please configure your webSiteRootPath I can't understand why.

DanielnetoDotCom commented 1 year ago

In your videos/configuration.php file change it

$global['webSiteRootPath'] = '';
if(empty($global['webSiteRootPath'])){
    preg_match('/https?:\/\/[^\/]+(.*)/i', $global['webSiteRootURL'], $matches);
    if(!empty($matches[1])){
        $global['webSiteRootPath'] = $matches[1];
    }
}

to this

$global['webSiteRootPath'] = '/';
bee-media commented 1 year ago

Screenshot_1 Screenshot_2 Did not help. And this happens only after turning it on YPTSocket (YPTSocket)

bee-media commented 1 year ago

Screenshot_3

DanielnetoDotCom commented 1 year ago

please read carefully

https://github.com/WWBN/AVideo-Encoder/issues/514#issuecomment-1646659036

bee-media commented 1 year ago

Sorry, not there has changed. But it still didn't help. Screenshot_4

DanielnetoDotCom commented 1 year ago

remove the lines below

if(empty($global['webSiteRootPath'])){
    preg_match('/https?:\/\/[^\/]+(.*)/i', $global['webSiteRootURL'], $matches);
    if(!empty($matches[1])){
        $global['webSiteRootPath'] = $matches[1];
    }
}
bee-media commented 1 year ago

It worked, thanks. But now I don't understand why it's not streaming. 11 22

DanielnetoDotCom commented 1 year ago

Open a new issue and provide more details, avideo.log and js log

bee-media commented 1 year ago

ok, this topic can be closed.