[MPlayer-users] MPlayer and avisplit

Chris Phillips chris at cakenet.dynu.com
Mon Jun 17 13:44:02 CEST 2002


if you bothered to look at emails sent less than 12 hours ago you'd have 
seen a nice long discussion on how to split files with mencoder:

mencoder -endpos 1:30:00 file.avi -o first_half.avi -oac copy -ovc copy
mencoder -ss 1:30:00 file.avi -o second_half.avi -oac copy -ovc copy

ac3 shouldn't make any difference as it's only copying the stream blindly.

chris
xxxx

On Mon, 17 Jun 2002, [iso-8859-1] José M. [iso-8859-1] Fandiño wrote:

> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> Hello friends,
> 
>   I'm trying to split an avi file with AC3 audio, I known that
> mplayer/mencoder hasn't any tool for spliting their own encoded
> files. So I tried using avisplit (avisplit belongs to transcode tools
> (version 0.6pre5 in this case)), and the result is that the second
> and subsequents splitted files does segfault to MPlayer(pre5),
> the problem is related with the audio track (just skipping the
> audio track the video plays perfectly).
> 
>  I attach the backtrace and some info about the underlaying system,
> also I'm uploading the sample files to 
> ftp.mplayerhq.hu/MPlayer/incoming/avisplit
> 
>  I'm not sure if the problem is with MPlayer or transcode, so if
> you think that is the transcode's fault please let me know it and
> I will contact with the transcode developers to inform them.
> 
> thanks you
> 
> 
> GNU gdb 4.18 (FreeBSD)
> Copyright 1998 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "i386-unknown-freebsd"...
> (gdb) run -v /tmp/mr--0001.avi
> Starting program: /usr/local/bin/mplayer -v /tmp/mr--0001.avi
> 
> 
> MPlayer 0.90pre5-2.95.3 (C) 2000-2002 Arpad Gereoffy (see DOCS!)
> 
> CPU: Advanced Micro Devices Athlon TB Thunderbird (Family: 6, Stepping: 4)
> CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
> Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx
> 
> /home/users/fan/.mplayer/config(11): option: vo
> /home/users/fan/.mplayer/config(11): parameter: xv
> /home/users/fan/.mplayer/config(14): option: ao
> /home/users/fan/.mplayer/config(14): parameter: oss
> /home/users/fan/.mplayer/config(17): option: fs
> /home/users/fan/.mplayer/config(17): parameter: yes
> /home/users/fan/.mplayer/config(41): option: double
> /home/users/fan/.mplayer/config(41): parameter: yes
> /home/users/fan/.mplayer/config(47): option: monitoraspect
> /home/users/fan/.mplayer/config(47): parameter: 4:3
> /home/users/fan/.mplayer/config(129): option: framedrop
> /home/users/fan/.mplayer/config(129): parameter: no
> /home/users/fan/.mplayer/config(137): option: cache
> /home/users/fan/.mplayer/config(137): parameter: 8192
> /home/users/fan/.mplayer/config(142): option: alang
> /home/users/fan/.mplayer/config(142): parameter: es
> /home/users/fan/.mplayer/config(157): option: pp
> /home/users/fan/.mplayer/config(157): parameter: 0x2007f
> /home/users/fan/.mplayer/config(161): option: osdlevel
> /home/users/fan/.mplayer/config(161): parameter: 1
> /home/users/fan/.mplayer/config(162): option: vop
> /home/users/fan/.mplayer/config(162): parameter: pp
> /home/users/fan/.mplayer/config(163): option: brightness
> /home/users/fan/.mplayer/config(163): parameter: 100
> Reading /home/users/fan/.mplayer/codecs.conf: 34 audio & 94 video codecs
> CommandLine: '-v' '/tmp/mr--0001.avi'
> get_path('font/font.desc') -> '/home/users/fan/.mplayer/font/font.desc'
> Font /home/users/fan/.mplayer/font/font.desc loaded successfully! (206 chars)
> Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
> Using usleep() timing
> get_path('input.conf') -> '/home/users/fan/.mplayer/input.conf'
> Parsing input config file /home/users/fan/.mplayer/input.conf
> Input config file /home/users/fan/.mplayer/input.conf parsed : 50 binds
> 
> Playing /tmp/mr--0001.avi
> Not an URL!
> File size is 3650808 bytes
> CACHE_PRE_INIT: 0 [0] 0  pre:0  eof:0  
> Cache fill:  0.00% (0 bytes)    Detected AVI file format!
> list_end=0x138
> ======= AVI Header =======
> us/frame: 40000  (fps=25.000)
> max bytes/sec: 0
> padding: 0
> MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
> frames  total: 532   initial: 0
> streams: 2
> Suggested BufferSize: 0
> Size:  512 x 224
> list_end=0xD4
> ==> Found video stream: 0
> ======= STREAM Header =======
> Type: vids   FCC: DIVX (58564944)
> Flags: 0
> Priority: 0   Language: 0
> InitialFrames: 0
> Rate: 25000000/1000000 = 25.000
> Start: 0   Len: 532
> Suggested BufferSize: 0
> Quality -1
> Sample size: 0
> found 'bih', 40 bytes of 40
> ======= VIDEO Format ======
>   biSize 40
>   biWidth 512
>   biHeight 224
>   biPlanes 1
>   biBitCount 24
>   biCompression 1482049860='DIVX'
>   biSizeImage 344064
> ===========================
> Regenerating keyframe table for DIVX 4 video
> list_end=0x138
> ==> Found audio stream: 1
> ======= STREAM Header =======
> Type: auds   FCC:  (0)
> Flags: 0
> Priority: 0   Language: 0
> InitialFrames: 0
> Rate: 48000/1 = 48000.000
> Start: 0   Len: 0
> Suggested BufferSize: 0
> Quality -1
> Sample size: 1
> found 'wf', 16 bytes of 20
> ======= WAVE Format =======
> Format Tag: 8192 (0x2000)
> Channels: 2
> Samplerate: 48000
> avg byte/sec: 48000
> Block align: 1
> bits/sample: 16
> cbSize: 0
> list_end=0x18C
> hdr=Software  size=64
> Software  : transcode-0.6.0pre5
> Broken chunk?  chunksize=1632  (id=JUNK)
> list_end=0x377270
> Found movie at 0x800 - 0x377270
> Reading INDEX block, 1064 chunks for 532 frames
> Broken chunk?  chunksize=0  (id=idx1)
> Reading INDEX block, 1064 chunks for 532 frames
> AVI index offset: 0x0 (movi=0x800 idx0=0x800 idx1=0x4748)
> Auto-selected AVI video ID = 0
> Auto-selected AVI audio ID = 1
> AVI: Searching for audio stream (id:1)
> XXX initial  v_pts=0.000  a_pos=0 (0.000) 
> AVI video length=3623224
> VIDEO:  [DIVX]  512x224  24bpp  25.00 fps  1362.1 kbps (166.3 kbyte/s)
> [V] filefmt:3  fourcc:0x58564944  size:512x224  fps:25.00  ftime:=0.0400
> Clip info: 
>  Software: transcode-0.6.0pre5
> get_path('sub/') -> '/home/users/fan/.mplayer/sub/'
> Detected audio codec: [a52] afm:14 (AC3-liba52)
> Initializing audio codec...
> Opening audio decoder: [liba52] AC3-liba52
> dec_audio: Allocating 3840 bytes for input buffer
> dec_audio: Allocating 6144 + 65536 = 71680 bytes for output buffer
> Using 3DNowEx optimized IMDCT transform
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x80915a3 in a52_fillbuff (sh_audio=0x82df400) at ad_a52.c:46
> 46		int c=demux_getc(sh_audio->ds);
> (gdb) bt
> #0  0x80915a3 in a52_fillbuff (sh_audio=0x82df400) at ad_a52.c:46
> #1  0x8091869 in init (sh_audio=0x82df400) at ad_a52.c:119
> #2  0x80913c8 in init_audio (sh_audio=0x82df400) at dec_audio.c:95
> #3  0x8068a8e in main (argc=3, argv=0xbfbffaa8, envp=0xbfbffab8) at mplayer.c:1275
> #4  0x806632d in _start ()
> (gdb) disass $eip-32 $eip+32
> Dump of assembler code from 0x8091583 to 0x80915c3:
> 0x8091583 <a52_fillbuff+55>:	or     %cl,(%edi)
> 0x8091585 <a52_fillbuff+57>:	mov    $0xc,%dh
> 0x8091587 <a52_fillbuff+59>:	add    %edi,%edi
> 0x8091589 <a52_fillbuff+61>:	add    %bl,%ch
> 0x809158b <a52_fillbuff+63>:	and    $0x52f4c483,%eax
> 0x8091590 <a52_fillbuff+68>:	call   0x811e87c <ds_fill_buffer>
> 0x8091595 <a52_fillbuff+73>:	add    $0x10,%esp
> 0x8091598 <a52_fillbuff+76>:	test   %eax,%eax
> 0x809159a <a52_fillbuff+78>:	je     0x80915ac <a52_fillbuff+96>
> 0x809159c <a52_fillbuff+80>:	mov    (%ebx),%eax
> 0x809159e <a52_fillbuff+82>:	mov    0x8(%eax),%ecx
> 0x80915a1 <a52_fillbuff+85>:	mov    (%eax),%edx
> 0x80915a3 <a52_fillbuff+87>:	movzbl (%edx,%ecx,1),%ecx
> 0x80915a7 <a52_fillbuff+91>:	incl   (%eax)
> 0x80915a9 <a52_fillbuff+93>:	jmp    0x80915b1 <a52_fillbuff+101>
> 0x80915ab <a52_fillbuff+95>:	nop    
> 0x80915ac <a52_fillbuff+96>:	mov    $0xffffffff,%ecx
> 0x80915b1 <a52_fillbuff+101>:	test   %ecx,%ecx
> 0x80915b3 <a52_fillbuff+103>:	jge    0x80915c0 <a52_fillbuff+116>
> 0x80915b5 <a52_fillbuff+105>:	mov    $0xffffffff,%eax
> 0x80915ba <a52_fillbuff+110>:	jmp    0x8091688 <a52_fillbuff+316>
> 0x80915bf <a52_fillbuff+115>:	nop    
> 0x80915c0 <a52_fillbuff+116>:	mov    0x28(%ebx),%edx
> End of assembler dump.
> 
> 	/----/
> 
> FreeBSD damocles.olimpus 4.6-RC2 FreeBSD 4.6-RC2 #0: Wed May 22 21:01:00 CEST 2002     
> root at damocles.olimpus:/usr/obj/usr/src/sys/NUCLEO  i386
> 
> 	/----/
> 
> -r--r--r--  1 root  wheel  1222232 22 may 22:13 /usr/lib/libc.a
> lrwxr-xr-x  1 root  wheel        9 22 may 22:13 /usr/lib/libc.so -> libc.so.4
> -r--r--r--  1 root  wheel   579412 22 may 22:13 /usr/lib/libc.so.4
> 
> 	/----/
> 
> XFree86 Version 4.2.0 / X Window System
> (protocol Version 11, revision 0, vendor release 6600)
> Release Date: 18 January 2002
> 	If the server is older than 6-12 months, or if your card is
> 	newer than the above date, look for a newer version before
> 	reporting problems.  (See http://www.XFree86.Org/)
> Build Operating System: FreeBSD 4.4-RELEASE-p1 i386 [ELF] 
> Module Loader present
> Note: (I'm using the last gatos driver)
> 
> 	/----/
> 
> gcc --version
> 2.95.3
> 
> 	/----/
> 
> GNU ld version 2.11.2 20010719 [FreeBSD] (with BFD 2.11.2 20010719 [FreeBSD])
> 
> 	/----/
> 
> GNU assembler 2.11.2 20010719 [FreeBSD]
> Copyright 2001 Free Software Foundation, Inc.
> This program is free software; you may redistribute it under the terms of
> the GNU General Public License.  This program has absolutely no warranty.
> This assembler was configured for a target of `i386-unknown-freebsd4'.
> 
> 	/----/
> 
> Linux proc emulation (K7 T-bird 1,4):
> cat /linprocfs/cpuinfo
> processor       : 0
> vendor_id       : AuthenticAMD
> cpu family      : 6
> model           : 7
> stepping        : 4
> flags           : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr
> cpu MHz         : 1410.21
> bogomips        : 1410.21
> 
> 	/----/
> 
> Video Chipset ATI Rage 128 Pro PF (AGP) 
> 
> 	/----/
> 
> FreeBSD Audio Driver (newpcm)
> Installed devices:
> pcm0: <VIA VT82C686A> at io 0xa800 irq 5 (1p/1r/0v channels duplex)
> 
> 




More information about the MPlayer-users mailing list