Questions tagged [mp3]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
29 views

How to fix mp3 with mp3diags on the command line

It's been said that mp3diags can be used to repair MP3 files. There's an old file that plays fine on Windows, but I noticed that something wasn't right because it would not let me edit properties like ...
user avatar
  • 333
0 votes
0 answers
21 views

Data recovery for a specific mp3 file

I am looking for some help for the recovery of data that was erased. This concerns files with mp3 format. I know that a part of the file has been deleted or separated from the main file, the end part, ...
user avatar
  • 1
3 votes
1 answer
48 views

Cannot use any terminal based MP3 player

Currently I am using a Debian 11 system. Something seems to be completely off with music players. I first tried cmus to no avail (cmus would give errors on startup and not show any mp3 files) I then ...
user avatar
6 votes
3 answers
685 views

Finding duplicate files with same filename AND exact same size

I have a huge songs folder with a messy structure and files duplicated in multiple folders. I need a recommendation for a tool or a script that can find and remove duplicates with simple two matches: ...
user avatar
1 vote
0 answers
45 views

does picard delete embed art?

I am on archlinux and using picard to edit my tags. So far I haven't been able to find a way to remove the embedded album art, does picard even support it?
user avatar
  • 135
1 vote
2 answers
515 views

Automating the splitting of a large mp3 file with FFmpeg into multiple files in different time points provided in a text file

I have a large mp3 file; I want to split it into 480 mp3 files in different time points. I want to know if there is an easy way to do it other than splitting it one by one. Can I provide the different ...
user avatar
2 votes
2 answers
2k views

how to convert output.mp3 to mp4 with ffmpeg?

