From bc221d75e6c2725a87a8f8907eb192ec23f80eaa Mon Sep 17 00:00:00 2001 From: Themaister Date: Mon, 10 Dec 2012 06:58:09 -0800 Subject: [PATCH] Updated FFmpeg recording and live streaming (markdown) --- FFmpeg-recording-and-live-streaming.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/FFmpeg-recording-and-live-streaming.md b/FFmpeg-recording-and-live-streaming.md index b6345f1..c107187 100644 --- a/FFmpeg-recording-and-live-streaming.md +++ b/FFmpeg-recording-and-live-streaming.md @@ -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 \ No newline at end of file +## Lossy and flexible coding config +By adding the `--recordconfig ` parameter, you have more control over encoding. +The recognized config options are: + vcodec = # Same as -vcodec + acodec = # Same as -acodec + 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 to use when encoding video. Should be set to (# of CPU threads - 1). + frame_drop_ratio = # Only encodes every frames. + pix_fmt = # Same as -pix_fmt, no default is assumed, must be set! + scale_factor = # Scales input by . Useful when encoding in chroma subsampled formats like yuv420p. + sample_rate = # Audio output sampling rate. + audio_global_quality = # 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 = # Audio bit rate (CBR). This is in bit/s, so use e.g. 192000 for 192 kb/s. + + video_{option} = # Sets generic video option {option} to . This is codec specific. Mostly useful for libx264. + audio_{option} = # Sets generic audio option {option} to . This is codec specific. \ No newline at end of file