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

i have problems to upload a video (encoder) #842

Closed
facostapv opened this issue Jul 9, 2018 · 3 comments
Closed

i have problems to upload a video (encoder) #842

facostapv opened this issue Jul 9, 2018 · 3 comments

Comments

@facostapv
Copy link

im trie to upload a video whit my local encoder to the streamer site. but i recive an error. i tried with 3 diferent videos and the same result. here a log from encoder:

[09-Jul-2018 19:31:43 America/Halifax] MP4 All
[09-Jul-2018 19:31:43 America/Halifax] {"status":"error", "msg":"getDurationFromFile ERROR, File () Not Found"}
[09-Jul-2018 19:31:43 America/Halifax] YouPHPTube-Encoder sending file to http://clsarrvvtubep01/youPHPTubeEncoder.json
[09-Jul-2018 19:31:43 America/Halifax] YouPHPTube-Encoder reading file from
[09-Jul-2018 19:31:43 America/Halifax] PHP Fatal error: Uncaught Error: Call to undefined function curl_init() in /var/www/html/renta-encoder/objects/Encoder.php:691
Stack trace:
#0 /var/www/html/renta-encoder/view/upload.php(74): Encoder::sendFile('', 0, 'mp4', Object(Encoder))
#1 {main}
thrown in /var/www/html/renta-encoder/objects/Encoder.php on line 691

@DanielnetoDotCom
Copy link
Member

for sure you need to fix this "Call to undefined function curl_init()"

If you're on Windows:

Go to your php.ini file and remove the ; mark from the beginning of the following line:

;extension=php_curl.dll
After you have saved the file you must restart your HTTP server software (e.g. Apache) before this can take effect.

For Ubuntu 13.0 and above, simply use the debundled package. In a terminal type the following to install it and do not forgot to restart server.

sudo apt-get install php-curl
Or if you're using the old PHP5

sudo apt-get install php5-curl

https://stackoverflow.com/questions/6382539/call-to-undefined-function-curl-init

just one thing, if you are using PHP7, you may use this command: sudo apt-get install php7.0-curl

@hersche
Copy link
Contributor

hersche commented Jul 9, 2018

it is also documented here:

https://github.com/DanielnetoDotCom/YouPHPTube/wiki/How-to-install-LAMP,-FFMPEG-and-Git-on-a-fresh-Ubuntu-18.x-for-YouPHPTube-version-4.x-or-newer

@facostapv
Copy link
Author

facostapv commented Jul 10, 2018 via email

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

3 participants