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

    RetroPie 4.5.1 - control and/or emulators lock when attempting to stream to twitch - also, how do I stream to twitch?

    Scheduled Pinned Locked Moved Help and Support
    twitchstreaming4.5.1
    9 Posts 2 Posters 1.0k 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.
    • E
      etmoonshade
      last edited by etmoonshade

      Pi Model or other hardware: Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
      RetroPie Version Used: 4.5.1
      Built From: Source (RetroPie-Setup script on Debian)
      USB Devices connected: Wireless keyboard
      Controller used: Generic XBox controller
      Error messages received: None, unfortunately - here's the runcommand.log from running fceumm:

      Parameters:
      Executing: /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-fceumm/fceumm_libretro.so --config /opt/retropie/configs/nes/retroarch.cfg "/home/epsilon/RetroPie/roms/nes/Smb3_576361438584_KJ57E5.nes" --appendconfig /dev/shm/retroarch.cfg
      [libx264 @ 0x55f178c57c40] using SAR=8/7
      [libx264 @ 0x55f178c57c40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
      [libx264 @ 0x55f178c57c40] profile Main, level 2.1
      [libx264 @ 0x55f178c57c40] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:1:1 analyse=0:0 me=dia subme=0 psy=1 psy_rd=0.40:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=4 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=2 b_pyramid=2 b_adapt=0 b_bias=0 direct=1 weightb=0 open_gop=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=30.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 pb_ratio=1.30 aq=0
      [matroska @ 0x55f178c62840] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
      [matroska @ 0x55f178c62840] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
      

      As you can see, no mention of the streaming at all, though the libx264 stuff may be associated. A quick brute-force search of the various log directories doesn't find anything about "twitch.tv" either.

      Guide used:
      Essentially, none. I've looked at the following:
      https://retropie.org.uk/forum/topic/18303/livestreaming-to-twitch-on-retropie-4-4/2
      http://www.retroarch.com/index.php?page=recording

      Especially the latter seems like it should be applicable, but there's no option to set a recording destination. There is, however, the option to add a streaming location with "Twitch" streaming type. I have entered my Twitch key here in the rtmp://live.

      /$YOUR_STREAM_KEY format.

      Relevant config lines from retroarch.cfg:

      video_stream_config = ""
      video_stream_port = "56400"
      video_stream_quality = "1"
      video_stream_scale_factor = "1"
      video_stream_url = "rtmp://live.
      /<stream id edited out>"

      Emulator: lr-snes9x2010, lr-fceumm

      How to replicate the problem: Start up the in-emulator menu, select "Start Streaming" after the above config. SNES loses the controller, NES loses the controller and locks up after about 5 minutes (at least apparently - the music stops. Either way, I need to alt-tab out and Control-C to kill the process.)

      Any insight on whether the old instructions work and I need to do some weird config file edits, or if there's a new way to do things and I'm missing a step?

      (Edit: Updated the topic to encompass both questions - emulator lockup/control failure is the symptom, but the ultimate problem is that I don't seem to be able to stream to twitch)

      1 Reply Last reply Reply Quote 0
      • E
        etmoonshade
        last edited by

        For what it's worth, here's a picture of the settings under "Recording..." in RetroArch in case it helps:
        RetroArch Recording Settings

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

          You may be hitting a RetroArch bug that was fixed a few months back - https://github.com/libretro/RetroArch/issues/8782.
          Can you start with the emulator with verbose logging from Runcommand menu and then post the /dev/shm/runcomman.log to pastebin.com ?

          E 1 Reply Last reply Reply Quote 1
          • E
            etmoonshade @mitu
            last edited by

            @mitu The system was built from the retropie-setup script as of 2 days ago, so presumably whatever I pulled would have had this bugfix already? Maybe it's not working the way I think it should, but I notice it pulling a bunch of stuff from git.

            As for the logfile - hey, look at that, verbose logging. Not sure how I missed that when I was looking for it:
            https://pastebin.com/B7a2fHzs

            Thanks for taking a look.

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

              Not quite, RetroPie doesn't include the latest & greatest, it's using version 1.7.6 (which doesn't contain the fix). In fact, you can see at the top of the log

              [INFO] [recording] twitch streaming key empty
              

              which means that it doesn't correctly get the Twitch settings correctly.

              E 1 Reply Last reply Reply Quote 1
              • E
                etmoonshade @mitu
                last edited by etmoonshade

                @mitu said in RetroPie 4.5.1 - control and/or emulators lock when attempting to stream to twitch - also, how do I stream to twitch?:

                Not quite, RetroPie doesn't include the latest & greatest, it's using version 1.7.6 (which doesn't contain the fix). In fact, you can see at the top of the log

                Ah-hah. I obviously can't read logs anymore. I blame it on already spending the entire day doing the same. ;)

                Do you have any input on whether I'm likely to brick my setup if I go over to that github and rebuild retroarch from source? It looks like it's just a binary file sitting in /opt/retropie/emulators/retroarch/bin, so I should be able to back that up and drop it in as a replacement... in theory.

                Either way, thanks for the second set of eyes - although I'll be back if it still doesn't work. :D

                (edit: Okay, maybe not back like that - I do understand that this is a bug in the existing retroarch that's bundled with RetroPie, and it'll probably just be fixed on next release - I was trying to be funny, honest :P)

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

                  You can install the snap/flatpak packages for RA - but to get the latest version from RetroPie, you'd just need to modify the install script - https://github.com/RetroPie/RetroPie-Setup/blob/master/scriptmodules/emulators/retroarch.sh - and in the sources_retroarch function remove the branch number and the patches applied (they won't apply cleanly). See here.

                  Then rebuild RA from source from the RetroPie-Setup menu and re-test your setup.

                  EDIT: Note that if you modify locally the scriptmodule, updating the RetroPie-Setup script will not work. You'll have to reset the modifications with

                  cd $HOME/RetroPie-Setup
                  git reset --hard
                  

                  before updating (it will erase your local modifications).

                  E 1 Reply Last reply Reply Quote 0
                  • E
                    etmoonshade @mitu
                    last edited by

                    Huh. Okay, that seems simple enough.

                    And hey, look at that, it streams! :D

                    Again, I very much appreciate the help.

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

                      Thanks for testing, that clears it up.

                      1 Reply Last reply Reply Quote 1
                      • 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.