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 765972 - RTMP streamer cannot play
RTMP streamer cannot play
Status: RESOLVED DUPLICATE of bug 787102
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
1.8.1
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-05-04 10:35 UTC by Miles
Modified: 2018-05-07 15:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Miles 2016-05-04 10:35:01 UTC
I have a link as "rtmp://119.167.73.28:1935/live/qtv3", use VLC player to play is OK, switch gstreamer to play  is Error , 

the error log is 
-----------------------------------------------

05-04 18:29:39.002 22715-22190/org.freedesktop.gstreamer.play E/GStreamer+gst-player: 0:30:56.667537937 0xab790c00 gstplayer.c:995:error_cb:<player1> ERROR: from element /GstPlayBin:playbin/GstURIDecodeBin:uridecodebin2/GstRTMPSrc:source: Could not read from resource.
05-04 18:29:39.002 22715-22190/org.freedesktop.gstreamer.play E/GStreamer+gst-player: 0:30:56.667779448 0xab790c00 gstplayer.c:997:error_cb:<player1> Additional debug info:
                                                                                      gstrtmpsrc.c(397): gst_rtmp_src_create (): /GstPlayBin:playbin/GstURIDecodeBin:uridecodebin2/GstRTMPSrc:source:
                                                                                      Failed to read any data from stream, check your URL
05-04 18:29:39.002 22715-22190/org.freedesktop.gstreamer.play E/GStreamer+gst-player: 0:30:56.667878198 0xab790c00 gstplayer.c:871:emit_error:<player1> Error: Error from element /GstPlayBin:playbin/GstURIDecodeBin:uridecodebin2/GstRTMPSrc:source: Could not read from resource.
                                                                                      Could not read from resource.
                                                                                      gstrtmpsrc.c(397): gst_rtmp_src_create (): /GstPlayBin:playbin/GstURIDecodeBin:uridecodebin2/GstRTMPSrc:source:
                                                                                      Failed to read any data from stream, check your URL (gst-player-error-quark, 0)

-----------------------------------------------
What is this,  i am runing gstreamer on Android Device,  how should I go to modify ?
Comment 1 Nicolas Dufresne (ndufresne) 2016-05-04 13:28:38 UTC
I've looked quickly, vlc is doing a StreamGetLength|play(), with the same information, while librtmp within GStreamer simply do play. For vlc, the server return playing status notification, while for gstreamer it returns stream no found. I'm not sure what is going on here. Which server is this ?
Comment 2 Miles 2016-05-05 05:44:32 UTC
this rtmp link is a TV live,  gstreamer play rtmp, some link can play , some link can not , this "rtmp://119.167.73.28:1935/live/qtv3" link cantnot, i am curious
Comment 3 Miles 2016-05-06 06:27:50 UTC
on after press play-key ,  the log is 

-----------------------------------------------
05-06 14:22:15.673 23640-23693/org.freedesktop.gstreamer.play D/GStreamer+gst-player: 0:00:14.203457286 0xab709fb0 gstplayer.c:2534:gst_player_play_internal:<player0> Play
05-06 14:22:16.053 23640-23894/org.freedesktop.gstreamer.play E/GStreamer+rtmp: 0:00:14.585704161 0xab968090 :0: Closing connection: NetStream.Play.StreamNotFound
05-06 14:22:16.053 23640-23894/org.freedesktop.gstreamer.play W/GStreamer+rtmpsrc: 0:00:14.586147495 0xab968090 gstrtmpsrc.c:397:gst_rtmp_src_create:<source> error: Failed to read any data from stream, check your URL
05-06 14:22:16.053 23640-23894/org.freedesktop.gstreamer.play W/GStreamer+basesrc: 0:00:14.586886713 0xab968090 gstbasesrc.c:2948:gst_base_src_loop:<source> error: Internal data flow error.
05-06 14:22:16.053 23640-23894/org.freedesktop.gstreamer.play W/GStreamer+basesrc: 0:00:14.587941713 0xab968090 gstbasesrc.c:2948:gst_base_src_loop:<source> error: streaming task paused, reason error (-5)
05-06 14:22:16.053 23640-23894/org.freedesktop.gstreamer.play W/GStreamer+typefind: 0:00:14.588944057 0xab968090 gsttypefindelement.c:979:gst_type_find_element_chain_do_typefinding:<typefindelement0> error: Stream doesn't contain enough data.
05-06 14:22:16.053 23640-23894/org.freedesktop.gstreamer.play W/GStreamer+typefind: 0:00:14.589228067 0xab968090 gsttypefindelement.c:979:gst_type_find_element_chain_do_typefinding:<typefindelement0> error: Can't typefind stream
05-06 14:22:16.053 23640-23693/org.freedesktop.gstreamer.play E/GStreamer+gst-player: 0:00:14.588456765 0xab709fb0 gstplayer.c:995:error_cb:<player0> ERROR: from element /GstPlayBin:playbin/GstURIDecodeBin:uridecodebin0/GstRTMPSrc:source: Could not read from resource.
05-06 14:22:16.053 23640-23693/org.freedesktop.gstreamer.play E/GStreamer+gst-player: 0:00:14.589601713 0xab709fb0 gstplayer.c:997:error_cb:<player0> Additional debug info:
                                                                                      gstrtmpsrc.c(397): gst_rtmp_src_create (): /GstPlayBin:playbin/GstURIDecodeBin:uridecodebin0/GstRTMPSrc:source:
                                                                                      Failed to read any data from stream, check your URL
