• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Error on file processing, on tester everything look fine

Started by mamoor,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mamoorTopic starter

Hello,

We are having issues with the phpvibe installation on our end. We can't seem to figure out what is wrong. The tester script is located at: http://vibe.eboundservices.com/tester which execute fine and ffmpeg file conversion for testing is also done fine here: http://vibe.eboundservices.com/tester/ff.php

I was able to convert the video only after adding: -strict -2 in the tester file, however when i am trying to upload any videos from the site itself: http://vibe.eboundservices.com/ - it doesn't work. It keeps stating that the conversion is running.

I don't think this is an issue with the ffmpeg installation because otherwise the tester script should have not been working either.

Do you have any ideas on why the stuff is not working?

Thanks in advance
  •  

mamoorTopic starter

i modified the ff.php tester to show the output: the tester works just fine, it's just that converting from the site it won't work:
array(50) {
  [0]=>
  string(66) "ffmpeg version 2.2.1 Copyright (c) 2000-2014 the FFmpeg developers"
  [1]=>
  string(79) "  built on Apr 13 2014 13:00:18 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4)"
  [2]=>
  string(759) "  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --enable-runtime-cpudetect --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --enable-pthreads --enable-x11grab --enable-vdpau --disable-avisynth --enable-frei0r --enable-libopencv --enable-libdc1394 --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --disable-stripping"
  [3]=>
  string(40) "  libavutil      52. 66.100 / 52. 66.100"
  [4]=>
  string(40) "  libavcodec     55. 52.102 / 55. 52.102"
  [5]=>
  string(40) "  libavformat    55. 33.100 / 55. 33.100"
  [6]=>
  string(40) "  libavdevice    55. 10.100 / 55. 10.100"
  [7]=>
  string(40) "  libavfilter     4.  2.100 /  4.  2.100"
  [8]=>
  string(40) "  libswscale      2.  5.102 /  2.  5.102"
  [9]=>
  string(40) "  libswresample   0. 18.100 /  0. 18.100"
  [10]=>
  string(40) "  libpostproc    52.  3.100 / 52.  3.100"
  [11]=>
  string(31) "Input #0, avi, from 'test.avi':"
  [12]=>
  string(11) "  Metadata:"
  [13]=>
  string(50) "    encoder         : MEncoder 2:1.0~rc2-0ubuntu13"
  [14]=>
  string(60) "  Duration: 00:09:56.46, start: 0.000000, bitrate: 2099 kb/s"
  [15]=>
  string(95) "    Stream #0:0: Video: msmpeg4v2 (MP42 / 0x3234504D), yuv420p, 854x480, 24 tbr, 24 tbn, 24 tbc"
  [16]=>
  string(83) "    Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 245 kb/s"
  [17]=>
  string(76) "[libx264 @ 0x24f1180] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX"
  [18]=>
  string(45) "[libx264 @ 0x24f1180] profile High, level 2.1"
  [19]=>
  string(670) "[libx264 @ 0x24f1180] 264 - core 142 - 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=4 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=24 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"
  [20]=>
  string(30) "Output #0, mp4, to 'test.mp4':"
  [21]=>
  string(11) "  Metadata:"
  [22]=>
  string(35) "    encoder         : Lavf55.33.100"
  [23]=>
  string(109) "    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 480x320, q=-1--1, 12288 tbn, 24 tbc"
  [24]=>
  string(86) "    Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp, 128 kb/s"
  [25]=>
  string(15) "Stream mapping:"
  [26]=>
  string(44) "  Stream #0:0 -> #0:0 (msmpeg4v2 -> libx264)"
  [27]=>
  string(34) "  Stream #0:1 -> #0:1 (mp3 -> aac)"
  [28]=>
  string(31) "Press [q] to stop, [?] for help"
  [29]=>
  string(9291) "frame=  142 fps=0.0 q=28.0 size=     147kB time=00:00:06.33 bitrate= 190.6kbits/s    
frame=  252 fps=251 q=28.0 size=     366kB time=00:00:10.94 bitrate= 274.1kbits/s    
frame=  357 fps=237 q=28.0 size=     680kB time=00:00:15.31 bitrate= 363.5kbits/s    
frame=  476 fps=237 q=28.0 size=    1019kB time=00:00:20.26 bitrate= 412.1kbits/s    
frame=  628 fps=250 q=28.0 size=    1303kB time=00:00:26.60 bitrate= 401.1kbits/s    
frame=  728 fps=242 q=28.0 size=    1589kB time=00:00:30.76 bitrate= 423.2kbits/s    
frame=  812 fps=231 q=28.0 size=    1831kB time=00:00:34.28 bitrate= 437.6kbits/s    
frame=  908 fps=227 q=28.0 size=    2121kB time=00:00:38.29 bitrate= 453.7kbits/s    
frame= 1007 fps=223 q=28.0 size=    2306kB time=00:00:42.41 bitrate= 445.5kbits/s    
frame= 1124 fps=224 q=28.0 size=    2565kB time=00:00:47.27 bitrate= 444.4kbits/s    
frame= 1233 fps=223 q=28.0 size=    2839kB time=00:00:51.81 bitrate= 448.8kbits/s    
frame= 1362 fps=226 q=28.0 size=    3146kB time=00:00:57.17 bitrate= 450.8kbits/s    
frame= 1526 fps=234 q=28.0 size=    3407kB time=00:01:04.04 bitrate= 435.8kbits/s    
frame= 1673 fps=238 q=28.0 size=    3695kB time=00:01:10.14 bitrate= 431.6kbits/s    
frame= 1821 fps=241 q=28.0 size=    3964kB time=00:01:16.30 bitrate= 425.5kbits/s    
frame= 1914 fps=238 q=28.0 size=    4274kB time=00:01:20.21 bitrate= 436.5kbits/s    
frame= 2013 fps=236 q=28.0 size=    4598kB time=00:01:24.30 bitrate= 446.8kbits/s    
frame= 2183 fps=241 q=28.0 size=    4838kB time=00:01:31.41 bitrate= 433.6kbits/s    
frame= 2396 fps=251 q=28.0 size=    5150kB time=00:01:40.26 bitrate= 420.8kbits/s    
frame= 2595 fps=258 q=28.0 size=    5480kB time=00:01:48.56 bitrate= 413.5kbits/s    
frame= 2750 fps=261 q=25.0 size=    5744kB time=00:01:55.02 bitrate= 409.1kbits/s    
frame= 2894 fps=262 q=28.0 size=    6075kB time=00:02:01.02 bitrate= 411.2kbits/s    
frame= 3020 fps=261 q=28.0 size=    6414kB time=00:02:06.29 bitrate= 416.0kbits/s    
frame= 3175 fps=263 q=28.0 size=    6685kB time=00:02:12.73 bitrate= 412.6kbits/s    
frame= 3331 fps=265 q=28.0 size=    6969kB time=00:02:19.24 bitrate= 410.0kbits/s    
frame= 3473 fps=266 q=28.0 size=    7271kB time=00:02:25.17 bitrate= 410.3kbits/s    
frame= 3659 fps=270 q=28.0 size=    7618kB time=00:02:32.89 bitrate= 408.2kbits/s    
frame= 3837 fps=273 q=28.0 size=    7985kB time=00:02:40.29 bitrate= 408.1kbits/s    
frame= 4016 fps=276 q=28.0 size=    8339kB time=00:02:47.76 bitrate= 407.2kbits/s    
frame= 4204 fps=279 q=28.0 size=    8654kB time=00:02:55.59 bitrate= 403.8kbits/s    
frame= 4370 fps=281 q=28.0 size=    9017kB time=00:03:02.50 bitrate= 404.7kbits/s    
frame= 4512 fps=281 q=28.0 size=    9408kB time=00:03:08.43 bitrate= 409.0kbits/s    
frame= 4663 fps=281 q=28.0 size=    9740kB time=00:03:14.73 bitrate= 409.8kbits/s    
frame= 4756 fps=278 q=28.0 size=   10023kB time=00:03:18.59 bitrate= 413.5kbits/s    
frame= 4915 fps=280 q=28.0 size=   10321kB time=00:03:25.24 bitrate= 411.9kbits/s    
frame= 5067 fps=280 q=28.0 size=   10615kB time=00:03:31.54 bitrate= 411.1kbits/s    
frame= 5162 fps=278 q=28.0 size=   10984kB time=00:03:35.50 bitrate= 417.5kbits/s    
frame= 5297 fps=278 q=28.0 size=   11291kB time=00:03:41.18 bitrate= 418.2kbits/s    
frame= 5474 fps=279 q=28.0 size=   11576kB time=00:03:48.52 bitrate= 415.0kbits/s    
frame= 5638 fps=281 q=28.0 size=   11918kB time=00:03:55.37 bitrate= 414.8kbits/s    
frame= 5796 fps=282 q=28.0 size=   12144kB time=00:04:01.96 bitrate= 411.1kbits/s    
frame= 5860 fps=278 q=28.0 size=   12285kB time=00:04:04.60 bitrate= 411.4kbits/s    
frame= 5964 fps=276 q=28.0 size=   12638kB time=00:04:08.93 bitrate= 415.9kbits/s    
frame= 6090 fps=276 q=28.0 size=   12964kB time=00:04:14.20 bitrate= 417.8kbits/s    
frame= 6221 fps=275 q=28.0 size=   13285kB time=00:04:19.64 bitrate= 419.1kbits/s    
frame= 6363 fps=275 q=28.0 size=   13614kB time=00:04:25.55 bitrate= 420.0kbits/s    
frame= 6510 fps=276 q=28.0 size=   13899kB time=00:04:31.68 bitrate= 419.1kbits/s    
frame= 6638 fps=275 q=28.0 size=   14287kB time=00:04:37.01 bitrate= 422.5kbits/s    
frame= 6784 fps=276 q=28.0 size=   14667kB time=00:04:43.11 bitrate= 424.4kbits/s    
frame= 6949 fps=277 q=28.0 size=   14931kB time=00:04:50.00 bitrate= 421.8kbits/s    
frame= 7128 fps=278 q=28.0 size=   15234kB time=00:04:57.45 bitrate= 419.6kbits/s    
frame= 7269 fps=278 q=28.0 size=   15556kB time=00:05:03.33 bitrate= 420.1kbits/s    
frame= 7389 fps=278 q=28.0 size=   15885kB time=00:05:08.33 bitrate= 422.0kbits/s    
frame= 7528 fps=278 q=28.0 size=   16187kB time=00:05:14.11 bitrate= 422.1kbits/s    
frame= 7643 fps=277 q=28.0 size=   16554kB time=00:05:18.91 bitrate= 425.2kbits/s    
frame= 7754 fps=276 q=28.0 size=   16891kB time=00:05:23.52 bitrate= 427.7kbits/s    
frame= 7890 fps=276 q=28.0 size=   17242kB time=00:05:29.19 bitrate= 429.1kbits/s    
frame= 8005 fps=275 q=28.0 size=   17579kB time=00:05:33.97 bitrate= 431.2kbits/s    
frame= 8137 fps=275 q=28.0 size=   17871kB time=00:05:39.47 bitrate= 431.3kbits/s    
frame= 8303 fps=276 q=28.0 size=   18197kB time=00:05:46.41 bitrate= 430.3kbits/s    
frame= 8406 fps=274 q=28.0 size=   18553kB time=00:05:50.69 bitrate= 433.4kbits/s    
frame= 8512 fps=273 q=28.0 size=   18932kB time=00:05:55.09 bitrate= 436.8kbits/s    
frame= 8622 fps=273 q=28.0 size=   19251kB time=00:05:59.68 bitrate= 438.4kbits/s    
frame= 8720 fps=271 q=28.0 size=   19723kB time=00:06:03.75 bitrate= 444.2kbits/s    
frame= 8847 fps=271 q=28.0 size=   20012kB time=00:06:09.08 bitrate= 444.2kbits/s    
frame= 8966 fps=271 q=28.0 size=   20365kB time=00:06:14.03 bitrate= 446.0kbits/s    
frame= 9168 fps=273 q=28.0 size=   20709kB time=00:06:22.44 bitrate= 443.6kbits/s    
frame= 9313 fps=273 q=28.0 size=   20915kB time=00:06:28.48 bitrate= 441.1kbits/s    
frame= 9438 fps=273 q=28.0 size=   21077kB time=00:06:33.66 bitrate= 438.6kbits/s    
frame= 9643 fps=274 q=28.0 size=   21490kB time=00:06:42.24 bitrate= 437.7kbits/s    
frame= 9789 fps=275 q=28.0 size=   21785kB time=00:06:48.29 bitrate= 437.1kbits/s    
frame= 9940 fps=275 q=28.0 size=   22142kB time=00:06:54.61 bitrate= 437.5kbits/s    
frame=10099 fps=276 q=28.0 size=   22475kB time=00:07:01.24 bitrate= 437.1kbits/s    
frame=10194 fps=274 q=28.0 size=   23009kB time=00:07:05.19 bitrate= 443.3kbits/s    
frame=10288 fps=273 q=28.0 size=   23384kB time=00:07:09.12 bitrate= 446.4kbits/s    
frame=10395 fps=272 q=28.0 size=   23733kB time=00:07:13.55 bitrate= 448.4kbits/s    
frame=10467 fps=271 q=28.0 size=   24240kB time=00:07:16.56 bitrate= 454.8kbits/s    
frame=10605 fps=271 q=28.0 size=   24599kB time=00:07:22.34 bitrate= 455.6kbits/s    
frame=10723 fps=270 q=25.0 size=   25060kB time=00:07:27.23 bitrate= 459.0kbits/s    
frame=10891 fps=271 q=28.0 size=   25395kB time=00:07:34.25 bitrate= 458.0kbits/s    
frame=11055 fps=272 q=28.0 size=   25692kB time=00:07:41.05 bitrate= 456.5kbits/s    
frame=11168 fps=271 q=28.0 size=   25907kB time=00:07:45.77 bitrate= 455.6kbits/s    
frame=11259 fps=270 q=28.0 size=   26195kB time=00:07:49.54 bitrate= 457.0kbits/s    
frame=11369 fps=270 q=28.0 size=   26509kB time=00:07:54.15 bitrate= 458.0kbits/s    
frame=11529 fps=270 q=28.0 size=   26775kB time=00:08:00.81 bitrate= 456.2kbits/s    
frame=11697 fps=271 q=28.0 size=   27008kB time=00:08:07.82 bitrate= 453.5kbits/s    
frame=11854 fps=271 q=28.0 size=   27264kB time=00:08:14.35 bitrate= 451.8kbits/s    
frame=11996 fps=272 q=28.0 size=   27463kB time=00:08:20.26 bitrate= 449.7kbits/s    
frame=12113 fps=271 q=28.0 size=   27647kB time=00:08:25.17 bitrate= 448.3kbits/s    
frame=12227 fps=271 q=28.0 size=   27834kB time=00:08:29.90 bitrate= 447.2kbits/s    
frame=12336 fps=270 q=28.0 size=   28062kB time=00:08:34.45 bitrate= 446.9kbits/s    
frame=12452 fps=270 q=28.0 size=   28269kB time=00:08:39.27 bitrate= 446.0kbits/s    
frame=12567 fps=269 q=25.0 size=   28490kB time=00:08:44.05 bitrate= 445.4kbits/s    
frame=12674 fps=269 q=28.0 size=   28698kB time=00:08:48.53 bitrate= 444.8kbits/s    
frame=12767 fps=268 q=28.0 size=   28860kB time=00:08:52.41 bitrate= 444.1kbits/s    
frame=12888 fps=267 q=28.0 size=   29166kB time=00:08:57.45 bitrate= 444.6kbits/s    
frame=12998 fps=267 q=28.0 size=   29620kB time=00:09:02.03 bitrate= 447.7kbits/s    
frame=13100 fps=266 q=28.0 size=   30053kB time=00:09:06.26 bitrate= 450.7kbits/s    
frame=13210 fps=266 q=28.0 size=   30497kB time=00:09:10.86 bitrate= 453.5kbits/s    
frame=13314 fps=265 q=28.0 size=   30953kB time=00:09:15.17 bitrate= 456.7kbits/s    
frame=13414 fps=265 q=28.0 size=   31355kB time=00:09:19.36 bitrate= 459.2kbits/s    
frame=13520 fps=264 q=28.0 size=   31741kB time=00:09:23.77 bitrate= 461.2kbits/s    
frame=13629 fps=264 q=28.0 size=   31963kB time=00:09:28.32 bitrate= 460.7kbits/s    
frame=13748 fps=263 q=28.0 size=   32140kB time=00:09:33.29 bitrate= 459.3kbits/s    
frame=13869 fps=263 q=28.0 size=   32334kB time=00:09:38.32 bitrate= 458.0kbits/s    
frame=14024 fps=263 q=28.0 size=   32528kB time=00:09:44.78 bitrate= 455.7kbits/s    
frame=14196 fps=264 q=28.0 size=   32738kB time=00:09:51.91 bitrate= 453.1kbits/s    
[mp4 @ 0x24f0880] Starting second pass: moving the moov atom to the beginning of the file"
  [30]=>
  string(82) "frame=14315 fps=264 q=-1.0 Lsize=   33380kB time=00:09:56.43 bitrate= 458.5kbits/s"
  [31]=>
  string(89) "video:23657kB audio:9335kB subtitle:0 data:0 global headers:0kB muxing overhead 1.176279%"
  [32]=>
  string(61) "[libx264 @ 0x24f1180] frame I:149   Avg QP:18.22  size: 26004"
  [33]=>
  string(61) "[libx264 @ 0x24f1180] frame P:6488  Avg QP:22.84  size:  2566"
  [34]=>
  string(61) "[libx264 @ 0x24f1180] frame B:7678  Avg QP:27.13  size:   482"
  [35]=>
  string(67) "[libx264 @ 0x24f1180] consecutive B-frames: 21.2% 17.7% 12.7% 48.4%"
  [36]=>
  string(53) "[libx264 @ 0x24f1180] mb I  I16..4:  6.8% 65.9% 27.3%"
  [37]=>
  string(106) "[libx264 @ 0x24f1180] mb P  I16..4:  0.8%  3.4%  0.7%  P16..4: 26.3% 11.5%  8.3%  0.0%  0.0%    skip:49.1%"
  [38]=>
  string(134) "[libx264 @ 0x24f1180] mb B  I16..4:  0.0%  0.4%  0.1%  B16..8: 20.1%  2.3%  0.7%  direct: 0.7%  skip:75.6%  L0:36.4% L1:56.0% BI: 7.6%"
  [39]=>
  string(59) "[libx264 @ 0x24f1180] 8x8 transform intra:68.9% inter:65.0%"
  [40]=>
  string(88) "[libx264 @ 0x24f1180] coded y,uvDC,uvAC intra: 68.2% 75.4% 52.6% inter: 10.4% 10.4% 2.3%"
  [41]=>
  string(51) "[libx264 @ 0x24f1180] i16 v,h,dc,p: 25% 29% 10% 36%"
  [42]=>
  string(88) "[libx264 @ 0x24f1180] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 15% 17%  5%  8% 10%  7%  9%  8%"
  [43]=>
  string(88) "[libx264 @ 0x24f1180] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 15% 12%  6% 10% 11%  8%  8%  7%"
  [44]=>
  string(51) "[libx264 @ 0x24f1180] i8c dc,h,v,p: 50% 21% 19% 10%"
  [45]=>
  string(55) "[libx264 @ 0x24f1180] Weighted P-Frames: Y:3.7% UV:2.2%"
  [46]=>
  string(61) "[libx264 @ 0x24f1180] ref P L0: 62.7% 15.4% 14.6%  7.1%  0.2%"
  [47]=>
  string(49) "[libx264 @ 0x24f1180] ref B L0: 89.3%  8.9%  1.7%"
  [48]=>
  string(43) "[libx264 @ 0x24f1180] ref B L1: 95.6%  4.4%"
  [49]=>
  string(33) "[libx264 @ 0x24f1180] kb/s:324.91"
}
int(0)
  •  

