[ Video Sharing CMS v4 ] Sanishan's changes of PHPVibe 3.3 RC 2

Started by sanishan,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sanishanTopic starter

Quote from: leen12 on
yea that fixed the theme now i just need to sort out the video upload thing,

thanks again

About the ffmpeg video thumbnail plugin, you have to check the ffmpeg path inside the lib/upload.php file.

Also try in SSH  (Linux) or CMD (Windows) to run the ffmpeg correctly?

If you have installed the ffmpeg in /root/bin then you can't use with PHP due to open_basedir permission problem. you have to move the binery (ffmpeg and other codec files) to /usr/local/bin/

Thanks,
Free PHPVibe Professional Customized Plugin http://phpvibemod.com/
  •  

sanishanTopic starter

Free PHPVibe Professional Customized Plugin http://phpvibemod.com/
  •  

sanishanTopic starter

Powerful Blog Plugin has been done..

Every single Site owner must need this to improve SEO and traffic :)

Also in most case you need to notify the users this is the only way you could announce News or PR (Press release).

Video Demonstration:
http://taaji.com/watch-video/367/phpvibe-blog-plugin-lightweight/

Website Demonstration:
http://taaji.com/blog

Will be available on http://phpvibemod.com very soon :)

Thanks,
Free PHPVibe Professional Customized Plugin http://phpvibemod.com/
  •  

sanishanTopic starter

Free PHPVibe Professional Customized Plugin http://phpvibemod.com/
  •  

leen12

Quote from: sanishan on
About the ffmpeg video thumbnail plugin, you have to check the ffmpeg path inside the lib/upload.php file.

Also try in SSH  (Linux) or CMD (Windows) to run the ffmpeg correctly?

If you have installed the ffmpeg in /root/bin then you can't use with PHP due to open_basedir permission problem. you have to move the binery (ffmpeg and other codec files) to /usr/local/bin/

Thanks,

oh i see, honestly i have no idea where it is installed, i just followed the link to the guide you posted and followed it,

i use cent os6

but i dont know ssh commands etc..

can you maybe give me the command to find where ffmpeg is then give the command to move it to where it should be?

let me know please thanks
http://hip-hop99.com best hip hop music website
http://social-nuke.com free facebook likes and shares
https://wppluginscheap.com Wordpress plugins and themes cheap
  •  

sanishanTopic starter

Quote from: leen12 on
oh i see, honestly i have no idea where it is installed, i just followed the link to the guide you posted and followed it,

i use cent os6

but i dont know ssh commands etc..

can you maybe give me the command to find where ffmpeg is then give the command to move it to where it should be?

let me know please thanks

This guied will help you to install the FFMPEG
https://trac.ffmpeg.org/wiki/CentosCompilationGuide

If you unable to install I could do that for $10 USD.

Thanks,
Free PHPVibe Professional Customized Plugin http://phpvibemod.com/
  •  

leen12

i already followed that guide before this problem
http://hip-hop99.com best hip hop music website
http://social-nuke.com free facebook likes and shares
https://wppluginscheap.com Wordpress plugins and themes cheap
  •  

sanishanTopic starter

Quote from: leen12 on
i already followed that guide before this problem

BTW i am using the same methods, you have install all the depndence which required to compile the ffmpeg and the codec.
yum install autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig zlib-devel


You must have root access to compile the ffmpeg otherwise its will not work (if you are using shared hosting SSH this will not work..).

Thanks,

Free PHPVibe Professional Customized Plugin http://phpvibemod.com/
  •  

mastodon

there is an automated ffmpeg script that does it all by itself... it only needs your attention like 3 or 4 times.

checkout http://ffmpeginstaller.com/
  •  

sanishanTopic starter

Quote from: mastodon on
there is an automated ffmpeg script that does it all by itself... it only needs your attention like 3 or 4 times.

checkout http://ffmpeginstaller.com/

Yes is good, but in our case we don't need lot of thing to compile,

In our case we only required
ffmpeg
All codecs
X264
Libtheora
Libvorbis
Libogg
Libwmf
libmp3lame
facc and faad2
Yasm

Thanks,
Free PHPVibe Professional Customized Plugin http://phpvibemod.com/
  •  

leen12

it is my own server, i followed the guide and after that i got the problem, which i then posted here about,

