VOGONS

Common searches


CUE sheet troubles :/

Topic actions

First post, by Akuma

User metadata
Rank Member
Rank
Member

I'm trying to mount an ISO/CUE/MP3/OGG but I can't seem to get it working .
I read this: https://www.dosbox.com/wiki/Cuesheet

Literally copied this into a file:

FILE "image.iso" BINARY
TRACK 01 MODE1/2048
INDEX 01 00:00:00
FILE "track02.ogg" MP3
TRACK 02 AUDIO
PREGAP 00:02:00
INDEX 01 00:00:00

Than ran:

imgmount d image.cue -t iso

And got:

dosbox.png
Filename
dosbox.png
File size
5.54 KiB
Views
1047 views
File license
Public domain

What am I doing wrong ? 😕

Reply 2 of 29, by Akuma

User metadata
Rank Member
Rank
Member
jmarsh wrote on 2020-10-19, 13:57:

Are you using a build that is linked with SDL_Sound?

Yup, running the latest SVN (compiled yesterday) on Linux
libSDL_sound-1.0.so.1 => /lib/x86_64-linux-gnu/libSDL_sound-1.0.so.1

Reply 4 of 29, by Akuma

User metadata
Rank Member
Rank
Member
Qbix wrote on 2020-10-19, 14:13:

is the file case correct for all the files ?

Yup, all lowercase.

EDIT: Almost forgot, it works when I only have the ISO in the CUE file.

EDIT2: Might be the SDL_SOUND,
purgedthe SDL packages, reinstalled them, compiling latest SVN now
(this is probably my fault, it usually is 😁)

Reply 6 of 29, by Akuma

User metadata
Rank Member
Rank
Member
jmarsh wrote on 2020-10-19, 15:15:

You need the SDL_Sound dev package for linking (and make sure it is for SDL 1.x, not 2.x) as well as the runtime library. Check the output of ./configure to make sure it gets found.

Indeed, the libsdl1.2-dev was missing. I feel stupid 🙁

Reply 9 of 29, by dr_st

User metadata
Rank l33t
Rank
l33t
Akuma wrote on 2020-10-20, 19:33:

Does one EDIT a copy of the original CUE sheet ?
or build a new one from scratch ?

What is considered best practice ?

Obviously to use a tool to build it properly.

Because this:

FILE "image.iso" BINARY
2 TRACK 01 MODE1/2048
3 INDEX 01 00:00:00
4 FILE "track02.ogg" MP3
5 TRACK 02 AUDIO
6 PREGAP 00:02:00
7 INDEX 01 00:00:00

Is definitely incorrect. You are basically saying that both tracks start at the same time (00:00:00)

https://cloakedthargoid.wordpress.com/ - Random content on hardware, software, games and toys

Reply 10 of 29, by Akuma

User metadata
Rank Member
Rank
Member
dr_st wrote on 2020-10-21, 07:20:
Obviously to use a tool to build it properly. […]
Show full quote
Akuma wrote on 2020-10-20, 19:33:

Does one EDIT a copy of the original CUE sheet ?
or build a new one from scratch ?

What is considered best practice ?

Obviously to use a tool to build it properly.

Because this:

FILE "image.iso" BINARY
2 TRACK 01 MODE1/2048
3 INDEX 01 00:00:00
4 FILE "track02.ogg" MP3
5 TRACK 02 AUDIO
6 PREGAP 00:02:00
7 INDEX 01 00:00:00

Is definitely incorrect. You are basically saying that both tracks start at the same time (00:00:00)

Appreciate your time, but I think you're missing something 😁

Reply 11 of 29, by jmarsh

User metadata
Rank Oldbie
Rank
Oldbie
dr_st wrote on 2020-10-21, 07:20:
Obviously to use a tool to build it properly. […]
Show full quote

Obviously to use a tool to build it properly.

Because this:

