GNOME Bugzilla – Bug 765972
RTMP streamer cannot play
Last modified: 2018-05-07 15:47:16 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 ?
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 ?
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
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 !!!
The stream also doesn't work in ffmpeg and vlc here, with the same error.
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
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 ?
I use 2.2.3 on Debian
Hmm, could it be a regression, or a bug fix that made it fail now, highlighting a server bug ?
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.
Isn't it duplicate of this bug: https://bugzilla.gnome.org/show_bug.cgi?id=787102 Patch is ready for 787102.
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 ***