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 551532 - Fails to play stream from webtv.tv2.no
Fails to play stream from webtv.tv2.no
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
0.10.x
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 576795 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-09-09 15:52 UTC by Kjartan Maraas
Modified: 2010-06-23 09:41 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24



Description Kjartan Maraas 2008-09-09 15:52:54 UTC
Here's the data:

** Message: NP_Initialize
** Message: NP_Initialize succeeded
** Message: totemPlugin [0xa7ce1d0]
** Message: Init mimetype 'application/x-mplayer2' mode 1
** Message: Base URI is 'http://webtv.tv2.no/webtv/sumo/?treeId=3700005&progId=262132'
** Message: Real mimetype for 'application/x-mplayer2' is 'video/x-msvideo'
argv[0] type application/x-mplayer2
argv[1] class videoObject controlsBuiltIn
argv[2] id video0
argv[3] PARAM 
argv[4] stretchToFit 1
argv[5] displaySize 4
argv[6] autoSize 0
argv[7] allowChangeDisplaySize 1
argv[8] showControls 0
argv[9] showStatusBar 0
argv[10] volume 90
argv[11] autoStart 1
argv[12] AUTOPLAY true
argv[13] enableContextMenu 1
argv[14] windowlessVideo 0
argv[15] src http://webtv.tv2.no/webtv/metafile.asx?MSG=WFdB4dWhmEFZyHntO1yAM5W2boPwDw8)hy8r5XZBDr8qB6JiO(EkVasdwqqZR55dVZq1ohoDDT61ZnPhMAffo9z6nrHFERALVPWQG6kE(iE5AfRFCxvMJo2jI9Yvzknr
argv[16] SCALE tofit
argv[17] showTracker 1
** Message: mSrcURI: http://webtv.tv2.no/webtv/metafile.asx?MSG=WFdB4dWhmEFZyHntO1yAM5W2boPwDw8)hy8r5XZBDr8qB6JiO(EkVasdwqqZR55dVZq1ohoDDT61ZnPhMAffo9z6nrHFERALVPWQG6kE(iE5AfRFCxvMJo2jI9Yvzknr
** Message: mCache: 0
** Message: mControllerHidden: 1
** Message: mShowStatusbar: 0
** Message: mHidden: 0
** Message: mAudioOnly: 0
** Message: mAutoPlay: 1, mRepeat: 0
** Message: Launching: /usr/libexec/totem-plugin-viewer --plugin-type gmp --user-agent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008072301 Fedora/3.0.1-1.fc10 Firefox/3.0.1 --mimetype video/x-msvideo --no-controls 
** Message: Viewer spawned, PID 25894
** Message: Initial window set, XID 410a04f size 680x423
** Message: No viewer proxy yet, deferring SetWindow
** Message: GetScriptableNPObject [0xa7ce1d0]
** Message: totemGMPPlayer [0xe689c48]
** Message: Viewer DBus interface name is 'org.gnome.totem.PluginViewer_25894'
** Message: NameOwnerChanged old-owner '' new-owner ':1.213'
** Message: Viewer now connected to the bus
** Message: ViewerSetup
** Message: Calling SetWindow
Viewer: SetWindow XID 68198479 size 680:423
TotemEmbedded-Message: Viewer state: STOPPED
** Message: SetWindow reply
** Message: ViewerReady
** Message: IsSchemeSupported scheme 'http': yes
TotemEmbedded-Message: totem_embedded_open_stream called: uri http://webtv.tv2.no/webtv/metafile.asx?MSG=WFdB4dWhmEFZyHntO1yAM5W2boPwDw8)hy8r5XZBDr8qB6JiO(EkVasdwqqZR55dVZq1ohoDDT61ZnPhMAffo9z6nrHFERALVPWQG6kE(iE5AfRFCxvMJo2jI9Yvzknr, base_uri: http://webtv.tv2.no/webtv/sumo/?treeId=3700005&progId=262132
totem_embedded_set_uri uri (null) base (null) => resolved (null)
totem_embedded_set_uri uri http://webtv.tv2.no/webtv/metafile.asx?MSG=WFdB4dWhmEFZyHntO1yAM5W2boPwDw8)hy8r5XZBDr8qB6JiO(EkVasdwqqZR55dVZq1ohoDDT61ZnPhMAffo9z6nrHFERALVPWQG6kE(iE5AfRFCxvMJo2jI9Yvzknr base http://webtv.tv2.no/webtv/sumo/?treeId=3700005&progId=262132 => resolved http://webtv.tv2.no/webtv/metafile.asx?MSG=WFdB4dWhmEFZyHntO1yAM5W2boPwDw8)hy8r5XZBDr8qB6JiO(EkVasdwqqZR55dVZq1ohoDDT61ZnPhMAffo9z6nrHFERALVPWQG6kE(iE5AfRFCxvMJo2jI9Yvzknr
TotemEmbedded-Message: totem_embedded_open_internal 'fd://0' is-browser-stream 1 start-play 1
TotemEmbedded-Message: BEFORE _open
TotemEmbedded-Message: AFTER _open (ret: 1)
TotemEmbedded-Message: Viewer state: PLAYING
** Message: OpenStream reply
** Message: NewStream mimetype 'text/html' URL 'http://webtv.tv2.no/webtv/metafile.asx?MSG=WFdB4dWhmEFZyHntO1yAM5W2boPwDw8)hy8r5XZBDr8qB6JiO(EkVasdwqqZR55dVZq1ohoDDT61ZnPhMAffo9z6nrHFERALVPWQG6kE(iE5AfRFCxvMJo2jI9Yvzknr'
** Message: StreamAsFile filename '/tmp/plugtmp/metafile.asx'
** Message: totem_pl_parser_can_parse_from_data couldn't get mimetype
TotemEmbedded-Message: Setting the current path to /tmp/plugtmp/metafile.asx
totem_embedded_set_uri uri (null) base (null) => resolved (null)
totem_embedded_set_uri uri file:///tmp/plugtmp/metafile.asx base http://webtv.tv2.no/webtv/sumo/?treeId=3700005&progId=262132 => resolved file:///tmp/plugtmp/metafile.asx
TotemEmbedded-Message: totem_embedded_open_internal 'file:///tmp/plugtmp/metafile.asx' is-browser-stream 0 start-play 1
TotemEmbedded-Message: BEFORE _open
TotemEmbedded-Message: AFTER _open (ret: 1)