i need instructions from here on not from the start please
http://hip-hop99.com best hip hop music website
http://social-nuke.com free facebook likes and shares
https://wppluginscheap.com Wordpress plugins and themes cheap
  •  

sanishanTopic starter

Quote from: leen12 on
it is my own server, i followed the guide and after that i got the problem, which i then posted here about,

i need instructions from here on not from the start please

did you installed the ffmpeg or not?

if you don't know please try
ssh commadn
which ffmpeg


if you installed correctly its will show you the ffmpeg path..

If you receiving error please let me know what error is that?

Thanks,
Free PHPVibe Professional Customized Plugin http://phpvibemod.com/
  •  

leen12

ah thanks i needed to know the code,

here is what i get
/usr/bin/ffmpeg
http://hip-hop99.com best hip hop music website
http://social-nuke.com free facebook likes and shares
https://wppluginscheap.com Wordpress plugins and themes cheap
  •  

sanishanTopic starter

Quote from: leen12 on
ah thanks i needed to know the code,

here is what i get
/usr/bin/ffmpeg

ok now open "/lib/upload.php" find:

$ffmpeg = $target_path.'bin/ffmpeg.exe'; //put the relative path to the ffmpeg.exe file
// $ffmpeg='/usr/local/bin/ffmpeg';

Comment the first like which is only for Windows Server.
Uncomment the 2nd line which is only for linux server.
and add the ffmpeg path in it.


Like that:
//$ffmpeg = $target_path.'bin/ffmpeg.exe'; //put the relative path to the ffmpeg.exe file
$ffmpeg='/usr/bin/ffmpeg';

Find:
$second = 2;


Replace with you second where thumbnail generate:
$second = 5;


Thanks,

Free PHPVibe Professional Customized Plugin http://phpvibemod.com/
  •  

leen12

hmm ok that line was already commented out, but
the seconds thing was at 2, i changed it to 5

but there is still no thumbnail, and i still have to put the time in seconds
http://hip-hop99.com best hip hop music website
http://social-nuke.com free facebook likes and shares
https://wppluginscheap.com Wordpress plugins and themes cheap
  •  

sanishanTopic starter

Quote from: leen12 on
hmm ok that line was already commented out, but
the seconds thing was at 2, i changed it to 5

but there is still no thumbnail, and i still have to put the time in seconds


Hi!
Its look like you php don't allow you to run exec, its possible open_basedir set or safe_mode on.

Please keep in mind in most of case ffmpeg are not allow to execute from php due to the permission problem.

You have to set the ffmpeg binery permission to 777

use this command

cd /usr/bin
chmod 777 ffmepg
or
chmod +x ffmpeg


Need to check more things.
1. check did you put the correct ffmpeg path in the upload.php file?
$ffmpeg='/usr/bin/ffmpeg';?


2.
FInd
exec($command);

Replace with:
exec($command,$out_exec);
  //print_r($out_exec);
     $search='/Duration: (.*?)[.]/';
             foreach ($out_exec as $value){
                 $out_execx.=$value;
             }
file_put_contents('ffmpeg_output.txt',$out_execx);

This will create the ffmpeg output inside the ffmpeg_output.txt file (possibly you could find inside the LIB directory)
send me the output i will check and let you know the final problem.

Thanks,
Free PHPVibe Professional Customized Plugin http://phpvibemod.com/
  •  

leen12

yea i had the correct path etc set,

here is the output file

thanks again sanishan
http://hip-hop99.com best hip hop music website
http://social-nuke.com free facebook likes and shares
https://wppluginscheap.com Wordpress plugins and themes cheap
  •  

sanishanTopic starter

Quote from: leen12 on
yea i had the correct path etc set,

here is the output file

thanks again sanishan

Ffmpeg output telkinf me that thumnail is generated

Please check the media/thumb dir for confirmation that thumnail generated cirrectly?

If yes then there is must be a js problem
Free PHPVibe Professional Customized Plugin http://phpvibemod.com/
  •  

leen12

hmm yea the thumbnails are inside the media/thumbs folder

thanks again
http://hip-hop99.com best hip hop music website
http://social-nuke.com free facebook likes and shares
https://wppluginscheap.com Wordpress plugins and themes cheap
  •  

sanishanTopic starter

Quote from: leen12 on
hmm yea the thumbnails are inside the media/thumbs folder

thanks again

You have to reupload the js file in your server correctly,

