mirror of
https://github.com/tiyn/wiki.git
synced 2025-04-19 22:17:45 +02:00
Compare commits
No commits in common. "8dca5c7471cbdbec59f494b1b61a69633f5a7c93" and "12b3fd5449fdebc5fb9f5ae86ea54b40daee29fc" have entirely different histories.
8dca5c7471
...
12b3fd5449
@ -6,8 +6,6 @@ It features compatibility with [GOG](https://www.gog.com/),
|
|||||||
[Humble Bundle](https://humblebundle.com/),
|
[Humble Bundle](https://humblebundle.com/),
|
||||||
[Epic Games](https://www.epicgames.com/), [Steam](/wiki/games/steam.md) and many
|
[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).
|
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
|
Additionally to that Lutris supports many different
|
||||||
[emulators](/wiki/games/emulators.md).
|
[emulators](/wiki/games/emulators.md).
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
# Proton
|
# Proton
|
||||||
|
|
||||||
[Proton](https://github.com/ValveSoftware/Proton) is a compatibility tool for
|
[Proton](https://github.com/ValveSoftware/Proton) is a compatibility tool for
|
||||||
[Steam](./steam.md) by its developers, [Valve](https://www.valvesoftware.com),
|
[Steam](./steam.md) by its developers, [valve](https://www.valvesoftware.com),
|
||||||
based on [WINE](../linux/wine.md).
|
based on [Wine](../linux/wine.md).
|
||||||
|
|
||||||
## GE-Version
|
## GE-Version
|
||||||
|
|
||||||
@ -13,12 +13,8 @@ It often contains fixes for bugs which are not yet included in the official
|
|||||||
Proton releases.
|
Proton releases.
|
||||||
Thus some games, that do not work with Proton, can be run with Proton GE.
|
Thus some games, that do not work with Proton, can be run with Proton GE.
|
||||||
|
|
||||||
Proton GE can be installed on Linux systems by using the
|
Proton GE can be installed on Linux systems by installing the `ProtonUp-Qt`
|
||||||
[ProtonUp](https://github.com/AUNaseef/protonup) application using
|
application using [Flatpak](../linux/flatpak.md).
|
||||||
[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
|
### Errors with the Wine prefix of a specific game
|
||||||
|
|
||||||
|
@ -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.
|
many audio and video tools and libraries.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
@ -32,34 +32,3 @@ 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
|
If the video files you want to concatenate are not mp4 files change the above
|
||||||
command accordingly.
|
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.
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user