libretro / Lakka-LibreELEC

Lakka is a lightweight Linux distribution that transforms a small computer into a full blown game console.
https://www.lakka.tv
1.76k stars 289 forks source link

Recording / Streaming is not working. (lakka 3.6 or latest nightly build) #1563

Closed ups-ups closed 2 years ago

ups-ups commented 2 years ago

logs: [INFO] [CORE]: No content, starting dummy core. [INFO] [Core]: Content ran for a total of: 00 hours, 00 minutes, 00 seconds. [INFO] [Core]: Unloading core.. [INFO] [Core]: Unloading core symbols.. [INFO] Threaded video stats: Frames pushed: 1374, Frames dropped: 0. [INFO] [Config]: Loading config from: "/storage/.config/retroarch/config/RetroArch-1210-014321.cfg". [INFO] [Config]: Saved new config to "/storage/.config/retroarch/config/RetroArch-1210-014321.cfg".

[INFO] [CONTENT LOAD]: Updating firmware status for: /tmp/cores/fbneo_libretro.so on /tmp/system [INFO] [CORE]: Using content: /storage/roms/downloads/alienar.zip. [INFO] [Core]: Content ran for a total of: 00 hours, 00 minutes, 00 seconds. [INFO] [Core]: Unloading core.. [INFO] [Core]: Unloading core symbols.. [INFO] Threaded video stats: Frames pushed: 1496, Frames dropped: 0. [INFO] RetroArch 1.9.13 (Git fca72f67d1) [INFO] === Build ======================================= [INFO] Capabilities: ASIMD [INFO] Built: Nov 13 2021 [INFO] Version: 1.9.13 [INFO] Git: fca72f67d1 [INFO] ================================================= [INFO] [Input]: Found input driver: "udev". [INFO] [Core]: Loading dynamic libretro core from: "/tmp/cores/fbneo_libretro.so" [INFO] [Overrides]: No core-specific overrides found at "/storage/.config/retroarch/config/FinalBurn Neo/FinalBurn Neo.cfg". [INFO] [Overrides]: No content-dir-specific overrides found at "/storage/.config/retroarch/config/FinalBurn Neo/downloads.cfg". [INFO] [Overrides]: No game-specific overrides found at "/storage/.config/retroarch/config/FinalBurn Neo/alienar.cfg". [INFO] [Remaps]: Remap directory: "/storage/remappings". [INFO] [Overrides]: Redirecting save file to "/storage/savefiles/alienar.srm". [INFO] [Overrides]: Redirecting save state to "/storage/savestates/alienar.state".

[INFO] [CONTENT LOAD]: Content loading skipped. Implementation will load it on its own.

[libretro INFO] Setting save dir to /storage/savefiles [INFO] [Environ]: SYSTEM_DIRECTORY: "/tmp/system". [libretro INFO] Setting system dir to /tmp/system

[libretro INFO] Initialize DIP switches.

