Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

save stream nothing happen #442

Closed
khalil1123 opened this issue Mar 17, 2018 · 17 comments
Closed

save stream nothing happen #442

khalil1123 opened this issue Mar 17, 2018 · 17 comments

Comments

@khalil1123
Copy link

khalil1123 commented Mar 17, 2018

hi
when i push button save stream nothing happen just show " pressing" and nothing change stay in the same page not go to live page as public and i dont have notification like video i watch to you
what must do ?
thanks

@DanielnetoDotCom
Copy link
Member

Hi

Check your log file
Also make sure you install the tables of this plugin

If you are not sure how to transmit check this https://tutorials.youphptube.com/video/youphptube-video-stream-with-obs-and-vmix

@DanielnetoDotCom
Copy link
Member

If you not sure how to find the log file, check here https://github.com/DanielnetoDotCom/YouPHPTube/wiki/How to find errors on YouPHPTube

@khalil1123
Copy link
Author

[17-Mar-2018 22:50:10 Europe/Helsinki] PHP Fatal error: Uncaught Error: Call to undefined function simplexml_load_string() in /var/www/html/YouPHPTube/plugin/Live/Live.php:86
Stack trace:
#0 /var/www/html/YouPHPTube/plugin/Live/stats.json.php(22): Live->getStatsObject()
#1 {main}
thrown in /var/www/html/YouPHPTube/plugin/Live/Live.php on line 86
[17-Mar-2018 22:50:10 Europe/Helsinki] PHP Fatal error: Uncaught Error: Call to undefined function simplexml_load_string() in /var/www/html/YouPHPTube/plugin/Live/Live.php:86
Stack trace:
#0 /var/www/html/YouPHPTube/plugin/Live/stats.json.php(22): Live->getStatsObject()
#1 {main}
thrown in /var/www/html/YouPHPTube/plugin/Live/Live.php on line 86
[17-Mar-2018 22:53:10 Europe/Helsinki] Array
(
[scheme] => rtmp
[host] => 10.20.30.221
[path] => /live
[query] => p=202cb962ac59075b964b07152d234b70
)

[17-Mar-2018 22:53:10 Europe/Helsinki] Array
(
[p] => 202cb962ac59075b964b07152d234b70
)

@khalil1123
Copy link
Author

screenshot from 2018-03-17 22-55-07

@DanielnetoDotCom
Copy link
Member

Your problem is this ...

PHP Fatal error: Uncaught Error: Call to undefined function simplexml_load_string() 

It is not hard to fix try Google for that

@khalil1123
Copy link
Author

hi
i try alot by google and more solution
but nothing :: hint : i have 4 version fot php in my server 5.6 , 7.0 , 7.1 , 7.2
the same error :
#1 {main}
thrown in /var/www/html/YouPHPTube/plugin/Live/Live.php on line 86
[18-Mar-2018 20:22:49 Europe/Helsinki] PHP Fatal error: Uncaught Error: Call to undefined function simplexml_load_string() in /var/www/html/YouPHPTube/plugin/Live/Live.php:86
Stack trace:
#0 /var/www/html/YouPHPTube/plugin/Live/stats.json.php(22): Live->getStatsObject()
#1 {main}
thrown in /var/www/html/YouPHPTube/plugin/Live/Live.php on line 86

i need some hints from you and i will make it
many thanks

@khalil1123
Copy link
Author

this my function in live php
function getStatsObject() {
ini_set('allow_url_fopen ', 'ON');
$xml = simplexml_load_string($this->get_data($this->getStatsURL()));
return $xml;

@nightstryke
Copy link

nightstryke commented Mar 18, 2018

Your PHP version and installation needs one of these plugins installed and enabled to work.
php-xml or php-simplexml

@DanielnetoDotCom
Copy link
Member

@khalil1123 you have to figure out how to make simplexml_load_string function work

@khalil1123
Copy link
Author

khalil1123 commented Mar 19, 2018

thnaks alot for support i will tell you what i do :
first i install php-xml and php simplexml
then i caught this error
PHP Fatal error: Uncaught Error: Call to undefined function curl_init()
i solved it by install php-curl
and all things good
but i open from windows like chrome and Firefox and mobile give me that :
The media could not be loaded, either because the server or network failed or because the format is not supported.
what i do ?

@DanielnetoDotCom
Copy link
Member

now check the Streamer log file.

@khalil1123
Copy link
Author

khalil1123 commented Mar 19, 2018

[19-Mar-2018 21:58:15 Europe/Helsinki] PHP Notice: Undefined index: filename in /var/www/html/YouPHPTube/plugin/Live/view/modeYoutubeLive.php on line 17

i think
this the problem :
$data = getimgsize("{$global['systemRootPath']}videos/{$video['filename']}.jpg");
from file : $video = "{$p->getPlayerServer()}/{$uuid}/index.m3u8";

DanielnetoDotCom pushed a commit that referenced this issue Mar 20, 2018
remove notice from live mode
#442 (comment)
add option to do not use GIF image as thumds mouse over
@DanielnetoDotCom
Copy link
Member

It is a notice, You can try to not display errors notice (usually it is the default)

The PHP Notice: Undefined index: filename in /var/www/html/YouPHPTube/plugin/Live/view/modeYoutubeLive.php on line 17 is not a problem

Also I am sending a fix for it anyway

@khalil1123
Copy link
Author

hi
the last problem solved now that:
im_resize: Function does not exists: imagecreatefromjpeg

@DanielnetoDotCom
Copy link
Member

You need to install GD Library, please google for that.

@nightstryke
Copy link

@khalil1123 Install GD Library, install these dependencies php-gd
please check which version of php you are using because sometimes you have to have the version number before the gd like this php7.0-gd

@hersche
Copy link
Contributor

hersche commented Jun 3, 2018

those libs are now also in the wiki, so it should be more clear now and the problem seems solved. i close it out of this.

@hersche hersche closed this as completed Jun 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants