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 99489 - can't playback streams mux'd with mplexlo
can't playback streams mux'd with mplexlo
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins
git master
Other other
: Low normal
: 0.4.0
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2002-11-25 10:47 UTC by Joshua N Pritikin
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
avoid FPE if mpeg_parse->mux_rate is not specified (544 bytes, patch)
2002-11-26 06:41 UTC, Joshua N Pritikin
none Details | Review

Description Joshua N Pritikin 2002-11-25 10:47:28 UTC
i re-mixed a VCD mpeg with cinelerra into a mpeg2 (video) and mp3 (audio)
and multiplexed it with mplexlo.  When i try to play this mpeg with
gstreamer CVS, i get the following obvious FPE:

Starting program: /home/joshua/gst/gstreamer/tools/.libs/lt-gst-launch
filesrc location=/local/aleader/nau-scene1-1M.mpg ! mpegdemux name=foo
video_%02d! { queue ! mpeg2dec ! { queue ! colorspace ! xvideosink } }
foo.audio_%02d!{ queue ! mad ! { queue ! osssink } }
[New Thread 1024 (LWP 2001)]
INFO ( 2001: 0) Initializing GStreamer Core Library version 0.4.2.1
INFO ( 2001: 0) CPU features: (0081813f) MMX
registry: loaded user_registry in 1.017360 seconds
          (/home/joshua/.gstreamer/registry.xml)
registry: loaded global_registry in 0.614729 seconds
          (/home/joshua/gst/gstreamer/registry.xml)
GStreamer-INFO: 0 live buffer(s)
GStreamer-INFO: 0 live bufferpool(s)
GStreamer-INFO: 0 live event(s)
RUNNING pipeline
[New Thread 2049 (LWP 2002)]
[New Thread 1026 (LWP 2003)]
[New Thread 2051 (LWP 2004)]
[New Thread 3076 (LWP 2005)]
[New Thread 4101 (LWP 2006)]
sink: caps = (GstCaps *) { audio/mp3;  }
src: caps = (GstCaps *) { audio/mp3;  }
sink: caps = (GstCaps *) { audio/mp3;  }

Program received signal SIGFPE, Arithmetic exception.

Thread 1024 (LWP 2001)

  • #0 __udivmoddi4
    from /home/joshua/gst/gst-plugins/gst/mpegstream/.libs/libgstmpegstream.so
  • #1 __udivdi3
    from /home/joshua/gst/gst-plugins/gst/mpegstream/.libs/libgstmpegstream.so
  • #2 gst_mpeg_parse_loop
    at gstmpegparse.c line 479
  • #3 gst_basic_scheduler_loopfunc_wrapper
    at gstbasicscheduler.c line 279
  • #4 cothread_stub
    at cothreads.c line 444
  • #5 cothread_switch
    at cothreads.c line 650
  • #6 gst_basic_scheduler_iterate
    at gstbasicscheduler.c line 1342
  • #7 gst_scheduler_iterate
    at gstscheduler.c line 645
  • #8 gst_bin_iterate_func
    at gstbin.c line 826
  • #9 gst_bin_iterate
    at gstbin.c line 869
  • #10 idle_func
    at gst-launch.c line 23
  • #11 g_timeout_add
    from /usr/lib/libglib-2.0.so.0
  • #12 g_get_current_time
    from /usr/lib/libglib-2.0.so.0
  • #13 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #14 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #15 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #16 gst_main
    at gst.c line 589
  • #17 main
    at gst-launch.c line 177
  • #2 gst_mpeg_parse_loop
    at gstmpegparse.c line 479
$3 = 0
(gdb) p mpeg_parse->mux_rate
$4 = 0

To reproduce this problem, use the test mpeg file here:
  <ftp://ftp.berlios.de/pub/redael/nau-scene1-1M.mpg>
Comment 1 Joshua N Pritikin 2002-11-25 10:59:01 UTC
i forgot to mention that mplayer plays this mpeg perfectly.
Comment 2 Joshua N Pritikin 2002-11-26 06:41:05 UTC
Created attachment 12560 [details] [review]
avoid FPE if mpeg_parse->mux_rate is not specified
Comment 3 Joshua N Pritikin 2002-11-26 06:43:37 UTC
The attached patch doesn't fix the main problem.  However, if i run
mplexhi -V (variable rate) then the resulting stream is small and does
play fine.  It remains a low-priority task to figure out how to play
streams mux'd with mplexlo.
Comment 4 Joshua N Pritikin 2002-11-28 06:52:45 UTC
wtay applied the attached patch (& more) but he didn't update bugzilla.