You could find latest js file fixed in this thread.

THanks,
Free PHPVibe Professional Customized Plugin http://phpvibemod.com/
  •  

leen12

thanks for the help sanishan,

i tried to download the js file but it says the file has been removed can you reupload it please? thanks again
http://hip-hop99.com best hip hop music website
http://social-nuke.com free facebook likes and shares
https://wppluginscheap.com Wordpress plugins and themes cheap
  •  

sanishanTopic starter

Quote from: leen12 on
thanks for the help sanishan,

i tried to download the js file but it says the file has been removed can you reupload it please? thanks again

Please download the latest version from http://phpvibemod.com/

Thanks,
Free PHPVibe Professional Customized Plugin http://phpvibemod.com/
  •  

mastodon

hey there sanishan, it appears that i ran into some troubles:

Here's my configuration:

FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers
  built on Jan 29 2012 17:52:15 with gcc 4.4.5 20110214 (Red Hat 4.4.5-6)
  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
  libavutil     50.15. 1 / 50.15. 1
  libavcodec    52.72. 2 / 52.72. 2
  libavformat   52.64. 2 / 52.64. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.19. 0 /  1.19. 0
  libswscale     0.11. 0 /  0.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0


The system is a:
cPanel environemnt running version 11.40.x


Everything works great ( thumbnail generation, duration extraction, uploads, etc ),but when I run vid_ffmpeg.php i get this error:

Unable to Converting the video


I've also configured the ffmpeg path correcly
/usr/bin/ffmpeg


any ideas why is this happening?
  •  

sanishanTopic starter

Quote from: mastodon on
hey there sanishan, it appears that i ran into some troubles:

Here's my configuration:

FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers
  built on Jan 29 2012 17:52:15 with gcc 4.4.5 20110214 (Red Hat 4.4.5-6)
  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
  libavutil     50.15. 1 / 50.15. 1
  libavcodec    52.72. 2 / 52.72. 2
  libavformat   52.64. 2 / 52.64. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.19. 0 /  1.19. 0
  libswscale     0.11. 0 /  0.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0


The system is a:
cPanel environemnt running version 11.40.x


Everything works great ( thumbnail generation, duration extraction, uploads, etc ),but when I run vid_ffmpeg.php i get this error:

Unable to Converting the video


I've also configured the ffmpeg path correcly
/usr/bin/ffmpeg


any ideas why is this happening?

Hi!

I already provide you the customer support at
http://www.phprevolution.com/forum/phpvibe-mods-and-plugins/auto-video-convertion-plugin-v1-phpvibe/

And its was working for you?

Here is the solution to check the exact problem.
open vid_ffmpeg.php

find:
//  echo $ffmpeg_cmd;
    // print_r($outx);

Replace with:
echo $ffmpeg_cmd.'
';
 print_r($outx);

Send me the output detail which you got in your browser.

Thanks
,
Free PHPVibe Professional Customized Plugin http://phpvibemod.com/
  •  

leen12

hi sanishan i ended up having to restart my server yesterday as i could not access my hosting zpanel,

after restarting all my websites and everthing in the server is having issues i cannot connect to mysql etc,
i was then advised to try change password by zpanel team, after trying that i got this error
PHP Warning:  PHP Startup: Zend Guard Loader: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/ixed.5.3' - /usr/lib64/php/ixed.5.3: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: SourceGuardian: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: SourceGuardian: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/ffmpeg.so' - /usr/lib64/php/modules/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0
<style type="text/css"><!--
            .dbwarning {
                    font-family: Verdana, Geneva, sans-serif;
                    font-size: 14px;
                    color: #C00;
                    background-color: #FCC;
                    padding: 30px;
                    border: 1px solid #C00;
            }
            p {
                    font-size: 12px;
                    color: #666;
            }
            </style>
            <div class="dbwarning"><strong>Critical Error:</strong> [0100] - Unable to connect or authenticate to the ZPanel database (<em>zpanel_core</em>).<p>We advice that you contact the server administrator to ensure that the database server is online and that the correct connection parameter are being used.</p></


which is as a result of the ffmpeg install instructions i got before, can you possibly help me fix it?
http://hip-hop99.com best hip hop music website
http://social-nuke.com free facebook likes and shares
https://wppluginscheap.com Wordpress plugins and themes cheap
  •  

Similar topics (7)