Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

[BUG] Too early to record another clip #52

Open
ghost opened this issue May 17, 2023 · 15 comments
Open

[BUG] Too early to record another clip #52

ghost opened this issue May 17, 2023 · 15 comments

Comments

@ghost
Copy link

ghost commented May 17, 2023

Found that when i'm using bluetooth headphones recorder is not working(notifications appear: too early to record another clip. When disconnecting headphones, recorder work's awesome.

@FoodFrisbee
Copy link

I'm getting this all the time, bluetooth or not

@raveensrk
Copy link

Is this issue fixed yet. I have steam deck 64gb. I have the same issues. I have soft linked /home/deck/Videos to microsd card.

@raveensrk
Copy link

Actually, it is working when I turn off the Bluetooth. Very strange. When bluetooth is on, it is not able to record.

@EliasGagnef
Copy link

not able to save a recording at all, even if Bluetooth is off

@skunkmommy
Copy link

^

@Conan179
Copy link

#62

@raveensrk
Copy link

@safijari is this fixed?

@spacecowboyx
Copy link

I have confirmed that disabling Bluetooth does allow the plugin to record manually and using snapshot mode. I don't know why Bluetooth being enabled makes it not work but it's disappointing if you are using bt headphones or a BT speaker when playing.

@safijari safijari reopened this Sep 5, 2023
@safijari
Copy link
Collaborator

safijari commented Sep 5, 2023

The Bluetooth capture issue has been fixed. I can deploy it but it creates the potential problem that switching between audio devices could leave you without audio.

I'm still trying to figure that one out.

@skunkmommy
Copy link

skunkmommy commented Sep 5, 2023 via email

@skunkmommy
Copy link

skunkmommy commented Sep 15, 2023 via email

@lonkelle
Copy link

lonkelle commented Nov 7, 2023

I get this a lot after waking from sleep. I just have to disable Recorder and Re-Enable it and it starts working again.

It's annoying but makes me feel like this should hopefully be an easy solve.

@siglmf
Copy link

siglmf commented Jan 6, 2024

I also got this "too early to record..." error when in Replay mode. And during manual recording it did not show any errors, but it also did not save any video.
If this happens to anyone else, just make sure that you have the most recent versions installed of both SteamOS and of Decky Recorder. (In my case SteamOS was outdated, so updating that solved it for me.)

Seems that SteamOS includes GStreamer and Decky Recorder includes some additional libraries for that, and if there is a version mismatch between those, then recording will fail silently. Decky Recorder just starts the gst-launch-1.0 process (which fails immediately), and then it never checks the status of that process (until after you stop the recording), so it does not notice or report any issue.

@lonkelle
Copy link

lonkelle commented Jan 6, 2024

@siglmf To confirm, "Disabling" and "Enabling" Decky Recorder didn't fix this for you (just checking if my error is different than yours)?

If this is the root of the error, then fetching those libraries dynamically would be a solve would it not. Assuming SteamOS allows for dynamic loaded libraries.

@siglmf
Copy link

siglmf commented Jan 6, 2024

I didn't see a way to disable and enable the whole plugin. I think I tried reloading the plugin (but I'm not 100% sure anymore 😅) and I did toggle the Replay Mode on and off many times, but that did not fix the issue. And the issue also definitely was not related to Sleep mode, recording just did not work for me, at all.

Anyways, I guess I can provide a bit more information on this, as I did spend some time debugging this issue (by setting additional environment variables and debug printing in the main.py, so I did not have to rebuild the entire plugin myself 😅). In the end I managed to get these warning messages in the decky-recorder-std-err.log file:

0:00:00.002044135  5821 0x55c7c9ffb800 WARN      GST_PLUGIN_LOADING gstplugin.c:491:gst_plugin_register_func: plugin "/home/deck/homebrew/plugins/decky-recorder/bin/gstreamer-1.0/libgstsbc.so" has incompatible version (plugin: 1.22, gst: 1.20), not loading
0:00:00.003126953  5821 0x55c7c9ffb800 WARN      GST_PLUGIN_LOADING gstplugin.c:491:gst_plugin_register_func: plugin "/home/deck/homebrew/plugins/decky-recorder/bin/gstreamer-1.0/libgstcodecalpha.so" has incompatible version (plugin: 1.22, gst: 1.20), not loading
0:00:00.004118218  5821 0x55c7c9ffb800 WARN      GST_PLUGIN_LOADING gstplugin.c:491:gst_plugin_register_func: plugin "/home/deck/homebrew/plugins/decky-recorder/bin/gstreamer-1.0/libgstaudiovisualizers.so" has incompatible version (plugin: 1.22, gst: 1.20), not loading
...

and so on, it was around 150 lines of similar messages. That's what pointed me to the version mismatch. Anyways, since GStreamer could not load these libraries, it did not recognize the pipewiresrc that is used to do the recording, so it basically just writes WARNING: erroneous pipeline: no element "pipewiresrc" to the logs and then quits.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants