AVStream.codec has been deprecated in favor of AVStream.codecpar. Due to the FFmpeg/Libav split, this happened in two separate versions: - 57.33.100 for FFmpeg - 57.5.0 for Libav
Signed-off-by: yuchenlin <npes87184@gmail.com>
Implement recording in a separate "class".