• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Video Conversions Not Occuring

Started by niaskywalk,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

niaskywalkTopic starter

I have tried searching these forums and, while I am getting a lot of information and tips, I am not finding the help I need to resolve my issues. I may need some more direction. And my hosting service seems to have reached its limit.

Here is the situation:

       
  • I am running PHPVibe 3.6 in a folder on a website. The owner insists. I copied over every file except the hold, config and setup files. I set all the proper settings for the permissions. And I even installed the black theme.
  • PHPVibe seems to have crashed something. After much communication with the hosting service they adjust the ModSec so that we can actually access the site in the browser.
  • The server is a dedicated server on InMotion Hosting. They run CentOS 6.
  • The owner wants to be able to upload any kind of video file and import from YouTube, etc.
  • We had the server guys install FFmpeg, instead of installing ourselves since we are inexperienced. They installed version 0.6.5 and FFmpeg-PHP... the one from SourceForge last updated 2007. (should we upgrade this and eliminate the FFmpeg-PHP? we don't know why they installed such old files...)
  • The tester greenlights everything.
On the Moderator panel, in the Crons and FFmpeg setup page, the 'whereis php' line is not returning any values. The first time I installed PHPVibe, it showed a path I could copy, so I don't know why it is not working now. I got the path and entered it.I attempted to use the FFmpeg tester. After following directions on a thread in the forum to adjust the ff.php file, I was actually able to get the file to generate on the third option in the Installation instructions (btw, there is an extra double quote in the line. I assume most people just automatically eliminate that, but thought I would mention it) However, the file will not play. I am going to assume that is a server-side issue, however, any thoughts on the matter, or a direction to look in would be appreciated.Here is the information I get on the page:
array(28) {
  [0]=>
  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 @ 0x245e670]max_analyze_duration reached"
  [11]=>
  string(31) "Input #0, avi, from 'test.avi':"
  [12]=>
  string(11) "  Metadata:"
  [13]=>
  string(35) "    ISFT            : Lavf54.63.104"
  [14]=>
  string(60) "  Duration: 00:01:00.09, start: 0.000000, bitrate: 4235 kb/s"
  [15]=>
  string(110) "    Stream #0.0: Video: h264, yuv420p, 1440x1080 [PAR 1:1 DAR 4:3], 29.97 fps, 29.97 tbr, 29.97 tbn, 59.94 tbc"
  [16]=>
  string(64) "    Stream #0.1: Audio: mp3, 44100 Hz, 2 channels, s16, 256 kb/s"
  [17]=>
  string(30) "Output #0, mp4, to 'test.mp4':"
  [18]=>
  string(11) "  Metadata:"
  [19]=>
  string(33) "    encoder         : Lavf52.64.2"
  [20]=>
  string(105) "    Stream #0.0: Video: mpeg4, yuv420p, 1440x1080 [PAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 30k tbn, 29.97 tbc"
  [21]=>
  string(67) "    Stream #0.1: Audio: libfaac, 44100 Hz, 2 channels, s16, 64 kb/s"
  [22]=>
  string(15) "Stream mapping:"
  [23]=>
  string(21) "  Stream #0.0 -> #0.0"
  [24]=>
  string(21) "  Stream #0.1 -> #0.1"
  [25]=>
  string(26) "Press [q] to stop encoding"
  [26]=>
  string(5344) "frame=   46 fps=  0 q=9.8 size=     206kB time=1.39 bitrate=1211.3kbits/s    
frame=   62 fps= 58 q=31.0 size=     408kB time=1.95 bitrate=1713.6kbits/s    
frame=   87 fps= 55 q=31.0 size=     591kB time=2.74 bitrate=1768.4kbits/s    
frame=  114 fps= 55 q=31.0 size=     786kB time=3.65 bitrate=1766.7kbits/s    
frame=  140 fps= 54 q=31.0 size=     966kB time=4.53 bitrate=1747.6kbits/s    
frame=  163 fps= 53 q=31.0 size=    1187kB time=5.27 bitrate=1845.6kbits/s    
frame=  188 fps= 52 q=31.0 size=    1390kB time=6.11 bitrate=1864.8kbits/s    
frame=  212 fps= 52 q=31.0 size=    1614kB time=6.92 bitrate=1910.4kbits/s    
frame=  237 fps= 52 q=31.0 size=    1827kB time=7.76 bitrate=1929.5kbits/s    
frame=  263 fps= 51 q=31.0 size=    2029kB time=8.61 bitrate=1929.2kbits/s    
frame=  288 fps= 51 q=31.0 size=    2243kB time=9.45 bitrate=1944.1kbits/s    
frame=  310 fps= 51 q=31.0 size=    2477kB time=10.19 bitrate=1990.7kbits/s    
frame=  337 fps= 51 q=24.8 size=    2667kB time=11.10 bitrate=1968.1kbits/s    
frame=  369 fps= 52 q=31.0 size=    2836kB time=12.17 bitrate=1909.7kbits/s    
frame=  408 fps= 53 q=31.0 size=    2968kB time=13.44 bitrate=1808.6kbits/s    
frame=  445 fps= 55 q=24.8 size=    3101kB time=14.70 bitrate=1728.5kbits/s    
frame=  473 fps= 55 q=31.0 size=    3257kB time=15.63 bitrate=1707.6kbits/s    
frame=  500 fps= 54 q=31.0 size=    3464kB time=16.53 bitrate=1716.3kbits/s    
frame=  526 fps= 54 q=31.0 size=    3640kB time=17.39 bitrate=1714.6kbits/s    
frame=  552 fps= 54 q=31.0 size=    3824kB time=18.25 bitrate=1716.4kbits/s    
frame=  577 fps= 54 q=24.8 size=    4041kB time=19.09 bitrate=1734.3kbits/s    
frame=  604 fps= 54 q=31.0 size=    4220kB time=20.02 bitrate=1727.1kbits/s    
frame=  631 fps= 54 q=31.0 size=    4415kB time=20.92 bitrate=1728.8kbits/s    
frame=  659 fps= 54 q=31.0 size=    4572kB time=21.83 bitrate=1716.1kbits/s    
frame=  686 fps= 54 q=31.0 size=    4731kB time=22.73 bitrate=1704.9kbits/s    
frame=  711 fps= 54 q=31.0 size=    4909kB time=23.57 bitrate=1706.2kbits/s    
frame=  736 fps= 53 q=31.0 size=    5100kB time=24.40 bitrate=1711.8kbits/s    
frame=  762 fps= 53 q=31.0 size=    5318kB time=25.29 bitrate=1722.9kbits/s    
frame=  788 fps= 53 q=31.0 size=    5493kB time=26.15 bitrate=1721.1kbits/s    
frame=  815 fps= 53 q=31.0 size=    5661kB time=27.03 bitrate=1716.0kbits/s    
frame=  842 fps= 53 q=31.0 size=    5822kB time=27.96 bitrate=1705.9kbits/s    
frame=  867 fps= 53 q=31.0 size=    6004kB time=28.79 bitrate=1708.3kbits/s    
frame=  891 fps= 53 q=31.0 size=    6225kB time=29.56 bitrate=1725.3kbits/s    
frame=  916 fps= 53 q=31.0 size=    6440kB time=30.39 bitrate=1735.7kbits/s    
frame=  942 fps= 53 q=31.0 size=    6669kB time=31.28 bitrate=1746.7kbits/s    
frame=  968 fps= 53 q=31.0 size=    6873kB time=32.16 bitrate=1750.6kbits/s    
frame=  995 fps= 53 q=31.0 size=    7046kB time=33.04 bitrate=1746.8kbits/s    
frame= 1021 fps= 53 q=24.8 size=    7229kB time=33.90 bitrate=1746.9kbits/s    
frame= 1047 fps= 53 q=31.0 size=    7430kB time=34.78 bitrate=1749.8kbits/s    
frame= 1076 fps= 53 q=31.0 size=    7630kB time=35.76 bitrate=1747.9kbits/s    
frame= 1105 fps= 53 q=24.8 size=    7810kB time=36.73 bitrate=1741.7kbits/s    
frame= 1129 fps= 53 q=24.8 size=    8037kB time=37.57 bitrate=1752.5kbits/s    
frame= 1163 fps= 53 q=31.0 size=    8188kB time=38.66 bitrate=1735.0kbits/s    
frame= 1188 fps= 53 q=31.0 size=    8393kB time=39.50 bitrate=1740.7kbits/s    
frame= 1213 fps= 53 q=24.8 size=    8596kB time=40.33 bitrate=1745.8kbits/s    
frame= 1240 fps= 53 q=31.0 size=    8770kB time=41.22 bitrate=1743.1kbits/s    
frame= 1266 fps= 53 q=31.0 size=    8975kB time=42.10 bitrate=1746.5kbits/s    
frame= 1293 fps= 53 q=31.0 size=    9159kB time=43.00 bitrate=1744.7kbits/s    
frame= 1320 fps= 53 q=31.0 size=    9333kB time=43.89 bitrate=1742.1kbits/s    
frame= 1346 fps= 53 q=31.0 size=    9497kB time=44.77 bitrate=1737.8kbits/s    
frame= 1372 fps= 53 q=31.0 size=    9669kB time=45.63 bitrate=1736.1kbits/s    
frame= 1398 fps= 53 q=31.0 size=    9873kB time=46.49 bitrate=1739.9kbits/s    
frame= 1425 fps= 53 q=31.0 size=   10048kB time=47.42 bitrate=1736.0kbits/s    
frame= 1452 fps= 53 q=31.0 size=   10220kB time=48.30 bitrate=1733.4kbits/s    
frame= 1477 fps= 53 q=24.8 size=   10399kB time=49.13 bitrate=1733.9kbits/s    
frame= 1503 fps= 53 q=31.0 size=   10593kB time=49.99 bitrate=1735.9kbits/s    
frame= 1529 fps= 53 q=31.0 size=   10770kB time=50.85 bitrate=1735.1kbits/s    
frame= 1555 fps= 53 q=31.0 size=   10996kB time=51.71 bitrate=1741.9kbits/s    
frame= 1581 fps= 53 q=31.0 size=   11184kB time=52.62 bitrate=1741.3kbits/s    
frame= 1608 fps= 53 q=31.0 size=   11363kB time=53.50 bitrate=1740.0kbits/s    
frame= 1634 fps= 53 q=31.0 size=   11541kB time=54.36 bitrate=1739.2kbits/s    
frame= 1664 fps= 53 q=31.0 size=   11727kB time=55.38 bitrate=1734.7kbits/s    
frame= 1693 fps= 53 q=24.8 size=   11876kB time=56.35 bitrate=1726.4kbits/s    
frame= 1723 fps= 53 q=31.0 size=   12036kB time=57.33 bitrate=1719.9kbits/s    
frame= 1754 fps= 53 q=31.0 size=   12170kB time=58.37 bitrate=1707.8kbits/s    
frame= 1785 fps= 53 q=31.0 size=   12328kB time=59.40 bitrate=1700.3kbits/s    
frame= 1801 fps= 53 q=24.8 Lsize=   12467kB time=59.98 bitrate=1702.8kbits/s"
  [27]=>
  string(70) "video:11963kB audio:468kB global headers:0kB muxing overhead 0.289582%"
}
int(0)