PHPVibe A.

Hi, what are your settings under Settings -> FFMPEG? Does videocron.php gets executed (shows in server processes)?

mamoorTopic starter

Hi,

These are the settings for the ffmpeg page. I also tried changing the ffmpeg command to /usr/bin/ffmpeg which is the ffmpeg path but it's the same thing.

http://screencast.com/t/wWa4E8mhL9M

No the videocron.php doesn't show in the process list. The file is executable tho:

-rwxrwxrwx  1 ebounds ebounds  2469 Apr  5 13:21 videocron.php

The videos are also uploaded in the rawmedia folder:

-rw-r--r--  1 apache  apache   675840 Apr 27 11:38 152281b1822ef5c53e31cb248d502035.avi
-rw-r--r--  1 apache  apache  4329048 Apr 27 11:37 2f56ab5640c11b1d8bd0000d8c47d817.AVI
-rw-r--r--  1 apache  apache   675840 Apr 27 11:56 300911082ccd74c90b79054199e76621.avi

The php exec and shell exec functions are also enabled.

Any ideas what could be the issue?

  •  

PHPVibe A.

Open videocron.php in a browser tab.
Test your exec(), seems weird that videocron.php is not executed. It may show only as the ffmpeg command it runs.

mamoorTopic starter

i opened it up but doesn't show anything: http://vibe.eboundservices.com/videocron.php. what baffles me is that i don't get a php error either, or i would have known what's going on.
  •  

PHPVibe A.

It has no output, but it should exec() your ffmpeg commands in background....check the videos see if they are converted.

mamoorTopic starter

yes the videos got converted after running manually videocron.php

so like ... why isn't it running automatically after the upload or something?
  •  

PHPVibe A.

Few reasons :

- videocron.php has no execute permissions (chmod 0555 usually)
- exec() doesn't work
- php bin path in FFMPEG settings is wrong

Similar topics (7)