Add FFmpeg's AAC enoder

This just adds FFmpeg's default AAC encoder as an audio encoder.  Going
to try to start getting things going with the RTMP output library next.
This commit is contained in:
jp9000
2014-04-05 01:13:11 -07:00
parent 8c74db9ffc
commit cabe98cb4e
6 changed files with 296 additions and 12 deletions

View File

@@ -1,5 +1,12 @@
#pragma once
static inline int64_t rescale_ts(int64_t val, AVCodecContext *context,
AVRational new_base)
{
return av_rescale_q_rnd(val, context->time_base, new_base,
AV_ROUND_NEAR_INF | AV_ROUND_PASS_MINMAX);
}
static inline enum AVPixelFormat obs_to_ffmpeg_video_format(
enum video_format format)
{