I tried to run the second option, but it caused an error in the encoder... or something.

We had upload size issues. We fixed that part, however now the issue is that the upload does not convert and the MP4s we upload do not play.

http://www.chafilmfest.com/socialmovies/video/95533/mom-and-lacey2/

There was an error that appeared on the page at one point, saying
Notice: Trying to get property of non-object in /com/com_video.php on line 46


I am not sure what the issue is, but I tried changing choosen-player to chosen-player and choose-player, I do not get the error notice, but the videos still do not play.

The videos we imported from YouTube play. Though on import we get this weird error even though it credits the correct owner

Notice: Undefined index: owner in /moderator/youtube-1by1.php on line 7


When we try to upload a file that needs conversion (avi, flv, etc), it stays constantly at "The Video is currently being processed".

http://www.chafilmfest.com/socialmovies/video/95534/con/

I can convert files via line-entry in Putty, so it seems that the FFmpeg is working on the server. When I try to play them via mplayer, I get some kind of X11 error... I am inexperienced at shell commands, this may just be a user issue, but I am not having success finding answers so I am not even sure if this affects the PHPVibe, or something on the server, or just a setting I am missing.

As you can see, I have a bunch of questions and although there is a lot of information on these forums, my head is spinning with so many things I have tried and adjusted. I just need this to work so that we can get onto the fun part of skinning and inviting people in. Any direction and help would be majorly appreciated!

