Giter VIP home page Giter VIP logo

avideo-encoder's Introduction

AVideo - Encoder

This is the Encoder for AVideo.

AVideo is a video-sharing Platform software, the open source solution that is freely available to everyone. When you download AVideo Platform instance, you can create your own video sharing site, AVideo will help you import and encode videos from other sites like Youtube, Vimeo, etc. and you can share directly on your website. In addition, you can use Facebook or Google login to register users on your site.

Want to manage multiple encoders? AVideo Encoder Network (Optional)

If you are not sure what is AVideo Platform, go to our demo page or visit our AVideo Platform Official Site

  • AVideo Platform Flix Style Demo
    • We provide you a Flix site sample. On this site you can subscribe (with real money on PayPal). this subscription will allow you to watch our private videos. There is an user that you can use to see how it works. user: test and pass: test.
  • AVideo Platform Tutorials Gallery
    • We've provided a sample Video Gallery site, which is also our tutorials site. On this sample you can login, subscribe, like, dislike and comment. but you can not upload videos.
  • AVideo Platform Full-Access Demo
    • We provide you a Demo site sample with full access to the admin account. You will need an admin password to upload and manage videos, it is by default. user: admin and pass: 123. Also there is a non admin user and password (Only for comments). user: test and pass: test.

First thing...

I would humbly like to thank God for giving me the necessary knowledge, motivation, resources and idea to be able to execute this project. Without God's permission this would never be possible.

For of Him, and through Him, and to Him, are all things: to whom be glory for ever. Amen. Apostle Paul in Romans 11:36

This Software must be used for Good, never Evil. It is expressly forbidden to use AVideo to build porn sites, violence, racism or anything else that affects human integrity or denigrates the image of anyone.

Now you can read the rest...

Important Information

Streamer can be installed on any Server, including Windows, but the encoder and Livestream should work fine on any Linux distribution. However we recommend Ubuntu 16 or 17 without any kind of control panel. The problem with cPanel, Plesk, Webmin, VestaCP, etc. It's because we need full root access to install some libs, and maybe compile them. Another important point is that to make Livestream work, we need to compile Nginx and the control panels often prevent us from running the commands forcing the installation available only on your panel.

I don´t want to read I just want you to show me how to install!!

Ok, check this out! https://tutorials.avideo.com/video/streamer-and-encoder

Are you having a hard time to configure or install AVideo or any of its resources? fell free to ask us for help:

https://www.youphptube.com/services

Why do I need the Encoder?

You may want to install the encoder for a few reasons: If you have a faster server than the public encoder server (which is likely to happen) or If you'd like a private way of encoding your videos

But the mandatory installation if you are using a private network. The public encoder will not have access to send the videos to your streamer site

If your server does not have a public IP or uses an IP on some of these bands:

  • 10.0.0.0/8
  • 127.0.0.0/8 (Localhost)
  • 172.16.0.0/12
  • 192.168.0.0/16

Surely you need to install an encoder

AVideo Platform Script

Go get it here

Server Requirements

In order for you to be able to run AVideo, there are certain tools that need to be installed on your server. Don't worry, they are all FREE. To have a look at complete list of required tools, click the link below.

  • Linux (Kernel 2.6.32+)
  • PHP 5.6+
  • MySQL 5.0+
  • Apache web server 2.x (with mod_rewrite enabled)
  • FFMPEG
  • PHP Shell Exec Access, Note: This function is disabled when PHP is running in safe mode.

What is new on this version?

Since version 4.x+ we separate the streamer website from the encoder website, so that we can distribute the application on different servers.

  • The Streamer site, is the main front end and has as main function to attend the visitors of the site, through a layout based on the youtube experience, you can host the streamer site in any common internet host can host it (Windows or Linux).
  • The Encoder site, will be better than the original encoder, the new encoder will be in charge of managing a media encoding queue. You can Donwload the encoder here: https://github.com/WWBN/AVideo-Encoder. but to install it you will need ssh access to your server, usually only VPS servers give you that kind of access, that code uses commands that use the Linux shell and consume more CPU.
  • I will have to install the encoder and the streamer? No. We will be providing a public encoder, we will build the encoder in such a way that several streamers can use the same encoder. We are also providing source code for this, so you can install it internally and manage your own encoding priority.

Older version

If you want the old version with Streamer and Encoder together (Version 3.4.1) download it here

Docker

We've created a Docker environment for the AVideo platform together with the AVideo Encoder. You can either run docker build on this git repository or you can pull the latest image from Docker hub. It will be updated on any commit here. Also there are tags for official releases.