[libretro INFO] [FBNeo] Searching all possible locations for romset alienar [libretro INFO] [FBNeo] No patched romset found at /tmp/system/fbneo/patched/alienar [libretro INFO] [FBNeo] Romset found at /storage/roms/downloads/alienar [libretro INFO] [FBNeo] No romset found at /tmp/system/fbneo/alienar [libretro INFO] [FBNeo] No romset found at /tmp/system/alienar [libretro INFO] [FBNeo] Using ROM with known crc 0x6feb0314 and name aarom10 from archive /storage/roms/downloads/alienar [libretro INFO] [FBNeo] Using ROM with known crc 0xae3a270e and name aarom11 from archive /storage/roms/downloads/alienar [libretro INFO] [FBNeo] Using ROM with known crc 0x6be9f09e and name aarom12 from archive /storage/roms/downloads/alienar [libretro INFO] [FBNeo] Using ROM with known crc 0xbb0c21be and name aarom01 from archive /storage/roms/downloads/alienar [libretro INFO] [FBNeo] Using ROM with known crc 0x165acd37 and name aarom02 from archive /storage/roms/downloads/alienar [libretro INFO] [FBNeo] Using ROM with known crc 0xe5d51d92 and name aarom03 from archive /storage/roms/downloads/alienar [libretro INFO] [FBNeo] Using ROM with known crc 0x24f6feb8 and name aarom04 from archive /storage/roms/downloads/alienar [libretro INFO] [FBNeo] Using ROM with known crc 0x5b1ac59b and name aarom05 from archive /storage/roms/downloads/alienar [libretro INFO] [FBNeo] Using ROM with known crc 0xda7195a2 and name aarom06 from archive /storage/roms/downloads/alienar [libretro INFO] [FBNeo] Using ROM with known crc 0xf9812be4 and name aarom07 from archive /storage/roms/downloads/alienar [libretro INFO] [FBNeo] Using ROM with known crc 0xcd7f3a87 and name aarom08 from archive /storage/roms/downloads/alienar [libretro INFO] [FBNeo] Using ROM with known crc 0xe6ce77b4 and name aarom09 from archive /storage/roms/downloads/alienar [libretro INFO] [FBNeo] No missing files, proceeding [libretro INFO] [FBNeo] Samplerate set to 48000 [libretro INFO] [FBNeo] Applied dipswitches from core options [libretro INFO] [FBNeo] Initialized driver for alienar [libretro INFO] [FBNeo] Adjusted audio buffer to match driver's refresh rate (60.000000 Hz) [libretro INFO] [Cheevos] System RAM set to 0x345db450, size is 66072 [libretro WARN] [FBNeo] Game has no sound [INFO] [Environ]: SET_ROTATION: 0 [INFO] [Environ]: SET_PIXEL_FORMAT: XRGB8888. [libretro INFO] [FBNeo] Driver alienar was successfully started : game's full name is Alien Arena [INFO] [SRAM]: Skipping SRAM load. [INFO] Version of libretro API: 1 [INFO] Compiled against API: 1 [INFO] [Audio]: Set audio input rate to: 48000.00 Hz. [INFO] [Video]: Video @ fullscreen [INFO] [Video]: Starting threaded video driver ... [INFO] [DRM]: Found 2 connectors. [INFO] [DRM]: Connector 0 connected: yes [INFO] [DRM]: Connector 0 has 32 modes. [INFO] [DRM]: Connector 0 assigned to monitor index: #1. [INFO] [DRM]: Connector 1 connected: no [INFO] [DRM]: Connector 1 has 3 modes. [INFO] [DRM]: Mode 0: (1280x720) 1280 x 720, 60.000000 Hz [INFO] [DRM]: Mode 1: (1920x1080) 1920 x 1080, 60.000000 Hz [INFO] [DRM]: Mode 2: (1920x1080) 1920 x 1080, 59.940201 Hz [INFO] [DRM]: Mode 3: (1920x1080i) 1920 x 1080, 30.000000 Hz [INFO] [DRM]: Mode 4: (1920x1080i) 1920 x 1080, 29.970100 Hz [INFO] [DRM]: Mode 5: (1920x1080) 1920 x 1080, 50.000000 Hz [INFO] [DRM]: Mode 6: (1920x1080i) 1920 x 1080, 25.000000 Hz [INFO] [DRM]: Mode 7: (1600x1200) 1600 x 1200, 60.000000 Hz [INFO] [DRM]: Mode 8: (1680x1050) 1680 x 1050, 59.883251 Hz [INFO] [DRM]: Mode 9: (1400x1050) 1400 x 1050, 59.947769 Hz [INFO] [DRM]: Mode 10: (1280x1024) 1280 x 1024, 75.024673 Hz [INFO] [DRM]: Mode 11: (1280x1024) 1280 x 1024, 60.019741 Hz [INFO] [DRM]: Mode 12: (1440x900) 1440 x 900, 59.901459 Hz [INFO] [DRM]: Mode 13: (1280x960) 1280 x 960, 60.000000 Hz [INFO] [DRM]: Mode 14: (1366x768) 1366 x 768, 59.789539 Hz [INFO] [DRM]: Mode 15: (1360x768) 1360 x 768, 60.015163 Hz [INFO] [DRM]: Mode 16: (1280x800) 1280 x 800, 59.909546 Hz [INFO] [DRM]: Mode 17: (1280x768) 1280 x 768, 59.870228 Hz [INFO] [DRM]: Mode 18: (1280x720) 1280 x 720, 59.940201 Hz [INFO] [DRM]: Mode 19: (1280x720) 1280 x 720, 50.000000 Hz [INFO] [DRM]: Mode 20: (1024x768) 1024 x 768, 75.028580 Hz [INFO] [DRM]: Mode 21: (1024x768) 1024 x 768, 70.069359 Hz [INFO] [DRM]: Mode 22: (1024x768) 1024 x 768, 60.003841 Hz [INFO] [DRM]: Mode 23: (800x600) 800 x 600, 60.316540 Hz [INFO] [DRM]: Mode 24: (720x576) 720 x 576, 50.000000 Hz [INFO] [DRM]: Mode 25: (720x576i) 720 x 576, 25.000000 Hz [INFO] [DRM]: Mode 26: (720x480) 720 x 480, 60.000000 Hz [INFO] [DRM]: Mode 27: (720x480) 720 x 480, 59.940060 Hz [INFO] [DRM]: Mode 28: (720x480i) 720 x 480, 30.001110 Hz [INFO] [DRM]: Mode 29: (720x480i) 720 x 480, 29.970030 Hz [INFO] [DRM]: Mode 30: (640x480) 640 x 480, 60.000000 Hz [INFO] [DRM]: Mode 31: (640x480) 640 x 480, 59.940475 Hz [INFO] [GL]: Found GL context: kms [INFO] [GL]: Detecting screen resolution 1280x720. [INFO] [EGL] Found EGL_EXT_platform_base, trying eglGetPlatformDisplayEXT [INFO] [EGL]: EGL version: 1.4 [INFO] [EGL]: Current context: 0x7f9c00cb20. [INFO] [KMS]: New FB: 1280x720 (stride: 5120). [INFO] [GL]: Vendor: Broadcom, Renderer: VC4 V3D 2.1. [INFO] [GL]: Version: OpenGL ES 2.0 Mesa 21.3.0. [INFO] [GL]: Using resolution 1280x720 [INFO] [GL]: Default shader backend found: glsl. [INFO] [Shader driver]: Using GLSL shader backend. [WARN] [GL]: Stock GLSL shaders will be used. [INFO] [GLSL]: Found GLSL vertex shader. [INFO] Shader log: 0:3(12): warning: extension `GL_OES_standard_derivatives' unsupported in vertex shader

