RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    [SOLVED] - Video Snaps not Playing

    Scheduled Pinned Locked Moved Help and Support
    emulationstatiosnap videogamelist.xml
    44 Posts 8 Posters 15.9k 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.
    • mituM
      mitu Global Moderator
      last edited by

      Your videos might by at fault. Depending on the scraping source, they could be using a video codec that's not supported by the video player. Which video player are you using to play the videos ? Try using the internal Vlc player to see if they play.

      W 1 Reply Last reply Reply Quote 0
      • W
        wiggy808 @mitu
        last edited by wiggy808

        @mitu Thanks for the reply, very interesting. Am I executing it properly?:

        pi@retropie:~/RetroPie/roms/mastersystem/snap $ vlc Ace\ of\ Aces.mp4

        If so, I received same errors from mp4's that do (NES) and do not (MasterSystem) play in ES.

        What does this mean?

        ClydeC 1 Reply Last reply Reply Quote 0
        • ClydeC
          Clyde @wiggy808
          last edited by Clyde

          @wiggy808 said in Video Snaps not Playing:

          If so, I received same errors from mp4's that do (NES) and do not (MasterSystem) play in ES.

          Which errors exactly?

          Here's a way to show us the codecs of the video(s) in question. You'll have to run these commands:

          sudo apt install libav-tools   # install libav-tools if necessary
          avprobe /home/pi/Retropie/roms/mastersystem/snap/Ace\ of\ Aces.mp4 2>&1 | grep Stream  # display the codecs of all streams in the file
          

          Then show us the output of the last command. The first command sudo apt … is only needed once to make sure avprobe is installed. All text behind # in a line is only a comment an can be omitted.

          edit: Some nonsense removed. 😋

          1 Reply Last reply Reply Quote 0
          • W
            wiggy808
            last edited by

            @Clyde Here is the output, looks the same (minus the kb/s) for both an mp4 that works in ES (all NES snaps work, I chose 1942.mp4 at random), and the mp4's that don't work in ES (all for the mastersystem, in this case I chose Ace of Aces at random).

            Master Systems Ace of Aces tested (don't mind the "Europe" I renamed the mp4 during some more testing):

            pi@retropie:~ $ avprobe /home/pi/RetroPie/roms/mastersystem/snap/Ace\ of\ Aces\ \(Europe\).mp4 2>&1 | grep Stream
                Stream #0.0(und): Video: h264 (High), yuv420p, 320x240 [PAR 1:1 DAR 4:3], 78 kb/s, 30 fps, 30 tbn, 60 tbc (default)
                Stream #0.1(und): Audio: aac, 48000 Hz, stereo, fltp, 126 kb/s (default)
            

            NES 1942 tested:

            pi@retropie:~ $ avprobe /home/pi/RetroPie/roms/nes/snap/1942\ \(Japan\,\ USA\).mp4 2>&1 | grep Stream
                Stream #0.0(und): Video: h264 (High), yuv420p, 320x240 [PAR 1:1 DAR 4:3], 394 kb/s, 30 fps, 30 tbn, 60 tbc (default)
                Stream #0.1(und): Audio: aac, 48000 Hz, stereo, fltp, 107 kb/s (default)
            

            Were you still interested in the errors from vlc running on the command line, or should I try something else? I didn't put it in the OP because the NES ones play fine, so didn't think it was relevant or the cause.

            ClydeC 1 Reply Last reply Reply Quote 0
            • ClydeC
              Clyde @wiggy808
              last edited by Clyde

              @wiggy808 Okay, the most common reason for non-working videos isn't the case here (yuv444 instead of yuv420, because ES' hardware-accelerated OMX player only plays the latter).

              Yes, the VLC errors are still interesting, too. My post was meant to check on both the errors and the encoding.

              edit: Does it change anything if you turn hardware acceleration in Emulation Station on or off? ("Other Settings" > "Use OMX Player (HW Accelerated)")

              edit 2: You could try to reencode the video without any changes to its codecs to see if it plays then. It may correct any errors we don't see in the stream info.

              avconv -y -i input.mp4 output.mp4
              

              Change "input" and "output" to the resp. paths+filenames.

              (From Retropie 4.4 on, avconv was replaced by ffmpeg, but it remains as an working alias, so I still use it for backwards compatibility with RP 4.3 and before.)

              1 Reply Last reply Reply Quote 0
              • H
                Hyuma
                last edited by

                same issue, i'm trying to re-encode on my computer to get compatibility with retropie

                1 Reply Last reply Reply Quote 0
                • H
                  Hyuma
                  last edited by

                  i've resolved with this command:

                  ffmpeg -i input.mp4 -vf format=yuv420p output.mp4

                  than i re-upload the video inside media/vidoes

                  ClydeC T 2 Replies Last reply Reply Quote 1
                  • ClydeC
                    Clyde @Hyuma
                    last edited by

                    @hyuma Were your videos already in yuv420p before the re-encoding? I'm asking because @wiggy808's videos are in yuv420p, and still some of them won't play.

                    1 Reply Last reply Reply Quote 0
                    • W
                      wiggy808
                      last edited by

                      I won't be home until tomorrow, but I did see your reply @Clyde and will try it and let everyone know. Hopefully changing the hardware acceleration does something, we will see. I'll try the reencode as well, it would be interesting to see what @Hyuma says about the original state of his vids.

                      1 Reply Last reply Reply Quote 0
                      • H
                        Hyuma
                        last edited by

                        @Clyde my video were yuv 4.4.4 and after the conversion they became yuv420p. To check if all was good use the command:

                        ffprobe -v verbose input.mp4

                        I've noticed that i still have 2 videos that doesn't work also after the encoding and i'm thinking it could be a VBR video codec issue but i'm not sure...

                        ClydeC 1 Reply Last reply Reply Quote 0
                        • ClydeC
                          Clyde @Hyuma
                          last edited by

                          @hyuma Thanks for the information. Yuv444 is a known problem for OMX player. There are at least two scripts to fix that for multiple videos, one by myself and one from @hiulit.

                          But @wiggy808's videos are already in yuv420p (at least the Ace of Aces video is), so alas, it's not that issue. I'm curious if re-encoding his/her videos will change anything.

                          Let's stay tuned. :)

                          1 Reply Last reply Reply Quote 0
                          • H
                            Hyuma
                            last edited by

                            Wow, good job with the script, @Clyde! I still have 2 mp4 that doesn't work also in yuv420p and i can't understand why... Here you can find the media information of video:

                            https://paste.ofcode.org/JfKAGPpCB7EJg7vtYkC7Az

                            if you can tell me why this video doens't work you will be very helpful for me! thanks

                            ClydeC 1 Reply Last reply Reply Quote 0
                            • ClydeC
                              Clyde @Hyuma
                              last edited by

                              @hyuma Thanks for the compliment. My script isn't nearly as sophisticated as @hiulit's, but it does its job in the spirit of the Unix Philosophy #1, "make each program do one thing well". 😊

                              Alas, I can't say much about your media information, as I know next to nothing about video internals. But maybe someone else here can.

                              That said, did you compare the media data of the non-working videos to that of the working videos? That may give away some clues.

                              1 Reply Last reply Reply Quote 0
                              • H
                                Hyuma
                                last edited by

                                yes I've compared and the only difference comes from VBR against CBR... but the videos working as screensaver... only in preview they doesn't work...

                                mituM 1 Reply Last reply Reply Quote 0
                                • mituM
                                  mitu Global Moderator @Hyuma
                                  last edited by mitu

                                  @hyuma Check if

                                  • You're using omxplayer for video previews, should be an Emulationstation setting.
                                  • The theme you're using has video preview support and the Gamelist View Style is set to video in the Emulationstation UI Settings.
                                  H 1 Reply Last reply Reply Quote 0
                                  • W
                                    wiggy808
                                    last edited by

                                    Just got in gang, thanks for the replies, I'm going to test now and post in a few minutes the results.

                                    1 Reply Last reply Reply Quote 0
                                    • H
                                      Hyuma @mitu
                                      last edited by

                                      @mitu yes i have both, but as I said video preview works but not all preview are working and i'm trying to understand why..

                                      mituM 1 Reply Last reply Reply Quote 0
                                      • mituM
                                        mitu Global Moderator @Hyuma
                                        last edited by

                                        @hyuma What theme are you using ? If you play the video from the CLi with omxplayer <video_file> do you get any errors or the playback is ok ?

                                        H 2 Replies Last reply Reply Quote 0
                                        • H
                                          Hyuma @mitu
                                          last edited by

                                          @mitu I tested various theme also with basic theme i had the problem, now I'll try that command to see which error i get. ;)

                                          1 Reply Last reply Reply Quote 0
                                          • H
                                            Hyuma @mitu
                                            last edited by

                                            @mitu running from terminal

                                            omxplayer input.mp4

                                            Video codec omx-h264 width 480 height 360 profile 100 fps 29.970030
                                            Audio codec aac channels 2 samplerate 44100 bitspersample 16
                                            Subtitle count: 0, state: off, index: 1, delay: 0
                                            V:PortSettingsChanged: 480x360@29.97 interlace:0 deinterlace:0 anaglyph:0 par:1.12 display:0 layer:0 alpha:255 aspectMode:0

                                            I got no error

                                            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.