(totem-plugin-viewer:25894): GStreamer-CRITICAL **: Failed to deactivate pad typefind:sink, very bad
** Message: DestroyStream reason 0
** Message: URLNotify URL 'http://webtv.tv2.no/webtv/metafile.asx?MSG=WFdB4dWhmEFZyHntO1yAM5W2boPwDw8)hy8r5XZBDr8qB6JiO(EkVasdwqqZR55dVZq1ohoDDT61ZnPhMAffo9z6nrHFERALVPWQG6kE(iE5AfRFCxvMJo2jI9Yvzknr' reason 0

(totem-plugin-viewer:25894): GStreamer-CRITICAL **: 
Trying to dispose element decodebin1, but it is not in the NULL state.
You need to explicitly set elements to the NULL state before
dropping the final reference, to allow them to clean up.

** Message: Error: Stream contains no data.
gsttypefindelement.c(776): gst_type_find_element_activate (): /play/decodebin1/typefind:
Can't typefind empty stream

TotemEmbedded-Message: Viewer state: STOPPED
TotemEmbedded-Message: totem_embedded_set_error: 'Stream contains no data.'
TotemEmbedded-Message: totem_embedded_set_error_logo called by browser plugin

(totem-plugin-viewer:25894): GStreamer-CRITICAL **: 
Trying to dispose element typefind, but it is not in the NULL state.
You need to explicitly set elements to the NULL state before
dropping the final reference, to allow them to clean up.
Comment 1 Bastien Nocera 2008-09-09 17:00:14 UTC
Mozilla just doesn't manage to download the file. Open it using Firefox or epiphany, and the file will be empty.

Playbin barfs on the empty file though, which it shouldn't.

