• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] CRON

Started by identicalmedia,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

identicalmediaTopic starter

Please how do i run Con.php and videocron.php

help needed
  •  

Marius P.

Hi! You need to setup your path to the php bin under settings, and add execute permission to this two files, the rest is automatic.
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!
  •  

identicalmediaTopic starter

PLEASE AM SORRY I DIDNT KW HOW THAT WORKS, I USE A SHARED HOSTING , CAN YOU GIVE ME INSTRUCTION PLEASESSSSSSSSSSSSS
  •  

boydie100

hi,

try this

https://www.setcronjob.com

you put your domain.com.cron.php and set the time and off it goes
  •  

Marius P.

There is no need for an external cron, it's executed with shell_exec from index.php , I believe he either has shell_exec/exec disabled or no permissions on cron files. Most shared hostings disable exec/shell_exec functions, but unfortunately there is no alternative function for this.
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!
  •  

identicalmediaTopic starter

shell_exec/exec is enabled 

check http://www.tubora.com/phptest.php

but still my video conversion is not working
  •  

Marius P.

Does ffmpeg work if you run a ssh command (I think you got asked this like 3 times and never answered)?
If ffmpeg exists it doesn't mean it actually works (and I know cause it took me like 3 days to make it work and always was installing good).
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!
  •  

identicalmediaTopic starter

i use a shared hosting i have asked my hosting provider and i was told ffmpeg is working fine on the server


ssh is not available on the shared account

what can i do?
  •  

Marius P.

You should ask for the correct ffmpeg command and change it under FFMPEG Config in admin.
If that fails, try it with a simple convert script.
http://andrebluehs.net/blog/converting-avi-to-mp4-with-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!
  •  

identicalmediaTopic starter

I HAVE MOVED TO A NEW HOSTING WITH ALL THE REQUIREMENTS

BUT I STILL GET ERROR WHEN UPLOAD GETS TO 100%

  •  

PHPVibe A.

Does the video file actually uploads on server?

identicalmediaTopic starter

Yes , its in the /rawmedia folder

The upload just worked for me

But avi file says video will be available after convention , when I click on the video link from admin, it shows processing ,

Its been hours now and the videos are not live yet

What could be the problem ?
  •  

identicalmediaTopic starter

 I JUST NOTICED THAT THE CRON JOB DON'T WORK ,

I GET THIS : ERRO IN CRON EMAIL

/bin/sh: http://www.tubora.com/videocron.php: No such file or directory
  •  

PHPVibe A.

Quote from: identicalmedia on
/bin/sh: http://www.tubora.com/videocron.php: No such file or directory

That format is terribly wrong, check your php bin path path settings.

identicalmediaTopic starter

my hosting company said i can use /usr/local/lib/php or /usr/local/bin/php

but i still get same message :

/bin/sh: http://www.tubora.com/cron.php: No such file or directory
  •  

identicalmediaTopic starter

Hosting said I should use this command : /usr/local/bin/php public_html/cron.pnp

I did it and I have stop receving the error message. In mz email

Don't knw if that command is correct? Pls tell me

The other issue am having is , my  videos upload fine now , but when I try  to play it , it says ''FILE CAN'T BE FOUND' it doesn't show duration either , only thumbnail is generated

What could be the problem with the video

Please see error here: http://www.tubora.com/video/120/-seyi-law/
What can I do ?????
  •  

PHPVibe A.

Let me get this straight, you have added "/usr/local/bin/php" as Server bin path, under "Configuration", right?
If all is ok and cron triggers, you just need to change under "FFMPEG Config" the FFmpeg command as it's probably not "ffmpeg". Assuming your ffmpeg is actually working and has all the plugins.

identicalmediaTopic starter

yes and the hosting company said i should use this " /usr/local/bin/ffmpeg ' as command in  "FFMPEG Config"

but videos still not converting

i don't know whats is wrong  :-\

  •  

PHPVibe A.

Make a folder called "test" and chmod it 0777 (writeable).

Create a file inside this folder called index.php and add to it:
<?php
$output =" /usr/local/bin/ffmpeg -i video.avi -vcodec libx264 -s 640x360 -threads 4 -movflags faststart video.mp4";
shell_exec($out);
?>

Copy an .avi video to it as video.avi (rename it to this)
Execute the link to /test in a browser, see if it's working (an video.mp4 will show up soon in the folder).


identicalmediaTopic starter

I HAVE DONE I , BUT IT DID NOT WORK

AND THE PAGE SHOW ERROR 404
  •  

PHPVibe A.

You did something wrong.

You should have www.yourdomain.com/test/index.php and also www.yourdomain.com/test/video.avi and /test is chmod 0777, it cannot make 404.

identicalmediaTopic starter

i did exactly what you told me to do

i still get error 404

please what an i do, i have been on this for weeks



  •  

identicalmediaTopic starter

the problem am having is Converting AVI a file , only MP4  video uploads without issue

please take a look at thi cron result


FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers
  built on Jan 29 2012 23:55:02 with gcc 4.1.2 20080704 (Red Hat 4.1.2-51)
  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
  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
