Replay Mod (Fabric & Forge)

Replay Mod (Fabric & Forge)

787k Downloads

Replay Mod Crashes When Rendering a Replay

General452 opened this issue ยท 7 comments

commented

Whenever I try to render a replay recording, it starts rendering for 3 frames, then crashes the game with Exit Code 255. The crash log says:
`---- Minecraft Crash Report ----
// Surprise! Haha. Well, this is awkward.

Time: 2023-06-13 13:38:08
Description: Exporting video

com.replaymod.render.FFmpegWriter$FFmpegStartupException
at com.replaymod.render.FFmpegWriter.getVideoFile(FFmpegWriter.java:163)
at com.replaymod.render.FFmpegWriter.consume(FFmpegWriter.java:121)
at com.replaymod.render.rendering.VideoRenderer$1.consume(VideoRenderer.java:154)
at com.replaymod.render.rendering.Pipeline$ParallelSafeConsumer.consume(Pipeline.java:150)
at com.replaymod.render.rendering.Pipeline$ProcessTask.run(Pipeline.java:118)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)

A detailed walkthrough of the error, its code path and all known details is as follows:

-- Head --
Thread: Render thread
Stacktrace:
at com.replaymod.render.gui.GuiExportFailed.tryToRecover(GuiExportFailed.java:34)

-- Export details --
Details:
Settings: RenderSettings{renderMethod=Default Rendering, encodingPreset=MP4 - Custom Bitrate, videoWidth=1920, videoHeight=1080, framesPerSecond=60, bitRate=20971520, outputFile=/home/draveng/.minecraft/profiles/irisiancraft season 2/replay_recordings/recording/taco1.mp4, renderNameTags=false, includeAlphaChannel=false, stabilizeYaw=false, stabilizePitch=false, stabilizeRoll=false, chromaKeyingColor=null, sphericalFovX=360, sphericalFovY=180, injectSphericalMetadata=false, depthMap=false, cameraPathExport=false, antiAliasing=None, exportCommand='', exportArgumentsPreBgra='', exportArguments='-y -f rawvideo -pix_fmt bgra -s %WIDTH%x%HEIGHT% -r %FPS% -i - %FILTERS%-an -c:v libx264 -b:v %BITRATE% -pix_fmt yuv420p "%FILENAME%"', highPerformance=false}
FFmpeg log: ffmpeg version 5.0.3 Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 12.2.0 (GCC)
configuration: --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --optflags='-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer ' --extra-ldflags='-Wl,-z,relro,-z,now -Wl,--as-needed ' --disable-stripping --disable-doc --disable-static --enable-shared --disable-everything --enable-ffplay --enable-ffprobe --enable-gnutls --enable-libaom --enable-libdav1d --enable-libfdk-aac --enable-libmp3lame --enable-libfontconfig --enable-libfreetype --enable-libopus --enable-libpulse --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-openal --enable-opengl --enable-sdl2 --enable-vulkan --enable-zlib --enable-libv4l2 --enable-libxcb --enable-vdpau --enable-vaapi --enable-pthreads --enable-encoder='ac3,alac,flac,libfdk_aac,g723_1,mp2,libmp3lame,libopus,libspeex,pcm_alaw,pcm_mulaw,pcm_f32le,pcm_s16be,pcm_s24be,pcm_s16le,pcm_s24le,pcm_s32le,pcm_u8,tta,libvorbis,wavpack,' --enable-encoder='ass,ffv1,libaom_av1,libvpx_vp8,libvpx_vp9,mjpeg_vaapi,rawvideo,theora,vp8_vaapi,libopenh264' --enable-decoder='adpcm_g722,alac,flac,g723_1,g729,libfdk_aac,libopus,libspeex,mp2,mp3,m4a,pcm_alaw,pcm_mulaw,pcm_f16le,pcm_f24le,pcm_f32be,pcm_f32le,pcm_f64be,pcm_f64le,pcm_s16be,pcm_s16be_planar,pcm_s24be,pcm_s16le,pcm_s16le_planar,pcm_s24le,pcm_s24le_planar,pcm_s32le,pcm_s32le_planar,pcm_s64be,pcm_s64le,pcm_s8,pcm_s8_planar,pcm_u8,pcm_u24be,pcm_u24le,pcm_u32be,pcm_u32le,tta,vorbis,wavpack,' --enable-decoder='ass,ffv1,mjpeg,mjpegb,libaom_av1,libdav1d,libvpx_vp8,libvpx_vp9,rawvideo,theora,vp8,vp9,libopenh264' --enable-encoder='bmp,gif,jpegls,png,tiff,webp,' --enable-decoder='bmp,gif,jpegls,png,tiff,webp,' --enable-hwaccel='vp8_vaapi,mjpeg_vaapi,' --enable-parser='aac,ac3,flac,mjpeg,mpegaudio,mpeg4video,opus,vp3,vp8,vp9,vorbis,' --enable-muxer='ac3,ass,flac,g722,gif,matroska,mp3,mpegvideo,rtp,ogg,opus,pcm_s16be,pcm_s16le,wav,webm,' --enable-demuxer='aac,ac3,ass,flac,g722,gif,image_jpeg_pipe,image_png_pipe,image_webp_pipe,matroska,mjpeg,mov,mp3,mpegvideo,ogg,pcm_mulaw,pcm_alaw,pcm_s16be,pcm_s16le,rtp,wav,' --enable-filter='atempo,crop,scale,overlay,amix,amerge,aresample,format,aformat,fps,transpose,pad,' --enable-indev='v4l2,xcbgrab,' --enable-protocol='crypto,file,pipe,rtp,srtp,rtsp,tcp,udp,unix,' --arch=x86_64 --enable-libopenh264
libavutil 57. 17.100 / 57. 17.100
libavcodec 59. 18.100 / 59. 18.100
libavformat 59. 16.100 / 59. 16.100
libavdevice 59. 4.100 / 59. 4.100
libavfilter 8. 24.100 / 8. 24.100
libswscale 6. 4.100 / 6. 4.100
libswresample 4. 3.100 / 4. 3.100
Unknown input format: 'rawvideo'

Stacktrace:
at com.replaymod.render.gui.GuiExportFailed.tryToRecover(GuiExportFailed.java:34)
at com.replaymod.render.gui.GuiRenderQueue.processQueue(GuiRenderQueue.java:187)
at com.replaymod.render.gui.GuiRenderQueue.lambda$new$6(GuiRenderQueue.java:163)
at com.replaymod.core.versions.scheduler.SchedulerImpl.lambda$runLater$3(SchedulerImpl.java:113)
at net.minecraft.class_1255.method_18859(class_1255.java:156)
at net.minecraft.class_4093.method_18859(class_4093.java:23)
at net.minecraft.class_1255.method_16075(class_1255.java:130)
at net.minecraft.class_1255.method_5383(class_1255.java:115)
at com.replaymod.core.versions.scheduler.SchedulerImpl$ReplayModExecutor.method_5383(SchedulerImpl.java:78)
at com.replaymod.core.versions.scheduler.SchedulerImpl.runTasks(SchedulerImpl.java:85)
at com.replaymod.core.ReplayMod.runTasks(ReplayMod.java:222)
at com.replaymod.replay.InputReplayTimer.method_1658(InputReplayTimer.java:66)
at net.minecraft.class_310.method_1523(class_310.java:1171)
at net.minecraft.class_310.method_1514(class_310.java:801)
at net.minecraft.client.main.Main.main(Main.java:237)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:462)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)

-- System Details --
Details:
Minecraft Version: 1.19.4
Minecraft Version ID: 1.19.4
Operating System: Linux (amd64) version 6.2.6-76060206-generic
Java Version: 17.0.3, Microsoft
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft
Memory: 584807440 bytes (557 MiB) / 1241513984 bytes (1184 MiB) up to 2147483648 bytes (2048 MiB)
CPUs: 8
Processor Vendor: GenuineIntel
Processor Name: 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz
Identifier: Intel64 Family 6 Model 140 Stepping 1
Microarchitecture: Tiger Lake
Frequency (GHz): 3.00
Number of physical packages: 1
Number of physical CPUs: 4
Number of logical CPUs: 8
Graphics card #0 name: TigerLake-LP GT2 [Iris Xe Graphics]
Graphics card #0 vendor: Intel Corporation (0x8086)
Graphics card #0 VRAM (MB): 512.00
Graphics card #0 deviceId: 0x9a49
Graphics card #0 versionInfo: unknown
Virtual memory max (MB): 36375.98
Virtual memory used (MB): 8210.18
Swap memory total (MB): 20479.49
Swap memory used (MB): 0.00
JVM Flags: 8 total; -Xss1M -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
Fabric Mods:
betterf3: BetterF3 6.0.1
cloth-config: Cloth Config v10 10.0.96
cloth-basic-math: cloth-basic-math 0.6.1
camerautils: Camera Utils 1.19.4-1.0.4
fabric-api: Fabric API 0.80.0+1.19.4
fabric-api-base: Fabric API Base 0.4.25+504944c8f4
fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.6.26+504944c8f4
fabric-biome-api-v1: Fabric Biome API (v1) 13.0.8+348a9c64f4
fabric-block-api-v1: Fabric Block API (v1) 1.0.7+e022e5d1f4
fabric-blockrenderlayer-v1: Fabric BlockRenderLayer Registration (v1) 1.1.35+c2e6f674f4
fabric-client-tags-api-v1: Fabric Client Tags 1.0.16+504944c8f4
fabric-command-api-v1: Fabric Command API (v1) 1.2.28+f71b366ff4
fabric-command-api-v2: Fabric Command API (v2) 2.2.7+504944c8f4
fabric-commands-v0: Fabric Commands (v0) 0.2.45+df3654b3f4
fabric-containers-v0: Fabric Containers (v0) 0.1.55+df3654b3f4
fabric-content-registries-v0: Fabric Content Registries (v0) 3.5.10+ae0966baf4
fabric-convention-tags-v1: Fabric Convention Tags 1.4.2+9a7c5daaf4
fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.2.16+aeb40ebef4
fabric-data-generation-api-v1: Fabric Data Generation API (v1) 11.4.1+504944c8f4
fabric-dimensions-v1: Fabric Dimensions API (v1) 2.1.46+7f87f8faf4
fabric-entity-events-v1: Fabric Entity Events (v1) 1.5.14+504944c8f4
fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.5.0+76ba65ebf4
fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.53+df3654b3f4
fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.34+a1ccd7bff4
fabric-item-api-v1: Fabric Item API (v1) 2.1.18+504944c8f4
fabric-item-group-api-v1: Fabric Item Group API (v1) 3.0.6+043f9acff4
fabric-key-binding-api-v1: Fabric Key Binding API (v1) 1.0.34+504944c8f4
fabric-keybindings-v0: Fabric Key Bindings (v0) 0.2.32+df3654b3f4
fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 2.2.16+504944c8f4
fabric-loot-api-v2: Fabric Loot API (v2) 1.1.28+75e98211f4
fabric-loot-tables-v1: Fabric Loot Tables (v1) 1.1.32+9e7660c6f4
fabric-message-api-v1: Fabric Message API (v1) 5.1.2+504944c8f4
fabric-mining-level-api-v1: Fabric Mining Level API (v1) 2.1.40+49abcf7ef4
fabric-models-v0: Fabric Models (v0) 0.3.31+504944c8f4
fabric-networking-api-v1: Fabric Networking API (v1) 1.3.2+504944c8f4
fabric-networking-v0: Fabric Networking (v0) 0.3.42+df3654b3f4
fabric-object-builder-api-v1: Fabric Object Builder API (v1) 7.0.4+504944c8f4
fabric-particles-v1: Fabric Particles (v1) 1.0.24+f1e4495bf4
fabric-recipe-api-v1: Fabric Recipe API (v1) 1.0.9+a1ccd7bff4
fabric-registry-sync-v0: Fabric Registry Sync (v0) 2.2.1+504944c8f4
fabric-renderer-api-v1: Fabric Renderer API (v1) 2.2.6+504944c8f4
fabric-renderer-indigo: Fabric Renderer - Indigo 1.1.2+81e8c576f4
fabric-renderer-registries-v1: Fabric Renderer Registries (v1) 3.2.39+df3654b3f4
fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.3.29+afca2f3ef4
fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 3.0.22+504944c8f4
fabric-rendering-v0: Fabric Rendering (v0) 1.1.42+df3654b3f4
fabric-rendering-v1: Fabric Rendering (v1) 2.1.2+504944c8f4
fabric-resource-conditions-api-v1: Fabric Resource Conditions API (v1) 2.3.2+e6c7d4eef4
fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.11.3+1e1fb126f4
fabric-screen-api-v1: Fabric Screen API (v1) 1.0.46+504944c8f4
fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.3.21+504944c8f4
fabric-sound-api-v1: Fabric Sound API (v1) 1.0.10+504944c8f4
fabric-transfer-api-v1: Fabric Transfer API (v1) 3.1.2+504944c8f4
fabric-transitive-access-wideners-v1: Fabric Transitive Access Wideners (v1) 3.0.4+504944c8f4
fabricloader: Fabric Loader 0.14.19
gammautils: Gamma Utils 1.6.14
java: OpenJDK 64-Bit Server VM 17
litematica: Litematica 0.14.3
malilib: MaLiLib 0.15.4
minecraft: Minecraft 1.19.4
minihud: MiniHUD 0.26.2
replaymod: Replay Mod 1.19.4-2.6.12
tweakeroo: Tweakeroo 0.16.0
voicechat: Simple Voice Chat 1.19.4-2.4.9
worldedit: WorldEdit 7.2.14+6360-094b734`

