---
title: 'How to transcode audio files inside a ZIP archive'
url: 'https://replayer.app/en/blog/how-to-transcode-audio-files-inside-a-zip-archive'
markdown: 'https://replayer.app/en/blog/how-to-transcode-audio-files-inside-a-zip-archive.md'
lang: en
date: '2026-09-14'
description: "For rehearsals, a lower audio quality (i.e. lower bitrate), might be acceptable, with the benefit of having smaller ZIP packages. Here's how to convert existing MP3 files in-place, on Ubuntu Linux. Un-ZIP the package. Run the following script (you might want to adjust the bitrate from 128 bit/seco…"
---

# How to transcode audio files inside a ZIP archive

## [How to transcode audio files inside a ZIP archive](https://replayer.app/en/blog/how-to-transcode-audio-files-inside-a-zip-archive)

    14th Sep 2026  

For rehearsals, a lower audio quality (i.e. lower bitrate), might be acceptable, with the benefit of having smaller ZIP packages. Here's how to convert existing MP3 files in-place, on Ubuntu Linux.

1. Un-ZIP the package.
2. Run the following script (you might want to adjust the bitrate from 128 bit/second to another value) ```
    #! /bin/bash
    # Transcodes all audio files in a folder
    # This script works through all MP3 files, and transcodes them in place (A temporary file is required, as ffmpeg does not natively support in-place editing).
    for file in *.mp3; do
    [ -e "$file" ] || continue              # Check if the file exists
    temp_file="${file%.mp3}_temp.mp3"      # Create a temporary filename
    ffmpeg -i "$file" -b:a 128k -y "$temp_file" && mv "$temp_file" "$file"  # Transcode (use your desired bitrate here) and rename
    done
    ```
3. Re-ZIP the package (use no compression as zipping MP3 encoded content is inefficient)

 [ Previous Post](https://replayer.app/en/blog/how-to-convert-audio-files-into-the-mp3-format-in-bulk-on-windows) [Next Post ](https://replayer.app/en/blog/replayer-version-1-4-out-now)

#### Syndicate

 [ Atom 1.0](https://replayer.app/en/blog.atom) [ RSS](https://replayer.app/en/blog.rss)

---

## Navigation

- Parent: [Blog](https://replayer.app/en/blog.md)
- Previous: [Replayer version 1.4 out now](https://replayer.app/en/blog/replayer-version-1-4-out-now.md)
- Next: [How to convert audio files into the MP3 format in bulk (on Windows)](https://replayer.app/en/blog/how-to-convert-audio-files-into-the-mp3-format-in-bulk-on-windows.md)
