TechBuzzPro

Change Codec in VLC: How to Convert Video and Audio

· 6 min read · Apps & Browsers

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To change the codec in VLC, you must use the Convert/Save feature because VLC is primarily a media player, not a real-time codec switcher for playback. You cannot change the codec of a file while it is playing; instead, you create a new version of the file with the desired codec. This process allows you to make a video compatible with specific devices, such as a smart TV or a game console, that may not support the original file format.

What You'll Need

  • A computer with the official VLC media player installed (Windows, macOS, or Linux).
  • The source video or audio file you wish to convert.
  • Enough free disk space to save the new version of the file.
  • Administrator permissions if you intend to save the converted file in a protected system folder.

Step-by-Step

  1. Open the VLC media player application on your desktop.
  2. Click on the Media menu in the top navigation bar and select Convert / Save from the dropdown list. Note that menu labels may differ slightly depending on your operating system version or region.
  3. In the Open Media window that appears, click the Add button. Browse your folders, select the file you want to change the codec for, and click Open.
  4. Once the file is listed in the queue, click the Convert / Save button at the bottom of the window.
  5. You will now see the Convert window. Locate the Settings section and find the Profile dropdown menu. This menu contains pre-set combinations of video and audio codecs (e.g., H.264 + MP3 (MP4)). Select a profile that matches your target device or desired format.
  6. To customize the codec specifically rather than using a preset, click the wrench icon (Edit selected profile) next to the Profile dropdown.
  7. In the Profile Edition window, click on the Encapsulation tab to choose the container format (such as MP4, MKV, or TS).
  8. Switch to the Video codec tab. Ensure the box for Video is checked. Under the Codec section, select the specific codec you want from the dropdown menu (e.g., H-264 or MPEG-4). You can also adjust the Bitrate and Frame Rate here to control the quality and file size.
  9. Switch to the Audio codec tab. Ensure the box for Audio is checked. Select your preferred audio codec (such as MPEG Audio or AAC) from the dropdown menu.
  10. Click Save to apply these specific codec changes to the profile.
  11. In the Convert window, go to the Destination section. Click Browse to choose where the new file will be saved and give the file a name. Ensure the file extension matches the encapsulation you chose (for example, use .mp4 if you chose MP4 encapsulation).
  12. Click Start. VLC will begin the conversion process. You will see the progress bar (the seek bar) move across the screen as if the video is playing; this is the conversion process happening in real-time. Do not close the application until the bar reaches the end.

Common Mistakes

One of the most frequent errors is attempting to save the converted file with the exact same name and in the same folder as the original file without changing the filename. If you attempt to overwrite the source file while VLC is reading it, the process will fail or result in a corrupted file. Always give your new file a unique name, such as adding "_converted" to the end.

Another common mistake is ignoring the encapsulation tab. Users often change the video codec to H.264 but leave the encapsulation as something incompatible, like AVI. For the best compatibility across modern devices, the combination of MP4 encapsulation with H.264 video and AAC audio is the industry standard.

Some users mistakenly try to find a "Codec" menu within the playback settings to change how a video looks while it is playing. It is important to understand that codecs are baked into the file during encoding. You cannot "switch" a codec on the fly to fix a choppy video; you must re-encode the file using the steps listed above.

Tips

If you are converting a very large file, avoid using the "Keep original video track" option unless you are certain the destination container supports that specific codec. While this option makes the process faster because it skips the video re-encoding, it often leads to files that won't play on other devices if the original codec was exotic or proprietary.

To maintain high visual quality, pay attention to the Bitrate setting in the Profile Edition menu. A higher bitrate generally means better quality but a larger file size. If your converted video looks pixelated or "blocky," try increasing the bitrate to match or slightly exceed the bitrate of the original source file.

If you have a large batch of files to convert, you can add multiple files in the initial "Open Media" step. However, be aware that VLC's batch conversion is less intuitive than its single-file conversion, as you may need to handle the destination filenames carefully to avoid conflicts.

Troubleshooting

If the conversion process finishes instantly but the resulting file is 0 bytes or cannot be played, first check if you have enough disk space on your destination drive. A full hard drive will cause the encoder to crash without a clear error message.

If the video plays but there is no sound, go back to the Profile Edition window and verify that the Audio checkbox is actually checked. Sometimes, presets may have audio disabled by default, or the selected audio codec is not supported by your playback device.

If the application freezes during the conversion, try disabling hardware acceleration. Go to Tools > Preferences > Input / Codecs and change the Hardware-accelerated decoding setting to Disable. Restart VLC and try the conversion again. Some graphics drivers conflict with VLC's hardware encoding paths.

If the output file is stuttering, it may be that the chosen codec is too demanding for your playback device. Try a more universal codec like H.264 or lower the resolution in the Video codec tab under the "Resolution' section.

Frequently Asked Questions

Can I change the codec without losing quality?

Technically, no. Most codecs used in VLC are "lossy," meaning some data is discarded to reduce file size. However, by setting a high bitrate in the Profile Edition settings, you can make the quality loss imperceptible to the human eye.

Why is the conversion taking so long?

Changing a codec requires the computer to decode every frame of the original video and then re-encode it using the new mathematical rules of the target codec. This is a CPU-intensive process. The speed depends on your processor's power and the length of the video.

Does VLC support 4K codec conversion?

Yes, VLC can handle 4K files and convert them to various codecs. However, converting 4K video requires significant system resources and will take considerably longer than converting standard HD (1080p) video.

What is the difference between a container and a codec?

A container (like MP4 or MKV) is like a box that holds the data. A codec (like H.264 or HEVC) is the method used to compress the actual video and audio inside that box. You need both to be compatible with your device for the file to play.

Can I use VLC to change a video to an MP3?

Yes. In the Profile dropdown, you can select "Audio - MP3." This will strip the video track entirely and save only the audio stream using the MP3 codec.