Kjartan, please file a bug against xulrunner in the Fedora bugzilla, wget manages to download the file fine.
Comment 2 Christian Persch 2008-09-10 16:52:10 UTC
Gecko fails to download the file also on ubuntu's xulrunner, so I think it's an upstream bug not a fedora specific one.
Comment 3 Christian Persch 2008-09-10 17:20:16 UTC
-1211234624[9d77568]: http request [
-1211234624[9d77568]:   GET /webtv/metafile.asx?MSG=WFdB4dWhmEFZyHntO1yAM6nrRibpTdOeDj(daFes2y9s56eSdzYxl1e6ubMAaHZOQkNHtF9LXFzCrXJ4IZa9aAdtg
lwQZQFtfUZpCiiPl7I! HTTP/1.1
-1211234624[9d77568]:   Host: webtv.tv2.no
-1211234624[9d77568]:   User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.2) Gecko/2008090211 Ubuntu/8.10 (intrepid) Firefox/3.0.1
-1211234624[9d77568]:   Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
-1211234624[9d77568]:   Accept-Language: en-us,en;q=0.5
-1211234624[9d77568]:   Accept-Encoding: gzip,deflate
-1211234624[9d77568]:   Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
-1211234624[9d77568]:   Keep-Alive: 300
-1211234624[9d77568]:   Connection: keep-alive
-1211234624[9d77568]:   Cookie: JSESSIONID=8hOl+2zMMfEEZw84uEO4zQ**; WT_FPC=id=227f4d487021d3e95af1221062351960:lv=1221062351960:ss=122106235
1960; webtv.bandwidth2=3400; autoFullScreen=false; webtv.playerPlatform=0
-1211234624[9d77568]: ]
[.....]
-1245541488[9e62e28]: http response [
-1245541488[9e62e28]:   HTTP/1.1 200 OK
-1245541488[9e62e28]:   Date: Wed, 10 Sep 2008 16:59:55 GMT
-1245541488[9e62e28]:   X-Powered-By: Servlet 2.4; JBoss-4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)/Tomcat-5.5
-1245541488[9e62e28]:   Content-Location: /webtv/metafile.asx
-1245541488[9e62e28]:   Content-Type: text/html; charset=ISO-8859-1
-1245541488[9e62e28]:   Vary: Accept-Encoding
-1245541488[9e62e28]:   Content-Encoding: gzip
-1245541488[9e62e28]:   Content-Length: 20
-1245541488[9e62e28]:   Connection: close
-1245541488[9e62e28]: ]

Strangely the response has content-length 20 while the file is 743 bytes when downloaded with wget. Even with content-encoding = gzip that's a big difference...

