How can i convert a mkv file to mpg or avi with avconv?

avconv -i infile.mkv -c:a copy -c:v copy outfile.avi

This will not modify the quality.

avconv -i infile.mkv -c:a ac3 -ab 96k -ac 2 -c:v mpeg4 -s 640x352 -b 800k -bufsize 20M outfile.avi

This should change size to ‘ripped’ avi of medium quality (not tested).

https://askubuntu.com/questions/520584/how-can-i-convert-a-9-5-gb-mkv-file-to-mpg-or-avi-with-avconv

How can i convert a mkv file to mpg or avi with avconv? was last modified: August 31st, 2019 by Jovan Stosic

Bash script for converting multiple DVD folders in avi/DiVX/XVID

c=$PWD
n=0
shopt -s dotglob
while IFS= read -r d ; do
CurrD[$n]=”$d”
echo ${CurrD[$n]}
n=$(($n+1))
done < <(find “$c” -name VIDEO_TS)

X=0;
while [ $X -lt $n ]; do
cd “${CurrD[$X]}”
echo $PWD
for f in *.VOB ; do ffmpeg -i “$f” -b:v 3000k -b:a 128k -tag:v DIVX “${f%.VOB}.avi”; done
X=$(($X + 1))
done

Bash script for converting multiple DVD folders in avi/DiVX/XVID was last modified: August 29th, 2019 by Jovan Stosic