exec("/usr/bin/ffmpeg -i $input -acodec mp3 -ar 22050 -ab 32 -f flv $output -an -ss 3 -t 00:00:08 -r 1 -y -vcodec mjpeg -f mjpeg $thumb");

The above works fine however the thumbnails are small so what I want to do is create a bigger size thumbnail.

exec("/usr/bin/ffmpeg -i $input -acodec mp3 -ar 22050 -ab 32 -f flv -s 425x350 $output -an -ss 3 -t 00:00:08  -r 1 -y -vcodec mjpeg -f mjpeg $thumb");

Adding -s 425x350 errors out the code, it basically doesn't do anything.

Any ideas?

    Kinda weird but I found this site
    http://www.slideshare.net/pradeepbv/yourtube/

    I changed my dimensions to this: -s 320x240

    exec("/usr/bin/ffmpeg -i $input -acodec mp3 -ar 22050 -ab 32 -f flv -s 320x240 $output -an -ss 3 -t 00:00:08 -r 1 -y -vcodec mjpeg -f mjpeg $thumb");

    And it worked, it created a thumbnail 320x240..why wont it make one that is 425x350? Kinda weird to me.

      Write a Reply...