[MPlayer-users] Cutting up .AVI's

Sander Smeenk ssmeenk at freshdot.net
Sun Oct 27 22:23:02 CET 2002


Quoting Arpi (arpi at thot.banki.hu):

> > $ mencoder -ovc copy -oac copy -ss 706mb -o part2.avi file.avi
> huh?

Jup, my mistake. So I tried -sb with a byte-value:

$ mencoder -ovc copy -ovc copy -oac copy -sb 737256868 -o part2 file.avi

And now mencoder complains that it doesn't know what type of file this
is:

| $  mencoder -ovc copy -oac copy -endpos 706mb -o part1.avi file.avi
|
|
| MEncoder 0.90pre8-2.95.4 (C) 2000-2002 Arpad Gereoffy (see DOCS!)
| 
| CPU: Advanced Micro Devices Athlon 4 PM Palomino/Athlon MP Multiprocessor/Athlon XP eXtreme Performance (Family: 6, Stepping: 2)
| CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
| Reading /home/ssmeenk/.mplayer/codecs.conf: 38 audio & 106 video codecs
| File not found: 'frameno.avi'
| Font /home/ssmeenk/.mplayer/font/font.desc loaded successfully! (206 chars)
| success: format: 0  data: 0x0 - 0x584D9000
| Detected AVI file format!
| VIDEO:  [DX50]  704x386  24bpp  23.98 fps  2157.4 kbps (263.3 kbyte/s)
| [V] filefmt:3  fourcc:0x30355844  size:704x386  fps:23.98  ftime:=0.0417
| videocodec: framecopy (704x386 24bpp fourcc=30355844)
| audiocodec: framecopy (format=55 chans=2 rate=48000 bits=0 bps=16000 sample=1)
| Writing AVI header...
| Pos:2994.4s  71794f (50%) 927fps Trem:   1min 1407mb  A-V:0.042 [1848:128]]
| Writing AVI index...
| Fixup AVI header...
| 
| Video stream: 1848.097 kbit/s  (231012 bps)  size: 691748229 bytes  2994.424 secs  71794 frames
| Audio stream:  128.000 kbit/s  (16000 bps)  size: 47920000 bytes  2995.000 secs

 
This works, for the first part.
Then the second part:


| $ mencoder -ovc copy -ovc copy -oac copy -sb 740639072 -o part2.avi file.avi
| 
| 
| MEncoder 0.90pre8-2.95.4 (C) 2000-2002 Arpad Gereoffy (see DOCS!)
| 
| CPU: Advanced Micro Devices Athlon 4 PM Palomino/Athlon MP Multiprocessor/Athlon XP eXtreme Performance (Family: 6, Stepping: 2)
| CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
| Reading /home/ssmeenk/.mplayer/codecs.conf: 38 audio & 106 video codecs
| File not found: 'frameno.avi'
| Font /home/ssmeenk/.mplayer/font/font.desc loaded successfully! (206 chars)
| success: format: 0  data: 0x0 - 0x584D9000
| ============ 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...
| zsh: 1883 exit 1     sh -x cut.sh


:(
I tried specifying -vc but it keeps failing like this... 


-- 
|#include <math.h> /*** ---- viznut --- http://www.hytti.uku.fi/~vheikkil/ */
|main(v,i,z,n,u,t){for(v=-1;;)for(n=pow(/* gcc -lm sig.c; a.out > /dev/dsp */
|1.06,"`cW`g[`cgcg[eYcb^bV^eW^be^bVecb^"[++v&31]+(v&64)/21),i=999;i;putchar(
|128+((8191&u)>i?0:i/8)-((8191&(z+=n))*i-->>16)))u+=v&1?t/2:(t=v&6?t:n/4);}




More information about the MPlayer-users mailing list