Thank you!

~nia
~ Nia

Apolonia Skywalk
Indigo Grove Web Production
  •  

niaskywalkTopic starter

ALSO, I just went to go dump a bunch of videos that had not converted, but when I went to Unpublished, I see there are THOUSANDS and I certainly did not try that many!~ Is there any way to discover where these came from and is there anyway to dump thousands at a time instead of just 25 at a time. I am just overwhelmed at this point, I am sure the answer is simple, but I just cannot see it at the moment.

~ Nia

Apolonia Skywalk
Indigo Grove Web Production
  •  

PHPVibe A.

Hi,
have you updated it recently? If you have an early copy of 3.6 some files may have changed.

For the weird loop inserting many videos: http://www.phprevolution.com/forum/troubleshooting-issues/not-using-the-right-ffmpeg/msg15349/#msg15349

One important aspect is: Did the tester generate the .mp4 file?

The FFMPEG is indeed VERY old, and ffmpeg-php is fully deprecated.

You can see here what we use with full details: http://www.phprevolution.com/requirements/
As you may have seen on the forum, on 0.6 many have an tone of problems as it does not support all meta tags used.
I do not suggest removing meta tags, because they all serve their purpose, I suggest however an new version of ffmpeg.

niaskywalkTopic starter

Quote from: Alexander on Hi,
have you updated it recently? If you have an early copy of 3.6 some files may have changed.

