wb9688 Asked: 2015-07-04 02:18:59 +0800 CST2015-07-04 02:18:59 +0800 CST 2015-07-04 02:18:59 +0800 CST How can I convert mp4 and mkv to 3gp? 772 I've a directory with 28 mp4's and 2 mkv's. I want to convert them all to 3gp using avconv. How do I do that? command-line 2 Answers Voted Maythux 2015-07-04T02:41:18+08:002015-07-04T02:41:18+08:00 avconv doesn't support 3gp codec, Check the list of supported codes by: avconv -codecs you need to install the non free/restricted packages of ffmpeg: sudo apt-get install libavcodec-extra-53 libavformat-extra-53 libavutil-extra-51 using ffmpeg: Now to convert: ffmpeg -y -i movie.mp4 \ -r 20 -s 352x288 -b 400k -acodec aac -strict experimental \ -ac 1 -ar 8000 -ab 24k movie.3gp To run this on all mp4 and mkv files in the current directory: for file in *mp4 *mkv; do ffmpeg -y -i "$file" -r 20 -s 352x288 -b 400k \ -acodec aac -strict experimental -ac 1 -ar 8000 \ -ab 24k "${i%.*}".3gp done Or if you prefer some GUI apps take a look on winFF. To install in Ubuntu: sudo add-apt-repository ppa:paul-climbing/ppa sudo apt-get update sudo apt-get install winff AlexAD 2015-07-04T03:29:40+08:002015-07-04T03:29:40+08:00 I would install and use Handbrake just follow the download link. Handbrake lets you queue a work load; have a look at this tutorial.
avconv
doesn't support3gp
codec, Check the list of supported codes by:you need to install the non free/restricted packages of ffmpeg:
using
ffmpeg
:Now to convert:
To run this on all mp4 and mkv files in the current directory:
Or if you prefer some GUI apps take a look on winFF.
To install in Ubuntu:
I would install and use Handbrake just follow the download link. Handbrake lets you queue a work load; have a look at this tutorial.