The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

ffmpeg question

Discussion in 'General Discussion' started by dapaintballer33, Sep 16, 2006.

  1. dapaintballer33

    dapaintballer33 Registered

    Joined:
    Sep 16, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    My host says that if I want ffmpeg I must do it without shell access.

    I compiled it with a cron job shell script, and it worked. The binary is /home/mysite/bin/ffmpeg

    If I make a cron job shell script, how would I execute the ffmpeg executable?
    The video is also inside the bin folder. Via shell, this is what I would type:

    ffmpeg -i video.avi -ar 22050 -ab 32 -f flv -s 320x240 video.flv.

    I tried this for the shell script, but it said "command ffmpeg not found":
    cd $HOME
    cd bin/
    ffmpeg -i video.mpg -ar 22050 -ab 32 -f flv -s 320x240 video.mpg

    What do I need to type so that shell runs that file? I"m pretty sure $HOME via shell script brings me to the root of my ftp folder, /home/mysite
    (Yes I've been searching all day)
     
  2. dapaintballer33

    dapaintballer33 Registered

    Joined:
    Sep 16, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    fixed

    Nevermind, instead of using a script I just made a cron job to run the file directly, thanks anyways
     
Loading...

Share This Page