New submission from Panagiotis Issaris <[EMAIL PROTECTED]>:

Encoding as follows makes ffmpeg segfault:
ffmpeg_g -i /mnt/video/IceAge2_trailer.avi -vcodec roqvideo -s 256x256 -ar 22050
/tmp/bla.roq

[EMAIL PROTECTED]:/mnt/build/ffmpeg-rw$ gdb ffmpeg_g
GNU gdb 6.7.1
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(gdb) r -i /mnt/video/IceAge2_trailer.avi -vcodec roqvideo -s 256x256 -ar 22050
/tmp/bla.roq
Starting program: /mnt/build/ffmpeg-rw/ffmpeg_g -i
/mnt/video/IceAge2_trailer.avi -vcodec roqvideo -s 256x256 -ar 22050 
/tmp/bla.roq
[Thread debugging using libthread_db enabled]
[New Thread 0xb783a6c0 (LWP 17499)]
FFmpeg version SVN-r14282, Copyright (c) 2000-2008 Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-nonfree --enable-swscale
--enable-pthreads --enable-x11grab --enable-libx264 --enable-libfaad
--enable-libfaac --enable-libamr-nb --enable-libamr-wb --enable-libmp3lame
--enable-libgsm --enable-libvorbis --enable-avfilter --enable-avfilter-lavf
  libavutil version: 49.7.0
  libavcodec version: 51.60.0
  libavformat version: 52.17.0
  libavdevice version: 52.0.0
  libavfilter version: 0.0.0
  built on Jul 18 2008 17:30:45, gcc: 4.1.3 20070929 (prerelease) (Ubuntu
4.1.2-16ubuntu2)
Input #0, avi, from '/mnt/video/IceAge2_trailer.avi':
  Duration: 00:01:46.53, start: 0.000000, bitrate: 660 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 320x192 [PAR 1:1 DAR 5:3], 15.00 tb(r)
    Stream #0.1: Audio: mp3, 48000 Hz, stereo, 160 kb/s
File '/tmp/bla.roq' already exists. Overwrite ? [y/N] y
Output #0, RoQ, to '/tmp/bla.roq':
    Stream #0.0: Video: roqvideo, yuv444p, 256x256 [PAR 5:3 DAR 5:3], q=2-31,
200 kb/s, 30.00 tb(c)
    Stream #0.1: Audio: roq_dpcm, 22050 Hz, stereo, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding

Program received signal SIGSEGV, Segmentation fault.

[Switching to Thread 0xb783a6c0 (LWP 17499)]
output_packet (ist=0x883fea0, ist_index=0, ost_table=0x8843500, nb_ostreams=2,
pkt=0xbfbf1c08) at /usr/local/src/ffmpeg-rw/ffmpeg.c:921
921                     if(enc->coded_frame->pts != AV_NOPTS_VALUE)
(gdb) bt
#0  output_packet (ist=0x883fea0, ist_index=0, ost_table=0x8843500,
nb_ostreams=2, pkt=0xbfbf1c08) at /usr/local/src/ffmpeg-rw/ffmpeg.c:921
#1  0x0806d4d5 in main (argc=0, argv=0x1) at 
/usr/local/src/ffmpeg-rw/ffmpeg.c:2079
(gdb) list
916                 }
917                 //enc->frame_number = enc->real_pict_num;
918                 if(ret>0){
919                     pkt.data= bit_buffer;
920                     pkt.size= ret;
921                     if(enc->coded_frame->pts != AV_NOPTS_VALUE)
922                         pkt.pts= av_rescale_q(enc->coded_frame->pts,
enc->time_base, ost->st->time_base);
923     /*av_log(NULL, AV_LOG_DEBUG, "encoder -> %"PRId64"/%"PRId64"\n",
924        pkt.pts != AV_NOPTS_VALUE ? av_rescale(pkt.pts, enc->time_base.den,
AV_TIME_BASE*(int64_t)enc->time_base.num) : -1,
925        pkt.dts != AV_NOPTS_VALUE ? av_rescale(pkt.dts, enc->time_base.den,
AV_TIME_BASE*(int64_t)enc->time_base.num) : -1);*/

----------
messages: 2525
nosy: takis
priority: normal
status: new
substatus: new
title: RoQ video encoder crashes
topic: ffmpeg
type: bug

______________________________________________________
FFmpeg issue tracker <[EMAIL PROTECTED]>
<https://roundup.mplayerhq.hu/roundup/ffmpeg/issue548>
______________________________________________________

Reply via email to