Hi all,

I'm running mjpegtools on a Centos 5 x86_64 (Intel) system and 
y4mstabilizer is crashing.

My source file is a snippet of interlaced video from a DVD.
I pre-process it with ffmpeg and pipe it into y4mstabilizer. 
I have also tried using yuvdeinterlace prior to y4mstabilizer 
but then it crashes on frame 2.

I have applied the recent memmove patch... that didn't help.

I have tried scaling the stream to 768x576 (SAR 1:1) but that 
didn't help either.

My ffmpeg is from the atrpms RPM.


Here's the setup and the results:

$ ffmpeg -deinterlace -i "test.m2v" -r 25.000 -s 720x576 
-aspect 4:3 -f yuv4mpegpipe -aspect 4:3 -pix_fmt yuv444p - | 
y4mstabilizer -v -v >/dev/null

FFmpeg version 0.5-30.el5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --prefix=/usr --libdir=/usr/lib64
--shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared
--enable-gpl --enable-postproc --enable-swscale --enable-avfilter
--enable-avfilter-lavf --enable-pthreads --enable-x11grab
--enable-vdpau --disable-avisynth --disable-libamr-nb
--disable-libamr-wb --enable-libdc1394 --enable-libfaac
--enable-libfaad --enable-libfaadbin --enable-libmp3lame
--enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid
--extra-cflags=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC
--disable-stripping --extra-cflags=-I/usr/include/nvidia-graphics
--extra-ldflags=-L/usr/lib64/nvidia-graphics
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 0 / 52.20. 0
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  libavfilter    0. 4. 0 /  0. 4. 0
  libswscale     0. 7. 1 /  0. 7. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Mar 15 2009 14:08:04, gcc: 4.1.2 20080704 (Red Hat 4.1.2-44)

Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1) 
-> 25.00 (25/1)
Input #0, mpegvideo, from 'test.m2v':
  Duration: 00:00:46.50, bitrate: 3938 kb/s
    Stream #0.0: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR 4:3], 3938 
kb/s, 25 tbr, 1200k tbn, 50 tbc
Output #0, yuv4mpegpipe, to 'pipe:':
    Stream #0.0: Video: rawvideo, yuv444p, 720x576 [PAR 16:15 DAR 4:3], q=2-31, 
200 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
   INFO: [y4mstabilizer]   frame size:  720x576 pixels (1244160 bytes)
   INFO: [y4mstabilizer]       chroma:  4:4:4 (no subsampling)
   INFO: [y4mstabilizer]   frame rate:  25/1 fps (~25.000000)
   INFO: [y4mstabilizer]    interlace:  top-field-first
   INFO: [y4mstabilizer] sample aspect ratio:  16:15
   INFO: [y4mstabilizer] Frame 1
   INFO: [y4mstabilizer] global motion xy*2=<0,1> Accumulated xy=<0,0.5> shift 
xy=0,-1>

   INFO: [y4mstabilizer] Frame 2
   INFO: [y4mstabilizer] global motion xy*2=<0,0> Accumulated xy=<0,0.475> 
shift xy=0,0>

   INFO: [y4mstabilizer] Frame 3
   INFO: [y4mstabilizer] global motion xy*2=<1,-2> Accumulated 
xy=<0.5,-0.54875> shift xy=-1,1>

   INFO: [y4mstabilizer] Frame 4
Segmentation fault (core dumped)

$ ls
core.6857
test.m2v
test.ac3 

$ gdb
GNU gdb Red Hat Linux (6.5-37.el5rh)
Copyright (C) 2006 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 "x86_64-redhat-linux-gnu".
(gdb) file /usr/bin/y4mstabilizer
Reading symbols from /usr/bin/y4mstabilizer...Reading symbols from 
/usr/lib/debug/usr/bin/y4mstabilizer.debug...(no debugging symbols 
found)...done.
Using host libthread_db library "/lib64/libthread_db.so.1".
(no debugging symbols found)...done.
(gdb) core core.6857
Reading symbols from /usr/lib64/libmjpegutils-1.9.so.0...Reading symbols from 
/usr/lib/debug/usr/lib64/libmjpegutils-1.9.so.0.0.0.debug...(no debugging 
symbols found)...done.
(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libmjpegutils-1.9.so.0
Reading symbols from /lib64/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib64/libm.so.6
Reading symbols from /lib64/libpthread.so.0...(no debugging symbols 
found)...done.
Loaded symbols for /lib64/libpthread.so.0
Reading symbols from /lib64/libc.so.6...
(no debugging symbols found)...done.
Loaded symbols for /lib64/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Core was generated by `y4mstabilizer -v -v'.
Program terminated with signal 11, Segmentation fault.
#0  0x00000000004027a4 in calc_SAD_noaccel ()
(gdb) bt
#0  0x00000000004027a4 in calc_SAD_noaccel ()
#1  0x0000000000402602 in motion ()
#2  0x0000000000402378 in gmotion ()
#3  0x0000000000401935 in main ()
#4  0x000000345281d8b4 in __libc_start_main () from /lib64/libc.so.6
#5  0x0000000000401139 in _start ()
(gdb) 


And there ends my ability to debug this problem :(

I'm happy to follow instructions to help isolate the bug and 
to apply patches and rebuild to test a solution.

Thank you!

 ...Richard.

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to