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 337544 - [xvimagesink] Internal Error when image is too large
[xvimagesink] Internal Error when image is too large
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
0.10.5
Other Linux
: Normal normal
: 0.10.8
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-04-06 19:08 UTC by malbaugh
Modified: 2006-05-26 10:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
dbg.gz (2.23 KB, application/x-gzip)
2006-04-10 12:26 UTC, malbaugh
Details
Totem Error (684 bytes, application/octet-stream)
2006-04-10 13:56 UTC, malbaugh
Details
second dbg log (22.94 KB, application/x-gzip)
2006-04-13 12:46 UTC, malbaugh
Details
dbg3 log (20 bytes, application/x-gzip)
2006-04-13 13:50 UTC, malbaugh
Details

Description malbaugh 2006-04-06 19:08:27 UTC
Cannot use Totem player for movies. Error: Internal GStreamer Error: negotiation problem.
Comment 1 Tim-Philipp Müller 2006-04-07 08:48:45 UTC
Please provide some more information:

 * what Totem version are you using? (see Totem about dialog)
 * what GStreamer core version are you using? (see Totem about dialog)
 * what gst-plugins-base version are you using?

 * what type of file are you trying to play? (avi/mpeg/quicktime/etc.)
 * where are you playing the file from (local file? in your browser? etc.)
Comment 2 malbaugh 2006-04-07 12:45:58 UTC
Here is the info you ask for:
Totem & Totem gstreamer 1.4.0-0 ubuntu2
GStreamer Core & gst plugins 0.10.5-0 ubuntu3
I'm tryng to run video from local files and Foxfire 1.5 browser.
Is there something I need to setup or do to get this to run right?
HTH
malbaugh
Comment 3 Tim-Philipp Müller 2006-04-07 13:38:51 UTC
 * what type of file are you trying to play? (avi/mpeg/quicktime/etc.)

 * do you get the error right at the beginning or when you do something like seeking?

If you know to run totem from the command line (gnome-terminal), could you run it like this

  % GST_DEBUG=totem:5,*:3  totem /home/joe/somefile.ext  2>&1 | gzip > dbg.log.gz

and attach the file?
Comment 4 malbaugh 2006-04-07 20:48:16 UTC
As soon as the program Totem starts you get the error message box:
Internal GStreamer Error: negotiation problem. 
Then says to contact bugzilla.
malbaugh
Comment 5 malbaugh 2006-04-08 12:53:26 UTC
bash: GST_DEBUG-totem:5*:3: command not found
This is what is in the log message.
Totem is completely unuseable.
malbaugh
Comment 6 Tim-Philipp Müller 2006-04-08 13:37:29 UTC
I'm sorry, but if you are not able to answer the most simple question, then there is not much anyone can do to fix these problems you are having.

Also, what you typed on the command line does not look like what I said you should type, so it's not very suprising that it doesn't work.
Comment 7 malbaugh 2006-04-08 17:26:08 UTC
I'm tired of this abuse the information is what I have to give. If this isn't right or what you want forget that i ask any questions.
I will find out somewhere else to fix this problem.
Comment 8 Tim-Philipp Müller 2006-04-10 09:59:50 UTC
Apologies if I was a bit harsh, didn't mean to be rude.

There are at least two things we need in order to get to the bottom of this problem:

 (1) the type of file you were trying to play. What is the full name of the file?

 (2) the file that the command line I have you above produces. Maybe you could
     try this again on a command line (note that there is a comma after the 5):

       $ export GST_DEBUG=totem:5,*:3

     and then

       $ totem /home/joe/somefile.ext  2>&1 | gzip > dbg.log.gz

     There isn't really an easier way to get this information I'm afraid.

Comment 9 malbaugh 2006-04-10 12:25:13 UTC
I did the commands and found that a file kalimoto-miracle-lemon.ogg will play, but a file SeeUbuntu.ogg will not. I will attach the dbg file. It seem audio will play and video will not.
Comment 10 malbaugh 2006-04-10 12:26:37 UTC
Created attachment 63102 [details]
dbg.gz

here is the log message
Comment 11 malbaugh 2006-04-10 13:55:27 UTC
I ran Totem in a Termial and got these messages. File attached
Comment 12 malbaugh 2006-04-10 13:56:25 UTC
Created attachment 63114 [details]
Totem Error

This is the error in a text editor
Comment 13 Tim-Philipp Müller 2006-04-13 10:02:23 UTC
Thanks for that. Unfortunately, the log doesn't say which element posted the error.

It would be great if you could do another log, this time with:

 $ export GST_DEBUG=*:4
 $ totem /usr/share/example-content/SeeUbuntu.ogg  2>&1 | gzip > dbg.log.gz


