RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Can EmulationStation play video from a Youtube link?

    Scheduled Pinned Locked Moved Ideas and Development
    videoyoutubescraper
    11 Posts 6 Posters 2.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      sselph
      last edited by

      Hi,

      I am adding support for ArcadeItalia's videos in my scraper. They also have youtube id's and links. I think VLC can play youtube but didn't know if that was supported in code or if it would be preferable or not.

      Auto-scraper: https://github.com/sselph/scraper
      Donate to Extra-Life 2018 and help save lives: https://goo.gl/diu5oU

      meleuM 1 Reply Last reply Reply Quote 0
      • meleuM
        meleu @sselph
        last edited by

        @sselph not sure if your intention in this post is also collect opinions... but if I had this feature in ES I would surely prefer to keep it disabled.

        • Useful topics
        • joystick-selection tool
        • rpie-art tool
        • achievements I made
        S 1 Reply Last reply Reply Quote 0
        • S
          sselph @meleu
          last edited by

          @meleu I was trying to determine if it was worth adding a feature to add links to videos instead of downloading them. If ES can't even play them it is obviously not worth it. If it can play them but the experience would be subpar it might not be worth it either.

          Auto-scraper: https://github.com/sselph/scraper
          Donate to Extra-Life 2018 and help save lives: https://goo.gl/diu5oU

          herb_fargusH 1 Reply Last reply Reply Quote 1
          • HexH
            Hex
            last edited by

            @sselph I think it is doable on pi2/3 but not on 1/Zw. If you want I can help with this.

            Sent from 20,000 leagues under the sea.

            Powersaver Emulation station : https://github.com/hex007/EmulationStation
            ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

            1 Reply Last reply Reply Quote 0
            • herb_fargusH
              herb_fargus administrators @sselph
              last edited by

              @sselph I'm not sure about Emulationstation but it's possible it may be an option in the future with the Pegasus front-end @fluffypillow is developing as well Still doesn't have a beta yet though so I'm not sure if/when that will happen

              If you read the documentation it will answer 99% of your questions: https://retropie.org.uk/docs/

              Also if you want a solution to your problems read this first: https://retropie.org.uk/forum/topic/3/read-this-first

              1 Reply Last reply Reply Quote 1
              • fluffypillowF
                fluffypillow
                last edited by

                Technically it's possible in Pegasus, but that'd need developing a YouTube-specific plugin, since you can't just access the video stream as-is.

                1 Reply Last reply Reply Quote 1
                • S
                  sselph
                  last edited by

                  Thanks. I also looked on youtube's developer site and the only supported option is to play in an iframe so not something that is supported even if it was possible for a library to play it. So I won't spent much time with that.

                  @herb_fargus thanks for letting me know about @fluffypillow 's project. It looks cool. I need to discuss to see if my scraper library could be used but that is a discussion for another place.

                  Auto-scraper: https://github.com/sselph/scraper
                  Donate to Extra-Life 2018 and help save lives: https://goo.gl/diu5oU

                  1 Reply Last reply Reply Quote 0
                  • fluffypillowF
                    fluffypillow
                    last edited by

                    @sselph there're guides for Android/iOS too, if those plugins are open source and more than just a webview wrapper, it might be useful. If not, we're stuck with the iframe option, which would require an embedded browser engine, and that's quite unstable in my experience. Alternatively, we can also just ask the OS to open the video in the default browser.

                    1 Reply Last reply Reply Quote 0
                    • HexH
                      Hex
                      last edited by

                      ES uses vlc and vlc supports youtube streaming so it might be possible. @sselph can you give me some time before abandoning the idea.

                      Sent from 20,000 leagues under the sea.

                      Powersaver Emulation station : https://github.com/hex007/EmulationStation
                      ES dev script : https://github.com/hex007/es-dev/blob/master/es-tests.sh

                      1 Reply Last reply Reply Quote 1
                      • fluffypillowF
                        fluffypillow
                        last edited by

                        Nice, if it works in VLC, we can make likely make it work in ES/Pegasus as well.

                        1 Reply Last reply Reply Quote 0
                        • pjftP
                          pjft
                          last edited by

                          This is a nice idea in concept. While it doesn't at the moment support it, it wouldn't be a stretch to implement.

                          That being said, VLC on the Pi is already quite sub-optimal, having it stream a video from YouTube, unless we can specify the quality of the stream to be one of the lower ones (and even so) might be a bit more resource intensive than ideal for the little Pi.

                          Might be worth testing out rendering a random videogame snap that would come from ArcadeItalia via VLC in the command line, and see how it'd perform, and then decide whether it's worth investing in it at the moment. That'd be my recommendation.

                          OMXPlayer also allows for that, but it requires a bit more tweaking.

                          Anyway, for non-Pi systems, and for users who'd be permanently online and have good bandwidth, that would be a welcome addition I imagine.

                          That being said, a bit of a cautionary tale: given that neither VLC nor OMXPlayer are using any sort of official API, things might break at a moment's notice if things change on the YouTube side of things. Been there, had that happen a few times with such things.

                          Thanks!

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post

                          Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                          Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.