commented

Please try saving to the default location <instance folder>/replay_videos/

If that doesn't work, please use our official support Discord (link on our website)

commented

I have the same issue too. I get the message:
com.replaymod.render.FFmpegWriter$FFmpegStartupException
and the crash report states:
---- Minecraft Crash Report ----
// You're mean.

Time: 2023-06-19 23:41:32
Description: Exporting video

com.replaymod.render.FFmpegWriter$FFmpegStartupException
at com.replaymod.render.FFmpegWriter.getVideoFile(FFmpegWriter.java:163)
at com.replaymod.render.FFmpegWriter.consume(FFmpegWriter.java:121)
at com.replaymod.render.rendering.VideoRenderer$1.consume(VideoRenderer.java:154)
at com.replaymod.render.rendering.Pipeline$ParallelSafeConsumer.consume(Pipeline.java:150)
at com.replaymod.render.rendering.Pipeline$ProcessTask.run(Pipeline.java:118)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)

A detailed walkthrough of the error, its code path and all known details is as follows:

-- Head --
Thread: Render thread
Stacktrace:
at com.replaymod.render.gui.GuiExportFailed.tryToRecover(GuiExportFailed.java:34)

-- Export details --
Details:
Settings: RenderSettings{renderMethod=Default Rendering, encodingPreset=MP4 - Custom Bitrate, videoWidth=1920, videoHeight=1080, framesPerSecond=60, bitRate=20971520, outputFile=/home/sam/.var/app/com.mojang.Minecraft/.minecraft/replay_videos/bridge-replay-test.mp4, renderNameTags=true, includeAlphaChannel=false, stabilizeYaw=false, stabilizePitch=false, stabilizeRoll=false, chromaKeyingColor=null, sphericalFovX=360, sphericalFovY=180, injectSphericalMetadata=false, depthMap=false, cameraPathExport=false, antiAliasing=None, exportCommand='', exportArgumentsPreBgra='', exportArguments='-y -f rawvideo -pix_fmt bgra -s %WIDTH%x%HEIGHT% -r %FPS% -i - %FILTERS%-an -c:v libx264 -b:v %BITRATE% -pix_fmt yuv420p "%FILENAME%"', highPerformance=false}
FFmpeg log: ffmpeg version 5.0.3 Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 12.2.0 (GCC)
configuration: --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --optflags='-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer ' --extra-ldflags='-Wl,-z,relro,-z,now -Wl,--as-needed ' --disable-stripping --disable-doc --disable-static --enable-shared --disable-everything --enable-ffplay --enable-ffprobe --enable-gnutls --enable-libaom --enable-libdav1d --enable-libfdk-aac --enable-libmp3lame --enable-libfontconfig --enable-libfreetype --enable-libopus --enable-libpulse --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-openal --enable-opengl --enable-sdl2 --enable-vulkan --enable-zlib --enable-libv4l2 --enable-libxcb --enable-vdpau --enable-vaapi --enable-pthreads --enable-encoder='ac3,alac,flac,libfdk_aac,g723_1,mp2,libmp3lame,libopus,libspeex,pcm_alaw,pcm_mulaw,pcm_f32le,pcm_s16be,pcm_s24be,pcm_s16le,pcm_s24le,pcm_s32le,pcm_u8,tta,libvorbis,wavpack,' --enable-encoder='ass,ffv1,libaom_av1,libvpx_vp8,libvpx_vp9,mjpeg_vaapi,rawvideo,theora,vp8_vaapi,libopenh264' --enable-decoder='adpcm_g722,alac,flac,g723_1,g729,libfdk_aac,libopus,libspeex,mp2,mp3,m4a,pcm_alaw,pcm_mulaw,pcm_f16le,pcm_f24le,pcm_f32be,pcm_f32le,pcm_f64be,pcm_f64le,pcm_s16be,pcm_s16be_planar,pcm_s24be,pcm_s16le,pcm_s16le_planar,pcm_s24le,pcm_s24le_planar,pcm_s32le,pcm_s32le_planar,pcm_s64be,pcm_s64le,pcm_s8,pcm_s8_planar,pcm_u8,pcm_u24be,pcm_u24le,pcm_u32be,pcm_u32le,tta,vorbis,wavpack,' --enable-decoder='ass,ffv1,mjpeg,mjpegb,libaom_av1,libdav1d,libvpx_vp8,libvpx_vp9,rawvideo,theora,vp8,vp9,libopenh264' --enable-encoder='bmp,gif,jpegls,png,tiff,webp,' --enable-decoder='bmp,gif,jpegls,png,tiff,webp,' --enable-hwaccel='vp8_vaapi,mjpeg_vaapi,' --enable-parser='aac,ac3,flac,mjpeg,mpegaudio,mpeg4video,opus,vp3,vp8,vp9,vorbis,' --enable-muxer='ac3,ass,flac,g722,gif,matroska,mp3,mpegvideo,rtp,ogg,opus,pcm_s16be,pcm_s16le,wav,webm,' --enable-demuxer='aac,ac3,ass,flac,g722,gif,image_jpeg_pipe,image_png_pipe,image_webp_pipe,matroska,mjpeg,mov,mp3,mpegvideo,ogg,pcm_mulaw,pcm_alaw,pcm_s16be,pcm_s16le,rtp,wav,' --enable-filter='atempo,crop,scale,overlay,amix,amerge,aresample,format,aformat,fps,transpose,pad,' --enable-indev='v4l2,xcbgrab,' --enable-protocol='crypto,file,pipe,rtp,srtp,rtsp,tcp,udp,unix,' --arch=x86_64 --enable-libopenh264
libavutil 57. 17.100 / 57. 17.100
libavcodec 59. 18.100 / 59. 18.100
libavformat 59. 16.100 / 59. 16.100
libavdevice 59. 4.100 / 59. 4.100
libavfilter 8. 24.100 / 8. 24.100
libswscale 6. 4.100 / 6. 4.100
libswresample 4. 3.100 / 4. 3.100
Unknown input format: 'rawvideo'

