[MPlayer-users] Fwd: Trying to split avi file using mencoder

wim delvaux wim.delvaux at adaptiveplanet.com
Mon Sep 18 17:49:27 CEST 2006


Hi all,

Look at this little shell script :

if [ "$1" == "" ]
then
  echo "usage $0 filename"
  exit 2
fi

# calc half
FS=`ls -s --block-size=1 "$1"`

BS=${FS% *}
let BS=BS/2

Ext="${1##*.}"
BN="${1%.*}"

# avisplit -i "$1" -o "$BN" -s ${FS%.*}
# set to proper encoding
mencoder -ffourcc XVID -ovc copy -oac lavc -lavcopts
acodec=ac3:abitrate=224 -endpos ${BS}b "$1" -o "${BN}-1.${Ext}"
mencoder -ffourcc XVID -ovc copy -oac lavc -lavcopts
acodec=ac3:abitrate=224 -sb ${BS} "$1" -o "${BN}-2.${Ext}"


The first mencoder works just fine.

The second one produces following error which I do not understand

MEncoder 2:0.99+1.0pre7try2+cvs20060117-0ubuntu8 (C) 2000-2006 MPlayer Team
CPU: Intel Pentium 4/Celeron 4 Northwood; Pentium 4 EE/Xeon
 Prestonia,Gallatin (Family: 15, Stepping: 7)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 0  data: 0x0 - 0x57643bba
============ Sorry, this file format is not recognized/supported
 ============= === If this file is an AVI, ASF or MPEG stream, please contact
 the author! === Cannot open demuxer.

Exiting...


what am I doing wrong ?

Thanx



More information about the MPlayer-users mailing list