After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 138824 - [ffenc_mpeg4] sad16_y2_mmx2 crash
[ffenc_mpeg4] sad16_y2_mmx2 crash
Status: VERIFIED INCOMPLETE
Product: GStreamer
Classification: Platform
Component: dont know
0.8.0
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-04-02 05:58 UTC by Nikunj
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Nikunj 2004-04-02 05:58:31 UTC
I am using Gstreamer 0.8.0 release along with gst-plugins-0.8.0 and
gst-ffmpeg-0.8.0 

I am trying to read from a DVD -> transcode video to MPEG4 -> do mpeg4
decode -> display, the pipeline segfaults. 


 gst-launch dvdnavsrc location=/dev/dvd title=1 chapter=1 angle=1 !
mpegdemux video_00 ! { queue ! mpeg2dec ! { queue ! ffenc_mpeg4 !
ffdec_mpeg4 ! sdlvideosink } }

<snip>
dvdnavsrc (0x81c4a70): event: DVDNAV_SPU_STREAM_CHANGE
  physical_wide: 128
  physical_letterbox: 128
  physical_pan_scan: 128
  logical: 879692544
dvdnavsrc (0x81c4a70): event: DVDNAV_AUDIO_STREAM_CHANGE
  physical: 0
  logical: 781650944
[mpeg4 @ 0x40734648]removing common factors from framerate
Segmentation fault (core dumped)
Comment 1 Ronald Bultje 2004-04-10 13:46:06 UTC
Can you provide a backtrace?
Comment 2 Nikunj 2004-04-12 09:40:39 UTC
[root@dsplin04 gst]#  gst-launch  dvdnavsrc location=/dev/dvd title=1 chapter=1
angle=1 ! mpegdemux video_00 ! { queue ! mpeg2dec ! { queue ! ffenc_mpeg4 !
ffdec_mpeg4 ! sdlvideosink } }
WARNING: erroneous pipeline: no element "video_00"
         Trying to run anyway.
RUNNING pipeline ...
libdvdnav: Using dvdnav version 0.1.9 from http://dvd.sf.net
libdvdread: Using libdvdcss version 1.2.8 for DVD access
libdvdnav: DVD Title: ICE_AGE_SCN
libdvdnav: DVD Serial Number: 2d0c41d9
libdvdnav: DVD Title (Alternative):
libdvdnav: Unable to find map file '/home/nikunjd/.dvdnav/ICE_AGE_SCN.map'
libdvdnav: DVD disk reports itself with Region mask 0x00400000. Regions: 1 2 3 4
5 6 8
+XXX
dvdnavsrc (0x8063e78): event: DVDNAV_HIGHLIGHT
  display: show
  palette: 08064108
  coords (1, 0) - (1, 0)
  pts: 3221220084
  button: 1
pre seek dvdnav_get_next_block error:
-XXX
dvdnav: seeking to 1/1/1
There are 1 titles on this DVD.
There are 1 chapters in this title.
There are 1 angles in this title.
dvdnavsrc (0x8063e78): event: DVDNAV_HOP_CHANNEL
 
libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient
 
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x0000014f
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x0000480f
libdvdread: Elapsed time 0
libdvdread: Found 1 VTS's
libdvdread: Elapsed time 0
dvdnavsrc (0x8063e78): event: DVDNAV_VTS_CHANGE
  old_vtsN: -1
  old_domain: UNKNOWN
  new_vtsN: 1
  new_domain: DVD_READ_MENU_VOBS
dvdnavsrc (0x8063e78): event: DVDNAV_SPU_CLUT_CHANGE
dvdnavsrc (0x8063e78): event: DVDNAV_SPU_STREAM_CHANGE
  physical_wide: 128
  physical_letterbox: 128
  physical_pan_scan: 128
  logical: 1441663232
dvdnavsrc (0x8063e78): event: DVDNAV_AUDIO_STREAM_CHANGE
  physical: 0
  logical: 1225394944
[mpeg4 @ 0x4071a648]removing common factors from framerate
Segmentation fault (core dumped)
[root@dsplin04 gst]# gdb gst-launch core.5233
GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
Copyright 2003 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-redhat-linux-gnu"...
 