The docker image can be configured automatically via some environment variables. The following options are available and should respect the normal install GUI.

  • SERVER_NAME defines the name of the server used for internal configuration - default is localhost
  • SERVER_URL defines the external URL of the encoder - default is https://localhost/
  • DB_MYSQL_HOST defines the database hostname - default is database
  • DB_MYSQL_PORT defines the database port - default is 3306
  • DB_MYSQL_NAME defines the database name - default is avideo
  • DB_MYSQL_USER defines the database username - default is avideo
  • DB_MYSQL_PASSWORD defines the database password - default is avideo
  • STREAMER_URL defines the streamer url - default is https://localhost/
  • STREAMER_USER defines the streamer username - default is admin
  • STREAMER_PASSWORD defines the streamer password - default is password
  • STREAMER_PRIORITY defines the streamer priority - default is 1
  • CREATE_TLS_CERTIFICATE defines, if the image should generate its ssl selfsigned certificate - default is yes
  • TLS_CERTIFICATE_FILE defines the location of the HTTPS tls certificate - default is /etc/apache2/ssl/localhost.crt
  • TLS_CERTIFICATE_KEY defines the location of the HTTPS tls certificate key - default is /etc/apache2/ssl/localhost.key
  • CONTACT_EMAIL defines the contact mail address - default is admin@localhost
  • PHP_POST_MAX_SIZE defines the PHP max POST size for uploads - default is 100M
  • PHP_UPLOAD_MAX_FILESIZE defines the PHP max upload file size - default is 100M
  • PHP_MAX_EXECUTION_TIME defines the PHP max execution time for threads during encoding - default is 7200
  • PHP_MEMORY_LIMIT defines the PHP memory limit - default is 512M

avideo-encoder's People

Contributors

akhilleusuggo avatar alexious avatar angusthermo-pyle avatar aragoneca avatar coeur avatar danielnetodotcom avatar dheule avatar giuscia avatar infostreams avatar krzysiomisio avatar lsascha avatar m-ahadi avatar maikuolan avatar manu0401 avatar nagyzekkyandras avatar pravynandas avatar sizious avatar theassassin avatar trickert76 avatar wharfieorg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

avideo-encoder's Issues

/install/index.php AJAX submit-call stalls @ siteURL+'/login'

Hello I apologize if this isn't in the right format. I did first want to give kudos for these awesome scripts/sites! So far, I've been able to use the wizards you built with ease up to the final step, it appears.

I'm running off an Ubuntu 16.04 server VM, all got setup properly with the base YouPHPTube install, moved onto Encoder install and got all greens on the check list, filled in all my details and then I click submit to be prompted with the processing notification bar/overlay...