FILE "image.iso" BINARY
2 TRACK 01 MODE1/2048
3 INDEX 01 00:00:00
4 FILE "track02.ogg" MP3
5 TRACK 02 AUDIO
6 PREGAP 00:02:00
7 INDEX 01 00:00:00

Is definitely incorrect. You are basically saying that both tracks start at the same time (00:00:00)

It is valid. INDEX parameters aren't absolute timecodes, they are offsets (usually referring to the current FILE) expressed as minutes:seconds:frames. "INDEX 01 00:00:00" means use the current file beginning from the start.

Reply 12 of 29, by Akuma

User metadata
Rank Member
Rank
Member

I'm having trouble understanding how to convert the following CUE:

FILE "myfile.bin" BINARY
TRACK 01 MODE2/2352
INDEX 01 00:00:00
TRACK 02 AUDIO
PREGAP 00:02:00
INDEX 01 33:40:15
TRACK 03 AUDIO
INDEX 00 37:54:70
INDEX 01 37:55:03
...

to:

FILE "myfile01.iso" BINARY
TRACK 01 MODE1/2048
INDEX 01 00:00:00
FILE "myfile02.ogg" OGG
TRACK 02 AUDIO
PREGAP 00:02:00
INDEX 01 00:00:00
FILE "myfile03.ogg" OGG
TRACK 03 AUDIO
INDEX 00 37:54:70 <-- How do I process these ?
INDEX 01 37:55:03 <-- 00:00:00 and 00:00:$(75-70+3) ?

Reply 13 of 29, by Akuma

User metadata
Rank Member
Rank
Member

Ha! I found something here: http://www.totalsonic.net/cuesheetsyntax.htm

INDEX 0 Specifies the starting time of the track “pregap”

Based on that information, I think this should be it: (but wtf do I know 🤣)

FILE "myfile03.ogg" OGG
TRACK 03 AUDIO
PREGAP 00:02:00
INDEX 01 00:00:00

Does anyone know more ?

Reply 14 of 29, by jmarsh

User metadata
Rank Oldbie
Rank
Oldbie

Depends if the ripping software started dumping the track from index 0 or index 1.
If it started ripping at index 0 the pregap is included in the .ogg file, so you'd want this:
INDEX 00 00:00:00
INDEX 01 00:00:08 ; 75 frames in one second so 37:55:03 - 37:54:70 = 00:00:08 (length of pregap/index 0 -> index 1)

If it started ripping at index 1 you need to use PREGAP instead (which means "insert silence"):
PREGAP 00:00:08
INDEX 01 00:00:00

Some rippers append the pregap to the end of the previous track, which would require something like this:
FILE "myfile02.ogg" MP3
TRACK 02 AUDIO
PREGAP 00:02:00
INDEX 01 00:00:00
TRACK 03 AUDIO
INDEX 00 04:14:55 ; 37:54:70 - 33:40:15 (length of track 2 audio)
FILE "myfile03.ogg" MP3
INDEX 01 00:00:00

(Note that all compressed audio should use "MP3" filetype regardless of their actual format."

Reply 17 of 29, by dr_st

User metadata
Rank l33t
Rank
l33t
jmarsh wrote on 2020-10-21, 07:39:

It is valid. INDEX parameters aren't absolute timecodes, they are offsets (usually referring to the current FILE) expressed as minutes:seconds:frames. "INDEX 01 00:00:00" means use the current file beginning from the start.

I see. You are correct, of course. The index refers to each file separately and not to the overall position on the emulated disk. I looked at the wrong example on the wiki, the one which used a single binary CD image. 😊

https://cloakedthargoid.wordpress.com/ - Random content on hardware, software, games and toys

Reply 18 of 29, by Akuma

User metadata
Rank Member
Rank
Member
jmarsh wrote on 2020-10-21, 09:16:

It's one of several reasons why using individual files for each track is a bad idea, better off just sticking with a mixed-mode .iso.

How would that work with OGG/FLAC/MP3 ?