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 156001 - [mpeg] problem playing an mpeg file
[mpeg] problem playing an mpeg file
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins
0.8.5
Other Linux
: Normal normal
: 0.8.8
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 156004 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-10-20 23:13 UTC by Kjartan Maraas
Modified: 2005-01-19 22:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kjartan Maraas 2004-10-20 23:13:15 UTC
I've got an mpeg file at http://www.gnome.org/~kmaraas/poolshot.mpg that doesn't
play. I'm using the latest packages from fedora + the extra bits from gstreamer.net
Comment 1 Kjartan Maraas 2004-10-20 23:41:46 UTC
*** Bug 156004 has been marked as a duplicate of this bug. ***
Comment 2 Ronald Bultje 2004-12-03 22:59:39 UTC
"Doesn't play" is not exactly an adequate description. "It eats my memory and
hangs my computer" is a better description. I wish I knew how ulimit worked so I
could get a g_malloc failure on the sync error and protect that part better.
Comment 3 Ronald Bultje 2004-12-15 23:08:39 UTC
My backtrace-of-the-day:

Program received signal SIGSEGV, Segmentation fault.

Thread 59366320 (LWP 2419)

  • #0 memset
    from /lib/tls/libc.so.6
  • #1 ??
  • #2 snd_pcm_format_set_silence
    from /usr/lib/libasound.so.2
  • #3 gst_alsa_sink_loop
    at gstalsasink.c line 456
  • #4 loop_group_schedule_function
    at gstoptimalscheduler.c line 1332
  • #5 schedule_group
    at gstoptimalscheduler.c line 1154
  • #6 gst_opt_scheduler_schedule_run_queue
    at gstoptimalscheduler.c line 1205
  • #7 schedule_chain
    at gstoptimalscheduler.c line 1258

I get sound using osssink. No video.
Comment 4 Ronald Bultje 2004-12-16 16:59:20 UTC
With a new ffmpeg snapshot, I get video using this:

~/Projects/GStreamer/gstreamer/tools/gst-launch filesrc
location=~/Media/bugs/poolshot.mpg ! mpegdemux .video_00 ! mpeg1videoparse !
ffdec_mpeg2video ! ffmpegcolorspace ! xvimagesink

Indeed, ffmpeg expects full video frames. Autoplugging will not really work.
Mpeg2dec cannot play this video.
Comment 5 Ronald Bultje 2004-12-17 13:11:21 UTC
Video parsing is now added to ffmpeg's video decoders, so if you don't have
mpeg2dec, this will work. If we see no further issues, we'll swap priorities and
ffmpeg will be the default MPEG video decoder. Then this will work by default.
Comment 6 Ronald Bultje 2004-12-18 14:09:17 UTC
INFO  (0x88d0920 - 306494:08:20.870932000)            alsa(10095)
gstalsasink.c(448):gst_alsa_sink_loop:<alsasink0> Allocating 29095336 bytes
(1752104298 samples) now to resync: sample 2543099821 expected, but got 236823

So far for ALSA's problem.
Comment 7 Ronald Bultje 2004-12-18 15:12:23 UTC
Fix for ALSAs segfault added to alsasink. It will now play audio and video if
mpeg2dec is not installed... Let's not talk about A/V sync, I suppose it could
be better. There's a hidden timestamp bug somewhere.
Comment 8 Kjartan Maraas 2005-01-18 12:56:11 UTC
So, do I need to remove mpeg2dec to have working video for now? What do I lose
by doing that? Looks like it's needed by gstreamer-plugins-extra-video at least...
Comment 9 Ronald Bultje 2005-01-18 14:13:11 UTC
Little. Mpeg2dec's timestamp code is slightly better than our ffmpeg wrapper's
timestamp code, so your MPEG videos may hickup slightly.
Comment 10 Ronald Bultje 2005-01-19 22:40:21 UTC
Fixed in CVS now. Marking as 0.8.8 gst-plugins, but you'll also need gst-ffmpeg
0.8.4.