In my console, I see an AJAX call happen when pressing the Submit button and it uses the URL I type into the field (http://10.x.x.x/YouPHPTube/), with an appended url, adding '/login'. So the AJAX call actually calls to a URL with a double '/', like this: http://10.x.x.x//login

I traced everything back through the scripts, seeing that there was no 'login' folder with the YouPHPTube directory and found that .htaccess does its magic and forwards over to a json-php file in objects and then does it's magic... but this is where I stopped because I wasn't sure if messing with a json-php file on the main YouPHPTube directory would be a smart idea for the entire website's integrity.

The AJAX call just continues to wait for a response. Since the timeout thats required is 7200 seconds, its going to be quite some time before I receive a final response. There is no data in the 'Response' tab. I'm not sure if the Call Stack tab data is important/relevant, but let me know and I'll get you a screenshot if it is.

I did try to remove the extra '/' within the JS function on the install/index.php file, so it would call the following URL: http://10.x.x.x/login --- but this didn't seem to work either. I even jumped back onto my main YouPHPTube site that I was able to install without a hiccup and logged out, clicked login and it brought me to http://10.x.x.x/user --- using that URL, I jumped back to the install/index.php file on the Encoder-side and swapped out /login for /user in the JS function, but this didn't do the trick either (figured it wouldn't, but I had to try lol).

Any idea if this was due to a recent upgrade/addition or maybe if I missed a step that would cause this?

2017-11-01 - capture youphptube-encoder - stall on ajax

Again, my apologizes for my newb status, if there are any missing details, please let me know.

feature request about resolutions

It will be good to have an option to preserve current resolution. I.e not LOW , not SD and not HD. Just to use native resolution and don`t do any expanding.

Encoder Download Youtube dont work

logs von encoder
[06-Oct-2017 12:23:56 UTC] Getting from Youtube DL youtube-dl -k -o /tmp/youtubeDluLqV8r.mp4 https://www.youtube.com/watch?v=WZ5maEbFSsQ
[06-Oct-2017 12:26:08 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 70399608 bytes) in /var/www/vhosts/beta.mikweb.eu/httpdocs/objects/Encoder.php on line 227
[06-Oct-2017 18:16:06 UTC] PHP Warning: filesize(): stat failed for /var/www/vhosts/beta.mikweb.eu/httpdocs/videos/36_tmpFile_converted.webm in /var/www/vhosts/beta.mikweb.eu/httpdocs/view/queue.json.php on line 15
[06-Oct-2017 18:16:15 UTC] PHP Warning: filesize(): stat failed for /var/www/vhosts/beta.mikweb.eu/httpdocs/videos/36_tmpFile_converted.mp4 in /var/www/vhosts/beta.mikweb.eu/httpdocs/view/queue.json.php on line 13
[06-Oct-2017 18:16:15 UTC] PHP Warning: filesize(): stat failed for /var/www/vhosts/beta.mikweb.eu/httpdocs/videos/36_tmpFile_converted.webm in /var/www/vhosts/beta.mikweb.eu/httpdocs/view/queue.json.php on line 15
[06-Oct-2017 18:16:25 UTC] {"status":"error", "msg":"getDurationFromFile ERROR, File () Not Found"}
[06-Oct-2017 18:16:25 UTC] YouPHPTube-Encoder sending file to http://live.mikweb.eu/youPHPTubeEncoder.json
[06-Oct-2017 18:16:25 UTC] YouPHPTube-Encoder reading file from
[06-Oct-2017 18:16:25 UTC] YouPHPTube-Streamer answer {"error":false,"video_id":10}
[06-Oct-2017 18:16:54 UTC] Getting from Youtube DL youtube-dl -k -o /tmp/youtubeDl40JrI9.mp4 https://www.youtube.com/watch?v=WZ5maEbFSsQ
[06-Oct-2017 18:17:12 UTC] {"status":"error", "msg":"getDurationFromFile ERROR, File () Not Found"}
[06-Oct-2017 18:17:12 UTC] YouPHPTube-Encoder sending file to http://live.mikweb.eu/youPHPTubeEncoder.json
[06-Oct-2017 18:17:12 UTC] YouPHPTube-Encoder reading file from
[06-Oct-2017 18:17:12 UTC] YouPHPTube-Streamer answer {"error":false,"video_id":11}
[06-Oct-2017 18:17:14 UTC] Getting from Youtube DL youtube-dl -k -o /tmp/youtubeDlSuhDMd.mp4 https://www.youtube.com/watch?v=WZ5maEbFSsQ
[06-Oct-2017 18:18:49 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 70399608 bytes) in /var/www/vhosts/beta.mikweb.eu/httpdocs/objects/Encoder.php on line 227
[06-Oct-2017 18:18:49 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 70399608 bytes) in /var/www/vhosts/beta.mikweb.eu/httpdocs/objects/Encoder.php on line 227

my PHP info
https://beta.mikweb.eu/info.php
i have memory_limit 256M

for small videos work fine but big videos dont work .
i tried wiht public endoder and work fine
any Idea?

Got Unknown error when install

Hi, when I tried to install youphptube-encode in my Ubuntu 16.04, all check in the left windows passed(Apache, PHP, php.ini, and etc), but when click submit, a dialog told me sorry, Unknown error.

So, is there any log to find this error?

Thanks.

Problem with creation of thumbnail image

I have this problem with creation of thumbnail image from encoder.
If I send with the upload, a movie that exceeds a certain size ... type 300 - 400 mega mp4 ... at the end of the process of encoding the movie I can see it but the encoder no longer creates the animated thumbnail ... I have to take a screenshot of the player, then adjust it with paint, save it as a jpg, and then add it to the streamer in the film's video match ...
What do you think of this problem?

Fresh install - Endless "Processing" when doing configuration

Hello
New Ubuntu 16.04 server and fresh GIT pull and configuration of the Encoder (fresh Streamer site config'd fine).

After satisfying all requirements and entering site details on the install page, I press Submit and Processing is displayed but doesn't finish.

I reinstalled the Streamer site and I noticed that on the configuration page the SQL port was listed, but on the Encoder configuration page this option was missing. Could that be my issue?

Thanks!

the video logo overlay plugin

Just a small request if possible please.

I'v just bought this plugin which is great but the logo is too big, is their any way i could get it do much smaller logos, or even just text please.

thank you.

How can i disable encoding of downloaded videos ?

I need sometimes download a video with youtube-dl, but when I do deselect of all formats (HD,SD,Low) - I need only the copy of source, started encoder and does build new encoded videos. How can I get this video without encoding to YouPHPTube store and DB ?

Encoder Auto Delet Work Only Oregnal File encoded video not deleted in system

Please Fix This.
1_tmpFile_converted_Low.mp4 1_tmpFile_progress.txt 2_tmpFile.mp4
1_tmpFile_converted_Low.mp4.gif 2_tmpFile_converted_Low.mp4 2_tmpFile_progress.txt
1_tmpFile_converted_Low.mp4.jpg 2_tmpFile_converted_Low.mp4.gif configuration.php
1_tmpFile_converted_Low.mp4palette.png 2_tmpFile_converted_Low.mp4.jpg

Unknown encoder error ... in conversion

Switching to a new server installed on Ubuntu 16.04 around the control panel VestaCP ... the Streamer works, but the encoder when I have to download from Youtube gives me this unknown error in the encoder ... in conversion, with the result that the conversion is stops (it does not finish anymore).

Further down, one extracted from the encoder's log:

[08-Mar-2018 12:49:21 UTC] MP4
[08-Mar-2018 12:49:21 UTC] {"status":"error", "msg":"getDurationFromFile ERROR, File () Not Found"}
[08-Mar-2018 12:49:21 UTC] YouPHPTube-Encoder sending file to https://www.abc.eu/youPHPTubeEncoder.json
[08-Mar-2018 12:49:21 UTC] YouPHPTube-Encoder reading file from
[08-Mar-2018 12:49:23 UTC] YouPHPTube-Streamer answer {"error":false,"video_id":303}
[08-Mar-2018 12:49:23 UTC] {"error":false,"format":"mp4","file":"","resolution":"","target":"https:\/\/www.abc.eu\/youPHPTubeEncoder.json","postFields":9,"response_raw":"{\"error\":false,\"video_id\":303}","response":{"error":false,"video_id":303}}
[08-Mar-2018 12:49:23 UTC] Getting from Youtube DL youtube-dl --force-ipv4 --no-check-certificate -k -o /tmp/youtubeDlX2e9BC.mp4 -f 'mp4' https://www.youtube.com/watch?v=abcdef
[08-Mar-2018 12:49:31 UTC] runMultiResolution
[08-Mar-2018 12:49:31 UTC] YouPHPTube-Encoder Start Encoder [ffmpeg -i /home/bcda/web/e1.abc.eu/public_html/videos/4_tmpFile.mp4 -vf scale=1280:720 -movflags faststart -preset ultrafast -vcodec h264 -acodec aac -strict -2 -y /home/bcda/web/e1.abc.eu/public_html/videos/4_tmpFile_converted_HD.mp4]
[08-Mar-2018 12:50:21 UTC] PHP Warning: Error while sending QUERY packet. PID=4462 in /home/bcda/web/e1.abc.eu/public_html/objects/Format.php on line 29
[08-Mar-2018 12:50:21 UTC] PHP Notice: Undefined property: stdClass::$code in /home/bcda/web/e1.abc.eu/public_html/objects/Encoder.php on line 427
[08-Mar-2018 12:50:21 UTC] stdClass
(
[error] => 1 [msg] => Execute code error Code not found (, /home/bcda/web/e1.abc.eu/public_html/videos/4_tmpFile.mp4, /home/bcda/web/e1.abc.eu/public_html/videos/4_tmpFile_converted_Low.mp4, 4) Code: )

Encoder issue - Hangs during processing

I am having trouble getting the encoder to work. I downloaded it...got it installed. When I go to upload or grab a video from YouTube, I get to 100% of the download...but don't get to any encoding. (When i go to my stream site, I can see a video file there, but it never gets encoded and I get an EE:EE error over the duration and the "preview" shows static as if it never got encoded.) When i try to upload a video from my computer or phone, it hangs during the encoding process.

When I encode from the public one that is provided, I get really pixelated versions of the videos. Any advice? Thanks...

no way to upluoad mp4 video

Hello there, i m trying to upluoad some mp4 video come from Obs studios (i hope is near futur i can make a streaming and directly recorded my video on my youPHPTUBe)
for now i ulpuaad the video manyally, but i can't .
i have no error message nothing 👍
just this :
image

what do u think please ?

Encoder options missing.

image

Where can i choose encoder options? I recall in the last version that i was able to modify all the individual encoder settings to speed up the process at the expense of file size. Has this been removed or hidden to the uploader?

Admin cannot remove other user's queue's

hello,

I think as admin, it should be possible to see and cancel other jobs as admin.

The problematic thing is: when it hangs, the admin has to run around for the right user for continue.

Hanging queues, which aren't issues in my eyes, can come from reboots of the server - then it will not continue since the processes are killed of course.

Anyway, if the admin can do what's a admin role is for, the problems are solved :)

best regards and thx for your efforts

vinzenz

YouPHPTube-Encoder - blocked - Bulk not working to

youphptube.log
Hello there,

so i have tried to import some videos from youtube :
so i put a files yesterdayt and he is still in my encoder with no movement :
image

nothing in queue :
image

can u please explain me, how works the encoder and why my download is like this and no way to move it ?

i paste my log encoder files

when we have a problem here in encoder, how reset the list of queu ?

thanks

Not converting

Hey folks,

Fresh Install on CentOS7 (fresh vm) using PHP 7.1. Both sites (streamer and encoder) and up and accessible, but uploading any video to the encoder immediately gets halted with

[20-Nov-2017 15:35:28 UTC] MP4 All
[20-Nov-2017 15:35:28 UTC] {"status":"error", "msg":"getDurationFromFile ERROR, File () Not Found"}
[20-Nov-2017 15:35:28 UTC] YouPHPTube-Encoder sending file to https://example.com/youPHPTubeEncoder.json
[20-Nov-2017 15:35:28 UTC] YouPHPTube-Encoder reading file from 

The file(s) are uploaded correctly, however and have the right permissions. I am not entirely sure why it would fail and why the Filename would be empty "()".

Secondly,
how are transcode jobs triggered? I could not find any sort of middleware or cron file on the encoder anywhere.

Thanks for you support! <3
-Chris,

Blank page after installation

Dear YouPHPTube, I am writting this to share with you a problem that occured to me and how I resolved it. You may see a blank page after you hit the install button of YouPHPTube. One of the reason may be the one I faced. Go to youphptube.log located in the videos folder. If you find an error message like this

PHP Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct():
Then it is an issue with timezone in your PHP.ini file. Locate your PHP ini file and input your time zone. Php official time zones can be found here: http://php.net/manual/en/timezones.africa.php

I am new to this, but i have a feeling I will realize my dream. So I can't stop sharing my findings and tips. I don't this is the right place to post this. I apologize in any case.

Thanks.

New serveur Encoder problem installation - Blocking a Cross-Origin Request: The "Same Origin"

Hello there, i have a problem with my new encoder serveur install :

in french :

Blocage d’une requête multiorigines (Cross-Origin Request) : la politique « Same Origin » ne permet pas de consulter la ressource distante située sur https://youtube.namel.fr//login. Raison : l’en-tête CORS « Access-Control-Allow-Origin » est manquant.

google traduction :

Blocking a Cross-Origin Request: The "Same Origin" policy does not allow you to view the remote resource located on https://youtube.namel.fr//login. Reason: The CORS header "Access-Control-Allow-Origin" is missing.

i m the installation page : i m using Firefox Dev to see log error :

image

i make some seearch about this error,

it's look like u can make a ajax request an other domain of u website who u make the requete ?

for me :

youphptube site is : https://youtube.domaine.fr
youtphptube-encoder is https://youtube-encoder.domaine.fr

so i m go in the installer page and i have this erro ?

what is wrong please ?

My encoder is only queing uploaded file

Please help me o
#1 My encoder is only queing uploaded file
#2 Encoder only sends file without encoding them and
#3 Files uploaded to streamer site is error, no file details,

Please help.

No way to connect on YouphpTube-Encoder

Hello, i have a big problem :

so i m on my youhptube user and i m logged on it :

like u see my user is admin
Can stream
can upluoad and is active :
image
but when i clic on this :

image

to upluad a video
i have this error :

image

so what is wrong ??

do u think is about the https error certificat ?

i really don't understand, can help please

on log i have only this :


user [/var/www/html/YouPHPTube-Encoder/videos] > tail  -f youphptube.log
[19-Mar-2018 16:57:47 Europe/Berlin] https://serveur.domaine.fr/YouPHPTube/ == https://serveur.domaine.fr/YouPHPTube/
[19-Mar-2018 16:57:47 Europe/Berlin] PHP Warning:  Creating default object from empty value in /var/www/html/YouPHPTube-Encoder/objects/Login.php on line 47
[19-Mar-2018 16:58:24 Europe/Berlin] https://serveur.domaine.fr/YouPHPTube/ == https://serveur.domaine.fr/YouPHPTube/
[19-Mar-2018 16:58:26 Europe/Berlin] https://serveur.domaine.fr/YouPHPTube/ == https://serveur.domaine.fr/YouPHPTube/
[19-Mar-2018 16:58:32 Europe/Berlin] https://serveur.domaine.fr/YouPHPTube/ == https://serveur.domaine.fr/YouPHPTube/
[19-Mar-2018 16:58:32 Europe/Berlin] PHP Warning:  Creating default object from empty value in /var/www/html/YouPHPTube-Encoder/objects/Login.php on line 47
[19-Mar-2018 16:58:50 Europe/Berlin] https://serveur.domaine.fr/YouPHPTube/ == https://serveur.domaine.fr/YouPHPTube/
[19-Mar-2018 16:58:50 Europe/Berlin] PHP Warning:  Creating default object from empty value in /var/www/html/YouPHPTube-Encoder/objects/Login.php on line 47
[19-Mar-2018 17:01:01 Europe/Berlin] https://serveur.domaine.fr/YouPHPTube/ == https://serveur.domaine.fr/YouPHPTube/
[19-Mar-2018 17:01:01 Europe/Berlin] PHP Warning:  Creating default object from empty value in /var/www/html/YouPHPTube-Encoder/objects/Login.php on line 47
[19-Mar-2018 17:02:37 Europe/Berlin] https://serveur.domaine.fr/YouPHPTube/ == https://serveur.domaine.fr/YouPHPTube/
[19-Mar-2018 17:02:41 Europe/Berlin] https://serveur.domaine.fr/YouPHPTube/ == https://serveur.domaine.fr/YouPHPTube/

can u please tell mewhat is wrong ?

But when i m loging in youphptube website :

i m stuck here :
this page is freezing, i have to refrech it manually to have something, i m sure the php code failed (but no debig to see it ? )

image

with log :

[19-Mar-2018 17:05:14 Europe/Berlin] Failed to connect to serveur.fr port 8080: Connection refused
[19-Mar-2018 17:05:24 Europe/Berlin] Failed to connect to serveur.fr port 8080: Connection refused
[19-Mar-2018 17:05:34 Europe/Berlin] Failed to connect to serveur.fr port 8080: Connection refused
[19-Mar-2018 17:05:44 Europe/Berlin] Failed to connect to serveur.fr port 8080: Connection refused
[19-Mar-2018 17:05:54 Europe/Berlin] Failed to connect to serveur.fr port 8080: Connection refused
[19-Mar-2018 17:06:05 Europe/Berlin] Failed to connect to serveur.fr port 8080: Connection refused
[19-Mar-2018 17:06:15 Europe/Berlin] Failed to connect to serveur.fr port 8080: Connection refused
[19-Mar-2018 17:06:25 Europe/Berlin] Failed to connect to serveur.fr port 8080: Connection refused
[19-Mar-2018 17:06:35 Europe/Berlin] Failed to connect to serveur.fr port 8080: Connection refused
[19-Mar-2018 17:06:50 Europe/Berlin] Resolving timed out after 5515 milliseconds
[19-Mar-2018 17:07:00 Europe/Berlin] Failed to connect to serveur.fr port 8080: Connection refused

What is wrong pleae ?

How to set some global settings for all users

I would like to have the Low and SD resolution options turned off by default for any of the users that can log in to the encoder, but haven't found the php file to modify to turn that off.

Fatal error on PHP 7.2.2

Hi,
with PHP 7.2.2 I have :

Fatal error: Cannot use 'Object' as class name as it is reserved in /mnt/http/encode.local/objects/Object.php on line 8

converting ip to domain url

Hi Folks,

I was able to successfully install Youphptube. However there is a small issue I am facing the current url is something like http:///YouPHPTube/ how do I convert it to a domain something like www.example.com. I have already added a DNS A record for www.example.com, but when I browse it gives the default apache page and if I try to append the url like "example.com/YouPHPTube/ " . I get the below error in screen shot. Can some one help me with this. So basically if I browse www.example.com I should be able to see YouPHPTube screen.
screen shot 2018-02-15 at 12 21 41 pm

stuck at "Processing..."

Trying to install this software to my debian apache2 server.
All requirements are satisfied, database created etc. No logs, I will have to dig into the php code to find the cause. Or if someone here can help..?
How do I debug this? I have double checked all fields several times, imported database manually using:
mysql -u tubeencoder -p tubeencoder -h mysql.domain.lan < database.sql with success, but still installation does not proceed.

Encoder stuck on Uploading

Setup the encoder server, no errors appearing, but when on the encoder server when uploading a file, it goes to 100% of the progress circle, and sits at Uploading.....

how to make default catogaorie on upload

hi there .... when you upload/embed a video/link the default category on mine is 'art' .... anyway to make another default please ? i want 'miscellaneous' to be default.

thank you.

É possível desabilitar a conversão para webm?

Verifiquei que mesmo enviando o video em mp4 ele converte para mp4 em 480. Depois disso ele faz a conversão para 360 em webm. É possível fazer algo para que ele só converta para 480 ou apenas para 360?
O motivo da pergunta é que busco soluções para diminuir o tempo de conversão. Meu servidor físico tem 16 GB de ram 2 HDs de 2 TB em raid 1 processador de 8 nucleos de 2.8 #Ghz.

[]'s

Website loads improperly

I installed youPHPtube successfully, but impossible to sign up or signing because of the alignment of the website elements. ( fields are covered with the navbar element) Not browser problem. I tried on laptop, iPhone, Android tablet and I got the same result. Hadfyx.tv - doesn't work. Also doen't let to log in. No error message, just does nothing. After searching for site errors, I got this:
jquery-3.3.1.min.js:2 Uncaught TypeError: $(...).flagStrap is not a function
at HTMLDocument. (user:96)
at l (jquery-3.3.1.min.js:2)
at c (jquery-3.3.1.min.js:2)
2user:245 Uncaught ReferenceError: modal is not defined
at HTMLFormElement. (user:245)
at HTMLFormElement.dispatch (jquery-3.3.1.min.js:2)
at HTMLFormElement.y.handle (jquery-3.3.1.min.js:2)

Please kindly let me know what shall I do to fix it.

Thank you

Viki subtitle

Hello @DanielnetoDotCom
Thanks for implemented youtube-dl into encoder. It is great idea. I could downloaded from most populer video sites.. And it is work great on viki.com (korean drama site) also i could downloaded the subtitle.
By modified encoder.php like below

` static function getYoutubeDl($videoURL, $queue_id) {
global $global;
$tmpfname = tempnam(sys_get_temp_dir(), 'youtubeDl');
//$cmd = "youtube-dl -o {$tmpfname}.mp4 -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4' {$videoURL}";
$cmd = "youtube-dl --sub-lang id,en --write-sub --sub-format vtt -k -o {$tmpfname}.mp4 -f 'mp4' {$videoURL}";
//$cmd = "youtube-dl --sub-lang id,en --write-sub --sub-format vtt --skip-download -o {$tmpfname}.vtt {$videoURL}";
//echo "\n**Trying Youtube DL ".$cmd;
error_log("Getting from Youtube DL {$cmd}");
exec($cmd . " 1> {$global['systemRootPath']}videos/{$queue_id}_tmpFile_downloadProgress.txt 2>&1", $output, $return_val);
if ($return_val !== 0) {
//echo "\n
ERROR Youtube DL **".$code . "\n" . print_r($output, true);
error_log($code . "\n" . print_r($output, true));
return false;
} else {
$file = $tmpfname . ".mp4";
if (!file_exists($file)) {
$dl = static::getYoutubeDlProgress($queue_id);
$file = $dl->filename;
}
$vidloc = "../../videos/";
$indo = $filename['filename'] . ".id.vtt";
$en = $filename['filename'] . ".en.vtt";
rename($tmpfname . '.id.vtt', $vidloc . $indo);
rename($tmpfname . '.en.vtt', $vidloc . $en);

        ini_set('memory_limit', '-1');
        return file_get_contents($file);
		
    }
}`

The subtitle downloaded to system temporary directory along with video file. and then i copied rename the subtitle youtubeDlLZAjE1.vtt to videos directory but i got a problem to rename file example the video has _YPTuniqid_5a1ba7faa95799.87500718.mp4 name how to rename from youtubeDlLZAjE1.vtt to _YPTuniqid_5a1ba7faa95799.87500718.vtt

Please could you do it for me and probably the rest of us...
Thank Yoou so much.
Jesus bless you each and everyday.

file_get_contents(): Failed to enable crypto

error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /var/www/html/YouPHPTube-Encoder/view/index.php on line 176
[02-Jan-2018 21:24:12 Europe/Berlin] PHP Warning:  file_get_contents(): Failed to enable crypto in /var/www/html/YouPHPTube-Encoder/view/index.php on line 176
[02-Jan-2018 21:24:12 Europe/Berlin] PHP Warning:  file_get_contents(https://youtube.domaine.fr/plugin/CustomizeAdvanced/advancedCustom.json.php): failed to open stream: operation failed in /var/www/html/YouPHPTube-Encoder/view/index.php on line 176
[02-Jan-2018 21:24:35 Europe/Berlin] PHP Warning:  file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /var/www/html/YouPHPTube-Encoder/view/index.php on line 176
[02-Jan-2018 21:24:35 Europe/Berlin] PHP Warning:  file_get_contents(): Failed to enable crypto in /var/www/html/YouPHPTube-Encoder/view/index.php on line 176
[02-Jan-2018 21:24:35 Europe/Berlin] PHP Warning:  file_get_contents(https://youtube.domaine.fr/plugin/CustomizeAdvanced/advancedCustom.json.php): failed to open stream: operation failed in /var/www/html/YouPHPTube-Encoder/view/index.php on line 176
[03-Jan-2018 10:41:09 Europe/Berlin] PHP Warning:  file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /var/www/html/YouPHPTube-Encoder/view/index.php on line 176
[03-Jan-2018 10:41:18 Europe/Berlin] PHP Warning:  file_get_contents(): Failed to enable crypto in /var/www/html/YouPHPTube-Encoder/view/index.php on line 176
[03-Jan-2018 10:41:18 Europe/Berlin] PHP Warning:  file_get_contents(https://youtube.domaine.fr/plugin/CustomizeAdvanced/advancedCustom.json.php): failed to open stream: operation failed in /var/www/html/YouPHPTube-Encoder/view/index.php on line 176
[03-Jan-2018 11:39:42 Europe/Berlin] MP4 HD

so to solve this error i do that :

sudo nano /var/www/html/YouPHPTube-Encoder/view/index.php

Change this line :

$json_file = file_get_contents(Login::getStreamerURL() . "plugin/CustomizeAdvanced/advancedCustom.json.php");

by

function getSSLPage($url) {
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_HEADER, false);
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_SSLVERSION,3);
    $result = curl_exec($ch);
    curl_close($ch);
    return $result;
}
$json_file = getSSLPage(Login::getStreamerURL() . "plugin/CustomizeAdvanced/advancedCustom.json.php");

so when i passe my website youtube.domaine.fr in https,

the filesgetcontents not working with certificat not valid

source : https://stackoverflow.com/questions/14078182/openssl-file-get-contents-failed-to-enable-crypto

Question about large file and temp file in encoder

Hi, just installed YouPHPTube-Encode, and I have two questions, needs help.

1, when I upload file, youphptube-encode told me

The encoder Max File Size is: 100.00MB 
The Streamer Max File Size is: 100.00MB 
The Streamer Max Video Storage Limit is: Unlimited 
The Streamer Current Video Storage is: 38.53 Minutes

And I tried files larger than 100MB, of course can not upload.

So, is this max file size is in php.ini? If I want to upload larger files, how can I do?
And, the Streamer Max File Size means the size of video file can not larger than this value?

2, After encode finished, the origin file and temp file should be deleted or not in YouPHP-Encode? I found still some mp4 file such as 7_tmpFile_converted_HD.mp4 in YouPHP-Encode's video folder. Is this normal?

Thanks.

Few things ive noticed so far and id like to request

Hey guys

Great work here many kudos

Issue one thumbnails between resolution and aspect ratio break the theme display and get cut off for me anyways. Is this a streamer or encoder issue, upon inspection of the code the col class shows all thumbs at 216x180

Issue two how to send video to the appropriate stream site, again for me anyways afaik it always defaults to the one installation no matter what url the encoder is called from.

Hope this all makes sense please advise if clarity is needed
Thanks

Not support for PHP 5.4.5?

In Server Requirements sector, it says PHP 5.3+ is OK.

But when I install, server tolds me

Your PHP version is 5.4.45, you must install PHP 5.6.x or greater

So, maybe the readme.md shoud change? :)

Thanks.

Auto Remove not working

I have an issue regarding the auto remove feature.
Even though the the feature is enabled, no files are getting deleted.
I am able to delete files as user www-data in the videos location of the encoder and the return code of rm is 0.
The Encoder has been updated from 2.1 to 2.3 before. On a test Server with a fresh install the autodelete feature is working perfectly.

sql_configurations

www-data_user_shell

youphptube.log

Information video when imported youtube video

Hello there,

so now i started importing video from youtube, that's very cool, i take it only in HD.

can we get more information from youtbe, exemple the original link in the description of the video, the real author, the key word of the video, other stuff

what do u think about this ?

thanks

Just an idea - For Youtube - Sync user with youtube channel

Hello,
so my idea is create an account and sync all video of this account on u personal YouPHPTUBE,

The idea is evrytime the youtube User add a new Video the video is automaticly downloaded on u personal youPHPTUBE, and u have a notification of u personal YouPHPtube,

gens de venir sur notre YouPHPTUBE.

qu'en pensez vous ? Modifier

The technique is to give people envy to come on our YouPHPTUBE.

What do you think ?

Encoder will not allow upload past 110MB

Hi there. I have installed YouPHPTube v 5.01 and the private encoder on a dedicated Ubuntu 16.04 LTS 64-bit server. When I upload an .MP4 file to the encoder from the streamer site that is less than 110MB and it uploads the file, and then it is converted and sent back to the streamer site like it should be. If I try to upload a file any larger than 110MB the file instantly turns red after I select it and it won't upload at all. I have modified my /etc/php/7.0/apache2/php.ini with the following variables.

memory_limit = 4096M
post_max_size = 2048M
upload_max_filesize = 2048M
max_execution_time = 7500
max_input_time = 7500

I have restarted apache2 after editing the /etc/php/7.0/apache2/php.ini file as well as rebooted the server. I have cleared my browser cache. I even tried to upload different larger than 110MB .MP4 files from a couple other devices and the problem still persists.

If the file size is under 110MB the file uploads and converts and is sent back flawlessly, but if the file is over 110MB when you choose the file to upload to the encoder, the file name immediately turns red and it will not upload.

I am totally stumped on what could be causing the issue. What could the problem be? Any help is greatly apperciated. I am willing to try anything to get it to work right.

Please see screenshots below or visit the site and try uploading a file larger than 110MB for yourself.

redupload
2gbsize

The Streamer Site is:
http://www.videorefuge.com/
The Encoder is:
http://www.videorefuge.com/encoder/

Error upload file to Encoder Site

I uploaded a file .mp4 to my encoder site today and received the following error:

Sorry!

Array ( [upl] => Array ( [name] => 20170216TownHall.mp4 [type] => [tmp_name] => [error] => 3 [size] => 0 ) )


I looked at the YouPHPTube-Encoder/videos/youphptube.log but there are no error listed. The last entry is:
[20-Mar-2018 10:17:39 America/Chicago] http://videos..local/YouPHPTube/ == http://videos..local/YouPHPTube/

Where should I start looking to fix this?

Thanks!

How to update ?

Hello there,

so i try ti update my YouPhpTube-Encoder :

i do this :

user[/var/www/html/YouPHPTube-Encoder] > sudo git pull
remote: Counting objects: 88, done.
remote: Compressing objects: 100% (28/28), done.
remote: Total 88 (delta 58), reused 68 (delta 50), pack-reused 10
Unpacking objects: 100% (88/88), done.
From https://github.com/DanielnetoDotCom/YouPHPTube-Encoder
   bf7defa..055337e  master     -> origin/master
Updating bf7defa..055337e
Fast-forward
 README.md                      |   2 +-
 install/checkConfiguration.php |   2 +-
 install/database.sql           |   2 +-
 model/EncoderModel.mwb         | Bin 10240 -> 10262 bytes
 model/EncoderModel.mwb.bak     | Bin 0 -> 10257 bytes
 objects/Configuration.php      |   2 +-
 objects/Encoder.php            |  74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------
 objects/Format.php             |   2 +-
 objects/Object.php             |   2 +-
 objects/Streamer.php           |   2 +-
 objects/functions.php          | 140 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------------
 objects/getLinkInfo.json.php   |   8 +++++---
 objects/include_config.php     |   3 +++
 update/updateDb.v2.2.sql       |   4 ++++
 view/index.php                 |   2 +-
 view/queue.php                 |  11 +++++++++--
 view/status.php                |   1 +
 view/youtubeDl.json.php        |   2 +-
 18 files changed, 190 insertions(+), 69 deletions(-)
 create mode 100644 model/EncoderModel.mwb.bak
 create mode 100644 update/updateDb.v2.2.sql

ok so now how update the database please ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.