Stacktrace:
at com.replaymod.render.gui.GuiExportFailed.tryToRecover(GuiExportFailed.java:34)
at com.replaymod.render.gui.GuiRenderQueue.processQueue(GuiRenderQueue.java:187)
at com.replaymod.render.gui.GuiRenderQueue.lambda$new$6(GuiRenderQueue.java:163)
at com.replaymod.core.versions.scheduler.SchedulerImpl.lambda$runLater$3(SchedulerImpl.java:113)
at net.minecraft.class_1255.method_18859(class_1255.java:156)
at net.minecraft.class_4093.method_18859(class_4093.java:23)
at net.minecraft.class_1255.method_16075(class_1255.java:130)
at net.minecraft.class_1255.method_5383(class_1255.java:115)
at com.replaymod.core.versions.scheduler.SchedulerImpl$ReplayModExecutor.method_5383(SchedulerImpl.java:78)
at com.replaymod.core.versions.scheduler.SchedulerImpl.runTasks(SchedulerImpl.java:85)
at com.replaymod.core.ReplayMod.runTasks(ReplayMod.java:222)
at com.replaymod.replay.InputReplayTimer.method_1658(InputReplayTimer.java:66)
at net.minecraft.class_310.method_1523(class_310.java:1171)
at net.minecraft.class_310.method_1514(class_310.java:801)
at net.minecraft.client.main.Main.main(Main.java:237)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:468)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)

