ffmpeg

Discussion in 'PHP' started by gigamike, Nov 28, 2006.

  1. #1
    Guys,

    hi, need help, anyone has a commandline for converting movie files to .flv. I have one but it does not have a sound.

    exec("/usr/bin/ffmpeg -i ".$_SERVER['DOCUMENT_ROOT'].'/upvideos/'.$fn." -ab 56 -ar 22050 -b 500 -r 15 -s 450x350 ".$_SERVER['DOCUMENT_ROOT'].'/upvideos/'.$vid.".flv");


    Second, when i create an image from the flv, i generate 3 images with different interval, but still same all images

    exec("/usr/bin/ffmpeg -an -y -t 0:0:01 -i ".$_SERVER['DOCUMENT_ROOT'].'/upvideos/'.$vid.".flv"." -f image2 ".$_SERVER['DOCUMENT_ROOT']."/upvideos/{$vid}/{$datetime}_01.jpg");

    exec("/usr/bin/ffmpeg -an -y -t 0:0:{$middleduration} -i ".$_SERVER['DOCUMENT_ROOT'].'/upvideos/'.$vid.".flv"." "."-f image2 ".$_SERVER['DOCUMENT_ROOT']."/upvideos/{$vid}/{$datetime}_02.jpg");

    exec("/usr/bin/ffmpeg -an -y -t 0:0:{$lastduration} -i ".$_SERVER['DOCUMENT_ROOT'].'/upvideos/'.$vid.".flv"." "."-f image2 ".$_SERVER['DOCUMENT_ROOT']."/upvideos/{$vid}/{$datetime}_03.jpg");


    Please help.

    Thanks,

    mike
     
    gigamike, Nov 28, 2006 IP
  2. iLife

    iLife Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    hi mike, try changing the jpg capture duration and should work.

    hope this helps,

    Dann
     
    iLife, Mar 22, 2007 IP