1
0
mirror of https://github.com/tiyn/wiki.git synced 2025-04-19 06:07:44 +02:00

Compare commits

..

3 Commits

3 changed files with 43 additions and 6 deletions

View File

@ -6,6 +6,8 @@ It features compatibility with [GOG](https://www.gog.com/),
[Humble Bundle](https://humblebundle.com/),
[Epic Games](https://www.epicgames.com/), [Steam](/wiki/games/steam.md) and many
other Windows games via its own installer that uses [WINE](/wiki/linux/wine.md).
Lutris can also use [Proton](/wiki/games/proton.md) - a patched version of WINE
developed by [Valve](https://www.valvesoftware.com/).
Additionally to that Lutris supports many different
[emulators](/wiki/games/emulators.md).

View File

@ -1,8 +1,8 @@
# Proton
[Proton](https://github.com/ValveSoftware/Proton) is a compatibility tool for
[Steam](./steam.md) by its developers, [valve](https://www.valvesoftware.com),
based on [Wine](../linux/wine.md).
[Steam](./steam.md) by its developers, [Valve](https://www.valvesoftware.com),
based on [WINE](../linux/wine.md).
## GE-Version
@ -13,8 +13,12 @@ It often contains fixes for bugs which are not yet included in the official
Proton releases.
Thus some games, that do not work with Proton, can be run with Proton GE.
Proton GE can be installed on Linux systems by installing the `ProtonUp-Qt`
application using [Flatpak](../linux/flatpak.md).
Proton GE can be installed on Linux systems by using the
[ProtonUp](https://github.com/AUNaseef/protonup) application using
[Flatpak](../linux/flatpak.md) or the package manager of the distribution.
ProtonUp is usually bundled in a package named `protonup-qt`.
It can be used to install Proton GE versions for both
[Steam](/wiki/games/steam.md) and [Lutris](/wiki/games/lutris.md).
### Errors with the Wine prefix of a specific game

View File

@ -1,6 +1,6 @@
# ffmpeg
# FFmpeg
[ffmpeg](https://www.ffmpeg.org) is a free and open-source suite consisting of
[FFmpeg](https://www.ffmpeg.org) is a free and open-source suite consisting of
many audio and video tools and libraries.
## Usage
@ -32,3 +32,34 @@ ffmpeg -f concat -safe 0 -i files.txt -map 0 -c copy output.mp4
If the video files you want to concatenate are not mp4 files change the above
command accordingly.
### Two-Pass Encoding
Two pass encoding - as described in the
[official FFmpeg documentation](https://trac.ffmpeg.org/wiki/Encode/H.264#twopass)
- uses two passes.
The first pass analyzes the input data and outputs a descriptor file.
The second pass actually encodes the data.
The following is an example where the file `input` is encoded with `libx264` to
`mp4` video with `libfdk_aac` audio.
The video bitrate is `555k` and the audio bitrate is `128k`.
```sh
ffmpeg -y -i input -c:v libx264 -b:v 555k -pass 1 -c:a libfdk_aac -b:a 128k -f mp4 /dev/null && \
ffmpeg -i input -c:v libx264 -b:v 555k -pass 2 -c:a libfdk_aac -b:a 128k output.mp4
```
### Encode Audio/Video to Target Size
For the encoding of a file to a target size the target bitrate of the output
video is needed.
An explanation of this was given by
[aergistal on Stack Overflow](https://stackoverflow.com/questions/29082422/ffmpeg-video-compression-specific-file-size).
This can easily be done with the calculation `bitrate = target size / duration`
in Bits/Second.
Afterwards the encoding can be done by using Two-Pass Encoding as explained in
[a previous section](#two-pass-encoding).
Note that the bitrate for videos is split amongst a bitrate for video and a
bitrate for audio.
The target bitrate has to be equal to or greater than the sum of both video
bitrate and audio bitrate.