amikha1lov / RecApp

User friendly Open Source screencaster for Linux written in GTK. Using free GStreamer modules and not depend on FFmpeg.
GNU General Public License v3.0
117 stars 20 forks source link

Not responding in Wayland with mp4 format #65

Open SeaDve opened 3 years ago

SeaDve commented 3 years ago

version: commit ff39c17

Whenever you use mp4 format in Wayland it will not respond and crash after clicking record button.

lutoma commented 3 years ago

This is happening for me regardless of format

SeaDve commented 3 years ago

This is happening for me regardless of format

wayland?

lutoma commented 3 years ago

wayland?

Yes, on GNOME 3.38.3

SeaDve commented 3 years ago

wayland?

Yes, on GNOME 3.38.3

I'll try to fix it, any specific steps/settings to reproduce?

lutoma commented 3 years ago

No specific steps to reproduce.

I can start the app, the GUI shows up and everything seems to work properly. When I click the record button on the top left, GNOME shows the orange dot in the application bar indicating an app is recording the screen, so something is happening. But the UI instantly freezes up and does not react to any input anymore.

This happens both when running the app using flatpak, and when running it 'natively' using the recapp-git pkgbuild from Arch Linux AUR.

SeaDve commented 3 years ago

I'm still trying to find a solution. I cannot reproduce your issue, try running this with "python b.py" in the terminal. Replace the extension with .py If it outputs a perfectly recorded video in your Videos folded then we have the same fix.

b.txt I stripped the app to the bare basics to isolate the issue. On mine, removing the pipeline arguments, fix the issue.

So, I think the overall fix for issue #65 is to remove the pipeline arguments, but this would make the high quality option unusable.

Example of raw recorded video without the pipeline.

https://user-images.githubusercontent.com/64297935/107840912-65f47e80-6df1-11eb-9865-a45ac784375f.mp4

lutoma commented 3 years ago

Thanks for the debugging efforts! I tried the stripped down b.py version, but that had the exact same issue as the full app for me (i.e. the user interface froze up after clicking Start and the only way I could get the app to close was a SIGKILL).

I then went one step further and stripped out all the GUI components from the app, only leaving the lines to get a SessionBus and start the screencast, and it still froze up on the commandline. So I guess it's actually some issue with my GNOME/Mutter installation and not the app, though I'm not sure what that issue would be.

tallero commented 3 years ago

Maybe it can be of help knowing that integrated recording facility of GNOME Shell is broken the same way.

gmagic commented 3 years ago

Was for me on Gnome 3.38 Now working on Gnome 40 with webm and mkv format, and freezes on mp4.

lutoma commented 3 years ago

Following the upgrade to Gnome 40, RecApp now also works for me (With all formats, i.e. including mp4).

SeaDve commented 3 years ago

I figure it out that you have to also install gst-ugly because it is needed by the gnome-shell to avoid crashes. You still need to install it despite being packaged within the flatpak.

Following the upgrade to Gnome 40, RecApp now also works for me (With all formats, i.e. including mp4).

This might be you have those plugins installed.

Now working on Gnome 40 with webm and mkv format, and freezes on mp4.

To fix this you need to install gstreamer ugly plugins