-- System Details --
Details:
Minecraft Version: 1.19.4
Minecraft Version ID: 1.19.4
Operating System: Linux (amd64) version 6.2.0-23-generic
Java Version: 17.0.3, Microsoft
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft
Memory: 298263312 bytes (284 MiB) / 671088640 bytes (640 MiB) up to 2147483648 bytes (2048 MiB)
CPUs: 8
Processor Vendor: GenuineIntel
Processor Name: Intel(R) Core(TM) i5-1035G7 CPU @ 1.20GHz
Identifier: Intel64 Family 6 Model 126 Stepping 5
Microarchitecture: Ice Lake (Client)
Frequency (GHz): 1.20
Number of physical packages: 1
Number of physical CPUs: 4
Number of logical CPUs: 8
Graphics card #0 name: Iris Plus Graphics G7
Graphics card #0 vendor: Intel Corporation (0x8086)
Graphics card #0 VRAM (MB): 256.00
Graphics card #0 deviceId: 0x8a52
Graphics card #0 versionInfo: unknown
Virtual memory max (MB): 5663.48
Virtual memory used (MB): 8010.57
Swap memory total (MB): 1907.00
Swap memory used (MB): 1886.84
JVM Flags: 8 total; -Xss1M -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
Fabric Mods:
fabric-api: Fabric API 0.83.0+1.19.4
fabric-api-base: Fabric API Base 0.4.27+1e9487d2f4
fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.6.28+504944c8f4
fabric-biome-api-v1: Fabric Biome API (v1) 13.0.9+10ce000ff4
fabric-block-api-v1: Fabric Block API (v1) 1.0.8+e022e5d1f4
fabric-blockrenderlayer-v1: Fabric BlockRenderLayer Registration (v1) 1.1.37+10ce000ff4
fabric-client-tags-api-v1: Fabric Client Tags 1.0.18+10ce000ff4
fabric-command-api-v1: Fabric Command API (v1) 1.2.30+f71b366ff4
fabric-command-api-v2: Fabric Command API (v2) 2.2.9+10ce000ff4
fabric-commands-v0: Fabric Commands (v0) 0.2.47+df3654b3f4
fabric-containers-v0: Fabric Containers (v0) 0.1.57+df3654b3f4
fabric-content-registries-v0: Fabric Content Registries (v0) 3.5.12+10ce000ff4
fabric-convention-tags-v1: Fabric Convention Tags 1.5.2+10ce000ff4
fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.2.17+aeb40ebef4
fabric-data-generation-api-v1: Fabric Data Generation API (v1) 11.4.3+10ce000ff4
fabric-dimensions-v1: Fabric Dimensions API (v1) 2.1.48+10ce000ff4
fabric-entity-events-v1: Fabric Entity Events (v1) 1.5.16+10ce000ff4
fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.6.0+10ce000ff4
fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.55+df3654b3f4
fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.35+a1ccd7bff4
fabric-item-api-v1: Fabric Item API (v1) 2.1.20+10ce000ff4
fabric-item-group-api-v1: Fabric Item Group API (v1) 3.0.8+10ce000ff4
fabric-key-binding-api-v1: Fabric Key Binding API (v1) 1.0.35+504944c8f4
fabric-keybindings-v0: Fabric Key Bindings (v0) 0.2.33+df3654b3f4
fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 2.2.18+10ce000ff4
fabric-loot-api-v2: Fabric Loot API (v2) 1.1.30+10ce000ff4
fabric-loot-tables-v1: Fabric Loot Tables (v1) 1.1.34+9e7660c6f4
fabric-message-api-v1: Fabric Message API (v1) 5.1.4+10ce000ff4
fabric-mining-level-api-v1: Fabric Mining Level API (v1) 2.1.42+10ce000ff4
fabric-models-v0: Fabric Models (v0) 0.3.33+10ce000ff4
fabric-networking-api-v1: Fabric Networking API (v1) 1.3.4+10ce000ff4
fabric-networking-v0: Fabric Networking (v0) 0.3.44+df3654b3f4
fabric-object-builder-api-v1: Fabric Object Builder API (v1) 7.0.6+10ce000ff4
fabric-particles-v1: Fabric Particles (v1) 1.0.26+10ce000ff4
fabric-recipe-api-v1: Fabric Recipe API (v1) 1.0.11+10ce000ff4
fabric-registry-sync-v0: Fabric Registry Sync (v0) 2.2.3+10ce000ff4
fabric-renderer-api-v1: Fabric Renderer API (v1) 2.3.1+10ce000ff4
fabric-renderer-indigo: Fabric Renderer - Indigo 1.3.1+10ce000ff4
fabric-renderer-registries-v1: Fabric Renderer Registries (v1) 3.2.41+df3654b3f4
fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.3.31+10ce000ff4
fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 3.0.24+10ce000ff4
fabric-rendering-v0: Fabric Rendering (v0) 1.1.44+df3654b3f4
fabric-rendering-v1: Fabric Rendering (v1) 2.1.4+10ce000ff4
fabric-resource-conditions-api-v1: Fabric Resource Conditions API (v1) 2.3.3+10ce000ff4
fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.11.5+5ade3c38f4
fabric-screen-api-v1: Fabric Screen API (v1) 1.0.48+10ce000ff4
fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.3.23+10ce000ff4
fabric-sound-api-v1: Fabric Sound API (v1) 1.0.11+10ce000ff4
fabric-transfer-api-v1: Fabric Transfer API (v1) 3.2.1+10ce000ff4
fabric-transitive-access-wideners-v1: Fabric Transitive Access Wideners (v1) 3.2.0+10ce000ff4
fabricloader: Fabric Loader 0.14.21
java: OpenJDK 64-Bit Server VM 17
minecraft: Minecraft 1.19.4
replaymod: Replay Mod 1.19.4-2.6.12

commented

@samsam21amb Flatpak bundles its own version of FFmpeg, which is compiled without the necessary options - make the FFmpeg from your package manager available to the Flatpak instance and it should work - if it doesn't, please use our official support Discord (link on our website)

commented

I had the same issue when I was trying to render a replay. Eventually I've decided to debug what was going on and ended up finding out a fix for it. I do not know how it could be fixed other than flatpak shipping an updated version of ffmpeg or Replay Mod asking flatpak users to run sudo flatpak override LAUNCHER_ID --talk-name=org.freedesktop.Flatpak and doing an automatic detection to change the rendering command line settings. I'll explain my debug process here

Debugging

After some googling, I've found out about the existence of the .minecraft/export.log file. The contents were as follow:

ffmpeg version 5.0.3 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 12.2.0 (GCC)
  configuration: --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --optflags='-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer ' --extra-ldflags='-Wl,-z,relro,-z,now -Wl,--as-needed ' --disable-stripping --disable-doc --disable-static --enable-shared --disable-everything --enable-ffplay --enable-ffprobe --enable-gnutls --enable-libaom --enable-libdav1d --enable-libfdk-aac --enable-libmp3lame --enable-libfontconfig --enable-libfreetype --enable-libopus --enable-libpulse --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-openal --enable-opengl --enable-sdl2 --enable-vulkan --enable-zlib --enable-libv4l2 --enable-libxcb --enable-vdpau --enable-vaapi --enable-pthreads --enable-encoder='ac3,alac,flac,libfdk_aac,g723_1,mp2,libmp3lame,libopus,libspeex,pcm_alaw,pcm_mulaw,pcm_f32le,pcm_s16be,pcm_s24be,pcm_s16le,pcm_s24le,pcm_s32le,pcm_u8,tta,libvorbis,wavpack,' --enable-encoder='ass,ffv1,libaom_av1,libvpx_vp8,libvpx_vp9,mjpeg_vaapi,rawvideo,theora,vp8_vaapi,libopenh264' --enable-decoder='adpcm_g722,alac,flac,g723_1,g729,libfdk_aac,libopus,libspeex,mp2,mp3,m4a,pcm_alaw,pcm_mulaw,pcm_f16le,pcm_f24le,pcm_f32be,pcm_f32le,pcm_f64be,pcm_f64le,pcm_s16be,pcm_s16be_planar,pcm_s24be,pcm_s16le,pcm_s16le_planar,pcm_s24le,pcm_s24le_planar,pcm_s32le,pcm_s32le_planar,pcm_s64be,pcm_s64le,pcm_s8,pcm_s8_planar,pcm_u8,pcm_u24be,pcm_u24le,pcm_u32be,pcm_u32le,tta,vorbis,wavpack,' --enable-decoder='ass,ffv1,mjpeg,mjpegb,libaom_av1,libdav1d,libvpx_vp8,libvpx_vp9,rawvideo,theora,vp8,vp9,libopenh264' --enable-encoder='bmp,gif,jpegls,png,tiff,webp,' --enable-decoder='bmp,gif,jpegls,png,tiff,webp,' --enable-hwaccel='vp8_vaapi,mjpeg_vaapi,' --enable-parser='aac,ac3,flac,mjpeg,mpegaudio,mpeg4video,opus,vp3,vp8,vp9,vorbis,' --enable-muxer='ac3,ass,flac,g722,gif,matroska,mp3,mpegvideo,rtp,ogg,opus,pcm_s16be,pcm_s16le,wav,webm,' --enable-demuxer='aac,ac3,ass,flac,g722,gif,image_jpeg_pipe,image_png_pipe,image_webp_pipe,matroska,mjpeg,mov,mp3,mpegvideo,ogg,pcm_mulaw,pcm_alaw,pcm_s16be,pcm_s16le,rtp,wav,' --enable-filter='atempo,crop,scale,overlay,amix,amerge,aresample,format,aformat,fps,transpose,pad,' --enable-indev='v4l2,xcbgrab,' --enable-protocol='crypto,file,pipe,rtp,srtp,rtsp,tcp,udp,unix,' --arch=x86_64 --enable-libopenh264
  libavutil      57. 17.100 / 57. 17.100
  libavcodec     59. 18.100 / 59. 18.100
  libavformat    59. 16.100 / 59. 16.100
  libavdevice    59.  4.100 / 59.  4.100
  libavfilter     8. 24.100 /  8. 24.100
  libswscale      6.  4.100 /  6.  4.100
  libswresample   4.  3.100 /  4.  3.100