[INFO] [GLSL]: Found GLSL fragment shader. [INFO] Shader log: 0:3(12): warning: extension `GL_OES_standard_derivatives' unsupported in fragment shader

[INFO] [GLSL]: Linking GLSL program. [INFO] [GLSL]: Found GLSL vertex shader. [INFO] Shader log: 0:3(12): warning: extension `GL_OES_standard_derivatives' unsupported in vertex shader

[INFO] [GLSL]: Found GLSL fragment shader. [INFO] Shader log: 0:3(12): warning: extension `GL_OES_standard_derivatives' unsupported in fragment shader

[INFO] [GLSL]: Linking GLSL program. [INFO] [GLSL]: Found GLSL vertex shader. [INFO] Shader log: 0:3(12): warning: extension `GL_OES_standard_derivatives' unsupported in vertex shader

[INFO] [GLSL]: Found GLSL fragment shader. [INFO] Shader log: 0:3(12): warning: extension `GL_OES_standard_derivatives' unsupported in fragment shader

[INFO] [GLSL]: Linking GLSL program. [INFO] Setting up menu pipeline shaders for XMB ... [INFO] [GLSL]: Compiling ribbon shader.. [INFO] [GLSL]: Found GLSL vertex shader. [INFO] Shader log: 0:3(12): warning: extension `GL_OES_standard_derivatives' unsupported in vertex shader

[INFO] [GLSL]: Found GLSL fragment shader. [INFO] Shader log: 0:3(12): warning: extension `GL_OES_standard_derivatives' unsupported in fragment shader

[INFO] [GLSL]: Linking GLSL program. [INFO] [GLSL]: Compiling simple ribbon shader.. [INFO] [GLSL]: Found GLSL vertex shader. [INFO] Shader log: 0:3(12): warning: extension `GL_OES_standard_derivatives' unsupported in vertex shader

[INFO] [GLSL]: Found GLSL fragment shader. [INFO] Shader log: 0:3(12): warning: extension `GL_OES_standard_derivatives' unsupported in fragment shader

[INFO] [GLSL]: Linking GLSL program. [INFO] [GLSL]: Compiling snow shader.. [INFO] [GLSL]: Found GLSL vertex shader. [INFO] Shader log: 0:3(12): warning: extension `GL_OES_standard_derivatives' unsupported in vertex shader

[INFO] [GLSL]: Found GLSL fragment shader. [INFO] Shader log: 0:3(12): warning: extension `GL_OES_standard_derivatives' unsupported in fragment shader

[INFO] [GLSL]: Linking GLSL program. [INFO] [GLSL]: Compiling modern snow shader.. [INFO] [GLSL]: Found GLSL vertex shader. [INFO] Shader log: 0:3(12): warning: extension `GL_OES_standard_derivatives' unsupported in vertex shader

[INFO] [GLSL]: Found GLSL fragment shader. [INFO] Shader log: 0:3(12): warning: extension `GL_OES_standard_derivatives' unsupported in fragment shader

[INFO] [GLSL]: Linking GLSL program. [INFO] [GLSL]: Compiling bokeh shader.. [INFO] [GLSL]: Found GLSL vertex shader. [INFO] Shader log: 0:3(12): warning: extension `GL_OES_standard_derivatives' unsupported in vertex shader

[INFO] [GLSL]: Found GLSL fragment shader. [INFO] Shader log: 0:3(12): warning: extension `GL_OES_standard_derivatives' unsupported in fragment shader

[INFO] [GLSL]: Linking GLSL program. [INFO] [GLSL]: Compiling snowflake shader.. [INFO] [GLSL]: Found GLSL vertex shader. [INFO] Shader log: 0:3(12): warning: extension `GL_OES_standard_derivatives' unsupported in vertex shader

