• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Error uploading video and thumbnails

Started by aralom,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

aralomTopic starter

Hello, everybody.
I been spend a whole day reading, searching about this issue and i have no clue what is happening.
When i try to upload a video sometimes success other video nothing happend, when there is no alerts about the video upload process im sure loading the video was not successful.
I test with firefox, chrome, maxthon, opera, IE, safary all newest versions With PC and mac.

My VPS server have installed: ffmpeg version 2.3.3-
FFmpeg executable and Server bin path are correct, and upload files at 450mb.

Im using fresh installation for PHPVibe 4 - Video CMS
v4 [Stable]; Current subversion is 14 ; Your subversion is 14

Attach some file as a reference.

My problem is: Error uploading video and thumbnails

Any Advice?

Best Regards!
  •  

PHPVibe A.

Hi, did you try the ffmpeg with the tester http://www.phpvibe.com/requirements/?
Post here the result so I can check and guide you (switch to ffmpeg test)

aralomTopic starter

Hello Alexander, attach some screen capture.

Best Regars
  •  

PHPVibe A.


aralomTopic starter

Hello alexander.
I read the post that you advice.


This is new test result.

---------------------------------------

FFMPEG tester
File to convert: test.avi
Converted file: test.mp4
Command send to server: ffmpeg -i test.avi -vcodec libx264 -s 480x320 -threads 4 -movflags faststart test.mp4 2>&1
FFmpeg output

array(18) {
 
  • =>
      string(67) "FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers"
      [1]=>
      string(73) "  built on Jan 29 2012 17:52:15 with gcc 4.4.5 20110214 (Red Hat 4.4.5-6)"
      [2]=>
      string(747) "  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --enable-avfilter --enable-avfilter-lavf --enable-libdc1394 --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab"
      [3]=>
      string(35) "  libavutil     50.15. 1 / 50.15. 1"
      [4]=>
      string(35) "  libavcodec    52.72. 2 / 52.72. 2"
      [5]=>
      string(35) "  libavformat   52.64. 2 / 52.64. 2"
      [6]=>
      string(35) "  libavdevice   52. 2. 0 / 52. 2. 0"
      [7]=>
      string(35) "  libavfilter    1.19. 0 /  1.19. 0"
      [8]=>
      string(35) "  libswscale     0.11. 0 /  0.11. 0"
      [9]=>
      string(35) "  libpostproc   51. 2. 0 / 51. 2. 0"
      [10]=>
      string(45) "[avi @ 0x11bf670]max_analyze_duration reached"
      [11]=>
      string(0) ""
      [12]=>
      string(101) "Seems stream 0 codec frame rate differs from container frame rate: 58.00 (58/1) -> 29.97 (30000/1001)"
      [13]=>
      string(31) "Input #0, avi, from 'test.avi':"
      [14]=>
      string(59) "  Duration: 00:01:09.76, start: 0.000000, bitrate: 675 kb/s"
      [15]=>
      string(107) "    Stream #0.0: Video: h264, yuv420p, 400x230 [PAR 1:1 DAR 40:23], 29.97 fps, 29.97 tbr, 29.97 tbn, 58 tbc"
      [16]=>
      string(64) "    Stream #0.1: Audio: mp3, 44100 Hz, 2 channels, s16, 128 kb/s"
      [17]=>
      string(30) "Unrecognized option 'movflags'"
    }
    int(1)
  •  

aralomTopic starter

The current ffmpeg version is 2.3.3 as you can see from the following:
---
root@vps773 [~]# ffmpeg -v
ffmpeg version 2.3.3- http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2014 the FFmpeg developers
built on Sep 2 2014 16:32:53 with gcc 4.8 (Debian 4.8.3-9)
configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --disable-ffserver --enable-libass --enable-gnutls --cc=gcc-4.8
libavutil 52. 92.100 / 52. 92.100
libavcodec 55. 69.100 / 55. 69.100
libavformat 55. 48.100 / 55. 48.100
libavdevice 55. 13.102 / 55. 13.102
libavfilter 4. 11.100 / 4. 11.100
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 19.100 / 0. 19.100
libpostproc 52. 3.100 / 52. 3.100
---
  •  

PHPVibe A.

aralom, it seem to me you have 2 ffmpeg installs which conflict, and the old one is used for converting.

aralomTopic starter

Ok, what i need to do? ::)
How can i "say" at phpvibe select the right ffmpeg

Regards!
  •  

PHPVibe A.