Unknown input format: 'rawvideo'

At the end, there was an error saying Unknown input format: 'rawvideo'. I assumed that if I removed it, it would work out, but I've decided to look further (a.k.a. more googling) and found out that this issue is caused by Flatpak shipping an outdated version of FFmpeg (look at comments). To see which version of FFmpeg did my system the flatpak of my launcher had, i ran ffmpeg -h on my host machine and then i ran flatpak run --command=bash org.prismlauncher.PrismLauncher to "enter inside the flatpak's container" and ran another fmmpeg -h to see which version would come out.

# On host
ffmpeg version 6.0 Copyright (c) 2000-2023 the FFmpeg developers
# On flatpak
ffmpeg version 5.0.3 Copyright (c) 2000-2022 the FFmpeg developers

To confirm my theory of the container not having an updated version of FFmpeg that has the input format rawvideo, I ran the command that Replay Mod was running

[๐Ÿ“ฆ org.prismlauncher.PrismLauncher replay_recordings]$ ffmpeg -y -f rawvideo -pix_fmt bgra -s %WIDTH%x%HEIGHT% -r %FPS% -i - %FILTERS%-an -c:v libx264 -b:v %BITRATE% -pix_fmt yuv420p "%FILENAME%"~
ffmpeg version 5.0.3 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 12.2.0 (GCC)
  configuration: --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --optflags='-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer ' --extra-ldflags='-Wl,-z,relro,-z,now -Wl,--as-needed ' --disable-stripping --disable-doc --disable-static --enable-shared --disable-everything --enable-ffplay --enable-ffprobe --enable-gnutls --enable-libaom --enable-libdav1d --enable-libfdk-aac --enable-libmp3lame --enable-libfontconfig --enable-libfreetype --enable-libopus --enable-libpulse --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-openal --enable-opengl --enable-sdl2 --enable-vulkan --enable-zlib --enable-libv4l2 --enable-libxcb --enable-vdpau --enable-vaapi --enable-pthreads --enable-encoder='ac3,alac,flac,libfdk_aac,g723_1,mp2,libmp3lame,libopus,libspeex,pcm_alaw,pcm_mulaw,pcm_f32le,pcm_s16be,pcm_s24be,pcm_s16le,pcm_s24le,pcm_s32le,pcm_u8,tta,libvorbis,wavpack,' --enable-encoder='ass,ffv1,libaom_av1,libvpx_vp8,libvpx_vp9,mjpeg_vaapi,rawvideo,theora,vp8_vaapi,libopenh264' --enable-decoder='adpcm_g722,alac,flac,g723_1,g729,libfdk_aac,libopus,libspeex,mp2,mp3,m4a,pcm_alaw,pcm_mulaw,pcm_f16le,pcm_f24le,pcm_f32be,pcm_f32le,pcm_f64be,pcm_f64le,pcm_s16be,pcm_s16be_planar,pcm_s24be,pcm_s16le,pcm_s16le_planar,pcm_s24le,pcm_s24le_planar,pcm_s32le,pcm_s32le_planar,pcm_s64be,pcm_s64le,pcm_s8,pcm_s8_planar,pcm_u8,pcm_u24be,pcm_u24le,pcm_u32be,pcm_u32le,tta,vorbis,wavpack,' --enable-decoder='ass,ffv1,mjpeg,mjpegb,libaom_av1,libdav1d,libvpx_vp8,libvpx_vp9,rawvideo,theora,vp8,vp9,libopenh264' --enable-encoder='bmp,gif,jpegls,png,tiff,webp,' --enable-decoder='bmp,gif,jpegls,png,tiff,webp,' --enable-hwaccel='vp8_vaapi,mjpeg_vaapi,' --enable-parser='aac,ac3,flac,mjpeg,mpegaudio,mpeg4video,opus,vp3,vp8,vp9,vorbis,' --enable-muxer='ac3,ass,flac,g722,gif,matroska,mp3,mpegvideo,rtp,ogg,opus,pcm_s16be,pcm_s16le,wav,webm,' --enable-demuxer='aac,ac3,ass,flac,g722,gif,image_jpeg_pipe,image_png_pipe,image_webp_pipe,matroska,mjpeg,mov,mp3,mpegvideo,ogg,pcm_mulaw,pcm_alaw,pcm_s16be,pcm_s16le,rtp,wav,' --enable-filter='atempo,crop,scale,overlay,amix,amerge,aresample,format,aformat,fps,transpose,pad,' --enable-indev='v4l2,xcbgrab,' --enable-protocol='crypto,file,pipe,rtp,srtp,rtsp,tcp,udp,unix,' --arch=x86_64 --enable-libopenh264
  libavutil      57. 17.100 / 57. 17.100
  libavcodec     59. 18.100 / 59. 18.100
  libavformat    59. 16.100 / 59. 16.100
  libavdevice    59.  4.100 / 59.  4.100
  libavfilter     8. 24.100 /  8. 24.100
  libswscale      6.  4.100 /  6.  4.100
  libswresample   4.  3.100 /  4.  3.100
