Skip to content

Commit

Permalink
Add new output formats for recording audio/video.
Browse files Browse the repository at this point in the history
We test each of these additions by trying to record gameplay with them.
Then we play it and check the results. Pretty straightforward.
  • Loading branch information
denisfa authored and rkitover committed Aug 14, 2019
1 parent 5848fea commit aa3ecaf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/common/ffmpeg.cpp
Expand Up @@ -11,12 +11,14 @@ struct supportedCodecs {
};

const supportedCodecs audioSupported[] = {
{ AV_CODEC_ID_MP3, "MP3 (MPEG audio layer 3)", "mp3" }
{ AV_CODEC_ID_MP3, "MP3 (MPEG audio layer 3)", "mp3" },
{ AV_CODEC_ID_AAC, "ADTS AAC (Advanced Audio Coding)", "aac,adts" }
};

const supportedCodecs videoSupported[] = {
{ AV_CODEC_ID_MPEG4, "AVI (Audio Video Interleaved)", "avi" },
{ AV_CODEC_ID_MPEG4, "raw MPEG-4 video", "m4v" }
{ AV_CODEC_ID_MPEG4, "raw MPEG-4 video", "m4v" },
{ AV_CODEC_ID_FLV1, "FLV (Flash Video)", "flv" }
};

std::vector<char *> recording::getSupVidNames()
Expand Down

0 comments on commit aa3ecaf

Please sign in to comment.