# Getting the error while using FFmpeg to record live streams

**URL:** <https://community.gumlet.com/t/getting-the-error-while-using-ffmpeg-to-record-live-streams/1091>\
**Category:** Tech QnA\
**Created:** [December 26, 2022, 6:26am UTC](https://community.gumlet.com/t/getting-the-error-while-using-ffmpeg-to-record-live-streams/1091 "2022-12-26T06:26:00Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![preetpal](https://community-cdn.gumlet.com/letter_avatar_proxy/v4/letter/p/34f0e0/32.png) [@preetpal](https://community.gumlet.com/u/preetpal)\
**Post date:** [December 26, 2022, 7:05am UTC](https://community.gumlet.com/t/getting-the-error-while-using-ffmpeg-to-record-live-streams/1091/4 "2022-12-26T07:05:00Z")

</div>

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](https://community.gumlet.com/t/how-to-record-screen-with-ffmpeg/518)**

---

_[View the full topic](https://community.gumlet.com/t/getting-the-error-while-using-ffmpeg-to-record-live-streams/1091)._