Unknown input format: 'rawvideo'

Bingo. Same error
Since I couldn't update the version of FFmpeg inside the container, I just decided to use flatpak-spawn instead and see if Unknown input format: 'rawvideo' would still appear. I did a sudo flatpak override org.prismlauncher.PrismLauncher --talk-name=org.freedesktop.Flatpak to give the container access to flatpak-spawn and ran the same command again

[๐Ÿ“ฆ org.prismlauncher.PrismLauncher replay_recordings]$ flatpak-spawn --host ffmpeg
ffmpeg version 6.0 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 13 (GCC)
  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer' --extra-ldflags='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' --extra-cflags=' -I/usr/include/rav1e' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --enable-chromaprint --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libaom --enable-libdav1d --enable-libass --enable-libbluray --enable-libbs2b --enable-libcdio --enable-libdrm --enable-libjack --enable-libjxl --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libmysofa --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-libplacebo --enable-librsvg --enable-librav1e --enable-librubberband --enable-libsmbclient --enable-version3 --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-version3 --enable-vapoursynth --enable-libvpx --enable-vulkan --enable-libshaderc --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libxml2 --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-avfilter --enable-libmodplug --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-lto --enable-libvpl --enable-runtime-cpudetect
  libavutil      58.  2.100 / 58.  2.100
  libavcodec     60.  3.100 / 60.  3.100
  libavformat    60.  3.100 / 60.  3.100
  libavdevice    60.  1.100 / 60.  1.100
  libavfilter     9.  3.100 /  9.  3.100
  libswscale      7.  1.100 /  7.  1.100
  libswresample   4. 10.100 /  4. 10.100
  libpostproc    57.  1.100 / 57.  1.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'
