Questions tagged [mp3]
The mp3 tag has no usage guidance.
90
questions
2
votes
1
answer
147
views
How to tell if a MP4 has video data and then convert it to an MP3 if there is only audio data in the file
I have a mix of MP4 files some of them only have audio data while the others have video and audio data. I want to find a way to convert the ones that don't have any video data to MP3 without checking ...
1
vote
0
answers
358
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 ...
3
votes
1
answer
56
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 ...
6
votes
3
answers
2k
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:
...
2
votes
2
answers
2k
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 ...
4
votes
2
answers
8k
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 ...
0
votes
1
answer
716
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 ...
3
votes
5
answers
5k
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 ...
1
vote
1
answer
353
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 ...
0
votes
1
answer
1k
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 ...
1
vote
1
answer
962
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}&...
0
votes
2
answers
1k
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 ...
0
votes
1
answer
244
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 ...
1
vote
1
answer
406
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.
...
3
votes
3
answers
437
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 | ...
0
votes
0
answers
529
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 ...
0
votes
1
answer
36
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 {} \;
0
votes
0
answers
4k
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 ...
1
vote
2
answers
5k
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 /...
3
votes
1
answer
934
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 ...
3
votes
2
answers
8k
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 ...
0
votes
1
answer
75
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 ...
1
vote
2
answers
2k
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>&...
3
votes
2
answers
1k
views
List MP3 files and durations
So I want to show a list of MP3 files with their durations.
ffprobe does show me the duration of a file. But its output is nasty. It puts everything into stderr and I have found no way to remove its &...
0
votes
1
answer
654
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 ...
1
vote
3
answers
7k
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 ...
0
votes
1
answer
733
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 ...
1
vote
0
answers
264
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 ...
4
votes
1
answer
327
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 ...
1
vote
1
answer
436
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 ...
1
vote
0
answers
51
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/...
3
votes
2
answers
952
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 ...
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, ...
1
vote
1
answer
920
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 ...
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/%...
8
votes
4
answers
11k
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 ...
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 ...
2
votes
0
answers
494
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 ...
5
votes
1
answer
1k
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 ...
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 ...
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 ...
1
vote
1
answer
204
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 ...
2
votes
2
answers
2k
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 ...
1
vote
0
answers
727
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 ...
2
votes
1
answer
3k
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 ...
4
votes
2
answers
6k
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 ...
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 ...
3
votes
2
answers
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, ...
3
votes
1
answer
3k
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. ...
3
votes
1
answer
206
views
abcde writes wrong play times to MP3 files
I don't know any solution to my problem. I don't even know the cause and have a hard time trying to find it.
I am ripping my Audio CDs using abcde, which is, basically, working well. It is configured ...