• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] ff.php results

Started by Bob.Weston,

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Bob.WestonTopic starter

Could someone tell me what this means and what I have to do to correct it?

The test.avi file size is 156,506,028 when uploaded after conversion the mp4 is 29,407,167 every time.. but I get this:

test.mp4 already exists. Test skipped
tells me to delete the file and try again.. so I do.. always the same result.

This is the results of the test provided. The video converts partially using the 3rd code provided in the troubleshooting ffmpeg:

File to convert: test.avi
Converted file: test.mp4
Command send to server: ffmpeg -y -i test.avi test.mp4 2<&1
FFmpeg output

array(27) {
  [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(31) "Input #0, avi, from 'test.avi':"
  [11]=>
  string(11) "  Metadata:"
  [12]=>
  string(50) "    ISFT            : MEncoder 2:1.0~rc2-0ubuntu13"
  [13]=>
  string(60) "  Duration: 00:09:56.45, start: 0.000000, bitrate: 2099 kb/s"
  [14]=>
  string(75) "    Stream #0.0: Video: msmpeg4v2, yuv420p, 854x480, 24 tbr, 24 tbn, 24 tbc"
  [15]=>
  string(64) "    Stream #0.1: Audio: mp3, 48000 Hz, 2 channels, s16, 160 kb/s"
  [16]=>
  string(30) "Output #0, mp4, to 'test.mp4':"
  [17]=>
  string(11) "  Metadata:"
  [18]=>
  string(33) "    encoder         : Lavf52.64.2"
  [19]=>
  string(81) "    Stream #0.0: Video: mpeg4, yuv420p, 854x480, q=2-31, 200 kb/s, 24 tbn, 24 tbc"
  [20]=>
  string(67) "    Stream #0.1: Audio: libfaac, 48000 Hz, 2 channels, s16, 64 kb/s"
  [21]=>
  string(15) "Stream mapping:"
  [22]=>
  string(21) "  Stream #0.0 -> #0.0"
  [23]=>
  string(21) "  Stream #0.1 -> #0.1"
  [24]=>
  string(26) "Press [q] to stop encoding"
  [25]=>
  string(10424) "frame=  112 fps=  0 q=31.0 size=     358kB time=4.67 bitrate= 627.8kbits/s    
frame=  234 fps=233 q=31.0 size=     593kB time=9.75 bitrate= 498.3kbits/s    
frame=  350 fps=232 q=31.0 size=     822kB time=14.58 bitrate= 461.6kbits/s    
frame=  486 fps=242 q=31.0 size=    1031kB time=20.25 bitrate= 417.3kbits/s    
frame=  611 fps=243 q=31.0 size=    1239kB time=25.46 bitrate= 398.8kbits/s    
frame=  724 fps=240 q=31.0 size=    1449kB time=30.17 bitrate= 393.6kbits/s    
frame=  839 fps=239 q=31.0 size=    1644kB time=34.96 bitrate= 385.3kbits/s    
frame=  960 fps=239 q=31.0 size=    1837kB time=40.00 bitrate= 376.3kbits/s    
frame= 1088 fps=241 q=31.0 size=    2023kB time=45.33 bitrate= 365.6kbits/s    
frame= 1192 fps=237 q=31.0 size=    2218kB time=49.67 bitrate= 365.8kbits/s    
frame= 1316 fps=238 q=31.0 size=    2433kB time=54.83 bitrate= 363.5kbits/s    
frame= 1461 fps=243 q=31.0 size=    2656kB time=60.88 bitrate= 357.4kbits/s    
frame= 1581 fps=242 q=31.0 size=    2861kB time=65.88 bitrate= 355.8kbits/s    
frame= 1711 fps=244 q=31.0 size=    3105kB time=71.29 bitrate= 356.8kbits/s    
frame= 1841 fps=245 q=31.0 size=    3346kB time=76.71 bitrate= 357.4kbits/s    
frame= 1947 fps=243 q=31.0 size=    3584kB time=81.12 bitrate= 362.0kbits/s    
frame= 2093 fps=245 q=31.0 size=    3793kB time=87.21 bitrate= 356.3kbits/s    
frame= 2239 fps=248 q=31.0 size=    3992kB time=93.29 bitrate= 350.5kbits/s    
frame= 2395 fps=251 q=24.8 size=    4211kB time=99.79 bitrate= 345.6kbits/s    
frame= 2541 fps=253 q=31.0 size=    4451kB time=105.88 bitrate= 344.4kbits/s    
frame= 2685 fps=255 q=31.0 size=    4727kB time=111.88 bitrate= 346.1kbits/s    
frame= 2806 fps=254 q=31.0 size=    4974kB time=116.92 bitrate= 348.5kbits/s    
frame= 2921 fps=253 q=31.0 size=    5218kB time=121.71 bitrate= 351.2kbits/s    
frame= 3042 fps=252 q=31.0 size=    5425kB time=126.75 bitrate= 350.7kbits/s    
frame= 3184 fps=254 q=31.0 size=    5653kB time=132.67 bitrate= 349.1kbits/s    
frame= 3322 fps=255 q=24.8 size=    5887kB time=138.42 bitrate= 348.4kbits/s    
frame= 3456 fps=255 q=31.0 size=    6140kB time=144.00 bitrate= 349.3kbits/s    
frame= 3601 fps=256 q=31.0 size=    6322kB time=150.04 bitrate= 345.2kbits/s    
frame= 3743 fps=257 q=31.0 size=    6577kB time=155.96 bitrate= 345.5kbits/s    
frame= 3879 fps=258 q=31.0 size=    6779kB time=161.62 bitrate= 343.6kbits/s    
frame= 4019 fps=258 q=31.0 size=    6997kB time=167.46 bitrate= 342.3kbits/s    
frame= 4163 fps=259 q=31.0 size=    7209kB time=173.46 bitrate= 340.5kbits/s    
frame= 4297 fps=260 q=31.0 size=    7466kB time=179.04 bitrate= 341.6kbits/s    
frame= 4420 fps=259 q=31.0 size=    7733kB time=184.17 bitrate= 344.0kbits/s    
frame= 4532 fps=258 q=31.0 size=    8003kB time=188.83 bitrate= 347.2kbits/s    
frame= 4657 fps=258 q=31.0 size=    8222kB time=194.04 bitrate= 347.1kbits/s    
frame= 4756 fps=256 q=31.0 size=    8447kB time=198.17 bitrate= 349.2kbits/s    
frame= 4888 fps=256 q=31.0 size=    8672kB time=203.67 bitrate= 348.8kbits/s    
frame= 5021 fps=257 q=31.0 size=    8897kB time=209.21 bitrate= 348.4kbits/s    
frame= 5111 fps=255 q=31.0 size=    9156kB time=212.96 bitrate= 352.2kbits/s    
frame= 5164 fps=251 q=31.0 size=    9273kB time=215.17 bitrate= 353.1kbits/s    
frame= 5236 fps=248 q=31.0 size=    9405kB time=218.17 bitrate= 353.1kbits/s    
frame= 5333 fps=247 q=31.0 size=    9568kB time=222.21 bitrate= 352.7kbits/s    
frame= 5437 fps=246 q=31.0 size=    9737kB time=226.54 bitrate= 352.1kbits/s    
frame= 5527 fps=245 q=31.0 size=    9903kB time=230.29 bitrate= 352.3kbits/s    
frame= 5663 fps=245 q=31.0 size=   10099kB time=235.96 bitrate= 350.6kbits/s    
frame= 5786 fps=245 q=31.0 size=   10264kB time=241.08 bitrate= 348.8kbits/s    
frame= 5877 fps=244 q=31.0 size=   10482kB time=244.88 bitrate= 350.7kbits/s    
frame= 5961 fps=242 q=31.0 size=   10674kB time=248.38 bitrate= 352.1kbits/s    
frame= 6064 fps=242 q=31.0 size=   10869kB time=252.67 bitrate= 352.4kbits/s    
frame= 6140 fps=240 q=31.0 size=   11016kB time=255.83 bitrate= 352.7kbits/s    
frame= 6223 fps=238 q=31.0 size=   11162kB time=259.29 bitrate= 352.7kbits/s    
frame= 6326 fps=238 q=31.0 size=   11345kB time=263.58 bitrate= 352.6kbits/s    
frame= 6450 fps=238 q=31.0 size=   11534kB time=268.75 bitrate= 351.6kbits/s    
frame= 6565 fps=238 q=31.0 size=   11799kB time=273.54 bitrate= 353.4kbits/s    
frame= 6684 fps=238 q=31.0 size=   12021kB time=278.50 bitrate= 353.6kbits/s    
frame= 6812 fps=238 q=31.0 size=   12237kB time=283.83 bitrate= 353.2kbits/s    
frame= 6950 fps=239 q=31.0 size=   12424kB time=289.58 bitrate= 351.5kbits/s    
frame= 7079 fps=239 q=31.0 size=   12642kB time=294.96 bitrate= 351.1kbits/s    
frame= 7186 fps=239 q=31.0 size=   12865kB time=299.42 bitrate= 352.0kbits/s    
frame= 7249 fps=237 q=31.0 size=   13018kB time=302.04 bitrate= 353.1kbits/s    
frame= 7316 fps=235 q=31.0 size=   13162kB time=304.83 bitrate= 353.7kbits/s    
frame= 7396 fps=234 q=31.0 size=   13320kB time=308.17 bitrate= 354.1kbits/s    
frame= 7473 fps=233 q=24.8 size=   13462kB time=311.38 bitrate= 354.2kbits/s    
frame= 7559 fps=232 q=24.8 size=   13659kB time=314.96 bitrate= 355.3kbits/s    
frame= 7648 fps=231 q=31.0 size=   13856kB time=318.67 bitrate= 356.2kbits/s    
frame= 7721 fps=230 q=31.0 size=   14038kB time=321.71 bitrate= 357.5kbits/s    
frame= 7803 fps=229 q=31.0 size=   14196kB time=325.12 bitrate= 357.7kbits/s    
frame= 7850 fps=227 q=31.0 size=   14292kB time=327.08 bitrate= 357.9kbits/s    
frame= 7887 fps=225 q=31.0 size=   14399kB time=328.62 bitrate= 358.9kbits/s    
frame= 7959 fps=223 q=31.0 size=   14550kB time=331.62 bitrate= 359.4kbits/s    
frame= 8040 fps=223 q=31.0 size=   14699kB time=335.00 bitrate= 359.4kbits/s    
frame= 8119 fps=222 q=31.0 size=   14849kB time=338.29 bitrate= 359.6kbits/s    
frame= 8207 fps=221 q=31.0 size=   14969kB time=341.96 bitrate= 358.6kbits/s    
frame= 8255 fps=219 q=31.0 size=   15064kB time=343.96 bitrate= 358.8kbits/s    
frame= 8307 fps=218 q=31.0 size=   15198kB time=346.12 bitrate= 359.7kbits/s    
frame= 8358 fps=216 q=31.0 size=   15333kB time=348.25 bitrate= 360.7kbits/s    
frame= 8420 fps=215 q=31.0 size=   15488kB time=350.83 bitrate= 361.6kbits/s    
frame= 8491 fps=214 q=24.8 size=   15645kB time=353.79 bitrate= 362.3kbits/s    
frame= 8569 fps=213 q=31.0 size=   15793kB time=357.04 bitrate= 362.4kbits/s    
frame= 8643 fps=213 q=31.0 size=   16003kB time=360.12 bitrate= 364.0kbits/s    
frame= 8737 fps=212 q=31.0 size=   16180kB time=364.04 bitrate= 364.1kbits/s    
frame= 8811 fps=212 q=31.0 size=   16348kB time=367.12 bitrate= 364.8kbits/s    
frame= 8870 fps=210 q=31.0 size=   16477kB time=369.58 bitrate= 365.2kbits/s    
frame= 8980 fps=211 q=31.0 size=   16649kB time=374.17 bitrate= 364.5kbits/s    
frame= 9096 fps=211 q=31.0 size=   16824kB time=379.00 bitrate= 363.7kbits/s    
frame= 9203 fps=211 q=31.0 size=   16997kB time=383.46 bitrate= 363.1kbits/s    
frame= 9326 fps=211 q=31.0 size=   17180kB time=388.58 bitrate= 362.2kbits/s    
frame= 9430 fps=211 q=31.0 size=   17373kB time=392.92 bitrate= 362.2kbits/s    
frame= 9539 fps=211 q=31.0 size=   17547kB time=397.46 bitrate= 361.7kbits/s    
frame= 9678 fps=212 q=24.8 size=   17845kB time=403.25 bitrate= 362.5kbits/s    
frame= 9810 fps=212 q=31.0 size=   18170kB time=408.75 bitrate= 364.2kbits/s    
frame= 9949 fps=213 q=31.0 size=   18428kB time=414.54 bitrate= 364.2kbits/s    
frame=10084 fps=214 q=31.0 size=   18690kB time=420.17 bitrate= 364.4kbits/s    
frame=10180 fps=214 q=31.0 size=   19079kB time=424.17 bitrate= 368.5kbits/s    
frame=10297 fps=214 q=24.8 size=   19358kB time=429.04 bitrate= 369.6kbits/s    
frame=10398 fps=214 q=31.0 size=   19688kB time=433.25 bitrate= 372.3kbits/s    
frame=10498 fps=213 q=31.0 size=   19969kB time=437.42 bitrate= 374.0kbits/s    
frame=10627 fps=214 q=31.0 size=   20312kB time=442.79 bitrate= 375.8kbits/s    
frame=10749 fps=214 q=31.0 size=   20652kB time=447.88 bitrate= 377.7kbits/s    
frame=10883 fps=215 q=31.0 size=   20902kB time=453.46 bitrate= 377.6kbits/s    
frame=11030 fps=216 q=31.0 size=   21147kB time=459.58 bitrate= 376.9kbits/s    
frame=11152 fps=216 q=31.0 size=   21429kB time=464.67 bitrate= 377.8kbits/s    
frame=11248 fps=216 q=31.0 size=   21675kB time=468.67 bitrate= 378.9kbits/s    
frame=11383 fps=216 q=31.0 size=   21904kB time=474.29 bitrate= 378.3kbits/s    
frame=11522 fps=217 q=31.0 size=   22159kB time=480.08 bitrate= 378.1kbits/s    
frame=11675 fps=217 q=31.0 size=   22411kB time=486.46 bitrate= 377.4kbits/s    
frame=11811 fps=218 q=31.0 size=   22690kB time=492.12 bitrate= 377.7kbits/s    
frame=11964 fps=219 q=31.0 size=   22918kB time=498.50 bitrate= 376.6kbits/s    
frame=12108 fps=219 q=31.0 size=   23111kB time=504.50 bitrate= 375.3kbits/s    
frame=12231 fps=220 q=31.0 size=   23306kB time=509.62 bitrate= 374.6kbits/s    
frame=12361 fps=220 q=31.0 size=   23503kB time=515.04 bitrate= 373.8kbits/s    
frame=12488 fps=220 q=24.8 size=   23719kB time=520.33 bitrate= 373.4kbits/s    
frame=12612 fps=221 q=31.0 size=   23928kB time=525.50 bitrate= 373.0kbits/s    
frame=12744 fps=221 q=31.0 size=   24157kB time=531.00 bitrate= 372.7kbits/s    
frame=12862 fps=221 q=31.0 size=   24481kB time=535.92 bitrate= 374.2kbits/s    
frame=12967 fps=221 q=31.0 size=   24836kB time=540.29 bitrate= 376.6kbits/s    
frame=13068 fps=221 q=31.0 size=   25212kB time=544.50 bitrate= 379.3kbits/s    
frame=13169 fps=221 q=31.0 size=   25567kB time=548.71 bitrate= 381.7kbits/s    
frame=13266 fps=220 q=31.0 size=   25935kB time=552.75 bitrate= 384.4kbits/s    
frame=13360 fps=220 q=31.0 size=   26384kB time=556.67 bitrate= 388.3kbits/s    
frame=13461 fps=220 q=31.0 size=   26738kB time=560.88 bitrate= 390.5kbits/s    
frame=13579 fps=220 q=31.0 size=   26981kB time=565.79 bitrate= 390.6kbits/s    
frame=13723 fps=221 q=31.0 size=   27175kB time=571.79 bitrate= 389.3kbits/s    
frame=13870 fps=221 q=31.0 size=   27377kB time=577.92 bitrate= 388.1kbits/s    
frame=14018 fps=222 q=31.0 size=   27661kB time=584.08 bitrate= 388.0kbits/s    
frame=14160 fps=222 q=31.0 size=   27994kB time=590.00 bitrate= 388.7kbits/s    
frame=14299 fps=223 q=31.0 size=   28339kB time=595.79 bitrate= 389.7kbits/s    
frame=14315 fps=223 q=24.8 Lsize=   28718kB time=596.37 bitrate= 394.5kbits/s"
  [26]=>
  string(71) "video:23709kB audio:4672kB global headers:0kB muxing overhead 1.185349%"
}
int(0)
  •  

Marius P.

#1
Hi, there is this red warning saying ffmpeg 0.6 is to old to work with PHPVibe http://www.phpvibe.com/requirements/
You need at least ffmpeg 1.0 , latest is 2.3.3. Ffmpeg 0.6 was used for .flv files mainly, and will work bad or not at all with .mp4 specific conversions.
And we don't want our clients to loose all mobile traffic (which is bigger than browser traffic already).


Hope this helps!
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!
  •  

Bob.WestonTopic starter

I understand that and have not installed anything but the latest files.
I did not install any particular version file, I installed the latest version from FFMPEG.org.
The output from your script tells me something different then what is in my server..

root@server1 [~]# ffmpeg
ffmpeg version N-66003-gf0d4f00 Copyright (c) 2000-2014 the FFmpeg developers
  built on Aug 31 2014 11:25:42 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-4)
  configuration: --enable-gpl --enable-libmp3lame --enable-libtheora --enable-zlib --enable-version3
  libavutil      54.  7.100 / 54.  7.100
  libavcodec     56.  1.100 / 56.  1.100
  libavformat    56.  3.100 / 56.  3.100
  libavdevice    56.  0.100 / 56.  0.100
  libavfilter     5.  0.103 /  5.  0.103
  libswscale      3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  0.100 / 53.  0.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'