[๐Ÿ“ฆ org.prismlauncher.PrismLauncher replay_recordings]$ flatpak-spawn --host ffmpeg -y -f rawvideo -pix_fmt bgra -s %WIDTH%x%HEIGHT% -r %FPS% -i - %FILTERS%-an -c:v libx264 -b:v %BITRATE% -pix_fmt yuv420p "%FILENAME%"~
ffmpeg version 6.0 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 13 (GCC)
  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer' --extra-ldflags='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' --extra-cflags=' -I/usr/include/rav1e' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --enable-chromaprint --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libaom --enable-libdav1d --enable-libass --enable-libbluray --enable-libbs2b --enable-libcdio --enable-libdrm --enable-libjack --enable-libjxl --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libmysofa --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-libplacebo --enable-librsvg --enable-librav1e --enable-librubberband --enable-libsmbclient --enable-version3 --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-version3 --enable-vapoursynth --enable-libvpx --enable-vulkan --enable-libshaderc --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libxml2 --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-avfilter --enable-libmodplug --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-lto --enable-libvpl --enable-runtime-cpudetect
  libavutil      58.  2.100 / 58.  2.100
  libavcodec     60.  3.100 / 60.  3.100
  libavformat    60.  3.100 / 60.  3.100
  libavdevice    60.  1.100 / 60.  1.100
  libavfilter     9.  3.100 /  9.  3.100
  libswscale      7.  1.100 /  7.  1.100
  libswresample   4. 10.100 /  4. 10.100
  libpostproc    57.  1.100 / 57.  1.100
[rawvideo demuxer @ 0x55a60136e300] Unable to parse option value "%FPS%" as video rate
[rawvideo demuxer @ 0x55a60136e300] Error setting option framerate to value %FPS%.
fd:: Invalid argument

Boom. No more error
So now I have the task to make Replay Mod to run flaptak-spawn --host ffmpeg instead of just ffmpeg. Thank god the devs of the mod added an option when rendering to change the command line commands
Replay Mod's default command line settings
So I just added the command as flatpak-spawn and added --host ffmpeg to the start of the arguments. And it rendered flawlessly

Solution

WARNING: Using this solution has significant security implications! By default applications running via flatpak are mostly isolated from the rest of your system, adding this override allows any malicious or compromised mod to trivially bypass this isolation and infect your entire system. A much safer alternative solution is detailed two/three comments below.

  1. Close the game and launcher (make sure it is actually closed), open the terminal and run sudo flatpak override LAUNCHER_FLATPAK_ID --talk-name=org.freedesktop.Flatpak (replace LAUNCHER_FLATPAK_ID by the launcher's flatpak ID. In Prism's example, it would besudo flatpak override org.prismlauncher.PrismLauncher --talk-name=org.freedesktop.Flatpak)
  2. Launch the launcher and the game and open any replay file
  3. Open the render menu (๐Ÿ’พ), scroll down and on "Command Line Settings" add flatpak-spawn as the command and put --host ffmpeg at the start of the already existing arguments. DO NOT DELETE ANY OF THE ARGUMENTS
    Edited default command line settings
commented

You are an absolute godsend @abUwUser !!! Thank you so much! I've been searching for 5 hours and this was the only thing that worked!!!

commented

The above solution offers a hole in the security that flatpack provides and if you have any malicious or compromised mod, they now have access to your entire device.

Please check FAQs in the ReplayMod Discord for a more secure solution. https://discord.gg/5GR7RSb

commented

The aforementioned current recommended solution for those that do not have a Discord account:

I'm running Minecraft in a flatpak/sandbox on Linux (e.g. GDLauncher, PolyMC) but it cannot find my ffmpeg or it says that rawvideo is not supported. Why?

The sandbox environment may not have access to your ffmpeg or it links to an incompatible ffmpeg version. Since you can't easily use an existing ffmpeg in the sandbox, we recommend these steps:

  • Download a static ffmpeg build (https://ffmpeg.org/download.html#build-linux); static meaning it's self-contained and has no dependencies
  • Extract in some place the flatpak can see (e.g. the respective .minecraft folder)
  • Put the path to just-extracted ffmpeg binary in the Command field at the bottom left of the ReplayMod render settings