It has no connection with phpvibe, is the server's exec() which selects it.
What I advise you is to remove ffmpeg (both) and reinstall. This would be the 100% safe solution.
It's always a bad idea to have 2 ffmpegs installed.

aralomTopic starter

Hello Alexander today contact at Support about FFMPEG versions, the uninstall both version and install just one.
I run the rest again and give this:
-------------------------------
File to convert: test.avi
Converted file: test.mp4
Command send to server: ffmpeg -i test.avi -vcodec libx264 -s 480x320 -threads 4 -movflags faststart test.mp4 2>&1
FFmpeg output

array(53) {
 
  • =>
      string(105) "ffmpeg version 2.6.2-   http://johnvansickle.com/ffmpeg/    Copyright (c) 2000-2015 the FFmpeg developers"
      [1]=>
      string(40) "  built with gcc 4.9.2 (Debian 4.9.2-10)"
      [2]=>
      string(542) "  configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --enable-libass --enable-gnutls --enable-libvidstab --enable-libsoxr --cc=gcc-4.9"
      [3]=>
    --------------------------------------

    When i upload a video using admin account no problem if the video is small (1mb) but if is more or 30mb seems is uploading but nothing happend, im going to check Unpublished / Trash Can but there is Nothing.

    I HAVE NO IDEA WHAT IS WRONG, today i made the update at subversion is 15, STILL IS NOT WORKING, i you want i can give you, admin account and FTP.

    Regards!
  •  

PHPVibe A.

Hi aralom, that's not necessarily.
If the 1mb works, then the problem is not in the code or ffmpeg.
What's your server hardware?
Ffmpeg is really heavy, for example on our setup (3.0 quad with 8 gb of ram) a 1gb movie with the Hd version of the ffmpeg takes about an hour to convert and it spikes the processor to 1000% per small periods on this timeframe .
As for where things may fail: monitor videocron.php's ffmpeg conversion order in your host's processes list, it may be killed for using too many resources.

aralomTopic starter

Hello Alexander, just for a moment works the ffmpeg just one video and after this IS NOT WORKING anymore.
Im using VPS server:
-----------------------------
40 GB Space
2000 Gb Traffic
1.8 GHz Ded. CPU
2 CPU Cores
1 GB Ded. RAM
128 MB Burst RAM
------------------------------
Actually i don't have configured any cron process for video.

Any Advice?

Regards
  •  

aralomTopic starter

Alexander for testing i just disable ffmpeg and try to upload a video -30mb-, looks like will work but there is no luck, same problems.

Regards.
  •  

PHPVibe A.

aralom, your server is very small, not fit at all for ffmpeg conversions.
1 gb of ram is low, 1 gb virtual ram is really bad.
this explains why it would stop your operations, the server is overloaded by the ffmpeg.

http://www.phpvibe.com/choosing-a-server-for-phpvibe/

aralomTopic starter

Hello Alexander, thank you for your help and support.
What do you think about this server?:

Dedicated Server
------------------------------
E5-2620 V2 6x2.0Ghz
2 x 1 TB Storage
24 GB RAM
10 TB Bandwidth
-----------------------------
Can work without problems?

Best Regards!
  •  

PHPVibe A.

For sure, that's a great hardware piece. What's the price for it?

aralomTopic starter

  •  

PHPVibe A.

Pretty expensive, I got something like the one which is 269$/month at 100$/month from LeaseWeb.com

aralomTopic starter

Hello Alexander, im really, really tired i have no idea what is happening, already made all steps:
1) upgrade server:
Dedicated Server
------------------------------
E5-2620 V2 6x2.0Ghz
2 x 1 TB Storage
24 GB RAM
10 TB Bandwidth
-----------------------------

2) upgrade ffmpeg version 2.6.2

This is not working same problem, When i try to upload a video sometimes success other video nothing happens, when there is no alerts about the video upload process im sure loading the video was not successful.

I test with firefox, chrome, maxthon, opera, IE, safary all newest versions With PC and mac.
Attach actual configuration.

Please help me!! :'(

Regards!
  •  

aralomTopic starter

  •  

PHPVibe A.

Your ffmpeg path in the Settings -> FFMPEG is not the same as the one you use in the tester (from what I see, there is also a weird space there in the PHPVibe's path settings for ffmpeg).

aralomTopic starter

Hello Alexander, do you want moderator access and check, because you say where is the possible error but not how to fix it.

Regards
  •  

PHPVibe A.

The solution is very simple.

Fffmpeg executable :
In your PHPVibe - /usr/bin/ffmpeg/ (not working)
In your tester - /usr/local/bin/ffmpeg (working)


Similar topics (7)