Change MP3 tags while preserving the audio frames
Admin ·
An MP3 can carry identification fields and pictures alongside its audio. This walkthrough changes a leading ID3 tag while retaining the entire encoded body and its trailing legacy tag.
Compare the leading ID3 and trailing ID3v1 titles
Choose Load example MP3. Inspect mode shows Harbor rehearsal, Lantern Quartet, Field Notes and track 2/6. The first MPEG Layer III frame is mono at 44,100 Hz and 64 kbps.
Open the frame inventory. It contains a TXXX session note and two APIC pictures, type 3 for front and type 4 for back. Open Trailing ID3v1 to see its separate title Archive title.
ID3v2.4 TIT2Change selected fields and reopen the copy
Switch Workspace mode to Edit metadata. Set Title to Harbor rehearsal – night take. Change Track to 3/6 and leave Front cover action on Keep original pictures. Prepare and download the tagged copy.
Open the copy in Inspect mode. The new title and track appear in the leading tag. The session note, pictures, raw XABC frame and trailing ID3v1 title are retained. The original remains available as a separate file.
ID3v2.4 tag and frame structureID3v2.4 text and attached picture frames
Compare encoded audio without decoding
A different leading tag can change the overall file size. The Encoded body count in the inspection remains the same. To verify audio packets independently, ask ffprobe to hash the audio packet data in each copy. Compare the data_hash sequence.
Replace front cover to supply a local still JPEG or PNG. Back and other pictures remain. Advanced leading tags and frames flagged to discard on tag changes can be inspected without preparing an edited copy.
ffprobe -v error -select_streams a:0 -show_packets -show_data_hash SHA256 -show_entries packet=data_hash -of csv=p=0 lantern-session-tags.mp3ID3v2.4 tag and frame structureFFmpeg ffprobe packet data hashes
Common questions
Why might an old player still show the example's previous title?
Some players prefer the trailing ID3v1 block. The workspace edits the leading ID3v2 tag and preserves that trailing block.
Can I edit a file with no leading tag?
Yes. For a supported Layer III stream, the workspace creates a simple ID3v2.4 tag and retains the existing body bytes.