Skip Navigation
linuxquestions

Linux Questions

  • Ffmpeg makes choppy videos when recording with audio

    Well, my issue is simple to explain, but I tried everything to solve it without success.

    I like recording gameplays, just for fun. The game I currently make recordings for is not resource heavy (it's Doom 2 through GZDoom). I'm using Lubuntu 22.04.

    So, here is the command I've just used:

    ffmpeg -f x11grab -draw_mouse 0 -framerate 30 -probesize 42M -video_size 1920x1080 -i :0 -f pulse -i default -c:v libvpx-vp9 -r 30 -g 90 -quality realtime -frame-parallel 1 -qmin 4 -qmax 48 -b:v 4500k -c:a libvorbis prueba.mkv

    The issue is, if I record without including the audio, then the video plays smoothly after being recorded. But if I record including the audio, no matter what parameters, codecs, bitrate or anything I use, then the video is barely watchable, with lots of choppiness, and even with delay between audio and video, apparently.

    SimpleScreenRecorder works fine, but sometimes there are few frames dropped and I don't like it much. OBS is very heavy for my hardware (Mac Mini 2016, Intel Core i5 1.4 GHz 4260U, Intel HD Graphics 4000, 4 GB RAM).

    I also tried VAAPI, with same results as above.

    And the thing is that I remember recording some years ago, with no issues at all.

    I don't know what to do. Any tip or solution?

    3
  • Ffmpeg causes choppy video when recording with audio

    Well, my issue is simple to explain, but I tried everything to solve it without success.

    I like recording gameplays, just for fun. The game I currently make recordings for is not resource heavy (it's Doom 2 through GZDoom). I'm using Lubuntu 22.04.

    So, here is the command I've just used:

    ffmpeg -f x11grab -draw_mouse 0 -framerate 30 -probesize 42M -video_size 1920x1080 -i :0 -f pulse -i default -c:v libvpx-vp9 -r 30 -g 90 -quality realtime -frame-parallel 1 -qmin 4 -qmax 48 -b:v 4500k -c:a libvorbis prueba.mkv

    The issue is, if I record without including the audio, then the video plays smoothly after being recorded. But if I record including the audio, no matter what parameters, codecs, bitrate or anything I use, then the video is barely watchable, with lots of choppiness, and even with delay between audio and video, apparently.

    SimpleScreenRecorder works fine, but sometimes there are few frames dropped and I don't like it much. OBS is very heavy for my hardware (Mac Mini 2016, Intel Core i5 1.4 GHz 4260U, Intel HD Graphics 4000, 4 GB RAM).

    I also tried VAAPI, with same results as above.

    And the thing is that I remember recording some years ago, with no issues at all.

    I don't know what to do. Any tip or solution?

    0
  • Ffmpeg causes choppy video when recording with audio

    Well, my issue is simple to explain, but I tried everything to solve it without success.

    I like recording gameplays, just for fun. The game I currently make recordings for is not resource heavy (it's Doom 2 through GZDoom). I'm using Lubuntu 22.04.

    So, here is the command I've just used:

    ffmpeg -f x11grab -draw_mouse 0 -framerate 30 -probesize 42M -video_size 1920x1080 -i :0 -f pulse -i default -c:v libvpx-vp9 -r 30 -g 90 -quality realtime -frame-parallel 1 -qmin 4 -qmax 48 -b:v 4500k -c:a libvorbis prueba.mkv

    The issue is, if I record without including the audio, then the video plays smoothly after being recorded. But if I record including the audio, no matter what parameters, codecs, bitrate or anything I use, then the video is barely watchable, with lots of choppiness, and even with delay between audio and video, apparently.

    SimpleScreenRecorder works fine, but sometimes there are few frames dropped and I don't like it much. OBS is very heavy for my hardware (Mac Mini 2016, Intel Core i5 1.4 GHz 4260U, Intel HD Graphics 4000, 4 GB RAM).

    I also tried VAAPI, with same results as above.

    And the thing is that I remember recording some years ago, with no issues at all.

    I don't know what to do. Any tip or solution?

    0
  • Ok I nearly lost hope, since not being able to figure it out.

    Ok I nearly lost hope, since not being able to figure it out.

    PLEASE. SEND. HELP.

    \_ First: this might gonna get a long one, but I‘m desperately looking for help! Second: I‘m a total newb on Linux, so I have really limited Linux know-how.

    Specs: Asus ROG Strix G15DS-R7700X088W AMD Ryzen 7 7700X NVIDIA GeForce RTX 3070 2x 1TB SSDs; 1x M2 NVME with W11 running, 1x SATA

    Goal: Running Dual Boot with W11 on the first, M2 SSD (already running fine) and Linux (Nobara preferred) on the second, SATA SSD

    Distros I tried: Nobara 39 Fedora 39 Fedora 38 Ubuntu 22.04 Pop!\_OS

    Problem I run into: I can‘t boot even from the LiveUSB without the „acpi=off“ option. If I do, I get just a black Screen (with Backlight still on) or, if I get into the Grub options first, there‘s only „booting command list“ visible but nothing else happens (even with „quiet“ disabled, no info on the Screen at all). One thing I noticed, since my Keyboard, Mouse and Mousemat (Razerfly) have lighting, when I try to boot without the acpi=off, they go dark. And stay dark. With acpi=off the keyboard alone goes dark but then lights up again after 2-3 seconds. If I run it with acpi=off, I can boot and install, but I then have to boot every time with acpi=off. This leads to the graphics driver not being recognized by the OS and running always in 1024x768 „software rendering“ resolution (even with proper drivers installed and enabled and nouveau on blacklist). So just let „acpi=off“ enabled isn‘t an option.

    I did, after researching for several hours, try with various other options (nomodeset, acpi=ht, pci=biosirq, noapic, nolapic, and so on, tried a ton of those) but nothing did the trick - always black screen of death without acpi=off.

    I did update my BIOS to the latest Version (306), did try every possibilty of options enabled/disabled (Fast Boot, Secure Boot, IOMMU, acpi settings in BIOS, secondary on-board Graphics,…) with no change.

    Since I ran out of options (in relation to my google and reddit search skills), knowledge (total newb on Linux) and possibility to ask friends (that know more about linux than me), I‘m desperate enough to ask for help.

    You are my last hope, before giving up on Linux with my PC.

    If someone has an idea I could try or even a solution, I‘d be endlessly thankful!

    If I missed some info or something is needed, don‘t hesitate to as for specific details.\_

    \#linuxquestions

    33
  • Is there anyway to create a sandboxed SFTP server to interact with an outdated document scanner?

    I have a ADS-27000w and it only seems to work with rss keys to upload documents to an SFTP server.

    I did update the firmware. I would prefer not to lessen the security on my server pc just for this scanner.

    Is there a simple way to run an SFTP server so I can upload documents securely to it?

    Thank you.

    1
  • Issues with rEFInd, Casting, and SecureBoot

    So close to perfecting my dual-boot GNU/Linux Surface Book 2 setup, but I'm encountering a few final obstacles:

    1. Is there anyway to fix the flashing on boot in rEFInd? My screen flashes gray three times and I've already tried toggling resolution, use\_graphics\_for, and text\_only.
    2. I would love to be able to connect to my Microsoft Display Adapter on OpenSUSE Tumbleweed, but no matter how much I've fiddled with Miraclecast and gnome-network-display, I can't get it to work. GND fails on some inexplicable firewall error, while Miraclecast has yet to fully implement Display-Source.
    3. I know most people will just say to fully disable Secure Boot, but I would really like to get it working. I already went through the process of signing certificates and running around MokManager with rEFInd and Tumbleweed, but for some reason it will not work at all with my Garuda installation. I'm not sure if it's because that partition is encrypted, the fact that I use the custom Nobara kernel, or if it's just an Arch-based thing.

    TL;DR: Can I make rEFInd stop flashing, SecureBoot Garuda, and connect to a Microsoft Display Adapter?

    1
  • [Solved] How can I make app launch on system start up?

    OS: EndeavourOS Fresh Install and updated

    The "Launch \<appname\> on start" on the \<appname\> settings does not work

    I have this issue with multiple apps (KeepassXC, Steam, Ferdium...) the settings in each app is marked and saved

    They work fine, they simply do not launch on system start up

    1
  • [Question] How to find which libraries an application uses?

    Hello. I was wondering which command would allow me to know factually check which graphic library an application uses?

    For instance, which UI library does telegram or firefox use? strace wouldn't work for that purpose as it deals with system calls, right? What about ltrace which works for library calls? I was able to find some gtk strings in the output of ltrace, but mostly strncmp(), strchr(), strlen(), memchr(), and one setenv(GTK_IM_MODULE, "gtk-im-context- simple"). Is that enough to conclude the process uses gtk?

    It's a little verbose, so I wondered what about lsof to show open files. lsof -p <pid> shows me that the pid opens up libgtk-3.0.so... That seems conclusive enough, right? There wouldn't be any reason to open that libgtk-3.0.so shared object if it didn't use gtk?

    Seems like lsof is better for getting this information rather than ltrace, right?

    In the specific case of firefox, lsof does show that firefox uses libgtk-3.0.so as well as something called libmozgtk.so so I guess they don't fully use gtk, but their own thing as well?

    In summary, what's the best and most reliable command to figure out which graphic library (QT, GTK, something else) an application uses? lsof?

    Thanks

    1
  • Cannot create Debian bootable USB from a Mac

    Hey All, I’d like to reinstall Debian on an old MacBook (intel core i5, so i386) from an existing and more recent Mac (M2). I’ve downloaded the i386 netinst (« little cd ») tried the methods described on both Debian and Ubuntu pages (links below). The operation completes successfully, but the USB key isn’t identified as bootable: When starting the system with « Alt », all I can select is the usual internal disk. Is there another way to verify the validity of my method, or another way I can try to create a bootable USB?

    Do I need to convert the ISO with hdiutil or is it ready, and a cp is sufficient?

    If I do a simple cp, is the old FAT file format sufficient?

    Many thanks!

    Resources used:

    Tools used:

    • dd
    • hdiutil and then dd
    • etcher
    0
  • how can i script kde settings?

    I want to create a bash script that I can run when setting up new machines to get KDE "most of the way" how I like it in terms of layout, tweaks, etc. but not sure how to use kwriteconfig5

    I am coming from Cinnamon and in the past I could usually automate most user-settings via either gsettings or config files. I also played around on xfce a little. It wasn't for me but it did teach me that I need to be concerned not only about where a setting lives but also worry about if currently loaded settings will overwrite any changes I make to the config files

    Since I am new to KDE and not really sure how settings are managed there yet (e.g. is it safe to just edit config files with sed etc or do they get overwritten?), I'm looking for some guidance on how to go about scripting this.

    For reference, some things I am trying to do (not asking anyone to do them for me... I just want to know how and am trying to give some concreate example... if anyone wanted to do one of them as an example, I woulnd't say no but i really do want to learn how to do it myself):

    • Change time format on bottom panel to use format %a, %b %e, %_I:%M %P
    • Unpin any and all of the default Task Manager icons like Dolphin, Discover, etc that are on the panel and replace them with Widgets (but only keep Konsole and Dolphin).
    • Change from Icon-only Task Manager on bottom panel to use the full/icon+title Task Manager
    • Add custom hotkey Super+V for launching vlc
    • Turn off all UI sounds, except the sound that gets played when adjusting the volume... actually, KDE might do this by default. not sure. But Cinnamon system sounds it always annoyed me
    • Customize dolphin toolbars
    • Make Konsole font bigger so it easy to see on a TV

    I am playing with Fedora KDE rn but would also like the script to work on Endeavour

    I saw some stuffs online about kwriteconfig5 but even after looking at kwriteconfig5 --help I am still confused how to actually use it in a batch script and all the examples I found online were for themes and stuff (like here), are old like from kde4, or are in blacked out reddit subs and cant see them (like here and here)

    edit: just found this which makes me think maybe I can just use sed and edit configs directly? So confused why kwriteconfig5 is mentioned everywhere if I can just edit configs...

    Also is there any good tools for tracking down the chagnes? Right now, I am making backup #1 of ~/.config, then making change in GUI, then making backup #2, then comparing #1 and #2 for changes... it works most of the time but is real slow. If there are better ways, I am open.

    0
1 Active user