I am wondering if anyone has used gstreamer to stream a YouTube Live
stream into v4l2sink. A pipeline like the following works with a regular YouTube stream but doesn't transfer a YouTube Live stream correctly. The stream seems to freeze after it starts . gst-launch-1.0 souphttpsrc is-live=true location="$(youtube-dl --get-url https://www.youtube.com/watch?v=5qap5aO4i9A)" ! decodebin ! videorate ! videoconvert ! "video/x-raw,format=YUY2,framerate=30/1" ! v4l2sink device=/dev/video2 Thanks for any hints. Jim _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hi,
Remove videorate and put a queue element before the sink. That *should* fix it. Easy way to test the stream works fine : gst-play-1.0 "$(youtube-dl -get-url https://www.youtube.com/watch?v=5qap5aO4i9A) BR, Edward On Thu, 2020-05-07 at 17:56 -0400, Jim Ruxton wrote: > I am wondering if anyone has used gstreamer to stream a YouTube Live > stream into v4l2sink. A pipeline like the following works with a > regular > YouTube stream but doesn't transfer a YouTube Live stream correctly. > The > stream seems to freeze after it starts . > > gst-launch-1.0 souphttpsrc is-live=true location="$(youtube-dl --get- > url > https://www.youtube.com/watch?v=5qap5aO4i9A)" ! decodebin ! videorate > ! > videoconvert ! "video/x-raw,format=YUY2,framerate=30/1" ! v4l2sink > device=/dev/video2 > > Thanks for any hints. > > Jim > > > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Thanks a lot Edward. I tried your suggestion. Unfortunately the stream
freezes after a few frames. Here is the new pipeline. I replaced the v4l2sink with glimagesink for testing. gst-launch-1.0 souphttpsrc is-live=true location="$(youtube-dl --get-url https://www.youtube.com/watch?v=5qap5aO4i9A)" ! decodebin ! videoconvert ! "video/x-raw,format=YUY2,framerate=30/1" ! queue ! glimagesink Thanks, Jim On 2020-05-08 3:51 a.m., Edward Hervey wrote: > Hi, > > Remove videorate and put a queue element before the sink. That > *should* fix it. > > Easy way to test the stream works fine : gst-play-1.0 "$(youtube-dl > -get-url https://www.youtube.com/watch?v=5qap5aO4i9A) > > BR, > > Edward > > On Thu, 2020-05-07 at 17:56 -0400, Jim Ruxton wrote: >> I am wondering if anyone has used gstreamer to stream a YouTube Live >> stream into v4l2sink. A pipeline like the following works with a >> regular >> YouTube stream but doesn't transfer a YouTube Live stream correctly. >> The >> stream seems to freeze after it starts . >> >> gst-launch-1.0 souphttpsrc is-live=true location="$(youtube-dl --get- >> url >> https://www.youtube.com/watch?v=5qap5aO4i9A)" ! decodebin ! videorate >> ! >> videoconvert ! "video/x-raw,format=YUY2,framerate=30/1" ! v4l2sink >> device=/dev/video2 >> >> Thanks for any hints. >> >> Jim >> >> >> _______________________________________________ >> gstreamer-devel mailing list >> [hidden email] >> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |