Getting the error while using FFmpeg to record live streams

To fix this error, you will need to re-encode your video, audio, or subtitle streams using one of the supported codecs, or choose a different container format that supports the codecs you are using.

You can use the -c:v, -c:a, and -c:s options to specify the codecs for the video, audio, and subtitle streams, respectively. For example, to re-encode a video using the VP8 codec, you could use a command like this:

ffmpeg -i input.mp4 -c:v libvpx -c:a libvorbis output.webm

Remember that you may also need to use other options to specify the bitrate, resolution, and other parameters for the codecs you are using. You can find more information about these options in the FFmpeg documentation.

Otherwise, you can also try to record screen in FFmpeg