streamlink url best -O | ffmpeg -i pipe:0 -c:v copy -c:a aac output.mkv
streamlink url best -o output.mkv
resulting format:
Container = Matroska
Video = AVC, ID = "V_MPEG4/ISO/AVC"
Audio = Opus, ID = "A_OPUS"
That format can't be imported in Premiere, we have to pipe through ffmpeg and re-encode audio:
streamlink url best -O | ffmpeg -i pipe:0 -c:v copy -c:a aac output.mkv
Interestingly, we can get around the import error by simply copying both streams and using the same container. However, Premiere won't see the audio stream, so this is not a good method.
streamlink url best -O | ffmpeg -i pipe:0 -c:v copy -c:a copy output.mkv