[INFO] [GLSL]: Found GLSL fragment shader. [INFO] Shader log: 0:3(12): warning: extension `GL_OES_standard_derivatives' unsupported in fragment shader

[INFO] [GLSL]: Linking GLSL program. [INFO] [GL]: Using 4 textures. [INFO] [GL]: Loaded 1 program(s). [INFO] [Font]: Using font rendering backend: freetype. [INFO] [Video]: Graphics driver did not initialize an input driver. Attempting to pick a suitable driver. [WARN] [udev]: Full-screen pointer won't be available. [INFO] [udev]: Keyboard #0: "HID 0513:0318" (/dev/input/event0). [INFO] [udev]: Keyboard #1: "HID 0513:0318 Consumer Control" (/dev/input/event2). [INFO] [udev]: Keyboard #2: "HID 0513:0318 System Control" (/dev/input/event3). [INFO] [udev]: Mouse #0: "HID 0513:0318 Mouse" (REL) /dev/input/event1 [INFO] [udev]: Pad #0 (/dev/input/event4) supports 0 force feedback effects. [INFO] [Joypad]: Found joypad driver: "udev". [INFO] [Video]: Found display server: null [WARN] [udev]: Mouse grab/ungrab feature unavailable. [INFO] ALSA: Using floating point format. [INFO] ALSA: Period size: 384 frames [INFO] ALSA: Buffer size: 1536 frames [INFO] [Display]: Found display driver: "gl". [INFO] [Font]: Using font rendering backend: freetype. [INFO] [Font]: Using font rendering backend: freetype. [INFO] [Font]: Using font rendering backend: freetype.

[INFO] [Font]: Using font rendering backend: freetype. [INFO] [Font]: Using font rendering backend: freetype. [libretro INFO] [FBNeo] Unknown device type for port 0, forcing "Classic" instead [libretro INFO] [FBNeo] Unknown device type for port 1, forcing "Classic" instead [INFO] [Playlist]: Loading history file: [/storage/.config/retroarch/config/content_history.lpl]. [INFO] [Playlist]: Loading history file: [/storage/.config/retroarch/config/content_music_history.lpl]. [INFO] [Playlist]: Loading history file: [/storage/.config/retroarch/config/content_video_history.lpl]. [INFO] [Playlist]: Loading history file: [/storage/.config/retroarch/config/content_image_history.lpl]. [INFO] [Playlist]: Loading favorites file: [/storage/.config/retroarch/config/content_favorites.lpl].

[INFO] [KMS]: New FB: 1280x720 (stride: 5120). [INFO] [KMS]: New FB: 1280x720 (stride: 5120). [INFO] [recording] Custom timing given: FPS: 60.0000, Sample rate: 48000.0000 [INFO] [recording] Recording to rtmp://live.twitch.tv/app/live_**@ 292x240. (FB size: 292x292 pix_fmt: 2)

[end of log file] ..Streaming url is masked.

bonswouar commented 2 years ago

After some time digging into that (and asking for help on discord) I was finally going to create an issue, good to see I'm not the only one having this problem!

EDIT : I'm personally using a generic x86_64 build, not a RPI

Some complementary details:

GavinDarkglider commented 2 years ago

This is fixed with this PR https://github.com/libretro/Lakka-LibreELEC/pull/1617 That being said, I didnt port it to 3.x tree yet, but it should be easy enough to do..... Give me an hour, and I will submit a patch there as well for that. Lakka 3.x PR https://github.com/libretro/Lakka-LibreELEC/pull/1618

gouchi commented 2 years ago

@ups-ups @bonswouar PR has been merged please report if it is working with nightly builds so that we can close this issue.

Thank you.

Kind regards,

bonswouar commented 2 years ago

Amazing, thanks for this fix @GavinDarkglider and the rest of the team!

@gouchi I confirm it works on 4.x branch (that I built myself earlier), although not on 3.x using Online Updater, but I believe the nightly build happened before the merge (I'm seeing Feb 26 2022 as the Build Date for version b71be7efd2)?

EDIT: Alright it works with the new new nightly ;) Confirmed for 3.x and 4.x on generic x64!

smilerliu commented 2 years ago

I have a GPI case + Pi Zero 2 W. I updated to the latest nightly build. When I tried to record a GB game using the gambatte core, the game ran fine except for some very loud background white noise, but no files were written to the recordings directory.

EDIT: The recording was done fine. I found the recorded videos in .config/retroarch/records, not the recordings directory. The recorded videos don't have that loud white noise that was present at recording time.

gouchi commented 2 years ago

@bonswouar @smilerliu Thank you for the tests. I am glad it is working.

@GavinDarkglider Thank you for the fix.

ups-ups commented 2 years ago

Thank you for the fix. I checked x86-64 and rpi3 latest nightly build. It completely worked. Streaming to twitch is also worked.