Those other totem errors look like they come from the gnomevfs library. They look like a typo of some sort (there's an extraneous space in the prefix to the modules path), shouldn't have anything to do with the issue here though.
Comment 14 malbaugh 2006-04-13 12:44:18 UTC
was uable to get error message with the first command line you sent, but used old one and got a error log. Used second line. Hope this will show what you need.
Comment 15 malbaugh 2006-04-13 12:46:14 UTC
Created attachment 63375 [details]
second dbg log
Comment 16 Tim-Philipp Müller 2006-04-13 13:32:03 UTC
It really needs to open the file. When you tried the instructions from comment #13, did the film work all of a sudden? or did nothing happen at all?

just to avoid misunderstandings:

This:

   $ totem /usr/share/example-content/SeeUbuntu.ogg

starts totem and produces an 'Internal Flow' error, right?


While this:

 $ GST_DEBUG=*:4 totem /usr/share/example-content/SeeUbuntu.ogg 2>&1 | gzip > dbg.log.gz

works and does not produce an error?
Comment 17 malbaugh 2006-04-13 13:49:32 UTC
Yes, it will start Totem and then will give the same error message within a few seconds.
Comment 18 malbaugh 2006-04-13 13:50:15 UTC
Created attachment 63383 [details]
dbg3 log
Comment 19 Tim-Philipp Müller 2006-04-15 13:59:32 UTC
From the log:

xvimagesink.c(1854):gst_xvimagesink_show_frame:<actual-sink> could not create image
xvimagesink.c(1856):gst_xvimagesink_show_frame:<actual-sink> error: Failed creating an XvImage in xvimagesink chain function.
 gstelement.c(1490):gst_element_message_full:<actual-sink> posting message: Internal GStreamer error: negotiation problem.  Please file a bug at http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer.
 gstelement.c(1504):gst_element_message_full:<actual-sink> posted message: Internal GStreamer error: negotiation problem.  Please file a bug at http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer.
   gstqueue.c(774):gst_queue_push_one:<preroll_video_src0> error: Internal data flow error.
   gstqueue.c(774):gst_queue_push_one:<preroll_video_src0> error: streaming stopped, reason error

There seem to be at least two issues here:

 (a) xvimagesink should give a better error message if it errors out
     because the allocated size is smaller than the requested size
     (not sure if this is what happens here, but it might be from
      looking at the code)

 (b) totem does either not see the first error message (from xvimagesink),
     or prefer the second error message (the useless 'internal error' one).


malbaugh, could you go to 

  System => Preferences => Multimedia System Selector

at the top of your screen, and then

  - go to the 'Video' page
  - under 'Default Output Plugin' select:   "XWindows (No Xv)"

and then restart totem to see if that works.

Comment 20 malbaugh 2006-04-15 14:16:00 UTC
I go to System then Preferences and there is no Multimedia System Selector there.
How do I get this function, Or is there another way to do what you ask?
I tried Dapper Drake Flt6 Live and still get the same errors.
Comment 21 Tim-Philipp Müller 2006-04-15 16:18:19 UTC
The Multimedia System Selector can be started from the command line like this:

  $ /usr/bin/gstreamer-properties

It is part of the 'gnome-media' package, which should be installed by default as far as I know.
Comment 22 malbaugh 2006-04-15 20:01:10 UTC
Found this error message:malbaugh@ubuntumalbaugh:~$ /usr/bin/gstreamer-properties
gstreamer-properties-Message: Skipping unavailable plugin 'artsdsink'
gstreamer-properties-Message: Skipping unavailable plugin 'polypsink'
gstreamer-properties-Message: Skipping unavailable plugin 'sdlvideosink'
gstreamer-properties-Message: Skipping unavailable plugin 'v4lmjpegsrc'
gstreamer-properties-Message: Skipping unavailable plugin 'qcamsrc'
gstreamer-properties-Message: Skipping unavailable plugin 'v4l2src'
gstreamer-properties-Message: Skipping unavailable plugin 'esdmon'
gstreamer-properties-Message: Skipping unavailable plugin 'polypsrc'
The program 'gstreamer-properties' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
  (Details: serial 48 error_code 11 request_code 140 minor_code 19)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
At selector box selected (XWindows(NoXv)) and SeeUbuntu ran but no sound.
Hope this helps
Comment 23 Tim-Philipp Müller 2006-04-18 08:45:50 UTC
SeeUbuntu.ogg doesn't contain any sound, it just contains a video. 

Glad you got it working now. Thanks for being so patient :)

Keeping the bug open until the issues with the error reporting are fixed in core +  xvimagesink. It should have displayed a sensible error message and not 'Internal Error'.

Comment 24 Tim-Philipp Müller 2006-05-26 10:12:41 UTC
> Keeping the bug open until the issues with the error reporting are fixed in
> core +  xvimagesink. It should have displayed a sensible error message and not
> 'Internal Error'.

Should be resolved now by Jan's latest commits to -base CVS:

2006-05-26  Jan Schmidt  <thaytan@mad.scientist.com>

        * sys/xvimage/xvimagesink.c: (gst_xvimagesink_xvimage_new),
        (gst_xvimagesink_get_xv_support), (gst_xvimagesink_xcontext_get),
        (gst_xvimagesink_get_format_from_caps), (gst_xvimagesink_setcaps),
        (gst_xvimagesink_show_frame), (gst_xvimagesink_buffer_alloc):
        Improve the errors produced on bad output, including some human
        readable description strings.
        Handle RGB Xv formats properly by transforming them into our
        big-endian caps description.
        Use gst_caps_truncate to ensure that we never try and choose a
        non-fixed caps in buffer_alloc.
        Handle the case where the XServer has a different idea about the size
        required for a particular frame and gives us too small a memory
        allocation.
        Use -1 to indicate 'no image format', because 0 is a valid XServer
        image format number.
        Put RGB Xv formats at the end of the caps, so that we always prefer
        YUV format frames.
        Iterate the available Xv Encodings to determine the maximum width and
        height, and then return that in our caps.