Results 1 to 3 of 3
  1. #1

    Question Help For Some FFMEPG Commands

    i need Help For Some FFMEPG Commands,
    First of all, I am not familiar with shell scripting, so I'm asking for your help. I want to do

    I need to batch convert all my videos so i used the command for particular folder media/ipod so i used

    find /media/ipod -type f -exec mencoder {} -of mpeg -oac lavc -lavcopts acodec=mp2:abitrate=192 -af resample=44100:0:0 -ovc lavc -lavcopts vcodec=mpeg2video:vbitrate=50 -vf scale,harddup -ofps 25 -zoom -xy 176 -o {}.mpg \;

    now i need to convert all my avi videos to 3gp for folder via batch convert.please help for this commands

  2. #2
    #!/bin/bash

    function encode
    {
    echo mencoder "$1" -o "$2" -of mpeg -oac lavc -lavcopts \
    acodec=mp2:abitrate=192 -af resample=44100:0:0 \
    -ovc lavc -lavcopts vcodec=mpeg2video:vbitrate=50 \
    -vf scale,harddup -ofps 25 -zoom -xy 176
    }

    mpg=$(echo $1 | sed 's/\.avi$/\.mpg/')
    if [ -e "$mpg" ] ; then
    echo $1 already encoded to $mpg
    else
    encode "$1" "$mpg"
    fi

    Iam useing this shell for convery avi to mpg,but i need to convert avi to 3gp

  3. #3
    Join Date
    Oct 2007
    Location
    Kochi,INDIA
    Posts
    331
    BigBros over here can help you move over to the programming section i guess
    http://xtendweb.gnusys.net/
    Plug in Nginx & Plug in performance on cPanel systems
    WebOps on cPanel . Deploy webapps to multiple servers and scale horizontally

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •