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

    Weird Audio issue in Splash Screen video

    Scheduled Pinned Locked Moved Help and Support
    raspberry pi 4retropie 4.6splash screensplash videosplashscreen
    15 Posts 7 Posters 2.3k 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.
    • C
      Calvorejas
      last edited by

      Hi! Thanks for the reply.
      I have tried to encode the video with Handbrake following the mediainfo you provided... It still sounds the same on my Pi :(

      Although, I notised something today, I woke up and when I turned on my Pi, obviously the Splash Screen video that I already setted yesterday (with no changes) showed up but in the first second it sounded how it should... Then it started to sound like... well, not good. But yeah, the first one or two seconds it sounded Ok. So I did a restart and I even turned Off and back On the Pi to see if it could possibly happen again. No luck with that either.
      That makes me think that RetroPie loads something during boot that messes up the Splash Screen Video audio, that's just an hypothesis. What surprises me is that when the booting process finishes and RetroPie is fully working in the menu, the audio is completely fine, in the menu and in all my games. It doesn't pressent that weird audio crackling.
      I truly don't know what this could be and if it's only me the one who is suffering from this inconvenience.

      R 1 Reply Last reply Reply Quote 0
      • R
        ReadyPlayaWon Banned @Calvorejas
        last edited by ReadyPlayaWon

        @Calvorejas

        Try this ...

        http://www.mediafire.com/file/d2rk6hz74fimchq/Retro+Rider+(Re-encode).mp4/file

        i re-encoded the file using ShanaEncoder (i'm not a fan of Handbrake)

        https://sourceforge.net/projects/shanaencoder/

        mediainfo ... (changes are .. constant framerate at 25fps, Profile Level 5.1, 4 Ref frames, Bitrate 3000kb/s,)

        General
        Complete name                            : F:\Retro Rider (Re-encode).mp4
        Format                                   : MPEG-4
        Format profile                           : Base Media
        Codec ID                                 : isom (isom/iso2/avc1/mp41)
        File size                                : 5.95 MiB
        Duration                                 : 16 s 115 ms
        Overall bit rate                         : 3 098 kb/s
        Writing application                      : ShanaEncoder
        
        Video
        ID                                       : 1
        Format                                   : AVC
        Format/Info                              : Advanced Video Codec
        Format profile                           : High@L5.1
        Format settings, CABAC                   : Yes
        Format settings, ReFrames                : 4 frames
        Codec ID                                 : avc1
        Codec ID/Info                            : Advanced Video Coding
        Duration                                 : 16 s 0 ms
        Bit rate                                 : 3 000 kb/s
        Width                                    : 1 920 pixels
        Height                                   : 1 080 pixels
        Display aspect ratio                     : 16:9
        Frame rate mode                          : Constant
        Frame rate                               : 25.000 FPS
        Color space                              : YUV
        Chroma subsampling                       : 4:2:0
        Bit depth                                : 8 bits
        Scan type                                : Progressive
        Bits/(Pixel*Frame)                       : 0.058
        Stream size                              : 5.69 MiB (96%)
        Writing library                          : x264 core 155 r2901 7d0ff22
        Encoding settings                        : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=2 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=0 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=8 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=2pass / mbtree=1 / bitrate=3000 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
        
        Audio
        ID                                       : 2
        Format                                   : AAC
        Format/Info                              : Advanced Audio Codec
        Format profile                           : LC
        Codec ID                                 : 40
        Duration                                 : 16 s 115 ms
        Bit rate mode                            : Constant
        Bit rate                                 : 128 kb/s
        Channel(s)                               : 2 channels
        Channel positions                        : Front: L R
        Sampling rate                            : 44.1 kHz
        Frame rate                               : 43.066 FPS (1024 spf)
        Compression mode                         : Lossy
        Stream size                              : 252 KiB (4%)
        Default                                  : Yes
        Alternate group                          : 1
        

        My cmdline.txt file in the /boot directory of the Pi4

        console=serial0,115200 console=tty3 root=PARTUUID=e22bcd10-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait loglevel=3 consoleblank=0 plymouth.enable=0 logo.nologo vt.global_cursor_default=0 quiet
        

        My config.txt file in the /boot directory of the Pi4 (ignore the overscan settings and overclock settings as they are custom to my homemade Arcade Bartop and the overclock settings are very stable for my Pi4 after months of no problems)

        # For more options and information see
        # http://rpf.io/configtxt
        # Some settings may impact device functionality. See link above for details
        
        # uncomment if you get no picture on HDMI for a default "safe" mode
        #hdmi_safe=1
        
        # uncomment this if your display has a black border of unused pixels visible
        # and your display can output without overscan
        # disable_overscan=1
        
        # uncomment the following to adjust overscan. Use positive numbers if console
        # goes off screen, and negative if there is too much border
        overscan_left=18
        overscan_right=20
        overscan_top=45
        overscan_bottom=15
        
        # uncomment to force a console size. By default it will be display's size minus
        # overscan.
        framebuffer_width=640
        framebuffer_height=480
        
        # uncomment if hdmi display is not detected and composite is being output
        hdmi_force_hotplug=1
        
        # uncomment to force a specific HDMI mode (this will force VGA)
        # hdmi_group=2
        # hdmi_mode=35
        
        # uncomment to force a HDMI mode rather than DVI. This can make audio work in
        # DMT (computer monitor) modes
        #hdmi_drive=2
        
        # uncomment to increase signal to HDMI, if you have interference, blanking, or
        # no display
        # config_hdmi_boost=4
        
        # uncomment for composite PAL
        #sdtv_mode=2
        
        #uncomment to overclock the arm. 700 MHz is the default.
        
        over_voltage=6
        arm_freq=1875
        gpu_freq=650
        v3d_freq=750
        core_freq=550
        
        # Uncomment some or all of these to enable the optional hardware interfaces
        #dtparam=i2c_arm=on
        #dtparam=i2s=on
        #dtparam=spi=on
        
        # Uncomment this to enable infrared communication.
        #dtoverlay=gpio-ir,gpio_pin=17
        #dtoverlay=gpio-ir-tx,gpio_pin=18
        
        # Additional overlays and parameters are documented /boot/overlays/README
        
        # Enable audio (loads snd_bcm2835)
        dtparam=audio=on
        
        [pi4]
        # Enable DRM VC4 V3D driver on top of the dispmanx display stack
        
        dtoverlay=vc4-fkms-v3d
        max_framebuffers=2
        
        [all]
        #dtoverlay=vc4-fkms-v3d
        #overscan_scale=1
        
        disable_splash=1
        avoid_warnings=1
        avoid_warnings=2
        gpu_mem=256
        
        1 Reply Last reply Reply Quote 0
        • C
          Calvorejas
          last edited by

          @ReadyPlayaWon
          Thanks a lot for your help.
          Unfortunately the problem persist, the crackling is still present even when using your video.
          I'll attach my config.txt and my cmdline.txt:

          config.txt

          # For more options and information see
          # http://rpf.io/configtxt
          # Some settings may impact device functionality. See link above for details
          
          # uncomment if you get no picture on HDMI for a default "safe" mode
          #hdmi_safe=1
          
          # uncomment this if your display has a black border of unused pixels visible
          # and your display can output without overscan
          disable_overscan=1
          
          # uncomment the following to adjust overscan. Use positive numbers if console
          # goes off screen, and negative if there is too much border
          #overscan_left=16
          #overscan_right=16
          #overscan_top=16
          #overscan_bottom=16
          
          # uncomment to force a console size. By default it will be display's size minus
          # overscan.
          #framebuffer_width=1280
          #framebuffer_height=720
          
          # uncomment if hdmi display is not detected and composite is being output
          #hdmi_force_hotplug=1
          
          # uncomment to force a specific HDMI mode (this will force VGA)
          #hdmi_group=1
          #hdmi_mode=1
          
          # uncomment to force a HDMI mode rather than DVI. This can make audio work in
          # DMT (computer monitor) modes
          #hdmi_drive=2
          
          # uncomment to increase signal to HDMI, if you have interference, blanking, or
          # no display
          #config_hdmi_boost=4
          
          # uncomment for composite PAL
          #sdtv_mode=2
          
          #uncomment to overclock the arm. 700 MHz is the default.
          arm_freq=2100
          gpu_freq=750
          over_voltage=6
          
          # Uncomment some or all of these to enable the optional hardware interfaces
          #dtparam=i2c_arm=on
          #dtparam=i2s=on
          #dtparam=spi=on
          
          # Uncomment this to enable infrared communication.
          #dtoverlay=gpio-ir,gpio_pin=17
          #dtoverlay=gpio-ir-tx,gpio_pin=18
          
          # Additional overlays and parameters are documented /boot/overlays/README
          
          # Enable audio (loads snd_bcm2835)
          dtparam=audio=on
          
          [pi4]
          # Enable DRM VC4 V3D driver on top of the dispmanx display stack
          dtoverlay=vc4-fkms-v3d
          max_framebuffers=2
          
          [all]
          #dtoverlay=vc4-fkms-v3d
          overscan_scale=1
          
          

          cmdline.txt

          console=serial0,115200 console=tty3 root=PARTUUID=e22bcd10-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait loglevel=3 consoleblank=0 plymouth.enable=0
          

          Only difference I noticed between files is that in config.txt my Overscan and Overclock settings are different and in cmdline.txt I don't have the following code:

          logo.nologo vt.global_cursor_default=0 quiet
          

          In your cmdline.txt that code I just pasted here is at the end of the file, in mine that code doesn't exist... I don't know if the problem could have something to do with that. Should I edit my cmdline.txt and add that line of code (that I don't even know what it does... )?
          I'm afraid that something could break.

          R 1 Reply Last reply Reply Quote 0
          • R
            ReadyPlayaWon Banned @Calvorejas
            last edited by ReadyPlayaWon

            @Calvorejas said in Weird Audio issue in Splash Screen video:

            Should I edit my cmdline.txt and add that line of code (that I don't even know what it does... )?

            logo.nologo vt.global_cursor_default=0 quiet
            

            it just disables any logos, blinking cursors and verbose messages when booting up


            You do realize there is crackling in the Audio even when you play the video file on a PC (and also in the MEGA link of the source video you provided)... pretty sure that's intentional along with the VHS look of the video.

            Here's a question ... have you tried other video's ?

            If there is no problem with the audio, then i don't think there is a problem ... except what you're hearing, which is on purpose. (like digitally added film grain on a movie shot digitally ... as an artistic choice by the film makers.)

            1 Reply Last reply Reply Quote 0
            • C
              Calvorejas
              last edited by

              Hi.
              The crackling is not present in the source video, so when I play the video on my PC it does not have that weird audio crackling.

              It only happens when the Pi 4 boots and the Splash Screen appears.

              It is very noticeable in the links I provided, the crackling is not present in the source video, but in the other video I provided (Which is basically me recording Pi's boot process with my phone), there is crackling in the audio of the video. It is not intentional because if it was, then I assume that it would also be perceptible in the source video file (the one that's not recorded by me with my phone.) when played with a PC or any kind of device, and that's not the case.

              I also tried this video: Intro
              And the crackling also happens on this one, It is less perceptible, yet, it's still present.

              I truly don't know what could it be, seriously... I legit don't know what's happening. The sound is perfectly fine when the boot process has finished and the Splash Screen is gone leaving me in the menu... The background music sounds like it should, the games sound like they should... Everything works perfectly fine except of the Splash Screen.

              I even though about that 3.5mm Jack Switcher I'm using to change the source of the audio with just one press of a button so that I could use my speakers with the Pi or with my phone, for example, everytime I want. Even removing it and connecting the speakers directly to the Pi makes no difference whatsoever.

              I'm thinking about changing back the audio output from 3.5mm Jack to HDMI and see what happens. If that removes the crackling I'll have to bypass the Jack through the HDMI Monitor to my speakers and see if the problem is gone (In case that using the HDMI as audio output works, of course).

              I'll do that as soon as I can (because I have class in an hour). I'll let you know the result.

              Again, thanks a lot for the help.

              1 Reply Last reply Reply Quote 0
              • C
                Calvorejas
                last edited by

                Hi @ReadyPlayaWon
                I finally was able to try what I told you... I switched from 3.5mm Jack to HDMI and there is no audio crackling, I tried every video I have and it works fine, the audio is quite lower than the one outputted through the 3.5mm Jack to my dedicated speakers, but the audio sounds fine... I switched to 3.5mm Jack again and the problem came back instantly, the Splash Screen has crackling again.

                Having that in mind, I can affirm that this only happens with analog audio, with the 3.5mm Jack, I don't know if it is a generalised problem or something. Do you use your Raspberry with HDMI audio? Could you try to use analog audio to check if is there any noticeable change in the Splash Screen playback (in case you are not already using it instead of the HDMI one)?
                If the problem also happens to you, then I can assume that this may be a generalized problem, probably a driver related problem... Again, I'm quite far from being an computer expert but that's just intuition.
                Looking forward to your reply.

                Thanks a lot for your help, I realy appreciate it!

                1 Reply Last reply Reply Quote 0
                • C
                  Calvorejas
                  last edited by

                  Well, the problem is still present. I don't know at this point if It has more to do with RetroPie or with the Pi 4 firmware... Because it is noticeable prior to RetroPie completing the booting process, not after. When RetroPie finishes the booting process and you get access to the menus, to your "Systems" section, audio through the 3.5mm Jack works flawlessly (In background music using BGM Player and ingame.).

                  I don't spect to get any more help than the one I received, which I am very greatful for... But it would be cool if this gets researched by someone with enough knowledge to actually be able to troubleshoot this problematic.

                  For now I'm using another Splash Screen video, I'm using the second Splash Screen I shared here through a link to MEGA named just "Intro"... With that Splash Screen, the "audio crackling" (As I name it) is less perceptable, still present, but it at least doesn't sound like the speakers are shorting out and about to explode.

                  Thanks for all the help you offered me @ReadyPlayaWon.
                  Greetings.

                  1 Reply Last reply Reply Quote 0
                  • B
                    BluuSlurpi
                    last edited by

                    Hey there!
                    I'm having the same exact issue. Splash screen audio works just fine through HDMI, but when I connect a speaker through my 3.5mm jack, the splash screen audio is garbled and grainy. Everything else is just fine, the BGM in the menus, game audio, everything works perfectly, EXCEPT for my video splash screens.

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

                      Same problem here. Bad audio only in the splash screen video in a Rasperry 4 through the 3.5mm output

                      The same video sounds ok when played as splashcreen on a raspberry pi3b+

                      1 Reply Last reply Reply Quote 0
                      • G
                        ginobambino10
                        last edited by

                        Hey - raspberry pi 3b+ here - i was getting crackling when I plugged in my monster bluetooth speaker in via audio jack (it also had an audio jack). Then tried very old computer speakers, no crackling...not sure if this will help you at all, but worth noting in this thread.

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

                          try change the line in the /opt/retropie/supplementary/splashcreen/asplashscreen.sh from this:

                          omxplayer --no-osd -o both -b --layer 10000 "$line"

                          to this:

                          omxplayer --no-osd -o local -b --layer 10000 "$line"

                          C T 2 Replies Last reply Reply Quote 1
                          • C
                            Calvorejas @huhogany
                            last edited by Calvorejas

                            @huhogany THANK YOU!!! FINALLY!!
                            This worked! The weird audio buzzing "bug" is finally gone! Can't be happier.
                            Can't thank you enough. After months trying to figure it out and the problem is finally gone.
                            Thank you.

                            Hope that your solution also helps other people facing the same issue.

                            1 Reply Last reply Reply Quote 0
                            • T
                              Thug @huhogany
                              last edited by Thug

                              @huhogany Hi. where do i even find that line /opt/retropie....etc, etc? I am so lost and confused. Do I look for it on pc or use the pi4 gui screen? i have no idea where to find this. Is it a command line?

                              UPDATE: I got it to work. What I did...

                              Updated post fixes in vman 512 image... reboot
                              options
                              system tools
                              audio settings
                              set audio output to headphones

                              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.