could you tell me where to get the latest version? I am on linux with operating system CentOS 6.5 or maybe point me in the direction of someone who could help? I really want this script to work.. it cannot be difficult :/
  •  

Marius P.

Looks to me like you've installed this new version over the old one, and have not removed the old one.
You have 2 ffmpeg versions and they usually conflict. I assume, can't say for sure (I'm a coder, not a hosting expert).
Our server administrator used this https://trac.ffmpeg.org/wiki/CompilationGuide/Centos we use CentOS 6 also.
But I can't really give you ffmpeg tips (tried for 2 weeks with always error/incomplete setup before asking Lease Web for this paid job).
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!
  •  

Bob.WestonTopic starter

I have completely uninstalled FFMPEG and if i serach for the available packages for FFMPEG the latest is 6.5 for some odd reason :/

root@server1 [~]# yum list ffmpeg
Loaded plugins: fastestmirror, protectbase
Loading mirror speeds from cached hostfile
 * atomic: www8.atomicorp.com
 * base: mirror.ash.fastserv.com
 * extras: mirror.thelinuxfix.com
 * rpmforge: repoforge.mirror.constant.com
 * updates: mirror.cogentco.com
121 packages excluded due to repository protections
Available Packages
ffmpeg.x86_64                                                                                        0.6.5-1.el6.rf                                                                                         dag
root@server1 [~]#