i use this command to merge many mp3 files in a directory: ffmpeg -f concat -safe 0 -i <(for f in ./*.mp3; do echo "file '$PWD/$f'"; done) -c copy ./output.mp3 and now i want to convert ...
user avatar
0 votes
1 answer
298 views

Soundconverter error encoding to mp3

I am running Ubuntu 20.04 on a Lenovo Thinkpad X1 Tablet. A few years ago I wrote a bash script using soundconverter to transcode some of my music to mp3 files when I need to use a player that only ...
user avatar
2 votes
5 answers
2k views

Remove album art from MP3 files using the command line

I want to remove the album art that is embedded in a bunch of MP3s (thousands) and cannot find a command-line way to do this. I can add art via lame and I can add or remove pretty much any other tags ...
user avatar
  • 657
1 vote
1 answer
149 views

Is it possible to search for a string and replace it with another string in the title tag of multiple mp3 files?

I would like to search for "ytversion", replace it with "mqversion" in the title tag of multiple mp3 files. I would like this process not edit/delete any other parts of the ...
user avatar
  • 786
0 votes
1 answer
581 views

convert encoding of id3 tags of mp3 file

My mp3 file has id3 tags which can be displayed in a terminal on my debian buster linux for example by using the program id3tool or id3. If my shell (xfce4-terminal) has a set default character ...
user avatar
  • 145
0 votes
1 answer
506 views

ffmpeg not copying FRONT_COVER image metadata during conversion

When doing an mp3 → mp3 (or flac → mp3) conversion, -map_metadata can be used to copy metadata from the input file to the output file: ffmpeg -hide_banner -loglevel warning -nostats -i "${source}&...
user avatar
0 votes
2 answers
640 views

sox command is automatically adding delay in the begining of mp3

I have a few video files which have "humm" sound in the audio. So, I created the following script for batch processing. I am using ffmpeg, to extract audio to .mp3, and sox to denoise, which ...
user avatar
0 votes
1 answer
148 views

mid3v2 Error on Attempt to Set Picture Tag

When trying to set picture tag for MP3 file using mid3v2, I get the following error message: mid3v2 [OPTION] [FILE]... mid3v2: error: no such option: --picture Yet, the documentation states this is a ...
user avatar
1 vote
1 answer
128 views

How can I play all of mp3s in a folder continously with sox

I use sox for play audio in my computer. I love it. But I don't know how to repeat all of my mp3s in a folder. play -R *.mp3 and play repeat 10 *.mp3 not works. After end of sequence it exited. ...
user avatar
  • 113
1 vote
1 answer
270 views

List all mp3 files having over 320 kbps bitrate using bash

I'd like to get a list of all mp3 files with >320 bitrate. I'm not sure, how to apply the regular expression to the output of exiftool -AudioBitrate command. find . -type f -name '*.mp3' -print0 | ...
user avatar
0 votes
0 answers
340 views

Sox split .mp3 wav by silence

mp3 file with around 200 sentences. They are separated by silence of around 500-1000, but it is not fixed or equal. What is the best way to split to one file per sentence? Preferably with sox. I ...
user avatar
  • 101
0 votes
1 answer
33 views

Avconv only converts 3 seconds of audio instead of the entire 30 minutes

this is my code dir=Desktop/mp3convert #I left out the whole t find "${dir:-.}" -name "*.mp3" -exec avconv -i {} -b 64k -ar 44100 -ac 1 {} \;
user avatar
0 votes
0 answers
2k views

passing a referrer link using a m3u playlist file

I can pass a referrer link in VLC using a Lua file by typing in vlc ipchannel.lua (see example of Lua file below). But how can I pass a referrer link using an m3u playlist file? Example of working ...
user avatar
  • 317
1 vote
2 answers
3k views

normalize the volume level of an mp3 file with sox using maximum bitrate for the new file

I have lots of mp3 files that were set (by some buggy tool) to such a low gain level, that there is nothing to hear any more. This command for f in *.mp3; do sox --norm "$f" /tmp/sox.mp3; mv -v /...
user avatar
  • 24.9k
1 vote
1 answer
464 views

Tool to determine MP3 actual quality

I am looking for a CLI tool that will give me an output of the frequency range of an MP3 file, like Spek does, but without the image file. I need to this to analyse a large library of MP3 files to ...
user avatar
3 votes
2 answers
6k views

Batch convert (decode) audio into multiple formats with ffmpeg

I have a directory with a bunch of CD quality (16bit 44100Hz) wave-files. How can I batch decode those into different formats (lets say FLAC, OGG and MP3) using ffmpeg? Update: here are the commands ...
user avatar
  • 4,848
0 votes
1 answer
56 views

Is there a more lightweight solution to read/write MP3 with Linux+Python?

This works very well to export a WAV to MP3: from pydub import AudioSegment song = AudioSegment.from_wav("test.wav") song.export("test.mp3", format="mp3", bitrate="256k") but it requires to install ...
user avatar
  • 2,153
1 vote
2 answers
1k views

How to find accumulated duration on several mp3 with command line?

I have a directory with a lot of mp3 files, and I need a simple way to find the accumulated duration for them. I know that I can find the duration for one file with ffmpeg -i <file> 2>&...
user avatar
  • 494
1 vote
2 answers
623 views

List MP3 files and durations

So I want to show a list of MP3 files with their durations. ffprobe does show me a duration of a file. But its output is nasty. It puts everything into stderr and I have found no way to remove its "...
user avatar
0 votes
1 answer
495 views

How to write replaygain tags with album gain using mp3gain?

I installed mp3gain and looking at the manual it seems it is not possible to write replaygain tags while using album tags. BUT perhaps I missed something. mp3gain optionally writes gain adjustments ...
user avatar
  • 1,699
1 vote
3 answers
6k views

How to convert .mp3 to AAC?

I am using my Nokia C2-01 which does not accept mp3s. I am thinking how to convert my mp3s to aac because it should maintain the sound quality well. Another option is to convert mp3 to m4a but I ...
user avatar
0 votes
1 answer
700 views

omxplayer shuffle?

On my Linux machine, I am trying to shuffle all music in my directory and play it. When I run omxplayer $(ls -1b |sort -R), it says /usr/bin/omxplayer.bin: invalid option -- '\'. This doesn't make ...
user avatar
  • 233
1 vote
0 answers
244 views

How to make 'sox' recognize 'lame'?

I tried to build sox on MacOS with MP3 support. A few months back; I forget the details, but it either would not build that way, or afterwards it failed to accept MP3. So I tried what was in the ...
user avatar
  • 205
4 votes
1 answer
238 views

Does altering the amplitude of an mp3 file, using sox, alter the signal?

I've just used sox to reduce the amplitude by 3dB on an mp3 file, because the song was playing back too loudly. I used sox input-file.mp3 output-file.mp3 gain -3 Does this processing alter the ...
user avatar
  • 41
1 vote
1 answer
393 views

Trying to decode mp3 file on NVIDIA Tesla K20c GPU on RHEL 6.6

I am trying to use mpg123 to play a mp3 file but am struggling to do it on a GPU. Upon doing a lot of research, the closest command I found for my requirement was: mplayer -vo vdpau and -vc ...
user avatar
  • 247
1 vote
0 answers
50 views

Web VLC Player mp3 streaming from usb.hdd via 192.168.x.x:8090

Hi this works till now with my online links, but I can't get any music from my offline usb.hdd. Via console it works with the comment vlc play /media/pi/fmgNAS/Music/90_Discoteque_Mix_Vol.1/...
user avatar
3 votes
2 answers
836 views

Kalarm plays ogg sound alarms but not mp3

When attempting to create an audio alarm (or a display alarm with an audio component), Kalarm plays the audio if the file type is .ogg but refuses for files of type .mp3. When running Kalarm from ...
user avatar
  • 813
3 votes
1 answer
4k views

Add a new custom metadata tag

I know how to change a tag value, and how to extract tag values of a file from its metadata, and yes we have great tools like id3tag, exiftool, ffmpeg and etc. But I need to add a completely new tag, ...
user avatar
1 vote
1 answer
854 views

Optimize find -exec {} with multiple conditions : specific files in a dir and specific subdirectories in this dir

My problem is related to music encoding on my NAS and optimisation of linux find command. I have write a script that is totally functionnal but I am sure this not the best way. To summarize: 1/ Script ...
user avatar
2 votes
1 answer
6k views

Converting files to OGG with FFMPEG produces an extremely large file

When trying to convert either an mp3 or flac file to ogg, the output ogg file is actually a flac file with a large file size. For instance: running for file in *.mp3; do ffmpeg -i "${file}" "${file/%...
user avatar
  • 23
8 votes
4 answers
10k views

Merge mp3 files

Neither cat nor mp3wrap are working for me. They merge the files, but the when playing the resulting file, the audio length information is wrong. That is, it show the length of the 1st part (the part ...
user avatar
  • 1,933
2 votes
2 answers
2k views

Bash script to get all mp3 file from a html page

I was thinking in a way to get .mp3 files from a html page, manually i did get using wget wget http://www.podcastfrancaisfacile.com/wp-content/uploads/files/question-prix.mp3 So, i try this for an ...
user avatar
2 votes
0 answers
459 views

mplayer: Problem opening sound files, gnome-mplyaer works, why?

I'm new to this community and this is my first question. I am using Debian 8.3 Jessie and have two sound files a.mp3 and b.mp3 on my hard drive. I am using mplayer and gnome-mplayer to open these ...
user avatar
  • 150
5 votes
1 answer
829 views

Utility for copying ID3v2 tags to ID3v1?

I'm looking for a utility which will copy existing ID3v2 tags to ID3v1 counterparts alongside the original metadata in MP3 files. I have some legacy hardware that I'm not giving up any time soon and ...
user avatar
  • 35.7k
2 votes
1 answer
2k views

mpg321 playing too fast, at high pitch, via USB Audio

I'm trying to play an mp3 file on a Raspberry PI via USB Audio (iLuv Compact Speakers) and mpg321. For some reason, it's playing the audio just a little bit too fast, and at a higher pitch than it ...
user avatar
3 votes
1 answer
1k views

Joining all mp3 links in m3u file into a single mp3 file

I have an m3u file, which has links to many mp3 files online. When I play this m3u file in a player such as vlc, it works fine as long as the internet connection is good. My question is, what's a ...
user avatar
  • 2,501
1 vote
1 answer
178 views

Bad ID3 tags when transferring mp3 to another device

I created mp3 files in Linux with the mp3wrap application and then I applied ID3 tags on it as follows: $ for i in *.mp3; do mp3info -t ${i%.*} -l yes1 -a yes $i; done When I look at a particular ...
user avatar
  • 14.6k
2 votes
2 answers
1k views

How to remove the APE tag in an MP3 file?

An MP3 file can support three different types of tags (that I am aware of): ID3V1, ID3V2.4 and APE. I would like to know how to remove an APE tag in an MP3 file or files, since it is giving me ...
user avatar
  • 1,009
1 vote
0 answers
535 views

Why can't I edit the tags of some mp3 files?

I am having this weird problem while trying to edit the tags of my music library: I modify them with EasyTAG and there seems to be no problem (VLC recognizes the changes I make), but I then transfer ...
user avatar
  • 1,009
2 votes
1 answer
2k views

Create SOX batch script to extract first 15 seconds and rename multiple files in folder

I have a folder with several MP3 files that I need to extract 10-15 seconds of audio from. I would also like to rename these by appending sample-(name).mp3 to the converted files. How can I do this ...
user avatar
3 votes
2 answers
5k views

Command line tool to fingerprint and tag MP3

I have a large collection of MP3 files, accumulated over the years. The collection is intermittently tagged, and many filenames are totally nondescript as well (e.g. file01.mp3, file02.mp3, etc). The ...
user avatar
6 votes
2 answers
3k views

Lossless conversion of MPEG ADTS MP3 to normal MP3

I have many MP3 audio files which are ADTS encoded. Unfortunately, my car radio doesn't support ADTS, so I need to convert them to normal MP3 files without a transport stream. There are many people ...
user avatar
2 votes
1 answer
2k views

Copy FLAC tags to MP3 files?

I have a number of FLAC files that I'm converting into MP3 files with the following: flac -cd file.flac | lame ... - file.mp3 Is there a utility which will copy Vorbis (FLAC and OGG) metadata, ...
user avatar
  • 35.7k
3 votes
1 answer
2k views

Is there a way to check the losslessness of a FLAC file in Linux?

Let me explain my question with greater detail: I know FLAC is a lossless audio format with respect to the original file; this is, any piece of audio encoded with FLAC will be preserved completely. ...
user avatar
  • 1,009