[Ffmpeg-devel] rm muxer bug.

matthieu castet castet.matthieu
Fri Jun 10 21:50:47 CEST 2005


Hi,


I try to remux a real media stream and ffmpeg produce a SIGFPE.

$gdb ./ffmpeg_g
GNU gdb 6.3-debian
Copyright 2004 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-linux"...Using host libthread_db 
library "/lib/tls/i686/cmov/libthread_db.so.1".

(gdb) r -acodec copy -vcodec copy -i /tmp/stream.dump /tmp/te.rm
Starting program: /home/mat/appli/matroska/ffmpeg/ffmpeg_g -acodec copy 
-vcodec copy -i /tmp/stream.dump /tmp/te.rm
ffmpeg version 0.4.9-pre1, build 4756, Copyright (c) 2000-2004 Fabrice 
Bellard
   configuration:  --prefix=/usr/local/stow/ffmpegcvs/
   built on Jun 10 2005 21:27:47, gcc: 3.3.6 (Debian 1:3.3.6-6)
Input #0, rm, from '/tmp/stream.dump':
   Duration: 00:16:24.5, start: 0.000000, bitrate: 338 kb/s
   Stream #0.0: Audio: 0x0000, 93 kb/s
   Stream #0.1: Video: rv20, yuv420p, 480x360, 12.00 fps, 400 kb/s
File '/tmp/te.rm' already exists. Overwrite ? [y/N] y
Output #0, rm, to '/tmp/te.rm':
   Stream #0.0: Video: rv20, 480x360, 12.00 fps, q=2-31, 400 kb/s
   Stream #0.1: Audio: 0x0000, 93 kb/s
Stream mapping:
   Stream #0.1 -> #0.0
   Stream #0.0 -> #0.1

Program received signal SIGFPE, Arithmetic exception.
0x08071dff in rv10_write_header (ctx=0x83f3560, data_size=0, index_pos=0)
     at rm.c:180
180                 coded_frame_size = (stream->enc->bit_rate *
(gdb) bt
#0  0x08071dff in rv10_write_header (ctx=0x83f3560, data_size=0, 
index_pos=0)
     at rm.c:180
#1  0x080708de in rm_write_header (s=0x83f3560) at rm.c:330
#2  0x08062635 in av_write_header (s=0x83f3560) at utils.c:2085
#3  0x08055e99 in av_encode (output_files=0x8388e00, nb_output_files=1,
     input_files=0x8388d00, nb_input_files=1, stream_maps=0x8388e60,
     nb_stream_maps=0) at ffmpeg.c:1955
#4  0x08054521 in main (argc=10998, argv=0x0) at ffmpeg.c:4471

seem stream->enc->sample_rate is null.

thanks

Matthieu





More information about the ffmpeg-devel mailing list