I mean, I am not stupid by no means but cannot get anything but 6.5 installed on my server.. I will try your wiki link and see if it works.. but I doubt it :(
  •  

Marius P.

I did yum installs and auto-packages for days, DO NOT USE THOSE!
Use the version and tutorial from the ffmpeg site.
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!
  •  

Bob.WestonTopic starter

Hi Mario,

I tried that but it didn't work.. here is a link for all the releases of FFMPEG if someone asks:

http://ffmpeg.org/releases/

I erased everything and installed everything but am having a problem with libx264.. it will not configure correctly and FFMPEG needs it :(

I think there is something hanging with some old files when I configure it with  --prefix=/user --enable-static.. when I make I keep getting the error:

collect2: ld returned 1 exit status
make: *** [x264] Error 1

I hope I figure this out soon because I am going crazy.. I never should have relied on yum :(

Bob


  •  

Marius P.

#7
Hi,
did you google this error? I see some results on google for 'ffmpeg collect2: ld returned 1 exit status'
http://ffmpeg.org/pipermail/ffmpeg-user/2013-March/014296.html
http://www.linuxquestions.org/questions/linux-newbie-8/problem-with-enable-libx264-option-in-ffmpeg-822156/


Unfortunately this kind of server issues are not something I can instinctively answer..if it was coding, there would be no problem.
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!
  •  

Bob.WestonTopic starter

Hi Mario,

not sure if I should start another thread about this.. cause this is in pre-sales but it could help others.

I finally got the ff.php to work with the minimum code, here is the result:

File to convert: test.avi
Converted file: test.mp4
Command send to server: ffmpeg -y -i test.avi test.mp4 2<&1
FFmpeg output

array(65) {
  [0]=>
  string(85) "ffmpeg version N-66245-g917d14e-syslint Copyright (c) 2000-2014 the FFmpeg developers"
  [1]=>
  string(79) "  built on Sep 12 2014 13:02:37 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-4)"
  [2]=>
  string(426) "  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"
  [3]=>
  string(40) "  libavutil      54.  7.100 / 54.  7.100"
  [4]=>
  string(40) "  libavcodec     56.  1.100 / 56.  1.100"
  [5]=>
  string(40) "  libavformat    56.  4.101 / 56.  4.101"
  [6]=>
  string(40) "  libavdevice    56.  0.100 / 56.  0.100"
  [7]=>
  string(40) "  libavfilter     5.  1.100 /  5.  1.100"
  [8]=>
  string(40) "  libswscale      3.  0.100 /  3.  0.100"
  [9]=>
  string(40) "  libswresample   1.  1.100 /  1.  1.100"
  [10]=>
  string(40) "  libpostproc    53.  0.100 / 53.  0.100"
  [11]=>
  string(51) "[wmv3 @ 0x805f00] Extra data: 8 bits left, value: 0"
  [12]=>
  string(54) "Guessed Channel Layout for  Input Stream #0.0 : stereo"
  [13]=>
  string(31) "Input #0, asf, from 'test.avi':"
  [14]=>
  string(11) "  Metadata:"
  [15]=>
  string(32) "    WMFSDKNeeded    : 0.0.0.0000"
  [16]=>
  string(36) "    DeviceConformanceTemplate: MP@LL"
  [17]=>
  string(36) "    WMFSDKVersion   : 11.0.5721.5145"
  [18]=>
  string(23) "    IsVBR           : 0"
  [19]=>
  string(59) "  Duration: 00:01:21.02, start: 0.000000, bitrate: 312 kb/s"
  [20]=>
  string(93) "    Stream #0:0(ger): Audio: wmav2 (a[1][0][0] / 0x0161), 48000 Hz, 2 channels, fltp, 64 kb/s"
  [21]=>
  string(120) "    Stream #0:1(ger): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 320x240, 227 kb/s, 25 fps, 25 tbr, 1k tbn, 1k tbc"
  [22]=>
  string(50) "[libx264 @ 0x837360] using cpu capabilities: none!"
  [23]=>
  string(44) "[libx264 @ 0x837360] profile High, level 1.3"
  [24]=>
  string(684) "[libx264 @ 0x837360] 264 - core 142 r2479 dd79a61 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=36 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00"
  [25]=>
  string(51) "[wmv3 @ 0x806a00] Extra data: 8 bits left, value: 0"
  [26]=>
  string(30) "Output #0, mp4, to 'test.mp4':"
  [27]=>
  string(11) "  Metadata:"
  [28]=>
  string(32) "    WMFSDKNeeded    : 0.0.0.0000"
  [29]=>
  string(36) "    DeviceConformanceTemplate: MP@LL"
  [30]=>
  string(36) "    WMFSDKVersion   : 11.0.5721.5145"
  [31]=>
  string(23) "    IsVBR           : 0"
  [32]=>
  string(34) "    encoder         : Lavf56.4.101"
  [33]=>
  string(122) "    Stream #0:0(ger): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 320x240, q=-1--1, 25 fps, 12800 tbn, 25 tbc"
  [34]=>
  string(13) "    Metadata:"
  [35]=>
  string(44) "      encoder         : Lavc56.1.100 libx264"
  [36]=>
  string(100) "    Stream #0:1(ger): Audio: aac (libfaac) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, s16, 128 kb/s"
  [37]=>
  string(13) "    Metadata:"
  [38]=>
  string(44) "      encoder         : Lavc56.1.100 libfaac"
  [39]=>
  string(15) "Stream mapping:"
  [40]=>
  string(55) "  Stream #0:1 -> #0:0 (wmv3 (native) -> h264 (libx264))"
  [41]=>
  string(55) "  Stream #0:0 -> #0:1 (wmav2 (native) -> aac (libfaac))"
  [42]=>
  string(31) "Press [q] to stop, [?] for help"
  [43]=>
  string(52) "[libfaac @ 0x807e20] Queue input is backward in time"
  [44]=>
  string(166) "[mp4 @ 0x806ea0] Non-monotonous DTS in output stream 0:1; previous: 7168, current: 6144; changing to 7169. This may result in incorrect timestamps in the output file."
  [45]=>
  string(5406) "frame=  104 fps=0.0 q=28.0 size=      64kB time=00:00:03.76 bitrate= 139.7kbits/s    
frame=  145 fps=141 q=28.0 size=     150kB time=00:00:05.29 bitrate= 232.3kbits/s    
frame=  167 fps=109 q=28.0 size=     198kB time=00:00:06.16 bitrate= 263.1kbits/s    
frame=  216 fps=106 q=28.0 size=     321kB time=00:00:08.11 bitrate= 323.5kbits/s    
frame=  238 fps= 93 q=28.0 size=     368kB time=00:00:08.74 bitrate= 344.5kbits/s    
frame=  255 fps= 83 q=28.0 size=     405kB time=00:00:09.68 bitrate= 342.8kbits/s    
frame=  296 fps= 83 q=28.0 size=     506kB time=00:00:11.26 bitrate= 368.1kbits/s    
frame=  313 fps= 76 q=28.0 size=     545kB time=00:00:11.98 bitrate= 372.2kbits/s    
frame=  363 fps= 78 q=28.0 size=     664kB time=00:00:14.07 bitrate= 386.3kbits/s    
frame=  393 fps= 76 q=28.0 size=     750kB time=00:00:15.18 bitrate= 404.5kbits/s    
frame=  408 fps= 72 q=28.0 size=     788kB time=00:00:15.70 bitrate= 411.2kbits/s    
frame=  422 fps= 68 q=28.0 size=     823kB time=00:00:16.21 bitrate= 415.9kbits/s    
frame=  468 fps= 70 q=28.0 size=     966kB time=00:00:17.91 bitrate= 441.5kbits/s    
frame=  494 fps= 69 q=28.0 size=    1031kB time=00:00:19.43 bitrate= 434.5kbits/s    
frame=  512 fps= 66 q=28.0 size=    1079kB time=00:00:19.94 bitrate= 443.3kbits/s    
frame=  526 fps= 64 q=28.0 size=    1127kB time=00:00:20.66 bitrate= 447.0kbits/s    
frame=  583 fps= 66 q=28.0 size=    1240kB time=00:00:22.76 bitrate= 446.3kbits/s    
frame=  626 fps= 67 q=28.0 size=    1313kB time=00:00:24.36 bitrate= 441.6kbits/s    
frame=  648 fps= 66 q=28.0 size=    1365kB time=00:00:25.14 bitrate= 444.7kbits/s    
frame=  672 fps= 65 q=28.0 size=    1429kB time=00:00:25.99 bitrate= 450.5kbits/s    
frame=  694 fps= 64 q=28.0 size=    1490kB time=00:00:27.40 bitrate= 445.5kbits/s    
frame=  722 fps= 63 q=28.0 size=    1546kB time=00:00:27.94 bitrate= 453.3kbits/s    
frame=  744 fps= 62 q=28.0 size=    1580kB time=00:00:28.89 bitrate= 447.9kbits/s    
frame=  789 fps= 63 q=28.0 size=    1656kB time=00:00:30.46 bitrate= 445.4kbits/s    
frame=  841 fps= 65 q=28.0 size=    1740kB time=00:00:32.47 bitrate= 438.9kbits/s    
frame=  874 fps= 65 q=28.0 size=    1789kB time=00:00:33.80 bitrate= 433.5kbits/s    
frame=  900 fps= 64 q=28.0 size=    1822kB time=00:00:34.87 bitrate= 428.0kbits/s    
frame=  951 fps= 65 q=28.0 size=    1915kB time=00:00:36.82 bitrate= 426.0kbits/s    
frame=  982 fps= 65 q=28.0 size=    1971kB time=00:00:38.35 bitrate= 420.9kbits/s    
frame= 1014 fps= 65 q=28.0 size=    2024kB time=00:00:39.59 bitrate= 418.8kbits/s    
frame= 1045 fps= 65 q=28.0 size=    2077kB time=00:00:41.00 bitrate= 414.9kbits/s    
frame= 1070 fps= 65 q=28.0 size=    2118kB time=00:00:41.98 bitrate= 413.2kbits/s    
frame= 1100 fps= 64 q=28.0 size=    2166kB time=00:00:43.26 bitrate= 410.1kbits/s    
frame= 1126 fps= 64 q=28.0 size=    2209kB time=00:00:44.07 bitrate= 410.5kbits/s    
frame= 1142 fps= 63 q=28.0 size=    2236kB time=00:00:44.75 bitrate= 409.2kbits/s    
frame= 1195 fps= 64 q=28.0 size=    2338kB time=00:00:46.85 bitrate= 408.7kbits/s    
frame= 1224 fps= 64 q=28.0 size=    2380kB time=00:00:48.63 bitrate= 400.8kbits/s    
frame= 1257 fps= 64 q=28.0 size=    2431kB time=00:00:49.45 bitrate= 402.7kbits/s    
frame= 1288 fps= 64 q=28.0 size=    2481kB time=00:00:50.73 bitrate= 400.7kbits/s    
frame= 1316 fps= 64 q=28.0 size=    2528kB time=00:00:51.92 bitrate= 398.8kbits/s    
frame= 1347 fps= 64 q=28.0 size=    2573kB time=00:00:53.33 bitrate= 395.1kbits/s    
frame= 1374 fps= 63 q=28.0 size=    2611kB time=00:00:54.45 bitrate= 392.9kbits/s    
frame= 1389 fps= 63 q=28.0 size=    2632kB time=00:00:55.03 bitrate= 391.7kbits/s    
frame= 1439 fps= 63 q=28.0 size=    2728kB time=00:00:57.08 bitrate= 391.5kbits/s    
frame= 1470 fps= 63 q=28.0 size=    2776kB time=00:00:58.29 bitrate= 390.1kbits/s    
frame= 1497 fps= 63 q=28.0 size=    2817kB time=00:00:59.57 bitrate= 387.4kbits/s    
frame= 1531 fps= 63 q=28.0 size=    2877kB time=00:01:00.98 bitrate= 386.4kbits/s    
frame= 1562 fps= 63 q=28.0 size=    2933kB time=00:01:02.44 bitrate= 384.8kbits/s    
frame= 1595 fps= 63 q=28.0 size=    2985kB time=00:01:03.70 bitrate= 383.8kbits/s    
frame= 1622 fps= 63 q=28.0 size=    3032kB time=00:01:04.82 bitrate= 383.2kbits/s    
frame= 1644 fps= 62 q=28.0 size=    3070kB time=00:01:05.59 bitrate= 383.5kbits/s    
frame= 1701 fps= 63 q=28.0 size=    3200kB time=00:01:07.83 bitrate= 386.5kbits/s    
frame= 1732 fps= 63 q=28.0 size=    3258kB time=00:01:09.01 bitrate= 386.8kbits/s    
frame= 1761 fps= 63 q=28.0 size=    3314kB time=00:01:10.10 bitrate= 387.3kbits/s    
frame= 1784 fps= 63 q=28.0 size=    3349kB time=00:01:10.84 bitrate= 387.3kbits/s    
frame= 1822 fps= 63 q=28.0 size=    3413kB time=00:01:12.27 bitrate= 386.9kbits/s    
frame= 1863 fps= 63 q=28.0 size=    3475kB time=00:01:14.49 bitrate= 382.2kbits/s dup=1 drop=0    
frame= 1902 fps= 63 q=28.0 size=    3542kB time=00:01:16.50 bitrate= 379.3kbits/s dup=1 drop=0    
frame= 1928 fps= 63 q=28.0 size=    3566kB time=00:01:17.71 bitrate= 375.9kbits/s dup=1 drop=0    
frame= 1982 fps= 64 q=28.0 size=    3633kB time=00:01:20.55 bitrate= 369.4kbits/s dup=1 drop=0    
frame= 2016 fps= 64 q=28.0 size=    3682kB time=00:01:20.93 bitrate= 372.6kbits/s dup=1 drop=0    
frame= 2025 fps= 61 q=-1.0 Lsize=    3937kB time=00:01:21.02 bitrate= 398.0kbits/s dup=1 drop=0"
  [46]=>
  string(101) "video:2897kB audio:976kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.634101%"
  [47]=>
  string(60) "[libx264 @ 0x837360] frame I:20    Avg QP:20.55  size: 16473"
  [48]=>
  string(60) "[libx264 @ 0x837360] frame P:1316  Avg QP:25.26  size:  1832"
  [49]=>
  string(60) "[libx264 @ 0x837360] frame B:689   Avg QP:31.26  size:   327"
  [50]=>
  string(66) "[libx264 @ 0x837360] consecutive B-frames: 44.9% 21.2% 23.6% 10.3%"
  [51]=>
  string(52) "[libx264 @ 0x837360] mb I  I16..4:  2.9% 73.6% 23.4%"
  [52]=>
  string(105) "[libx264 @ 0x837360] mb P  I16..4:  0.1%  0.5%  0.2%  P16..4: 30.7%  9.7% 15.4%  0.0%  0.0%    skip:43.4%"
  [53]=>
  string(133) "[libx264 @ 0x837360] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8: 28.6%  4.0%  1.7%  direct: 1.7%  skip:63.8%  L0:41.6% L1:50.8% BI: 7.5%"
  [54]=>
  string(58) "[libx264 @ 0x837360] 8x8 transform intra:71.1% inter:51.5%"
  [55]=>
  string(86) "[libx264 @ 0x837360] coded y,uvDC,uvAC intra: 88.7% 77.1% 40.2% inter: 16.8% 6.5% 0.7%"
  [56]=>
  string(50) "[libx264 @ 0x837360] i16 v,h,dc,p: 33% 29% 25% 13%"
  [57]=>
  string(87) "[libx264 @ 0x837360] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 24% 20%  3%  4%  6%  5%  5%  7%"
  [58]=>
  string(87) "[libx264 @ 0x837360] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 22% 13%  4%  6%  6%  6%  5%  7%"
  [59]=>
  string(50) "[libx264 @ 0x837360] i8c dc,h,v,p: 45% 22% 26%  6%"
  [60]=>
  string(54) "[libx264 @ 0x837360] Weighted P-Frames: Y:1.3% UV:0.0%"
  [61]=>
  string(60) "[libx264 @ 0x837360] ref P L0: 77.6% 16.0%  4.9%  1.5%  0.0%"
  [62]=>
  string(48) "[libx264 @ 0x837360] ref B L0: 92.8%  6.7%  0.5%"
  [63]=>
  string(42) "[libx264 @ 0x837360] ref B L1: 95.0%  5.0%"
  [64]=>
  string(32) "[libx264 @ 0x837360] kb/s:292.95"
}
int(0)


The way I got it to work was, I removed everything possible from previous installs, then I used the auto-installer listed in this thread:

http://www.phpvibe.com/forum/troubleshooting-issues/help-with-installing-ffmpeg-on-centos/msg17591/#msg17591

I re-uploaded the original ff.php and the video converts and plays, but there is very little output.. it is confusing me.. here is the output:

File to convert: test.avi
Converted file: test.mp4
Command send to server: ffmpeg -i test.avi -vcodec libx264 -s 640x360 -threads 4 -movflags faststart test.mp4
FFmpeg output

array(0) {
}
int(0)


I already tried uploading the same file on my phpvibe purchased site and it didn't work, it did not convert the AVI file over to the media folder.

What needs to be edited in the website code to make it work like it did with the minimal code in ff.php? Or if it doesn't work it doesn't work? Maybe I just have something set wrong in the config but do not think so :(

Bob
  •  

Marius P.

First of all, is your command 'ffmpeg' or something like 'usr/bin/ffmpeg'?
I've used that auto-installed to, it didn't work for me, it was saying ffmpeg is installed but it did not return anything.

One way to force an error is this:

Open ff.php and change:

$output ="{ffmpeg-cmd} -i {input} -vcodec libx264 -s {ffmpeg-vsize} -threads 4 -movflags faststart {output}.mp4";

to

$output ="{ffmpeg-cmd} -i {input} -vcodec libx264 -s {ffmpeg-vsize} -threads 4 -movflags faststart {output}.mp4 2>&1";
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!
  •  

Bob.WestonTopic starter

I am using ffmpeg, will try the other..

as far as the other ff.php, I changed it as u said and it worked with a good output but cannot post it here.. I get the following forum error:

The following error or errors occurred while posting this message:
The message exceeds the maximum allowed length (20000 characters).

  •  

Bob.WestonTopic starter

I tried usr/bin/ffmpeg and got nothing.. then changed it to usr/local/bin/ffmpeg and got the same result as using ffmpeg.. am giving up on this VPS....

I also just installed it on a server with centos 6.5.. it is a new server that has nothing installed but centos and cpanel.. I followed ALL the instructions to the T from here:

https://trac.ffmpeg.org/wiki/CompilationGuide/Centos

I even used updated files of yasm and libogg.. ran into only one small problem installing yasm.. but there was a work around.. the rest ran smooth.. I have not yet tried the ffmpeg test cause the ff.php says ffmpeg is not installed..

going to search the forums here and see if something else is not installed :(
  •  

Marius P.

Run in ssh :

ffmpeg -i

where is ffmpeg
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!
  •  

Bob.WestonTopic starter

I just cannot get it to work.. even tried the latest ffmpeg 2.4 released this week..

I have read a lot here and have never seen a complete list of everything needed for this to run... just ffmpeg, video / audio codecs and libx264 don't cut it.. been playing Russian roulette with all kinds of different versions of this and that trying to get something compatible with each other..  something else more is needed to get this to work.. what about ffmpeg-php? Is that required? Maybe it is the problem because I have yet to get that successfully installed.. I keep getting errors about libx264 version being too old or whatever..

can someone provide a complete list of everything installed on a working centos 6.5 server and what versions are being used so I can get this thing working?

Bob
  •  

Marius P.

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!
  •  

Bob.WestonTopic starter

hi mario,

I seen that.. that is exactly what mine looked like after using the auto-installer and the installer did not work.. the problem with that auto-installer is that most of the stuff inside it is outdated. I opened up the ffmpeg.sh and looked what version, they use version 0.5 from 2010. I read somewhere you need at least FFMPEG version 1.0 for PHPVIBE to work.

I guess I will decompile the auto-installer and change it with updated links to see if I can get it to work with newer versions of everything and run it again... may take a while though :(
  •  

Marius P.

Mate, the guy who did it for my private server copy&pasted it from the guide I've linked to...he only had a problem with the tmp dir, and had to add a prefix to one command (I saw him google the 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!
  •  

Bob.WestonTopic starter

Hey Mario.. I finally got this working :)

Am still testing different files to see all that will convert.. but it is working now :)

I took really good notes and edited them as I went along.. I read about 20 different tutorials on compiling FFMPEG on CentOs and made my own. I will share it in the forum after I am done testing, if they follow all the steps exactly PHPvibe will work on their CentOs 64bit with cPanel server. Is even built with the latest FFMPEG 2.4.1 ;)

Here is what is configured (I even labeled it for PHPvibe)

root@server2 [~]# ffmpeg
ffmpeg version n2.4.1-phpvibe Copyright (c) 2000-2014 the FFmpeg developers
  built on Oct  1 2014 13:15:42 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-4)
  configuration: --prefix=/home/ffmpeg_build --extra-cflags=-I/home/ffmpeg_build/include --extra-ldflags=-L/home/ffmpeg_build/lib --bindir=/usr/bin --extra-libs=-ldl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libvo-aacenc --enable-libxvid --enable-ffplay --enable-gpl --enable-postproc --enable-nonfree --enable-avfilter --enable-pthreads --enable-libfdk_aac --enable-libopus --enable-libfreetype --enable-libspeex --extra-version=phpvibe
  libavutil      54.  7.100 / 54.  7.100
  libavcodec     56.  1.100 / 56.  1.100
  libavformat    56.  4.101 / 56.  4.101
  libavdevice    56.  0.100 / 56.  0.100
  libavfilter     5.  1.100 /  5.  1.100
  libswscale      3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  0.100 / 53.  0.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'
root@server2 [~]#


I am really happy now :)

Bob
  •  

Marius P.

A tone of work, you have my appreciation for sharing your results and tutorial!
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!
  •  

Similar topics (7)