[MPlayer-users] Using ogg file for audio
Fabrice DELENTE
fabrice.delente at free.fr
Tue Aug 27 17:09:02 CEST 2002
Hi all.
I have an mpeg-file with two audio tracks. I want to keep only one of those
tracks (the other one is a commentary and I don't want it).
So I used mpgdemux from the mpgtx-1.1-Glibc2.2 package. I got three chunks,
one video and two audio. I identified the audio track that I wanted, and it
turned out to be mp2 audio; so I used mpg123 to turn it into wav, and then
oggenc to get an ogg-audio file.
So far, so good.
But when I want to make an avi out of the video chunk and this ogg file, I
get a segfault! Here is the GDB output:
$ gdb mencoder
GNU gdb 5.0
Copyright 2000 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-slackware-linux"...
(gdb) run chunk-0.m2v -vop scale=480:360 -audiofile audio.ogg -forceidx -oac mp3lame -lameopts q=1:vbr=3 -ovc lavc -lavcopts vcodec=mpeg4:vhq:vpass=1:vbitrate=690 -o lost1.avi
Starting program: /sec/bin/mencoder chunk-0.m2v -vop scale=480:360 -audiofile audio.ogg -forceidx -oac mp3lame -lameopts q=1:vbr=3 -ovc lavc -lavcopts vcodec=mpeg4:vhq:vpass=1:vbitrate=690 -o lost1.avi
[New Thread 1024 (LWP 16726)]
MEncoder 0.90pre6-2.95.3 (C) 2000-2002 Arpad Gereoffy (see DOCS!)
CPU: Advanced Micro Devices Athlon TB Thunderbird (Family: 6, Stepping: 2)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Reading /home/fab/.mplayer/codecs.conf: 38 audio & 104 video codecs
Detected AVI file format!
VIDEO: [FrNo] 0x0 24bpp 25.00 fps 116.2 kbps (14.2 kbyte/s)
Using pass3 control file: frameno.avi
font: can't open file: /home/fab/.mplayer/font/font.desc
Font /sec/share/mplayer/font/font.desc loaded successfully! (206 chars)
success: format: 0 data: 0x0 - 0x2AB8175E
Detected MPEG-ES file format!
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 16726)]
0x81202a1 in demux_ogg_build_syncpoints_table (demuxer=0x82705f0) at demux_ogg.c:259
259 demux_ogg.c: No such file or directory.
(gdb) bt
#0 0x81202a1 in demux_ogg_build_syncpoints_table (demuxer=0x82705f0) at demux_ogg.c:259
#1 0x81211a2 in demux_ogg_open (demuxer=0x82705f0) at demux_ogg.c:581
#2 0x810d59b in demux_open_stream (stream=0x826d5d8, file_format=0, audio_id=-2, video_id=-2, dvdsub_id=-2) at demuxer.c:720
#3 0x810e037 in demux_open (vs=0x826c548, file_format=0, audio_id=-2, video_id=-1, dvdsub_id=-1) at demuxer.c:1041
#4 0x805d6a2 in main (argc=17, argv=0xbffff224, envp=0xbffff26c) at mencoder.c:448
#5 0x403332eb in __libc_start_main (main=0x805d1c0 <main>, argc=17, ubp_av=0xbffff224, init=0x805bf9c <_init>, fini=0x8173adc <_fini>,
rtld_fini=0x4000c130 <_dl_fini>, stack_end=0xbffff21c) at ../sysdeps/generic/libc-start.c:129
(gdb) disass $eip-32 $eip+32
Dump of assembler code from 0x8120281 to 0x81202c1:
0x8120281 <demux_ogg_build_syncpoints_table+169>: mov 0x8(%ebp),%ecx
0x8120284 <demux_ogg_build_syncpoints_table+172>: mov 0x30(%ecx),%eax
0x8120287 <demux_ogg_build_syncpoints_table+175>: add $0x10,%esp
0x812028a <demux_ogg_build_syncpoints_table+178>: mov 0x48(%eax),%eax
0x812028d <demux_ogg_build_syncpoints_table+181>: test %eax,%eax
0x812028f <demux_ogg_build_syncpoints_table+183>: jl 0x8120295 <demux_ogg_build_syncpoints_table+189>
0x8120291 <demux_ogg_build_syncpoints_table+185>: mov %eax,%edx
0x8120293 <demux_ogg_build_syncpoints_table+187>: jmp 0x81202b3 <demux_ogg_build_syncpoints_table+219>
0x8120295 <demux_ogg_build_syncpoints_table+189>: mov 0x8(%ebp),%ebx
0x8120298 <demux_ogg_build_syncpoints_table+192>: mov 0x2c(%ebx),%eax
0x812029b <demux_ogg_build_syncpoints_table+195>: mov 0x48(%eax),%edx
0x812029e <demux_ogg_build_syncpoints_table+198>: mov 0x64(%eax),%eax
0x81202a1 <demux_ogg_build_syncpoints_table+201>: cmpl $0xfffe,0x4(%eax)
0x81202a8 <demux_ogg_build_syncpoints_table+208>: jne 0x81202b3 <demux_ogg_build_syncpoints_table+219>
0x81202aa <demux_ogg_build_syncpoints_table+210>: mov 0xa0(%eax),%eax
0x81202b0 <demux_ogg_build_syncpoints_table+216>: mov %eax,0xffffffbc(%ebp)
0x81202b3 <demux_ogg_build_syncpoints_table+219>: mov 0xffffffd0(%ebp),%eax
0x81202b6 <demux_ogg_build_syncpoints_table+222>: lea (%edx,%edx,2),%edx
0x81202b9 <demux_ogg_build_syncpoints_table+225>: shl $0x7,%edx
0x81202bc <demux_ogg_build_syncpoints_table+228>: mov 0x2c(%eax),%eax
0x81202bf <demux_ogg_build_syncpoints_table+231>: add %eax,%edx
End of assembler dump.
(gdb)
and here is the data about my system:
--------------------------------------------------------------------------
Bugreport for Mplayer 0.90pre6
--------------------------------------------------------------------------
System Information
Your Linux distribution or operating system:
Slackware 8.0
kernel version:
Linux sleuth 2.4.17 #8 Tue Apr 30 16:31:33 CEST 2002 i686 unknown
libc version:
-rwxr-xr-x 1 root root 4783716 May 26 2001 /lib/libc-2.2.3.so*
lrwxrwxrwx 1 root root 13 Dec 22 2001 /lib/libc.so.6 -> libc-2.2.3.so*
X version:
XFree86 Version 4.1.0 / X Window System
(protocol Version 11, revision 0, vendor release 6510)
Release Date: 2 June 2001
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/FAQ)
Build Operating System: Linux 2.2.19 i686 [ELF]
Module Loader present
gcc and ld versions:
Reading specs from /usr/lib/gcc-lib/i386-slackware-linux/2.95.3/specs
gcc version 2.95.3 20010315 (release)
GNU ld version 2.11.90.0.19 (with BFD 2.11.90.0.19)
binutils version:
GNU assembler 2.11.90.0.19
If you have problems with fullscreen mode:
Window manager type and version
Afterstep 1.0
Hardware & drivers
CPU info (this works on Linux only):
processor : 0
vendor_id : AuthenticAMD
cpu family : 6
model : 4
model name : AMD Athlon(tm) processor
stepping : 2
cpu MHz : 899.601
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr syscall mmxext 3dnowext 3dnow
bogomips : 1795.68
Video card manufacturer and model, e.g.:
Leadtek GeForce II MX SH PRO with 64Mo SDRAM
Video driver type & version, e.g.:
nVidia 1.0 2960
Sound card type & driver, e.g.:
Creative SB16PCI with kernel OSS drivers
Thanks.
See you.
--
Fabrice DELENTE
E-mail : fabrice.delente at free.fr
More information about the MPlayer-users
mailing list