• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Upload Failed

Started by leiitoh8998,

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

leiitoh8998Topic starter

Hi,

I'm trying to upload a video .flv or .mp4 and fails. The videos are 10 MB, I have the media folder with permissions 777

www.pacotube.com

kind Regards
  •  

AlexH

If the host runs on suPHP then set the folder permission 755.
most hosts running on suPHP now.
change browser
If you have a low upload speed, it may expire execution time .
you should post the exact error that displays it

Marius P.

Yes, this could be an issue, host not allowing 777, and thus throwing error.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

sportytheif

Hey Guys,

I am having the same issue.. Upload Failed Server Returned invalid JSON response...

I have successfully uploaded a file that was 10.9 MB which failed the first time with the JSON Response. The name had a (-) in it video-name.flv.. I removed the (-) videoname.flv and the file uploaded successfully... I did the same for a larger FLV file 15mb and it failed with invalid JSON Response. The max file size it will allow without error was 11.6mb FLV. I would like to allow 250MB files.

The server settings are set to the max as this is a dedicated server. I noticed that every file I have uploaded regardless of success is inside the media folder so the files are getting where they are supposed to just something is triggering the JSON error... Any ideas?
  •  

Marius P.

Yes, it generates a notice in lib/upload.php about passing some limit which breaks formating or json response.
Trying setting all notices and warnings off globally for the website.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

sportytheif

The Lib folder has this in the error log
Missing boundary in multipart/form-data POST data in Unknown on line 0
MySQL server has gone away in /****/****/public_html/video/lib/class.ezsql.php on line 249
  •  

Marius P.

Quote from: sportytheif on
Missing boundary in multipart/form-data POST data in Unknown on line 0
This could be a browser issue, specifically firefox does this sometimes.
https://www.google.com/search?q=Missing+boundary+in+multipart%2Fform-data+POST+data
Quote from: sportytheif on
MySQL server has gone away in /****/****/public_html/video/lib/class.ezsql.php on line 249
This is serious, seems like your mysql server has a huge load.
Can you check the logs, what file, etc?
Also, make sure you configure it correctly, I have had my share of problemes optimising servers.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

sportytheif

Yea but that error happens on larger file types and nothing below so I am assuming either a timeout is happening somewhere or like you say something isn't quiet configured properly for the larger file sizes... I disabled the errors and even increased some defaults of the mysql server but the load on Mysql isn't that intense to make the mysql DB non-responsive...
  •  

Marius P.

Then you should check the number of connections and also keep alive, which sometimes provokes issues.
I am no hosting expert, but i've bumped in some weird stuff before, and I can say for sure that there are very good optimisation tutorials on google which you should have a look upon.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

sportytheif

Gotcha... It was the wait timeout...  :D but mobile versions of the video don't work :( should I start new topic?
  •  

Marius P.

For what video?
If it's hosted and .mp4, played via jwlayer 6, it should work.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

sportytheif

Gotcha so all videos have to have a mp4 source for mobile to work... Ok so how can I link an MP4 after the FLV is uploaded if I decide to upload an mp4 manually?

Also I saw your comment concerning ffmpeg in another thread... this is a good resource for ffmpeg http://segfault.in/topic/linux/

I have a php video function that does video conversions. I am sure with some tweaking, you could get it to integrate into PHPVibe.
  •  

Marius P.

I'm already passed halfway of the ffmpeg coding, but thank you very much for interest to help.
In 3.4 I'm adding source edit for video, I've missed that in 3.3, you could do it via phpmyadmin, or wait for the update till the end of this week.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

sportytheif

Ok cool. No problem. Perfect. I will wait until the update but in the meantime, I will run an update sql... Thanks...
  •  

sportytheif

I did the update in sql (changed the filename to match the new mp4 file name) and player displays Error Loading Player: No playable sources found on the mobile device.
  •  

sportytheif

Nevermind... forgot to clear cache...  :)
  •  

Marius P.

Indeed, cache can be tricky, but it's much needed.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

sportytheif

Hey Mario,

So I have uploaded a few MP4's to the site and all works well on the web browsers... The MP4 loads but I receive error messages on the mobile versions of all MP4's. "Error Loading Media: File could not be played." I thought encoding was the issue but i uploaded the JW demo Bunny mp4 file (after going through several different encoding tests on my own videos) and received the same error on the mobile platform. So I tired linking to the remote version of the bunny file and found that it worked on the mobile and desktop versions... I tired the remote linking feature with one of my videos on my server directly and it also worked (outside the upload directory) so I am at a loss as to why the remote versions work but the uploaded versions don't.  I also notice that the remote jw player looks different than the default JW player. Could this possibly have something to do with it? They all seem to load the same config file from what I can see...
  •  

Marius P.

Which version of jwplayer you use for stored videos?
Remote uses 6. If you have 5 enabled for stored videos, it's a flash player, it's not mobile supported.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

sportytheif

I have jw6 enabled as far as I can tell for all instances that are allowed in the admin... Mobile videos load fine when using remote links but the same video doesn't work when uploaded through the site and accessed via mobile... The Remote Player and the Site player are both JW6
  •  

sportytheif

The Remote video is also loading a different config file altogether... When I grab the embed code from a remote file, the logo file reads "390" obviously the height vs the logo file and directory... uploaded mp4's don't play with the jwplayer6 but mp4's I upload manually and remotely link to will play in the jwplayer6..
  •  

Marius P.

Are you trying it on IOS or Android?
The stream.php (php hide path)  like this works in android, but has some issues with IOS, I need to make a verify browser and divide the streamer in 2 types for serving files.

See "Appendix A" http://mobiforge.com/design-development/content-delivery-mobile-devices

But first, let me see if a jquery hide/encode solution can be found in 3.4, to no longer use a php solution.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

sportytheif

Ok cool... I am checking on IOs device & mobile browser agent... I understand.. its difficult these days with the amount of browsers that exist... Works great in one and looks horrible in another...

off topic: will ad zones be included in the next version of phpvibe? a section to update ad zones from the admin vs hard coding and a featured video player control from admin? I was planning to write it if its not on the table. If it is I can wait. Just curious.
  •  

Marius P.

Quotefeatured video player control from admin?
This I don't get. The ads will be available.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

sportytheif

Remote Video Line 163
public function remotevideo($url)
$embedCode = $this->_jwplayer ($url,$video->thumb,$this->height,video_url($video->id, $video->title), thumb_fix(get_option('site-logo')));

causing the logo file to not display correctly on remote files... $file,$thumb, $logo, $type ::height is invalid there and $type is missing...

adjusted to
$embedCode = $this->_jwplayer ($url,$video->thumb,thumb_fix(get_option('site-logo')),$type);

problem fixed.

Do you know of a way to condense the embed code that is displayed? Maybe an xml file for the player setup is possible?
  •  

Similar topics (7)