Updated FFmpeg recording and live streaming (markdown)
parent
9d2cda5faa
commit
bc221d75e6
|
@ -21,6 +21,21 @@ and the configure script should pick up the FFmpeg libraries in `/opt/ffmpeg/lib
|
|||
to make sure. After successfully compiling, make sure that the RetroArch binary picks up the correct FFmpeg libs by adding `/opt/ffmpeg/lib` to LD_LIBRARY_PATH (or the equivalent on OSX).
|
||||
|
||||
## Lossless coding
|
||||
By default (not providing an encoding config), lossless coding is used. This means libx264/RGB, with -qp 0 (lossless). The audio codec used is FLAC.
|
||||
By default (not providing an encoding config), lossless coding is used. This means libx264/RGB, with -qp 0 (lossless). The audio codec used is FLAC. libx264/RGB ensures very nice bitrates even when lossless and very fast encoding.
|
||||
|
||||
## Lossy and flexible coding config
|
||||
## Lossy and flexible coding config
|
||||
By adding the `--recordconfig <config>` parameter, you have more control over encoding.
|
||||
The recognized config options are:
|
||||
vcodec = <codec> # Same as -vcodec
|
||||
acodec = <codec> # Same as -acodec
|
||||
format = <format> # Muxer format to use. E.g. mkv, flv or mp4. This is normally inferred, but must be set when using extensionless formats like RTMP (streaming).
|
||||
threads = <threads> # Threads to use when encoding video. Should be set to (# of CPU threads - 1).
|
||||
frame_drop_ratio = <ratio> # Only encodes every <ratio> frames.
|
||||
pix_fmt = <pix_fmt> # Same as -pix_fmt, no default is assumed, must be set!
|
||||
scale_factor = <factor> # Scales input by <factor>. Useful when encoding in chroma subsampled formats like yuv420p.
|
||||
sample_rate = <rate> # Audio output sampling rate.
|
||||
audio_global_quality = <qual> # Global quality for audio (VBR). Maps to codec->global_quality in API. Play around with it. Higher = better. 75 seems to be a fair value.
|
||||
audio_bit_rate = <bitrate> # Audio bit rate (CBR). This is in bit/s, so use e.g. 192000 for 192 kb/s.
|
||||
|
||||
video_{option} = <value> # Sets generic video option {option} to <value>. This is codec specific. Mostly useful for libx264.
|
||||
audio_{option} = <value> # Sets generic audio option {option} to <value>. This is codec specific.
|
Loading…
Reference in New Issue