add scaling, mangohud, mpv, network, ungoogle chromium

This commit is contained in:
2024-10-11 10:48:03 -04:00
parent c12087f5ea
commit 85a574fd36
3 changed files with 200 additions and 6 deletions

View File

@@ -5,6 +5,7 @@
- [Steam](#steam)
- [autostart](#autostart)
- [mangohud](#mangohud)
- [Scaling](#scaling)
- [Streaming](#streaming)
- [FSR](#fsr)
- [Sunshine and Moonlight](#sunshine-and-moonlight)
@@ -23,10 +24,13 @@
- [OBS](#obs)
- [Xbox Controller](#xbox-controller)
- [Mangohud](#mangohud-1)
- [Minecraft with Mangohud](#minecraft-with-mangohud)
- [ffmpeg](#ffmpeg)
- [AUR](#aur)
- [Intel 11th gen](#intel-11th-gen)
- [AMD 7900xtx](#amd-7900xtx)
- [Taking Game Cips](#taking-game-cips)
- [MPV](#mpv)
- [Minecraft](#minecraft)
- [Launcher](#launcher)
- [MultiMC](#multimc)
@@ -66,7 +70,7 @@ Start steam with mangohud
```bash
pacman -S mangohud lib32-mangohud
cp /usr/share/applications/steam-native.desktop ~/.local/share/applications/steam.desktop
cp /usr/share/applications/steam.desktop ~/.local/share/applications/steam.desktop
```
Edit ~/.local/share/applications/steam.desktop:
@@ -75,6 +79,21 @@ Edit ~/.local/share/applications/steam.desktop:
Exec=/usr/bin/mangohud /usr/bin/steam-native %U
```
### Scaling
On HiDPI screens you might need to manually scale the steam interface. This can be done by editing
the .desktop file:
```bash
cp /usr/share/applications/steam.desktop ~/.local/share/applications/steam.desktop
```
Edit `~/.local/share/applications/steam.desktop`
```conf
Exec=/usr/bin/mangohud /usr/bin/steam-runtime -forcedesktopscaling 2 %U
```
### Streaming
See [Sunshine and Moonlight](#sunshine-and-moonlight) first! It's much better than steam streaming.
@@ -316,6 +335,10 @@ Edit `~/.config/MangoHud/MangoHud.conf` and tweak as you see fit.
Then add `mangohud env MANGOHUD_CONFIGFILE=/home/ducoterra/.config/MangoHud/MangoHud.conf %command%` to your steam launch.
### Minecraft with Mangohud
MultiMC offers a "Wrapper" option in Settings -> Custom commands. Add `/usr/bin/mangohud --dlsym`.
## ffmpeg
<https://wiki.archlinux.org/title/FFmpeg>
@@ -369,6 +392,65 @@ ffmpeg \
output.mp4
```
### Taking Game Cips
1. Install [MPV](#mpv)
2. Open the video clip in mpv
3. Press <kbd>del</kbd> to always show the seek bar
4. Click the timestamp in the bottom left to show milliseconds
5. Use <kbd>,</kbd> and <kbd>.</kbd> to seek frame by frame to find the start frame
6. Use the following ffmpeg command to trim clips
```bash
# format start_time and end_time like `00:00:34.000` (hh:mm:ss.mmm)
export input_file=
export output_file=
export start_time=
export end_time=
# -r 30 == frame rate of 30
# -vf scale scales the output
ffmpeg \
-ss $start_time \
-to $end_time \
-i $input_file \
-c:v libx264 \
-b:v 0 \
-vf scale=1920:1080 \
-r 30 \
$output_file
```
6. Then concat clips with the following
```bash
# Create mylist.txt
cat <<EOF > clips.txt
file '/path/to/file1'
file '/path/to/file2'
file '/path/to/file3'
EOF
```
```bash
ffmpeg -f concat -i mylist.txt -c copy output.mp4
```
## MPV
<https://wiki.archlinux.org/title/Mpv>
MPV is an alternative to VLC with a couple key benefits:
1. Reverse frame-by-frame seeking
2. millisecond timestamp
These are great for video clipping with ffmpeg.
```bash
pacman -S mpv
```
## Minecraft
### Launcher