Music on USB stick played in random order on a Hi-Fi system

Solved
vaanbasch Posted messages 790 Registration date   Status Membre Last intervention   -  
vaanbasch Posted messages 790 Registration date   Status Membre Last intervention   -

Hello,

I'm getting back to you because when I put an album on a USB drive (compressed in mp3 since wav isn't supported in most cases) on a Hi-Fi system, in the car, on a desktop, etc., it doesn't play in order.

On the PC, I can play an album in order, but not on another device.

Thank you in advance ;)

Edit: Even if I name the tracks starting for example:

01 Thing

02 Nice

03...

I still can't figure out how the player reads the tracks (in a random order). And it's always the same random order.

If anyone has a solution for this.


6 réponses

Panth33ra Posted messages 23016 Registration date   Status Membre Last intervention   Ambassadeur 2 346
 

Hello,

Try this method that I use when encoding in FLAC (as MP3 is no longer a standard).

01 - Thing

02 - Cool

03... - ...

Add the "hyphen" (from the numeric keyboard) between the number and its title.


1
georges97 Posted messages 14508 Registration date   Status Contributeur Last intervention   2 898
 
1
brucine Posted messages 24409 Registration date   Status Membre Last intervention   4 104
 

Hello,

Renaming in whichever way we want is an artifact: whatever we do, the key will read the files in the order they were saved, so we rely on the fact that renaming them will re-save them in sequential order from the first file.

Without software, we can do the manipulation directly in a batch (where we will obviously replace the folder name and its path and the jpg extension); note that the starting counter is intentionally set to 1000: if I use 0, 11 will be greater than 1 but less than 2.

 @ECHO OFF CD /D E:\myfolder SET COUNT=1000 FOR /F "delims=" %%a in ('dir /b E:\myfolder\*.jpg') DO SET FILE=%%~na & CALL :PROCESS :PROCESS SET /A "COUNT=COUNT+1" SET FILE=%FILE:~0,-1% SET FILE=%FILE%.jpg REN "%FILE%" "%COUNT%_%FILE%"
1
vaanbasch Posted messages 790 Registration date   Status Membre Last intervention   666 > brucine Posted messages 24409 Registration date   Status Membre Last intervention  
 

Hello Brucine,

I modified the access path and the file format, and I'm sticking with this method. Simple, effective, and without installing anything.

 @ECHO OFF CD /D G:\1er Livret SET COUNT=1000 FOR /F "delims=" %%a in ('dir /b G:\1er Livret\*.mp3') DO SET FILE=%%~na & CALL :PROCESS :PROCESS SET /A "COUNT=COUNT+1" SET FILE=%FILE:~0,-1% SET FILE=%FILE%.mp3 REN "%FILE%" "%COUNT%_%FILE%"

Strangely, in .bat, the playback starts on the 2nd track. In .cmd, it starts from the 1st to the last and in order. Well, it's more practical when it comes to audio files of piano lessons.

A big thank you for this find that will serve me more than once!!! :)

0
vaanbasch Posted messages 790 Registration date   Status Membre Last intervention   666
 

Hello Panth33ra,

Thank you for taking the time to respond. The technique is very good, thank you, it even works by only putting 01, 02, etc...

I have a little over 1000 titles to put on a USB drive and I don't want to rename each title manually. Is there a way to rename everything at once like with the ren *.* command in the command prompt or something that works like that?


0
fmq Posted messages 4899 Registration date   Status Contributeur Last intervention   720
 

hey there, guys

I'm not as talented as Brucine

but with AIMP's tag editor, you can format your playlist according to the tags

ctrl a to select everything

and even drag/drop like with Ant

then click on auto numbering

then rename/copy with the template %TrackNumber. %FileName

to be tested (I can't find my key anymore!)

ciao ciao


0
brucine Posted messages 24409 Registration date   Status Membre Last intervention   4 104
 

Hello,

We say the same thing: whether we rename it using a utility, a batch process, whatever we want, and regardless of the track number metadata, we are going to re-record it having changed the creation date on the medium; it is this date that will determine the reading order.

Assuming that the files were recorded raw on the drive in an order that is not suitable, it is too late to intervene: there are indeed utilities that modify this attribute, PowerShell scripts, and even utilities like ExifTools that only deal with metadata, but they are not easy to implement and especially, I won't be able to later tell my batch process in which order to rename them, unless of course I have previously imposed this order either by simply renaming them during the operation or, why not, by using another sorting method like you do.

0
brucine Posted messages 24409 Registration date   Status Membre Last intervention   4 104 > brucine Posted messages 24409 Registration date   Status Membre Last intervention  
 

I would be stuck if I have, let's say, pieces named from B to Y on my key and I want to add one at the front the next day; logic would dictate that I name it A, yet it will still be read last.

I then have no other option but to individually modify the creation attribute of this file, which as we’ve seen, is not simple (I will need to find the date of the one before which I want to place it and choose an appropriate date).

Unfortunately, the simplest solution remains to keep a copy of the source on my PC and to restart the operation from scratch after formatting the key (which seems to encourage an automated script solution as I suggest since using software would require me to replicate multiple operations).

0
fmq Posted messages 4899 Registration date   Status Contributeur Last intervention   720 > brucine Posted messages 24409 Registration date   Status Membre Last intervention  
 

hi there

cool if we're on the same wavelength

it's true that rewriting everything is tedious

the ideal would be to find a multimedia bridge to connect to the hi-fi system

that plays m3u files

to your engines!!

cia ciao

0
vaanbasch Posted messages 790 Registration date   Status Membre Last intervention   666 > fmq Posted messages 4899 Registration date   Status Contributeur Last intervention  
 

Thank you,

I have taken note of every way to do it :)

0
Panth33ra Posted messages 23016 Registration date   Status Membre Last intervention   Ambassadeur 2 346
 

Hello everyone,

vaanbasch, you also have this application found on the Codes-Sources site.


0
vaanbasch Posted messages 790 Registration date   Status Membre Last intervention   666
 

Hello :)

Thank you for the link :)


0