Input #0, avi, from
'/home/tubora/public_html/rawmedia/f98c537b0dc5e02352164d03705f5ee2.avi':
  Metadata:
    ISFT            : Lavf54.63.104
  Duration: 00:00:45.83, start: 0.000000, bitrate: 207 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 176x144 [PAR 1:1 DAR 11:9], 12 tbr, 12 tbn,
12 tbc
    Stream #0.1: Audio: mp3, 22050 Hz, 1 channels, s16, 64 kb/s
Unrecognized option 'movflags'
FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers
  built on Jan 29 2012 23:55:02 with gcc 4.1.2 20080704 (Red Hat 4.1.2-51)
  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
  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
Input #0, avi, from
'/home/tubora/public_html/rawmedia/f98c537b0dc5e02352164d03705f5ee2.avi':
  Metadata:
    ISFT            : Lavf54.63.104
  Duration: 00:00:45.83, start: 0.000000, bitrate: 207 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 176x144 [PAR 1:1 DAR 11:9], 12 tbr, 12 tbn,
12 tbc
    Stream #0.1: Audio: mp3, 22050 Hz, 1 channels, s16, 64 kb/s
Output #0, image2, to
'/home/tubora/public_html/media/thumbs/f98c537b0dc5e02352164d03705f5ee2.jpg':
  Metadata:
    encoder         : Lavf52.64.2
    Stream #0.0: Video: mjpeg, yuvj420p, 500x300 [PAR 11:15 DAR 11:9], q=2-31, 200
kb/s, 90k tbn, 12 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
frame=    1 fps=  0 q=5.3 Lsize=      -0kB time=0.08 bitrate=  -2.1kbits/s   
video:11kB audio:0kB global headers:0kB muxing overhead -100.202746%
  •  

PHPVibe A.

I don't know anything about ffmpeg itself, and we don't support it (we did announce this before actually adding it to PHPVibe).
The only thing I see funky in there is "Unrecognized option 'movflags'"

I suggest you remove it from :

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


line 12 in videocron.php

identicalmediaTopic starter

CAN PHP VERSION CAUSE THE ISSUE ?



Here is the output of the conversion which may be worth providing to the developers for troubleshooting.

[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] built on Jan 29 2012 23:55:02 with gcc 4.1.2 20080704 (Red Hat 4.1.2-51), referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] 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, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] libavutil 50.15. 1 / 50.15. 1, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] libavcodec 52.72. 2 / 52.72. 2, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] libavformat 52.64. 2 / 52.64. 2, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] libavdevice 52. 2. 0 / 52. 2. 0, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] libavfilter 1.19. 0 / 1.19. 0, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] libswscale 0.11. 0 / 0.11. 0, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] libpostproc 51. 2. 0 / 51. 2. 0, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] [avi @ 0x1c778b0]non-interleaved AVI, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] Input #0, avi, from '/home/tubora/public_html/rawmedia/e87e4ba9107a44426a7e614e1322a538.avi':, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] Duration: 00:00:34.00, start: 0.000000, bitrate: 1433 kb/s, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] Stream #0.0: Video: cinepak, yuv420p, 320x240, 15 tbr, 15 tbn, 15 tbc, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] Stream #0.1: Audio: pcm_u8, 22050 Hz, 1 channels, u8, 176 kb/s, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] Unrecognized option 'movflags', referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] built on Jan 29 2012 23:55:02 with gcc 4.1.2 20080704 (Red Hat 4.1.2-51), referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] 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, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] libavutil 50.15. 1 / 50.15. 1, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] libavcodec 52.72. 2 / 52.72. 2, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] libavformat 52.64. 2 / 52.64. 2, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] libavdevice 52. 2. 0 / 52. 2. 0, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] libavfilter 1.19. 0 / 1.19. 0, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] libswscale 0.11. 0 / 0.11. 0, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] libpostproc 51. 2. 0 / 51. 2. 0, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] [avi @ 0x182a98b0]non-interleaved AVI, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] Input #0, avi, from '/home/tubora/public_html/rawmedia/e87e4ba9107a44426a7e614e1322a538.avi':, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] Duration: 00:00:34.00, start: 0.000000, bitrate: 1433 kb/s, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] Stream #0.0: Video: cinepak, yuv420p, 320x240, 15 tbr, 15 tbn, 15 tbc, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] Stream #0.1: Audio: pcm_u8, 22050 Hz, 1 channels, u8, 176 kb/s, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] Output #0, image2, to '/home/tubora/public_html/media/thumbs/e87e4ba9107a44426a7e614e1322a538.jpg':, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] Metadata:, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] encoder : Lavf52.64.2, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] Stream #0.0: Video: mjpeg, yuvj420p, 500x300, q=2-31, 200 kb/s, 90k tbn, 15 tbc, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] Stream mapping:, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] Stream #0.0 -> #0.0, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] Press [q] to stop encoding, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] frame= 1 fps= 0 q=4.6 Lsize= -0kB time=0.07 bitrate= -2.6kbits/s \r, referer: http://tubora.com/share
[Wed Jan 08 22:29:22 2014] [error] [client 84.92.53.100] video:12kB audio:0kB global headers:0kB muxing overhead -100.174009%, referer: http://tubora.com/share
squirrel:/root#
  •  

Similar topics (7)