Hi
I'm using transcode 1.0.2 with this old script:
#v+
#! /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.75 -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
#v-
and i got this error:
./oldscript.sh clie.avi clie.mpg
transcode -i clie.avi -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 clie
*** WARNING: The option -V is deprecated. ***
*** Transcode internal frame handling is now in YV12 / YUV420 ***
*** format by default because most codecs can only handle this format, ***
*** otherwise leading to unnecessary time and quality wasting conversions. ***
*** If you want to have to "old" behaviour (RGB24 as internal format), ***
*** then please use the new -1/--use_rgb option ***
transcode v1.0.2 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg
[transcode] (probe) suggested AV correction -D 0 (0 ms) | AV 0 ms | 0 ms
[transcode] auto-probing source chris.avi (ok)
[transcode] V: import format | DivX5 RIFF data, AVI (V=divx|A=mp3)
[transcode] V: import frame | 640x480 1.33:1
[transcode] V: zoom | 352x240 1.47:1 (Lanczos3)
[transcode] V: bits/pixel | 2.131
[transcode] V: decoding fps,frc | 10.000,11
[transcode] V: Y'CbCr | YV12/I420
[transcode] A: import format | 0x2000 AC3 [ 0,16,0]
[transcode] A: export format | 0x50 MPEG layer-2 [44100,16,0] 128 kbps
[transcode] V: encoding fps,frc | 10.000,11
[transcode] A: bytes per frame | 0 (0.000000)
[transcode] A: adjustment | [EMAIL PROTECTED]
[transcode] A: rescale stream | 0.750
[transcode] V: IA32/AMD64 accel | sse2 (sse2 sse mmxext mmx asm C)
[transcode] V: video buffer | 10 @ 640x480
[import_mp3.so] v0.1.4 (2003-08-04) (audio) MPEG
[import_divx.so] v0.2.9 (2003-07-30) (video)
DivX;-)/XviD/OpenDivX/DivX 4.xx/5.xx
[filter_normalize.so] v0.1.1 (2002-06-18) Volume normalizer
[filter_dnr.so] v0.2 (2003-01-21) dynamic noise reduction
[filter_smartdeinter.so] v2.7b (2003-02-01) VirtualDub's smart deinterlacer
[filter_divxkey.so] v0.1 (2002-01-15) check for DivX 4.xx / OpenDivX /
DivX;-) keyframe
[filter_divxkey.so] options=(null)
[filter_divxkey.so] divxkey
[transcode] warning : /usr/lib/transcode/export_mpeg.so: cannot open
shared object file: No such file or directory
[transcode] warning : (dl_loader.c) loading
"/usr/lib/transcode/export_mpeg.so" failed
[transcode] warning : (encoder.c) loading audio export module failed
[transcode] warning : failed to init export modules
[transcode] critical: plug-in initialization failed
mplex -f 4 -S 680 -o clie.mpg clie.m1v clie.mpa
INFO: [mplex] mplex version 1.8.0 (2.2.4 $Date: 2005/08/28 17:50:54 $)
**ERROR: [mplex] Unable to open file clie.m1v for reading.
what is wrong in this script?
Sorry if this really is a very trivial question for most people on this
list.
Thanks for help.