05-06 14:22:16.053 23640-23693/org.freedesktop.gstreamer.play E/GStreamer+gst-player: 0:00:14.589824005 0xab709fb0 gstplayer.c:871:emit_error:<player0> Error: Error from element /GstPlayBin:playbin/GstURIDecodeBin:uridecodebin0/GstRTMPSrc:source: Could not read from resource.
                                                                                      Could not read from resource.
                                                                                      gstrtmpsrc.c(397): gst_rtmp_src_create (): /GstPlayBin:playbin/GstURIDecodeBin:uridecodebin0/GstRTMPSrc:source:
                                                                                      Failed to read any data from stream, check your URL (gst-player-error-quark, 0)
05-06 14:22:16.053 23640-23693/org.freedesktop.gstreamer.play I/GStreamer: errorMessage-->Error from element /GstPlayBin:playbin/GstURIDecodeBin:uridecodebin0/GstRTMPSrc:source: Could not read from resource.
                                                                           Could not read from resource.
                                                                           gstrtmpsrc.c(397): gst_rtmp_src_create (): /GstPlayBin:playbin/GstURIDecodeBin:uridecodebin0/GstRTMPSrc:source:
                                                                           Failed to read any data from stream, check your URL
05-06 14:22:16.063 23640-23693/org.freedesktop.gstreamer.play D/GStreamer+gst-player: 0:00:14.594952911 0xab709fb0 gstplayer.c:714:change_state:<player0> Changing app state from buffering to stopped
-----------------------------------------------
notice       Closing connection: NetStream.Play.StreamNotFound   
Pls help !!!
Comment 4 Sebastian Dröge (slomo) 2016-05-06 06:33:17 UTC
The stream also doesn't work in ffmpeg and vlc here, with the same error.
Comment 5 Miles 2016-05-06 09:22:09 UTC
i try it on Ubuntu with VLC-Player,  is not work,  but  on Win-OS use VLC-Player is normal play,   
else other try,  use  ijkplayer on Android can play
Comment 6 Nicolas Dufresne (ndufresne) 2016-05-06 13:33:50 UTC
Works with Fedora stock VLC, which is 2.2.2, can you provide your tested version of VLC ? We might find the answer in the history. Does VLC have it's own RTMP code or is it also using librtmp ?
Comment 7 Sebastian Dröge (slomo) 2016-05-06 13:45:38 UTC
I use 2.2.3 on Debian
Comment 8 Nicolas Dufresne (ndufresne) 2016-05-06 13:47:00 UTC
Hmm, could it be a regression, or a bug fix that made it fail now, highlighting a server bug ?
Comment 9 Sebastian Dröge (slomo) 2016-05-06 13:54:09 UTC
Might also be because VLC on Debian uses librtmp (and so does ffmpeg), while on Fedora (Fedora has VLC and ffmpeg?!) it uses the ffmpeg implementation for RTMP. librtmp seems rather bitrotten and non-working in general, while ffmpeg has a implementation that works more often.
Comment 10 Damian Ziobro 2017-11-03 16:50:20 UTC
Isn't it duplicate of this bug: https://bugzilla.gnome.org/show_bug.cgi?id=787102 

Patch is ready for 787102.
Comment 11 Sebastian Dröge (slomo) 2018-05-07 15:47:16 UTC
Thanks for taking the time to report this.
This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of bug 787102 ***