milmber
04-03-2003, 02:49 AM
Hi,
dunno if anyone else has had this problem, but I had it with trying to convert movies to clie. First you need to take you divx source, and get it in a compatible format for image converter.....otherwise no go...well, I still haven't managed to get the clie image converter running underwine:mad: , but I do have a script that will convert you divx sources to a image converter compatible mpeg format.
You will need to install transcode ( search freshmeat.net) for this to work:
----------------------cut here------------------------------
#! /bin/bash
# list-glob.sh: Generating [list] in a for-loop using "globbing".
function strtrunc ()
{
n=$1 ; shift
for z; do
echo "${z:0:$n}"
done
}
function strlen ()
{
eval echo "\${#${1}}"
# ==> Returns the length of the value of the variable
# ==> whose name is passed as an argument.
}
if test -z "$1" || test -z "$2"
then
echo "Usage divx2mpeg1 [input filename] [output filename]"
else
str=$2
length=`strlen str`
base=`strtrunc $length-4 "$2"`
echo "transcode -i $1 -x divx,mp3-J normalize,dnr,smartdeinter,divxkey -
s 0.75 -Q 5,5 -V -y mpeg -F v,4 -Z 352x240 -E 44100 -o $base"
transcode -i $1 -x divx,mp3 -J normalize,dnr,smartdeinter,divxkey -s 0.7
5 -Q 5,5 -V -y mpeg -F v,4 -Z 352x240 -E 44100 -o $base
echo "mplex -f 4 -S 680 -o $2 $base.m1v $base.mpa"
mplex -f1 -S 680 -o $2 $base.m1v $base.mpa
rm $base.m1v
rm $base.mpa
fi
----------------------cut here------------------------------
voila..just run divx2mpeg1 ( after you have chmod +x it of course ) for command line options...
dunno if anyone else has had this problem, but I had it with trying to convert movies to clie. First you need to take you divx source, and get it in a compatible format for image converter.....otherwise no go...well, I still haven't managed to get the clie image converter running underwine:mad: , but I do have a script that will convert you divx sources to a image converter compatible mpeg format.
You will need to install transcode ( search freshmeat.net) for this to work:
----------------------cut here------------------------------
#! /bin/bash
# list-glob.sh: Generating [list] in a for-loop using "globbing".
function strtrunc ()
{
n=$1 ; shift
for z; do
echo "${z:0:$n}"
done
}
function strlen ()
{
eval echo "\${#${1}}"
# ==> Returns the length of the value of the variable
# ==> whose name is passed as an argument.
}
if test -z "$1" || test -z "$2"
then
echo "Usage divx2mpeg1 [input filename] [output filename]"
else
str=$2
length=`strlen str`
base=`strtrunc $length-4 "$2"`
echo "transcode -i $1 -x divx,mp3-J normalize,dnr,smartdeinter,divxkey -
s 0.75 -Q 5,5 -V -y mpeg -F v,4 -Z 352x240 -E 44100 -o $base"
transcode -i $1 -x divx,mp3 -J normalize,dnr,smartdeinter,divxkey -s 0.7
5 -Q 5,5 -V -y mpeg -F v,4 -Z 352x240 -E 44100 -o $base
echo "mplex -f 4 -S 680 -o $2 $base.m1v $base.mpa"
mplex -f1 -S 680 -o $2 $base.m1v $base.mpa
rm $base.m1v
rm $base.mpa
fi
----------------------cut here------------------------------
voila..just run divx2mpeg1 ( after you have chmod +x it of course ) for command line options...