[...]
-1211234624[9d77568]: nsHttpChannel::ApplyContentConversions [this=afeac58]
-1211234624[9d77568]: converter installed from 'gzip' to 'uncompressed'
-1211234624[9d77568]: Preparing to write data into the cache [uri=http://webtv.tv2.no/webtv/metafile.asx?MSG=WFdB4dWhmEFZyHntO1yAM6nrRibpTdOeDj(daFes2y9s56eSdzYxl1e6ubMAaHZOQkNHtF9LXFzCrXJ4IZa9aAdtglwQZQFtfUZpCiiPl7I!]
-1211234624[9d77568]: nsHttpChannel::OnDataAvailable [this=afeac58 request=af4e278 offset=0 count=20]

So apparently it does read 20 bytes.

For comparision, with wget, the request is

GET /webtv/metafile.asx?MSG=WFdB4dWhmEFZyHntO1yAM(Xxv3BlSvlQKVkTwiqeNPpIh(tcO7cmryW1jSKh0DvbAGB9b3uPDa5)99MWsKws)7pUSngWdT6xTQ5hPLb)uHo! HTTP/1.0
User-Agent: Wget/1.11.4
Accept: */*
Host: webtv.tv2.no
Connection: Keep-Alive

and the response is:

HTTP/1.1 200 OK
Date: Wed, 10 Sep 2008 17:19:07 GMT
X-Powered-By: Servlet 2.4; JBoss-4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)/Tomcat-5.5
Set-Cookie: JSESSIONID=c2K6NwGm4UQillI8WUSvhw**; Path=/
Content-Location: /webtv/metafile.asx
Cache-Control: no-cache
Pragma: no-cache
Content-Type: video/x-ms-asf;charset=ISO-8859-1
Content-Length: 287
Connection: close
Comment 4 Christian Persch 2008-09-29 18:28:40 UTC
Can someone follow this up on bmo, since it seems that gecko is involved in here?

However, it also fails in ephy/webkit. Very weird.
Comment 5 Bastien Nocera 2009-04-01 16:00:32 UTC
*** Bug 576795 has been marked as a duplicate of this bug. ***
Comment 6 Bastien Nocera 2009-04-01 17:25:21 UTC
That's what happens when the front-end tries to do a _play() but we received an error in the middle:

  • #0 g_logv
    from /lib64/libglib-2.0.so.0
  • #1 g_log
    from /lib64/libglib-2.0.so.0
  • #2 gst_pad_set_active
    from /usr/lib64/libgstreamer-0.10.so.0
  • #3 ??
    from /usr/lib64/libgstreamer-0.10.so.0
  • #4 gst_iterator_fold
    from /usr/lib64/libgstreamer-0.10.so.0
  • #5 ??
    from /usr/lib64/libgstreamer-0.10.so.0
  • #6 ??
    from /usr/lib64/libgstreamer-0.10.so.0
  • #7 ??
    from /usr/lib64/libgstreamer-0.10.so.0
  • #8 gst_pad_peer_accept_caps
    from /usr/lib64/gstreamer-0.10/libgstcoreelements.so
  • #9 gst_element_change_state
    from /usr/lib64/libgstreamer-0.10.so.0
  • #10 ??
    from /usr/lib64/libgstreamer-0.10.so.0
  • #11 ??
    from /usr/lib64/libgstreamer-0.10.so.0
  • #12 gst_element_factory_get_klass
    from /usr/lib64/gstreamer-0.10/libgstdecodebin.so
  • #13 gst_element_change_state
    from /usr/lib64/libgstreamer-0.10.so.0
  • #14 ??
    from /usr/lib64/libgstreamer-0.10.so.0
  • #15 gst_element_factory_get_klass
    from /usr/lib64/gstreamer-0.10/libgstplaybin.so
  • #16 gst_element_factory_get_klass
    from /usr/lib64/gstreamer-0.10/libgstplaybin.so
  • #17 gst_element_factory_get_klass
    from /usr/lib64/gstreamer-0.10/libgstplaybin.so
  • #18 gst_element_change_state
    from /usr/lib64/libgstreamer-0.10.so.0
  • #19 ??
    from /usr/lib64/libgstreamer-0.10.so.0
  • #20 bacon_video_widget_play
    at bacon-video-widget-gst-0.10.c line 2816
  • #21 totem_embedded_play
    at totem-plugin-viewer.c line 531
  • #22 totem_embedded_open_internal
    at totem-plugin-viewer.c line 502
  • #23 dbus_glib_marshal_totem_embedded_BOOLEAN__STRING_STRING_STRING_POINTER
    at totem-plugin-viewer-interface.h line 144
  • #24 ??
    from /usr/lib64/libdbus-glib-1.so.2
  • #25 ??
    from /lib64/libdbus-1.so.3
  • #26 dbus_connection_dispatch
    from /lib64/libdbus-1.so.3
  • #27 ??
    from /usr/lib64/libdbus-glib-1.so.2
  • #28 g_main_context_dispatch
    from /lib64/libglib-2.0.so.0
  • #29 ??
    from /lib64/libglib-2.0.so.0
  • #30 g_main_loop_run
    from /lib64/libglib-2.0.so.0
  • #31 IA__gtk_main
    at gtkmain.c line 1205
  • #32 main
    at totem-plugin-viewer.c line 2402

This doesn't happen with playbin2, so it's fixed in Totem trunk. This still happens with playbin itself.

The "Mozilla downloads empty files" bug is upstream at:
https://bugzilla.mozilla.org/show_bug.cgi?id=486346
Comment 7 Edward Hervey 2010-06-23 09:41:20 UTC
Marking OBSOLETE as we're no longer fixing issues that happen with playbin but work fine with playbin2.