warning: core file may not match specified executable file.
Core was generated by `/opt/gst-new/bin/gst-launch-0.8 dvdnavsrc
location=/dev/dvd title=1 chapter=1 a'.
Program terminated with signal 11, Segmentation fault.
  • #0 ??
  • #0 ??
  • #1 ??
  • #2 ??
  • #3 ??
  • #4 ??
  • #5 ??
  • #6 ??
  • #7 ??
  • #8 ??
  • #9 ??
  • #10 ??
  • #11 ??
  • #12 ??
  • #13 ??
  • #14 ??
  • #15 ??
  • #16 ??
  • #17 ??
  • #18 ??
  • #19 ??
  • #20 ??
  • #21 ??
  • #22 ??
  • #23 ??
  • #24 ??
  • #25 ??
  • #26 ??
  • #27 ??

Hope this helps. 

BTW, how do I get the function names in place of these addresses which will be
difficult to decrypt at your end. Is this a build time option? 

I did compile gstreamer with -g option. Am I missing something here.



Comment 3 Ronald Bultje 2004-04-12 14:25:55 UTC
gst-plugins needs to be compiled with -g as well, and you should run inside gdb,
not open the core file in gdb, so:

$ gdb gst-launch-0.8
[..]
(gdb) r dvdnavsrc location=/dev/dvd title=1 chapter=1 angle=1 ! mpegdemux
video_00 ! { queue ! mpeg2dec ! { queue ! ffenc_mpeg4 ! ffdec_mpeg4 !
sdlvideosink } }
[..]
(gdb) bt
Comment 4 Nikunj 2004-04-13 05:16:38 UTC
[root@dsplin04 root]# gdb gst-launch-0.8
GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
Copyright 2003 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-redhat-linux-gnu"...
(gdb) r dvdnavsrc location=/dev/dvd title=1 angle=1 chapter=1 ! mpegdemux
video_00 ! { queue ! mpeg2dec ! { queue ! ffenc_mpeg4 ! ffdec_mpeg4 ! sdlvideosink }
}
Starting program: /opt/gst-new/bin/gst-launch-0.8 dvdnavsrc location=/dev/dvd
title=1 angle=1 chapter=1 ! mpegdemux video_00 ! { queue ! mpeg2dec ! { queue !
ffenc_mpeg4 ! ffdec_mpeg4 ! sdlvideosink } }
[New Thread 1076989248 (LWP 3694)]
WARNING: erroneous pipeline: no element "video_00"
         Trying to run anyway.
RUNNING pipeline ...
[New Thread 1085377728 (LWP 3695)]
[New Thread 1087474752 (LWP 3696)]
libdvdnav: Using dvdnav version 0.1.9 from http://dvd.sf.net
libdvdread: Using libdvdcss version 1.2.8 for DVD access
libdvdnav: DVD Title: ICE_AGE_SCN
libdvdnav: DVD Serial Number: 2d0c41d9
libdvdnav: DVD Title (Alternative):
libdvdnav: Unable to find map file '/home/nikunjd/.dvdnav/ICE_AGE_SCN.map'
libdvdnav: DVD disk reports itself with Region mask 0x00400000. Regions: 1 2 3 4
5 6 8
+XXX
dvdnavsrc (0x8063e78): event: DVDNAV_HIGHLIGHT
  display: show
  palette: 08064108
  coords (1, 0) - (1, 0)
  pts: 3221218356
  button: 1
pre seek dvdnav_get_next_block error:
-XXX
dvdnav: seeking to 1/1/1
There are 1 titles on this DVD.
There are 1 chapters in this title.
There are 1 angles in this title.
dvdnavsrc (0x8063e78): event: DVDNAV_HOP_CHANNEL
 
libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient
 
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x0000014f
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x0000480f
libdvdread: Elapsed time 0
libdvdread: Found 1 VTS's
libdvdread: Elapsed time 0
dvdnavsrc (0x8063e78): event: DVDNAV_VTS_CHANGE
  old_vtsN: -1
  old_domain: UNKNOWN
  new_vtsN: 1
  new_domain: DVD_READ_MENU_VOBS
dvdnavsrc (0x8063e78): event: DVDNAV_SPU_CLUT_CHANGE
dvdnavsrc (0x8063e78): event: DVDNAV_SPU_STREAM_CHANGE
  physical_wide: 128
  physical_letterbox: 128
  physical_pan_scan: 128
  logical: 1441663232
dvdnavsrc (0x8063e78): event: DVDNAV_AUDIO_STREAM_CHANGE
  physical: 0
  logical: 1225394944
[mpeg4 @ 0x4071a648]removing common factors from framerate
 
Program received signal SIGSEGV, Segmentation fault.

Thread 1087474752 (LWP 3696)

  • #0 sad16_y2_mmx2
    at motion_est_mmx.c line 93
  • #1 sad_hpel_motion_search
    at motion_est.c line 661
  • #2 ff_estimate_p_frame_motion
    at motion_est.c line 1210
  • #3 estimate_motion_thread
    at mpegvideo.c line 3915
  • #4 avcodec_default_execute
    at utils.c line 335
  • #5 encode_picture
    at mpegvideo.c line 4611
  • #6 MPV_encode_picture
    at mpegvideo.c line 2052
  • #7 avcodec_encode_video
    at utils.c line 471
  • #8 gst_ffmpegenc_chain_video
    at gstffmpegenc.c line 405
  • #9 gst_opt_scheduler_chain_wrapper
    at gstoptimalscheduler.c line 1325
  • #10 gst_pad_push
    at gstpad.c line 3032
  • #11 gst_opt_scheduler_add_element
    at gstoptimalscheduler.c line 1138
  • #12 schedule_group
    at gstoptimalscheduler.c line 1007
  • #14 schedule_chain
    at gstoptimalscheduler.c line 1092
  • #16 gst_scheduler_iterate
    at gstscheduler.c line 712
  • #17 gst_bin_iterate_func
    at gstbin.c line 1109
  • #18 gst_marshal_BOOLEAN__VOID
    at gstmarshal.c line 433
  • #19 g_cclosure_new_swap
    from /usr/lib/libgobject-2.0.so.0
  • #20 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #21 g_signal_emit_by_name
    from /usr/lib/libgobject-2.0.so.0
  • #22 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #23 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #24 gst_bin_iterate
    at gstbin.c line 1146
  • #25 gst_thread_main_loop
    at gstthread.c line 585
  • #26 g_static_private_free
    from /usr/lib/libglib-2.0.so.0
  • #27 start_thread
    from /lib/tls/libpthread.so.0
The program is running.  Exit anyway? (y or n) y
[root@dsplin04 root]#
Comment 5 Johan (not receiving bugmail) Dahlin 2004-04-15 13:48:44 UTC
Maybe this is due to broken MMX asm. Is it disabled in latest cvs?
Comment 6 Ronald Bultje 2004-04-15 14:13:25 UTC
No, because we updated snapshots. Can you reproduce this with current ffmpeg
CVS? If not, it might be a ffmpeg setup issue...
Comment 7 Nikunj 2004-04-30 13:46:16 UTC
Yes I am still seeing the problem even with the ffmpeg from CVS. 

I couldn't use cvs(port is blocked) to download but used the tarballs generated
from the following link 
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-ffmpeg/. I hope this is
fine. I was able to build ffmpeg successfully. 
Comment 8 Ronald Bultje 2004-11-06 22:56:19 UTC
Hi, I recently fixed several bugs in the ffmpeg encoders. I've successfully
captured from a live TV source using ffenc_mpeg4 (to AVI). Can you please
confirm that current CVS (or a recent nightly tarball) works correctly?
Comment 9 Christian Fredrik Kalager Schaller 2005-01-13 11:45:26 UTC
Nothing heard back, so assuming fixed. Please re-open if still a problem.
Comment 10 Luca Ognibene 2005-01-13 13:21:55 UTC
I (and others) have the same issue. see #162905. I'll take a look at this
problem next w-end.