• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] ffmpeg conversion

Started by ollipaust,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ollipaustTopic starter

hi

as u may know i had problems with ffmpeg conversion and it was possibly because of the an old version of ffmpeg.

i asked my hoster if they could update it and they said no, because they have a partnership with clipbucket
and they cant use newer ffmpeg versions yet.

my hoster told me they can recompile the ffmpeg with any codec i need so I sent them the infos on the phpvibe requirements site about ffmpeg.

they answered me this:

QuoteHello,

According to the what is shown by ffmpeg, the codec is already enabled:

swine:/root# ffmpeg
FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers
built on Aug 15 2012 05:53:07 with gcc 4.1.2 20080704 (Red Hat 4.1.2-52)
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-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb "--enable-libx264" --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab --enable-libxvid --enable-libvorbis --enable-libtheora

Added quotation marks around the relevant text for emphasis.

Is phpvibe saying that it is not installed / enabled ? Is there an installation page that we can look at to get a clearer picture of what is not working ?

Thank you,

they say it has to work but it doesnt.... so whats wrong? o_o
  •  

PHPVibe A.

Ollie, please explain how it's not working, so I can help you.

The video file does not get converted or what?
Does /media allows file uploads? Does the shell to videocron.php fires (videocron.php has execute permissions, ex 0555)?

ollipaustTopic starter

Quote from: Alexander on
Ollie, please explain how it's not working, so I can help you.

The video file does not get converted or what?
Does /media allows file uploads? Does the shell to videocron.php fires (videocron.php has execute permissions, ex 0555)?

hi yes i gave all folders the right permission. the video gets converted + thumbnail.
but it wont play in the player...

Quoteerror loading media:
file could not be played

http://test.lolwatchers.com/video/1/test-avi/
  •  

PHPVibe A.


ollipaustTopic starter

when i click on the .mp4 link the video works for me..

Quotearray(22) {
 
  • =>
      string(67) "FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers"
      [1]=>
      string(74) "  built on Aug 15 2012 05:53:07 with gcc 4.1.2 20080704 (Red Hat 4.1.2-52)"
      [2]=>
      string(704) "  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-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab --enable-libxvid --enable-libvorbis --enable-libtheora"
      [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(31) "Input #0, avi, from 'test.avi':"
      [11]=>
      string(60) "  Duration: 00:00:15.41, start: 0.000000, bitrate: 4578 kb/s"
      [12]=>
      string(74) "    Stream #0.0: Video: cinepak, yuv420p, 1297x835, 24 tbr, 24 tbn, 24 tbc"
      [13]=>
      string(30) "Output #0, mp4, to 'test.mp4':"
      [14]=>
      string(11) "  Metadata:"
      [15]=>
      string(33) "    encoder         : Lavf52.64.2"
      [16]=>
      string(82) "    Stream #0.0: Video: mpeg4, yuv420p, 1297x835, q=2-31, 200 kb/s, 24 tbn, 24 tbc"
      [17]=>
      string(15) "Stream mapping:"
      [18]=>
      string(21) "  Stream #0.0 -> #0.0"
      [19]=>
      string(26) "Press [q] to stop encoding"
      [20]=>
      string(393) "frame=   79 fps=  0 q=31.0 size=     542kB time=3.29 bitrate=1347.8kbits/s   
    frame=  160 fps=156 q=31.0 size=     898kB time=6.67 bitrate=1103.2kbits/s   
    frame=  237 fps=155 q=31.0 size=    1218kB time=9.88 bitrate=1010.5kbits/s   
    frame=  305 fps=150 q=31.0 size=    1525kB time=12.71 bitrate= 983.3kbits/s   
    frame=  370 fps=147 q=31.0 Lsize=    1800kB time=15.42 bitrate= 956.4kbits/s"
      [21]=>
      string(67) "video:1796kB audio:0kB global headers:0kB muxing overhead 0.208783%"
    }
    int(0)
  •  

PHPVibe A.

#5
It looks ok, but that video doesn't play for me in Google Chrome.
Did you touch the PHPVibe ffmpeg command before?
In what does your browser open the file (native html5 or something external)?

ollipaustTopic starter

what ever ^^

i just bought a vps with these specs

CPU 1x Core 3.2 GHz
4GB RAM
200 GB Diskspace
UNLIMITED Traffic
Cent OS 6.5

for 7,99€/month


should work fine or?
  •  

PHPVibe A.

That's cheap for the tech offer, give url and feedback please :)

ollipaustTopic starter

Quote from: Alexander on
That's cheap for the tech offer, give url and feedback please :)

its a german company with location in munic
http://contabo.com/
  •  

PHPVibe A.

The bandwidth is bit small, but acceptable for an VPS, I may get one at 24e for dedicated sql since my sites kinda needs this already.

Thanks!

ollipaustTopic starter

hi alex
do you know any good tutorial for configuring a server for phpvibe?
  •  

PHPVibe A.

Hi Olli, not really.
Honestly I don't think you need one, if you have cpanel you can configure everything from whm -> apache software update, also disable mod_security and all that could interfear, I use PHP 5.4 on DSO with nu suPHP/etc.
I've installed ffmpeg using the centos official track from their wiki and all is good...

ollipaustTopic starter

hi alex
i just installed ffmpeg

in terminal it says this:

Quoteffmpeg version N-63108-gab21ace-syslint Copyright (c) 2000-2014 the FFmpeg developers
  built on May 12 2014 18:52:01 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-4)
  configuration: --prefix=/usr/local/cpffmpeg --enable-shared --enable-nonfree --enable-gpl --enable-pthreads --enable-libopencore-amrnb --enable-decoder=liba52 --enable-libopencore-amrwb --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --extra-cflags=-I/usr/local/cpffmpeg/include/ --extra-ldflags=-L/usr/local/cpffmpeg/lib --enable-version3 --extra-version=syslint
  libavutil      52. 83.100 / 52. 83.100
  libavcodec     55. 60.103 / 55. 60.103
  libavformat    55. 37.102 / 55. 37.102
  libavdevice    55. 13.101 / 55. 13.101
  libavfilter     4.  5.100 /  4.  5.100
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 18.100 /  0. 18.100
  libpostproc    52.  3.100 / 52.  3.100


also i need to add the ffmpeg in the backend.
i ask terminal "whereis ffmpeg" and he gives me 3 directories:

Quote# whereis ffmpeg
ffmpeg: /usr/src/ffmpegscript/ffmpeg /usr/bin/ffmpeg /usr/local/bin/ffmpeg

which one should i use?
  •  

PHPVibe A.

I don't know...
guess not the first one...you can test second and 3rd with the tester or directly in the script.

ollipaustTopic starter

Quote from: Alexander on
I don't know...
guess not the first one...you can test second and 3rd with the tester or directly in the script.

do you mean this?

$ffmpegmd = "ffmpeg";
  •  

PHPVibe A.

Yes, simply edit that to one of the ffmpeg commands.
do you have multiple ffmpeg installs on the same server? That may break stuff...when you have an failed install, make sure you also remove it.

Similar topics (7)