<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>7787</bug_id>
          
          <creation_ts>2015-05-18 22:38:35 +0000</creation_ts>
          <short_desc>media player (gtk-play) doesn&apos;t work with any QEMU target</short_desc>
          <delta_ts>2015-10-27 11:44:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>multimedia</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gary Thomas">gary</reporter>
          <assigned_to name="Alexander Kanavin">alex.kanavin</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>51107</commentid>
    <comment_count>0</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2015-05-18 22:38:35 +0000</bug_when>
    <thetext>Try to run gtk-play on any QEMU target - result is a blank window.  Obviously the player thinks something is happening as the &quot;progress bar&quot; moves, but there is no video.

To duplicate, build core-image-sato for any QEMU target with these [additional] settings:
CORE_IMAGE_EXTRA_INSTALL = &quot;rsync gstreamer1.0-libav&quot;
LICENSE_FLAGS_WHITELIST ?= &quot;commercial_gstreamer1.0-libav \
                            commercial_libav \
&quot;

Tested against Poky/Yocto master rev fab7da4f8030a4067db0522f77eaa6d3b501c68f</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51109</commentid>
    <comment_count>1</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2015-05-18 22:41:58 +0000</bug_when>
    <thetext>Note: the extra settings allow easy import of video files, along with settings to be able to play .mp4 files such as:
  https://download.blender.org/durian/trailer/sintel_trailer-1080p.mp4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52551</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-07-23 10:56:12 +0000</bug_when>
    <thetext>GStreamer probably thinks &quot;I&apos;ll use GL&quot; and that just fails miserably as it&apos;s old-school software GL.  Can we make this M3?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52621</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-07-27 12:39:25 +0000</bug_when>
    <thetext>Presumably this is just video and audio plays?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52622</commentid>
    <comment_count>4</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2015-07-27 12:46:32 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; Presumably this is just video and audio plays?

Correct, just trying to play any audio+video (mostly interested in video as audio may not be available in qemu).  Any video file would do, the setup above is just to allow use of .mp4 video files.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54543</commentid>
    <comment_count>5</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2015-09-23 14:38:06 +0000</bug_when>
    <thetext>Gstreamer defaults to GL sink - if you use a different sink, e.g. this:

gst-play-1.0 --videosink ximagesink sintel_trailer-1080p.mp4

then video displays fine.

Is GL sink supposed to work in QEMU, or should we find out how to make something else the default?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54546</commentid>
    <comment_count>6</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-09-23 14:47:10 +0000</bug_when>
    <thetext>GL is *meant* to work in qemu using the software renderer, but we don&apos;t use the LLVM-based software renderer yet so we need a way of forcing it to use something else.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54547</commentid>
    <comment_count>7</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2015-09-23 14:50:58 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; GL is *meant* to work in qemu using the software renderer, but we don&apos;t use
&gt; the LLVM-based software renderer yet so we need a way of forcing it to use
&gt; something else.

The point of the bug is that a user who tries to use gtk-play via the GUI won&apos;t have this kind of control and he&apos;s left with no video whatsoever.

So I would say that yes you either need to change the default or I would think it better to have the current default be functional in QEMU</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54548</commentid>
    <comment_count>8</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2015-09-23 15:02:21 +0000</bug_when>
    <thetext>At build time, gstreamer1.0-plugins-bad.inc enables or disables opengl depending on whether opengl is in DISTRO_FEATURES.

At run time, I don&apos;t think you can disable a gstreamer plugin that is already installed on the target (through a config file or environment variable), but not 100% certain here.

Ideas?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54554</commentid>
    <comment_count>9</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2015-09-23 15:28:53 +0000</bug_when>
    <thetext>A related issue is that typically gstreamer installations use xvimagesink for rendering video (because it has a higher rank than other video sinks), but in qemu sato image it doesn&apos;t work: &quot;No Xv port available&quot;.

Still unsure how to proceed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54555</commentid>
    <comment_count>10</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-09-23 15:30:38 +0000</bug_when>
    <thetext>I wonder if there&apos;s any virtual graphics drivers that support xv...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54556</commentid>
    <comment_count>11</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2015-09-23 15:34:37 +0000</bug_when>
    <thetext>So is it possible to remove opengl from gstreamer&apos;s PACKAGECONFIG, but on qemu images only?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54559</commentid>
    <comment_count>12</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-09-23 15:43:23 +0000</bug_when>
    <thetext>Not without making gstreamer machine-specific.

https://bugzilla.gnome.org/show_bug.cgi?id=751684 is relevant and has a draft (doesn&apos;t compile) patch that makes glsink refuse to work on software renderers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54561</commentid>
    <comment_count>13</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2015-09-23 15:53:00 +0000</bug_when>
    <thetext>Until that patch shows up in upstream, we can unconditionally downrank glimagesink so that ximagesink always comes up first. If someone wants GL rendering, they would have to hardcode the sink name into where the pipeline is formed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54570</commentid>
    <comment_count>14</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2015-09-23 16:45:55 +0000</bug_when>
    <thetext>I&apos;m a bit reluctant to fix it that way, because there may be OE users out there who rely on GL being the default without being explicit about it (when Xv is not available), and things will suddenly break/change for them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54572</commentid>
    <comment_count>15</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2015-09-23 16:51:28 +0000</bug_when>
    <thetext>(In reply to comment #14)
&gt; I&apos;m a bit reluctant to fix it that way, because there may be OE users out
&gt; there who rely on GL being the default without being explicit about it (when
&gt; Xv is not available), and things will suddenly break/change for them.

Why not make such a change QEMU [target] dependent, then it won&apos;t affect those users?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54577</commentid>
    <comment_count>16</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-09-23 19:04:21 +0000</bug_when>
    <thetext>Nobody in their right mind is relying the software renderer in Mesa, as this bug demonstrates it&apos;s utterly broken.  Clutter can&apos;t start up against it either, pretty much the only app that works fine is glxgears.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54603</commentid>
    <comment_count>17</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2015-09-24 11:00:59 +0000</bug_when>
    <thetext>Yeah, but I had in mind those who use hardware GL. They will be affected too, no?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54604</commentid>
    <comment_count>18</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-09-24 11:06:21 +0000</bug_when>
    <thetext>The gstreamer patch checked that the GL implementation didn&apos;t declare itself a software renderer, so if you have proper drivers the gl sink still works.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54618</commentid>
    <comment_count>19</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2015-09-24 14:12:30 +0000</bug_when>
    <thetext>Yeah, but that patch is incomplete and doesn&apos;t compile, and work on it seems to have stalled. Let&apos;s just downgrade the GL sink unconditionally, I&apos;ll be submitting that to ML shortly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54647</commentid>
    <comment_count>20</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2015-09-24 17:42:56 +0000</bug_when>
    <thetext>Patch submitted: http://lists.openembedded.org/pipermail/openembedded-core/2015-September/110947.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54783</commentid>
    <comment_count>21</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-09-29 12:23:53 +0000</bug_when>
    <thetext>Merged in oe-core ab1bb8db62df4246c2ed3a3135d6d71003ee9386.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55812</commentid>
    <comment_count>22</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2015-10-27 11:44:10 +0000</bug_when>
    <thetext>Verified on master 8a0d8eee432924433c3e70198aaeab3161476c5f.

Player barely works with the provided 1080p video - but it works. 

So there are performance issues with default settings.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>