Before I posted my message, I downloaded and reinstalled the copy currently available for download.

Quote from: Alexander on
For the weird loop inserting many videos: http://www.phprevolution.com/forum/troubleshooting-issues/not-using-the-right-ffmpeg/msg15349/#msg15349

Thank you! I will look into this.

Quote from: Alexander on One important aspect is: Did the tester generate the .mp4 file?
Yes and when downloaded it played better than the AVI it came from. But it is not playing on the website.

Quote from: Alexander on
The FFMPEG is indeed VERY old, and ffmpeg-php is fully deprecated.

You can see here what we use with full details: http://www.phprevolution.com/requirements/
As you may have seen on the forum, on 0.6 many have an tone of problems as it does not support all meta tags used.
I do not suggest removing meta tags, because they all serve their purpose, I suggest however an new version of ffmpeg.



Thank you for the direction, Alexander! I have something to tell our server guys now. Hopefully they just had only an old copy and that it isn't something to do with the Server OS.


I will get them to upgrade or upgrade myself and see if I get better results.



~ Nia

Apolonia Skywalk
Indigo Grove Web Production
  •  

PHPVibe A.

FFMPEG is OS dependant, but not the other way around.
Meaning having X OS will not condemn you to having an older ffmpeg or anything like this...

niaskywalkTopic starter

Ok... Now. I have an upgraded FFmpeg.


I ran tester, got the MP4 AND it played.


My uploads are all converting and playing *celebration* Thank you very much!


HOWEVER, when I upload MP4s and OGV they are still not playing. Can you point me in the right direction to fix this little issue?


TIA,
Nia
~ Nia

Apolonia Skywalk
Indigo Grove Web Production
  •  

PHPVibe A.

That's weird, there's no conversion occurring there.
Do they upload? Can you disable hide path with php under Players config and check if the video file itself it's there.
Cause in some cases they may be encoding issues in the original mp4, if played via an html5 video player.

niaskywalkTopic starter

Quote from: Alexander on
That's weird, there's no conversion occurring there.
Do they upload? Can you disable hide path with php under Players config and check if the video file itself it's there.
Cause in some cases they may be encoding issues in the original mp4, if played via an html5 video player.


I had the file set already as Real Link, but it doesn't play. I switched to Hide with PHP anyway, and several others stopped playing. Switched back doesn't play still. I had to go to the database to find out which string the file actually is in /media/ when I went direct to the file it did not play. so yes it uploads, but I guess the encoding is wrong then?


Is there a way to make the uploader check that the MP4 encoding is correct and then convert it if it isn't? Because this happened to all my MP4 test uploads, not just a single one. When i download a converted and upload it again as another name, that works just fine. The strange thing is that it still extracts the thumbnail, it just doesn't play. How can I fix this, if there isn't a way to check? Because we are certain that our users will want to upload a variety of formats and you can bet that they will not encode it correctly.
~ Nia

Apolonia Skywalk
Indigo Grove Web Production
  •  

PHPVibe A.

The easiest way is to reconvert all mp4. Not sure how you can check, and with ffmpeg I am sure it's complicated :)

lib/upload-ffmpeg.php

find this line:

$ncv = array( "mp4","ogv","webm");


and replace it with :

$ncv = array("ogv","webm");



niaskywalkTopic starter

Thank you, this worked!


A shame we need to reconvert every MP4 though :-P Is there any chance of putting a tickbox on the upload page that says "I know this is in the absolute correct version of MP4, don't reconvert it."? I am not sure it is possible, I am still rather new at PHP in general.
~ Nia

Apolonia Skywalk
Indigo Grove Web Production
  •  

PHPVibe A.

Mp4 should reconvert faster than other formats.
Not really, the form doesn't affect at all the conversion process.

Similar topics (7)