Steamlight error – no streams found

Forum Forums New users New Users and General Questions Steamlight error – no streams found

Tagged: 

  • This topic has 12 replies, 6 voices, and was last updated Jan 23-1:47 pm by Anonymous.
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #5026
    Member
    andfree

      I placed the Streamlight icon in the taskbar, highlighted the video address and left-clicked on the Streamlight icon:

      Attempting to obtain information about the video
      [cli][info] Found matching plugin youtube for URL http://www.youtube.com/watch?v=2M5B5aXBDwk
      error: No streams found on this URL: http://www.youtube.com/watch?v=2M5B5aXBDwk
      $ inxi -S
      System:    Host: antix1 Kernel: 4.10.5-antix.1-486-smp i686 bits: 32
                 Desktop: IceWM 1.4.2 Distro: antiX-17_386-base Heather Heyer 24 October 2017
      #5035
      Member
      maroc

        Due to a modification of YouTube the YouTube plugin of livestreamer stopped working.

        To fix this, edit file /usr/lib/python2.7/dist-packages/livestreamer/plugins/youtube.py as root and comment out line number 160 by putting a # in front:

                params = {
                    "video_id": video_id,
                #    "el": "player_embedded"
                }

        cf. http://github.com/streamlink/streamlink/issues/1421

        #5040
        Forum Admin
        anticapitalista

          Thanks maroc – bugfix livestreamer debs should hit the repos soon. Please check they work ok and fix this issue

          Philosophers have interpreted the world in many ways; the point is to change it.

          antiX with runit - leaner and meaner.

          #5059
          Member
          andfree

            To fix this, edit file /usr/lib/python2.7/dist-packages/livestreamer/plugins/youtube.py as root and comment out line number 160 by putting a # in front

            It have worked. Many thanks.
            But isn’t streamlight for all youtube videos? Because it doesn’t seem to work for videos like this one.

            #5060
            Forum Admin
            SamK

              But isn’t streamlight for all youtube videos?

              Yes, except when the video uploaded to Youtube contains DRM protection.

              #5065
              Member
              maroc

                Seems my post got lost when I tried to edit it, so I’m posting it a second time …

                Sometime ago I wrote myself a very simple bash script I called “streamyt” (based on the model of streamlight) that plays YouTube videos directly with mpv/youtube-dl and thus is able to handle protected videos. By default videos are played with 360p, but there is also an option -b for best quality. The script is only intended to be used with YouTube videos, though option -b should also work with videos from quite some other sources.

                For desktop notifications the script uses xfce4-notifyd which can be install from the repos.

                For handy use I placed a permanent icon for “streamyt” on my IceWM toolbar and set two keyboard shortcuts (one for option -b).

                #!/bin/bash
                # -----------------------------------------------------------------
                # REQUIREMENTS:
                #  mpv
                #  xclip
                #  xfce4-notifyd for desktop notifications
                #  youtube-dl
                # -----------------------------------------------------------------
                # Capture the highlighted/selected address
                selection="$(xclip -out)"
                # Desktop notification
                notify-send -t 10000 -i clock "A little patience please ..."
                # Notification when nothing has been highlighted/selected
                if [[ -z "${selection// }" ]]; then
                  killall xfce4-notifyd
                  notify-send -t 10000 -i dialog-warning "Nothing has been selected!"
                  sleep 6
                  exit
                fi
                # Play the stream with mpv
                if [[ "$1" = "-b" ]]; then
                  mpv --really-quiet --ytdl --ytdl-format=mp4 $selection # Option -b gives best video resolution
                else
                  mpv --really-quiet --ytdl --ytdl-format=18 $selection # resolution 640x360 for youtube
                fi
                # Get the exit code of mpv
                mstatus=$?
                # Close desktop notification
                killall xfce4-notifyd
                # Notification in case mpv exits with nonzero exit code 
                if [ $mstatus -ne 0 ]; then
                  notify-send -t 6000 -i dialog-error "Oops! ... mpv has exited with code" "$mstatus"
                fi
                • This reply was modified 6 years, 5 months ago by maroc.
                #5085
                Forum Admin
                rokytnji

                  No Luck for ROK. I tried Dillo and Netsurf for urls.

                  I commented out line 160 . Still no url found in Streamlight.

                  Tried streamyt. `harry@biker:~/Stuff
                  $ ls
                  cylontux.png screenshot.jpg shot.jpg streamyt

                  
                  Made it executable. Got as far as the green " Be Patient " logo in top r/h of screen. 
                  The screen would flash for split second like mpv was trying to load.
                  Then it was gone.
                  This P3 laptop may be the cause or I am just in a bad spot of the universe. I will wait for the upstream fix Anti mentioned I guess on this laptop. I guess youtube-dl , command line mpv, cclive. Might be my only options for youtube on this laptop. Even SMTube is not working on this install Error is
                  " No video url found " in smtube either. 
                  

                  harry@biker:~
                  $ smtube
                  qt5ct: using qt5ct plugin
                  Translations path: “/usr/share/smtube/translations”
                  Sig::load
                  qt5ct: D-Bus system tray: no
                  qt5ct: D-Bus global menu: no
                  BrowserWindow::loadConfig
                  DesktopInfo::isInsideScreen: geometry of screen: x:0 y:0 w:1024 h:768
                  BrowserWindow::loadConfig: cache enabled. Location: “/home/harry/.cache/smtube”
                  Players::load
                  Players::availablePlayers: 8 : “/usr/bin/mpv”
                  Players::availablePlayers: 9 : “/usr/bin/mpv”
                  MyCookieJar::load
                  MyCookieJar::load: 3 cookies loaded
                  inotify_add_watch(“/home/harry/.config/qt5ct/”) failed: “No such file or directory”
                  BrowserWindow::adjustLocation: “http://www.tonvid.com/”
                  BrowserWindow::finishLoading: url: “http://www.tonvid.com/”
                  BrowserWindow::finishLoading: add_download_button: false
                  BrowserWindow::finishLoading: external_download_url: “http://www.dlvyoutube.com/%YT_URL%”
                  MyWebView::mousePressEvent: link: “http://www.youtube.com/watch?v=OQkfDJ2zVNo”
                  MyWebView::mousePressEvent: target: “”
                  BrowserWindow::processLink: “http://www.youtube.com/watch?v=OQkfDJ2zVNo”
                  BrowserWindow::openWith: player: “mpv” url: “http://www.youtube.com/watch?v=OQkfDJ2zVNo”
                  BrowserWindow::openWith: player_id: 8 url: “http://www.youtube.com/watch?v=OQkfDJ2zVNo”
                  BrowserWindow::openWith: “mpv” can’t play this URL
                  RetrieveYoutubeUrl::fetchVideoPage: url: “http://www.youtube.com/watch?v=OQkfDJ2zVNo”
                  LoadPage::fetchPage: “http://www.youtube.com/watch?v=OQkfDJ2zVNo”
                  LoadPage::fetchPage: user agent: “”
                  LoadPage::gotResponse
                  LoadPage::gotResponse: status: 301
                  LoadPage::gotResponse: redirected: “http://www.youtube.com/watch?v=OQkfDJ2zVNo”
                  LoadPage::fetchPage: “http://www.youtube.com/watch?v=OQkfDJ2zVNo”
                  LoadPage::fetchPage: user agent: “”
                  LoadPage::gotResponse
                  LoadPage::gotResponse: status: 200
                  LoadPage::gotResponse: emit pageLoaded
                  RetrieveYoutubeUrl::videoPageLoaded
                  RetrieveYoutubeUrl::videoPageLoaded: title: “Trump Calls Non-White Countries \”S**tholes\”: The Daily Show – YouTube”
                  RetrieveYoutubeUrl::videoPageLoaded: html5player: “vflLCGcm0” locale: “en_US”
                  RetrieveYoutubeUrl::extractURLs: discarted url with itag: 22
                  RetrieveYoutubeUrl::extractURLs: discarted url with itag: 43
                  RetrieveYoutubeUrl::extractURLs: discarted url with itag: 18
                  RetrieveYoutubeUrl::extractURLs: discarted url with itag: 36
                  RetrieveYoutubeUrl::extractURLs: discarted url with itag: 17
                  RetrieveYoutubeUrl::extractURLs: discarted url with itag: 137
                  RetrieveYoutubeUrl::extractURLs: discarted url with itag: 248
                  RetrieveYoutubeUrl::extractURLs: discarted url with itag: 136
                  RetrieveYoutubeUrl::extractURLs: discarted url with itag: 247
                  RetrieveYoutubeUrl::extractURLs: discarted url with itag: 135
                  RetrieveYoutubeUrl::extractURLs: discarted url with itag: 244
                  RetrieveYoutubeUrl::extractURLs: discarted url with itag: 134
                  RetrieveYoutubeUrl::extractURLs: discarted url with itag: 243
                  RetrieveYoutubeUrl::extractURLs: discarted url with itag: 133
                  RetrieveYoutubeUrl::extractURLs: discarted url with itag: 242
                  RetrieveYoutubeUrl::extractURLs: discarted url with itag: 160
                  RetrieveYoutubeUrl::extractURLs: discarted url with itag: 278
                  RetrieveYoutubeUrl::extractURLs: discarted url with itag: 140
                  RetrieveYoutubeUrl::extractURLs: discarted url with itag: 171
                  RetrieveYoutubeUrl::extractURLs: discarted url with itag: 249
                  RetrieveYoutubeUrl::extractURLs: discarted url with itag: 250
                  RetrieveYoutubeUrl::extractURLs: discarted url with itag: 251
                  RetrieveYoutubeUrl::extractURLs: url count: 0
                  RetrieveYoutubeUrl::getVideoID: ID: “OQkfDJ2zVNo”
                  RetrieveYoutubeUrl::fetchVideoInfoPage: url: “http://www.youtube.c”
                  LoadPage::fetchPage: “http://www.youtube.com/get_video_info?video_id=OQkfDJ2zVNo&el=vevo&ps=default&eurl=&gl=US&hl=en&sts=17541”
                  LoadPage::fetchPage: user agent: “”
                  LoadPage::gotResponse
                  LoadPage::gotResponse: status: 200
                  LoadPage::gotResponse: emit pageLoaded
                  RetrieveYoutubeUrl::videoInfoPageLoaded
                  RetrieveYoutubeUrl::extractURLs: url count: 0
                  RetrieveYoutubeUrl::finish
                  RetrieveYoutubeUrl::findPreferredUrl: chosen_quality: -1
                  RetrieveYoutubeUrl::finish: p_url: “”
                  showErrorEmptyList

                  
                  Test url is
                  
                  Maybe a vevo thing? Hell if I know. youtube-dl handles it OK.
                  

                  $ youtube-dl http://www.youtube.com/watch?v=IPfJnp1guPc
                  https://www.youtube.com/watch?v= IPfJnp1guPc: Downloading webpage
                  https://www.youtube.com/watch?v= IPfJnp1guPc: Downloading video info webpage
                  https://www.youtube.com/watch?v= IPfJnp1guPc: Extracting video information
                  WARNING: unable to extract uploader nickname
                  WARNING: Requested formats are incompatible for merge and will be merged into mkv.
                  [download] Destination: Khalid – Young Dumb & Broke (Official Video)-IPfJnp1guPc.f137.mp4
                  [download] 96.0% of 60.22MiB at 704.68KiB/s ETA 00:03
                  `

                  • This reply was modified 6 years, 5 months ago by anticapitalista. Reason: shrunk video

                  Sometimes I drive a crooked road to get my mind straight.
                  I don't suffer from insanity. I enjoy every minute off it.
                  Motorcycle racing is rocket science.

                  Linux Registered User # 475019
                  How to Search for AntiX solutions to your problems

                  #5092
                  Member
                  maroc

                    The livestreamer fix is in the repos and streamlight now works fine for me. Thanks, Anti! As SamK has already pointed out, livestreamer/streamlight isn’t able to stream protected videos (such as all VEVO videos) though, has never been.

                    A small error, by the way, had crept into the above code of my script streamyt: one “fi” to many. I just edited my post and corrected the error.

                    And, Roky, SMTube gives me the same error you get! So I’m happy antiX-17 ships with gnome-mpv, which works flawlessly for me … EDIT: hell, I always mix up SMTube and SMPlayer, so: for me SMTube works with gnome-mpv or pure mpv, but not with SMPlayer.

                    • This reply was modified 6 years, 5 months ago by maroc.
                    #5096
                    Forum Admin
                    rokytnji

                      Instead of cluttering up your helpful posts in this thread. I started my own.

                      https://www.antixforum.com/forums/topic/ibm-t23-video-mpv-smtube-etc/#post-5095

                      So I take it changing player preferences in smtube fixed the url error? I’ll give that a try. Gnome MPV just gives me black window on the IBM T23. If you look at my thread.
                      I kinda explain a little better the limitations I am dealing with.

                      Sometimes I drive a crooked road to get my mind straight.
                      I don't suffer from insanity. I enjoy every minute off it.
                      Motorcycle racing is rocket science.

                      Linux Registered User # 475019
                      How to Search for AntiX solutions to your problems

                      #5097
                      Forum Admin
                      rokytnji

                        So I take it changing player preferences in smtube fixed the url error? I’ll give that a try.

                        Alrighty then. What I changed

                        players]
                        count=11
                        player_0\arguments=%u
                        player_0\binary=mpv
                        player_0\directplay=true
                        player_0\name=gnome-mpv
                        player_0\online_tv=true
                        player_0\quality=-1
                        player_0\supported_media=1
                        player_1\arguments=%u -media-title %t
                        player_1\binary=mpv
                        player_1\directplay=true
                        player_1\name=SMPlayer (audio)
                        player_1\online_tv=false
                        player_1\quality=-1
                        player_1\supported_media=2
                        player_10\arguments="--quiet --folder=/tmp --filename=%f %u"
                        player_10\binary=uget-gtk
                        player_10\directplay=false
                        player_10\name=uget
                        player_10\online_tv=false
                        player_10\quality=-1
                        player_10\supported_media=3
                        player_2\arguments=-add-to-playlist %u
                        player_2\binary=smplayer
                        player_2\directplay=true
                        player_2\name=SMPlayer (add to playlist)
                        player_2\online_tv=true
                        player_2\quality=-1
                        player_2\supported_media=3
                        player_3\arguments=%u -title %t
                        player_3\binary=mplayer
                        player_3\directplay=false
                        player_3\name=MPlayer
                        player_3\online_tv=false
                        player_3\quality=-1
                        player_3\supported_media=1
                        player_4\arguments="%u --meta-title=%t"
                        player_4\binary=vlc
                        player_4\directplay=false
                        player_4\name=VLC
                        player_4\online_tv=true
                        player_4\quality=-1
                        player_4\supported_media=3
                        player_5\arguments=%u
                        player_5\binary=dragon
                        player_5\directplay=false
                        player_5\name=Dragon Player
                        player_5\online_tv=false
                        player_5\quality=-1
                        player_5\supported_media=3
                        player_6\arguments=%u
                        player_6\binary=totem
                        player_6\directplay=false
                        player_6\name=Totem
                        player_6\online_tv=false
                        player_6\quality=-1
                        player_6\supported_media=3
                        player_7\arguments=%u
                        player_7\binary=gnome-mplayer
                        player_7\directplay=false
                        player_7\name=GNOME-MPlayer
                        player_7\online_tv=false
                        player_7\quality=-1
                        player_7\supported_media=3
                        player_8\arguments="%u --title=%t"
                        player_8\binary=mpv
                        player_8\directplay=false
                        player_8\name=mpv
                        player_8\online_tv=true
                        player_8\quality=-1
                        player_8\supported_media=1
                        player_9\arguments="--ytdl --ytdl-format=best %u"
                        player_9\binary=mpv
                        player_9\directplay=true
                        player_9\name=mpv + youtube-dl
                        player_9\online_tv=true
                        player_9\quality=-1
                        player_9\supported_media=1
                        [view]
                        statusbar=false
                        toolbar=false
                        [window]
                        font="DejaVu Sans,12,-1,5,50,0,0,0,0,0"
                        pos=@Point(0 0)
                        size=@Size(650 715)
                        style=qt5ct-style
                        

                        Now smtube is not broken on this Dell I5 laptop. I will test this on the IBM T23 next.

                        Edit: for others reading this. I went into the ~/.config/smtube/smtube.ini to make my edit. The lines are 22, 24, and 29. You can compare yours to mine I guess.

                        • This reply was modified 6 years, 5 months ago by rokytnji.

                        Sometimes I drive a crooked road to get my mind straight.
                        I don't suffer from insanity. I enjoy every minute off it.
                        Motorcycle racing is rocket science.

                        Linux Registered User # 475019
                        How to Search for AntiX solutions to your problems

                        #5417
                        Member
                        andfree
                          $ streamyt http://www.youtube.com/watch?v=v4EFddbHkRo
                          ./streamyt: line 15: notify-send: command not found
                          Failed to open VDPAU backend libvdpau_nouveau_vieux.so: cannot open shared object file: No such file or directory
                          xfce4-notifyd: no process found

                          but it works. It opens mpv and plays the video.

                          There’s something I’d like to understand. When I use the “youtube-dl” command in the terminal to download a video, I see that audio is separate from the video formats and I have to merge them in the output. Where is this merge action in the script?

                          #5705
                          Member
                          andfree

                            Sorry about the rubbish I throw among the maroc’s helpful posts.

                            When I use the “youtube-dl” command in the terminal to download a video, I see that audio is separate from the video formats and I have to merge them in the output. Where is this merge action in the script?

                            Nonsense. There are also already merged (video + audio) formats. If I could edit my posts in this thread, I would delete this question at all.

                            but it works. It opens mpv and plays the video.

                            Not in all the computers. In two of them, it didn’t:

                            $ streamyt http://www.youtube.com/watch?v=v4EFddbHkRo
                            bash: ./streamyt: Permission denied
                            $ sudo streamyt http://www.youtube.com/watch?v=v4EFddbHkRo
                            sudo: streamyt: command not found
                            #5726
                            Anonymous

                              “streamyt” (based on the model of streamlight) that plays YouTube videos directly with mpv/youtube-dl and thus is able to handle protected videos.

                              youtube-dl probably cannot decode a video which the uploader has chosen to make available in only html5 webm format (locked down with widevine EME, aka DRM)

                              edit:
                              youtube-dl may retrieve the file, but it cannot be decoded by mpv or whatever player backend

                            Viewing 13 posts - 1 through 13 (of 13 total)
                            • You must be logged in to reply to this topic.