wwbn / avideo Goto Github PK
View Code? Open in Web Editor NEWCreate Your Own Broadcast Network With AVideo Platform Open-Source. OAVP OVP
Home Page: https://avideo.tube/AVideo_OpenSource
License: Other
Create Your Own Broadcast Network With AVideo Platform Open-Source. OAVP OVP
Home Page: https://avideo.tube/AVideo_OpenSource
License: Other
Hi i try to install on Plesk 17 ubuntu 14, and mod_rewrite dont work, mod_rewrite its allready on.
sudo a2enmod rewrite
Module rewrite already enabled
The place of config files for domain in Plesk 17 its diferent to standart apache config.
Vhost have own config file and AllowOverride All its set.
<Directory /var/www/vhosts/domain.de>
AllowOverride AuthConfig FileInfo Indexes Limit Options=Indexes,SymLinksIfOwnerMatch,MultiViews,FollowSymLinks,ExecCGI,Includes,IncludesNOEXEC
where is the problem?
Video downloads completely when I check the files, but in the web interface, it's stuck saying downloading.
See: https://github.com/blog/1184-contributing-guidelines
I would recommend adding some contribution guidelines to the project. This could make it easier for outsiders and potential new contributors to know what is and isn't an acceptable contribution, how to contribute to the project, etc.
These are some idea's i got for now if i get more ideas as i surf i'll try to say so that our tube be the best.
Hi
When I login as a regular user and click on "Video and Audio Upload" link, it opens user profile page.
Is it a bug or am I doing something wrong?
Hi Daniel, love the project.
Is there a way to add sub categories for videos? I have several categories that I would like to sub divide different videos into. e.e. Cat1, Cat2, Cat3 with sub categories 1.1, 1.2, 2.1, 2.2 etc..
PHP Parse error: syntax error, unexpected '}', expecting end of file in /var/www/html/view/modeYoutube.php on line 872
How can I stop 500 errors?
I want to delete my account.
what do I do?
Hi,Daniel
I am Bank Pansamret @https://disqus.com/by/bankpansamret/
As my question in disqus.com that "I have question. I installed to my localhost and try upload my video. then , cannot open. I have some think troubled with developed ?" I get log file as below
.........................................................
[27-Jun-2017 07:48:16 Asia/Bangkok] PHP Notice: Undefined variable: img in /var/www/html/tubemaster/view/modeYoutube.php on line 132
[27-Jun-2017 07:48:23 Asia/Bangkok] PHP Notice: Undefined variable: img in /var/www/html/tubemaster/view/modeYoutube.php on line 132
[27-Jun-2017 07:48:25 Asia/Bangkok] PHP Notice: Undefined variable: img in /var/www/html/tubemaster/view/modeYoutube.php on line 132
[27-Jun-2017 07:48:30 Asia/Bangkok] PHP Notice: Undefined variable: img in /var/www/html/tubemaster/view/modeYoutube.php on line 132
[27-Jun-2017 07:48:38 Asia/Bangkok] Duration founded: 0:01:00
[27-Jun-2017 07:48:38 Asia/Bangkok] PHP Fatal error: Uncaught Error: Class 'mysqli' not found in /var/www/html/tubemaster/objects/include_config.php:7
Stack trace:
#0 /var/www/html/tubemaster/videos/configuration.php(17): require_once()
#1 /var/www/html/tubemaster/view/mini-upload-form/videoEncoder.php(3): require_once('/var/www/html/t...')
#2 {main}
thrown in /var/www/html/tubemaster/objects/include_config.php on line 7
[27-Jun-2017 08:05:56 Asia/Bangkok] PHP Notice: Undefined variable: img in /var/www/html/tubemaster/view/modeYoutube.php on line 132
[27-Jun-2017 08:06:03 Asia/Bangkok] PHP Notice: Undefined variable: img in /var/www/html/tubemaster/view/modeYoutube.php on line 132
[27-Jun-2017 08:08:23 Asia/Bangkok] PHP Notice: Undefined variable: img in /var/www/html/tubemaster/view/modeYoutube.php on line 132
[27-Jun-2017 08:08:30 Asia/Bangkok] Duration founded: 0:00:46
[27-Jun-2017 08:08:30 Asia/Bangkok] PHP Fatal error: Uncaught Error: Class 'mysqli' not found in /var/www/html/tubemaster/objects/include_config.php:7
Stack trace:
#0 /var/www/html/tubemaster/videos/configuration.php(17): require_once()
#1 /var/www/html/tubemaster/view/mini-upload-form/videoEncoder.php(3): require_once('/var/www/html/t...')
#2 {main}
thrown in /var/www/html/tubemaster/objects/include_config.php on line 7
[27-Jun-2017 08:08:37 Asia/Bangkok] Duration founded: 0:10:53
[27-Jun-2017 08:08:37 Asia/Bangkok] PHP Fatal error: Uncaught Error: Class 'mysqli' not found in /var/www/html/tubemaster/objects/include_config.php:7
Stack trace:
#0 /var/www/html/tubemaster/videos/configuration.php(17): require_once()
#1 /var/www/html/tubemaster/view/mini-upload-form/videoEncoder.php(3): require_once('/var/www/html/t...')
#2 {main}
thrown in /var/www/html/tubemaster/objects/include_config.php on line 7
[27-Jun-2017 08:08:42 Asia/Bangkok] PHP Notice: Undefined variable: img in /var/www/html/tubemaster/view/modeYoutube.php on line 132
[27-Jun-2017 08:08:43 Asia/Bangkok] PHP Notice: Undefined variable: img in /var/www/html/tubemaster/view/modeYoutube.php on line 132
[27-Jun-2017 08:08:45 Asia/Bangkok] PHP Notice: Undefined variable: img in /var/www/html/tubemaster/view/modeYoutube.php on line 132
[27-Jun-2017 08:08:46 Asia/Bangkok] PHP Notice: Undefined variable: img in /var/www/html/tubemaster/view/modeYoutube.php on line 132
[27-Jun-2017 08:08:47 Asia/Bangkok] PHP Notice: Undefined variable: img in /var/www/html/tubemaster/view/modeYoutube.php on line 132
Hi, when i upload a video, YouPHPTube keep original file, encode file in MP4 and WEBM. For each file i have 3 files.
I don't want original and mp4 version of video. I just want a WEBM version.
Have you a proper solution for me.
I just start play with YouPHPTube, it's very good app, congratulation !!!
The look and feel are pretty good, i have a lot of suggestion for you 😄
I think is better if we assign a categories and visibility when selecting a video before uploading than after a video is upload.
I think it will sell more if you add partner program like YouTube, which allowed user to earn money through Ad that runs on their videos
Hi there love the project!
Is there anyway to speed up the encoding? I have a server with high resources but even small videos are taking a while to encode.
Can I speed up ffmpeg encoding somehow? Had a look through the configuration php but cant find any options?
M.Webb
Hi Daniel,
Great work. I tried to move the YouPHPTube to web root directory in Ubuntu, it does not let me make that move, please let me know what config changes need to be made in order to facilitate such a change.
As you mentioned, the video is playing in a vertical format. Do you plan to make changes to that?
The dropdown menu for flags, I had renamed them and only wanted US and FR to show up - meaning English & French. Where do you set the order by menu to show only the required?
Great work overall. Looking forward to hearing from you.
Sajiv Francis
Tried to add some new video's, they apear in the video manager but do not get encoded anymore. Also no text files are being created for those video's in the videos directory.
When a video is download from other site, i would like to show the origin of video.
Maybe after the description like :
Origin : https://otherSite.com/video=#4587911
The support of subtitle can be a great feature.
http://61.195.96.19
I changed the override and restarted apache...
What do I do the next ?
Hey guys,
I was trying to install YouPHPTube, but i can't get trough with it because of this issue:
"Error deleting user: Cannot delete or update a parent row: a foreign key constraint fails (youPHPTube
.configurations
, CONSTRAINT fk_configurations_users1
FOREIGN KEY (users_id
) REFERENCES users
(id
) ON DELETE NO ACTION ON UPDATE NO ACTION)"
Is there a fix for this?
Thank you
Hey Daniel,
To speed up the conversion process do we just need to edit the advanced section and add -thread X where x is the number of cores?
Would this be something worth adding as an input option on the UI that automatically includes it in the different conversion commands?
Cheers
Stephen
FYI,
There is no need for the hard dependency on Apache, it can be made to work with other servers as well. Currently the install does not work due to the use of the Apache-specific 'apache_get_modules()' in 'modRewriteEnabled()' so those who want to use another server should edit that function to make it conditional on the presence of Apache:
function modRewriteEnabled() {
if (isApache()) {
return in_array('mod_rewrite', apache_get_modules());
} else {
return false;
}
}
Since nginx does not support .htaccess
files you'll need to rewrite the rewrite-rules to nginx' version of mod_rewrite. The following works for me:
location / {
rewrite ^/$ /view/ last;
}
location /bootstrap {
rewrite ^/bootstrap/(.+)$ /view/bootstrap/$1 last;
}
location /js {
rewrite ^/js/(.+)$ /view/js/$1 last;
}
location /css {
rewrite ^/css/(.+)$ /view/css/$1 last;
}
location /img {
rewrite ^/img/(.+)$ /view/img/$1 last;
}
location /page {
rewrite ^/page/([0-9]+)/?$ /view/?page=$1 last;
}
location /videoOnly {
rewrite ^/videoOnly/?$ /view/?type=video last;
}
location /audioOnly {
rewrite ^/audioOnly/?$ /view/?type=audio last;
}
location = /download {
rewrite ^(.*)$ /view/downloadExternalVideo.php last;
}
location = /downloadNow {
rewrite ^(.*)$ /objects/downloadVideo.php last;
}
location = /getDownloadProgress {
rewrite ^(.*)$ /objects/downloadVideoProgress.php last;
}
location = /about {
rewrite ^(.*)$ /view/about.php last;
}
location = /contact {
rewrite ^(.*)$ /view/contact.php last;
}
location = /sendEmail {
rewrite ^(.*)$ /objects/sendEmail.json.php last;
}
location = /captcha {
rewrite ^(.*)$ /objects/getCaptcha.php last;
}
location /monitor {
rewrite ^/monitor/(.+)$ /objects/ServerMonitor/$1 last;
}
location /cat {
rewrite ^/cat/([A-Za-z0-9-]+)/?$ /view/?catName=$1 last;
}
location /video {
rewrite ^/video/([A-Za-z0-9-_.]+)/?$ /view/?videoName=$1 last;
}
location /videoEmbeded {
rewrite ^/videoEmbeded/([A-Za-z0-9-_.]+)/?$ /view/videoEmbeded.php?videoName=$1 last;
}
location = /upload {
rewrite ^(.*)$ /view/mini-upload-form/ last;
}
location = /fileUpload {
rewrite ^(.*)$ /view/mini-upload-form/upload.php last;
}
location /uploadStatu {
rewrite ^/uploadStatus /view/mini-upload-form/videoConversionStatus.php last;
}
location = /user {
rewrite ^(.*)$ /view/user.php last;
}
location = /users {
rewrite ^(.*)$ /view/managerUsers.php last;
}
location = /users.json {
rewrite ^(.*)$ /objects/users.json.php last;
}
location = /updateUser {
rewrite ^(.*)$ /objects/userUpdate.json.php last;
}
location = /savePhoto {
rewrite ^(.*)$ /objects/userSavePhoto.php last;
}
location = /addNewUser {
rewrite ^(.*)$ /objects/userAddNew.json.php last;
}
location = /deleteUser {
rewrite ^(.*)$ /objects/userDelete.json.php last;
}
location = /recoverPass {
rewrite ^(.*)$ /objects/userRecoverPass.php last;
}
location = /saveRecoverPassword {
rewrite ^(.*)$ /objects/userRecoverPassSave.json.php last;
}
location = /signUp {
rewrite ^(.*)$ /view/signUp.php last;
}
location = /createUser {
rewrite ^(.*)$ /objects/userCreate.json.php last;
}
location = /usersGroups {
rewrite ^(.*)$ /view/managerUsersGroups.php last;
}
location = /usersGroups.json {
rewrite ^(.*)$ /objects/usersGroups.json.php last;
}
location = /addNewUserGroups {
rewrite ^(.*)$ /objects/userGroupsAddNew.json.php last;
}
location = /deleteUserGroups {
rewrite ^(.*)$ /objects/userGroupsDelete.json.php last;
}
location = /ads {
rewrite ^(.*)$ /view/managerAds.php last;
}
location = /addNewAd {
rewrite ^(.*)$ /objects/video_adsAddNew.json.php last;
}
location = /ads.json {
rewrite ^(.*)$ /objects/video_ads.json.php last;
}
location = /deleteVideoAd {
rewrite ^(.*)$ /objects/video_adDelete.json.php last;
}
location /adClickLo {
rewrite ^/adClickLog /objects/video_adClickLog.php last;
}
location = /categories {
rewrite ^(.*)$ /view/managerCategories.php last;
}
location = /categories.json {
rewrite ^(.*)$ /objects/categories.json.php last;
}
location = /addNewCategory {
rewrite ^(.*)$ /objects/categoryAddNew.json.php last;
}
location = /deleteCategory {
rewrite ^(.*)$ /objects/categoryDelete.json.php last;
}
location = /orphanFiles {
rewrite ^(.*)$ /view/orphanFiles.php last;
}
location = /mvideos {
rewrite ^(.*)$ /view/managerVideos.php last;
}
location = /videos.json {
rewrite ^(.*)$ /objects/videos.json.php last;
}
location = /deleteVideo {
rewrite ^(.*)$ /objects/videoDelete.json.php last;
}
location = /addNewVideo {
rewrite ^(.*)$ /objects/videoAddNew.json.php last;
}
location = /refreshVideo {
rewrite ^(.*)$ /objects/videoRefresh.json.php last;
}
location = /setStatusVideo {
rewrite ^(.*)$ /objects/videoStatus.json.php last;
}
location = /reencodeVideo {
rewrite ^(.*)$ /objects/videoReencode.json.php last;
}
location = /addViewCountVideo {
rewrite ^(.*)$ /objects/videoAddViewCount.json.php last;
}
location = /saveComment {
rewrite ^(.*)$ /objects/commentAddNew.json.php last;
}
location /comments {
rewrite ^/comments.json/([0-9]+)$ /objects/comments.json.php?video_id=$1 last;
}
location = /login {
rewrite ^(.*)$ /objects/login.json.php last;
}
location = /logoff {
rewrite ^(.*)$ /objects/logoff.php last;
}
location = /like {
rewrite ^(.*)$ /objects/like.json.php?like=1 last;
}
location = /dislike {
rewrite ^(.*)$ /objects/like.json.php?like=-1 last;
}
location /update {
rewrite ^/update/?$ /update/update.php last;
}
location = /siteConfigurations {
rewrite ^(.*)$ /view/configurations.php last;
}
location = /updateConfig {
rewrite ^(.*)$ /objects/configurationUpdate.json.php last;
}
location = /charts {
rewrite ^(.*)$ /view/charts.php last;
}
Here's an example config for nginx, you'll need to edit it to set the server_name, location of SSL certificates and such. You also might need to edit some security-related headers if you want your site to be usable in iframes.
Custom css on admin dashboard
YouPHPtube taking 100% CPU server power when uploading video files
Ability to remove default categories e.g Audio, Video and Audio, Audio only
Be able to hide Share button on Video's
Be able to add a custom button below video's (embed url link to button)
Be able to change/modify social buttons in footer to our own (leaving powered by still there), only changing Facebook and Google+, also adding more options than just 2 social button types.
I'm having problems saving the configuration, the initial config went fine but updates when we save, the saving popup apears and stays on screen forever.
I check the code and realize its related with this 2 lines in /objects/configuration.php
. "ffmpegMp4Portrait = '{$global['mysqli']->real_escape_string($this->getFfmpegMp4Portrait())}',"
. "ffmpegWebmPortrait = '{$global['mysqli']->real_escape_string($this->getFfmpegWebmPortrait())}',"
I did not change the values in the config page so i'm testing with the default ones.
Also, one sugestion about upload files, when a file is uploaded the system starts encoding immediately, that is fine when we upload only one file, I have uploaded 5 files at the same time and the server went 100% CPU because its was encoding all files at the same time. It would be nice if the encoding was be made by upload order one at a time, or an option in the configuration to select the number of encondings we want at same time.
Regards
I commented to video.
I had wanted to delete it.
what do I do?
FYI,
Specifying a full (x:y) resolution to ffmpeg
when resampling a video it will result in distorted results for source material with different aspect ratios (eg. 4:3 will be 'squashed', etc).
To avoid this, make sure to specify only one part of the resolution and set the other to '-2'. Given that resolutions are often defined in lines the 'recommended resolutions' list would look like this:
-2:240 (240p)(SD)
-2:360 (360p)
-2:480 (480p)
-2:720 (720p)(Half HD)
-2:1080 (1080p)(Full HD)
-2:2160 (2160p)(Ultra-HD)(4K)
It might look a bit odd but it leads to better results.
Hi,
I stumbled upon non escaped quotes in the french translation that broke some interfaces. See error in "mvideos" view for example, my local fix is not perfect (deleted a single quote in "locale/fr.php" I may have missed many others.
$t['Re-encode Image'] = "Recodifier l'image";
corrected in $t['Re-encode Image'] = "Recodifier l image";
please do note hesitate to ask me for more details I may look more into this if I have time but it is unlikely.
thks for the (very) good work.
Which file should be remodeled?
Is it possible to add video thumbnails to the video manager page? Makes it allot easier to put movies in the right category.
Nice job!
Hi
I have a problem with pagination on the YouTube mode page in the column Up Next.
Example from your online demo:
https://demo.youphptube.com/video/roma11
If I click on Page 3, I get a page without videos and message:
Warning! We have not found any videos or audios to show.
If I click on Page 2, there is a redirection to Gallery mode page.
Could it be possible to stay on the same page mode YouTube page and just update the Up Next column ?
Thanks
Fabrice
Actually the upload form allows the following file types to be uploaded.
$allowed = array('mp4', 'avi', 'mov', 'mkv', 'flv', 'mp3', 'wav', 'm4v', 'webm');
I added 'wmv' locally and everything worked fine, too.
Why not adding everything ffmpeg / avconvert supports itself?
FYI,
There's a Google Analytics section in the source (in view/include/head.php
) which points at your own GA account. Others might be less than thrilled to know that what they consider to be 'their own server' sends pageview pings to someone else's GA-account. I'd suggest removing your personal GA-account from the source.
I want to set SSL.
what do I do?
Noticed that it can be a bit annoying when clicking around that the video restarts or starts playing again. Of course whenever you click on a video it should play automatic.
I followed all steps in tutorial video and from https://github.com/DanielnetoDotCom/YouPHPTube/wiki/How-to-install-LAMP,--FFMPEG-and-Git-on-a-fresh-Ubuntu-16.x but found some of things below not working.
Do I miss some configuration?
I'm having the following problem, I'm installing the script to do some testing here at home, when I execute the cd / var / www / html && sudo git clone command https://github.com/DanielnetoDotCom/YouPHPTube.git, it creates a Folder, more when I want to enter the localhost I have to put YouPHPTube, I can upar the normal files, more when I change the files to stay in localhost, I normal access more when I try to access the link of videos upar me presents an error, "Not Found The requested URL was not found on this server.
Apache / 2.4.18 (Ubuntu) Server at 192.168.25.5 Port 80 "I do not know what to do to fix this, would anyone have an idea how to fix?
Hi,
I have a problem to set a new password.
I click on the link "Forgot password"
Then I receive an email with a link to set a new password
I click on the link to set a new password
After that, when I try to log in with the new password, I get an error message:
Sorry! Your user or password is wrong!
Thanks for your help !
Fabrice
One of the hotkeys that youtube has is the spacebar to pause / unpause video. Some of my colleagues asked for this feature.
Thanks,
Chris
What can you do without uploading your own individual video (not from youtube etc.)
I sharering my videos
but this link thumbnail is the first videos thumbnail.
I would like to add video in multiple categories.
Hi
I can create many accounts with the same email.
Is it possible to have an unique email for sign in ?
1 account = 1 email
Thanks
Fabrice
Hi, in the version i downloaded, 3.2, i can't find the ads manager (ad or remove ads, etc) neither player configuration.
Is this just a trial version?
Hey,
Great product! - just wondering if adding authentication via LDAP was on the road map at some stage?
Cheers
Stephen
Hi,
I noticed that when click videos, the views will add count by 2, not 1. Also happened with the demo site (http://demo.youphptube.com/).
Regards.
When playing a video in fullscreen, player does not maintain aspect ratio of the source, the content is stretched to fit whole area. In example "landscape" content is heavily distorted when screen is in portrait mode.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.