Log in

View Full Version : Tool to Generate Cue files from DVD Cells (chapters) (video_ts and audio_ts folders)


Nexin
31st January 2014, 23:03
Are there any tool or tools that can generate a CUE file from dvd video_ts structure.

After demux vob using PgcDemux as audio images. Then would be able to play those title images using generated cue files. so able to select and play individual audio tracks in each image with pc audio players.

DVD Audio Extractor I'm able to extract to 'CD Image And Cue Sheet' though it takes forever just to get a cue file for each title. It cannot output cue file alone without audio. Anyone found a way to save cue file only without audio with dvdae ?

Need a tool to convert the likes of PgcDemux 'Create Cell Times.txt - Including End Time' to 1/75 CD timing. The cue file I'm not using for CD burning only for pc playback to be able to play and tracks with correct start-end positioning. Realise will need to edit cue file to make sure all tracks are not split. Have done this so far with dvdae cue files without problems.

manolito
2nd February 2014, 16:01
It should not be too hard to write such a converter. IMO it would be much easier to use a timecode based chapter file as the source instead of the celltimes format which uses frame numbers. If you have the absolute time codes you do not have to know the frame rate of the video.

I would use ChapterGen to extract the chapters. The Cinevision format seems to be the best choice as the output format.

http://i60.tinypic.com/314uvwx.jpg

Please post an example CUE file in the exact format you need.


Cheers
manolito

Nexin
4th February 2014, 00:56
The cue file is one that any cd writer could use to burn a cd red book standard, see any cd cue file for examples. To use only on pc as could never be burned to cd as audio is 24bit 96/48kHz dts.

As above have image.dts extracted the image are lossy mostly. I need to keep as same dts format rather than convert to another lossy format, losing any audio quality etc. I do keep as image.dts for many but many times I also need to split where I don't need certain tracks as an example.

I have tried to day mkv and also mka containers with and without cue file added. Yet cannot find an easy gui to extract the audio tracks using chapters or embedded cue file. Embedded cue after muxing to mka not in original image.dts.

I have the tool you pictured looked at it a while ago but could not see any purpose for this. Cue files made by using dvd-A extractor to cd image.dtswav. dvd-a extractor has no option to save cue file without image, if could would be a one second process. I keep the .cue file and delete the image as the audio is butchered to 44.1 kHz 16bit where need original bit, Khz and audio channels cue works fine with PgcDemux extracted image.dts with a bit of editing where needed for track splits 1 tracks is two in cue file delete the later track.

Have tried with foobar convert as able to load cue sheet and select tracks or all. Try convert using ffmpeg command -i - -acodec copy %d or variations such as -i %s -c:a copy -f dts %d etc. Always it outputs to mpeg1 dual mono audio unknown why ! likely a foobar converter bug or always decodes to wave first or similar.

Have looked at demux with ffmpeg atm ffmpeg doesn't support cue files, not looked if it supports splitting by chapters as yet.
Have tried mkvtoolnix mkvmerge split by chapters but needs more input than I understand. It doesn't see the already added cue file and now also chapters it knows to use with splitting. Unknown what it expects where would expect it would know from parsing the source file!

This is where I am now just trying to split lossy dts image file into audio tracks using cue file or chapters. Straight demux without conversion or other manipulation I would try eac3to but it changes files when told not to.

Any other ideas how to do this would be appreciated. I expect there is a way to demux an image.dts by cue file (or chapter file).

manolito
6th February 2014, 00:37
Well, I still think that I do not really understand what you want to achieve...:confused:

Here is my little converter which lets you convert a Sonic Cinevision CSV file to a CUE file. Since you did not specify the exact CUE file format you need, I just used the format which DVD Audio Extractor creates.

Convert_to_CUE.bat
@ECHO off
REM Converts a Sonic Cinevision CSV file
REM in the format hh:mm:ss:cc into a CUE
REM file with the name *.cue in the same folder
REM as the source file.
REM
REM Usage:
REM Convert_to_CUE.bat "Drive\Path\Filename"
REM
REM You can also create a shortcut to Convert_to_CUE.bat
REM on your desktop and drag the file you want to
REM convert on this shortcut.


SET loc=%~dpn1
SET /A Counter=0

:Header
IF EXIST "%loc%%n%.cue" DEL "%loc%.cue"
ECHO PERFORMER "Unknown Artist">"%loc%.cue"
ECHO TITLE "DVD-Files">>"%loc%.cue"
ECHO FILE "Unknown Artist - DVD-Files.wav" WAVE>>"%loc%.cue"

FOR /f %%a IN (%1) DO CALL :Write %%a
GOTO cleanup


:Write
IF NOT !%~x1==! GOTO :EOF
SET Time=%1
ECHO %Time% >$temp.txt
FOR /F "tokens=1 delims=:" %%a in ($temp.txt) DO SET /A H=%%a
FOR /F "tokens=2 delims=:" %%a in ($temp.txt) DO SET /A M=%%a
FOR /F "tokens=3 delims=:" %%a in ($temp.txt) DO SET S=%%a
FOR /F "tokens=4 delims=:" %%a in ($temp.txt) DO SET C=%%a
SET /A M=%M% + (%H% * 60)
IF %M% LSS 10 SET M=0%M%
SET /A Counter=%Counter%+1
SET C=%C:~0,2%
SET Count=%Counter%
IF %Counter% LSS 10 SET Count=0%Counter%
ECHO TRACK %Count% AUDIO>>"%loc%.cue"
ECHO TITLE "Chapter %Count%">>"%loc%.cue"
ECHO FLAGS DCP>>"%loc%.cue"
ECHO INDEX 01 %M%:%S%:%C%>>"%loc%.cue"
GOTO :EOF

:cleanup
IF EXIST $temp.txt DEL $temp.txt


Just paste this into a newly created text file and give it a name like "Convert_to_CUE.bat".

Usage:
Create a timecode file in the Sonic Cinevision CSV format from your VTS using ChapterGen. The default name will be "Chapters.csv", but you can give it any name you want. Then feed this file to my batch file either as a command line parameter or by using Drag and Drop or Copy and Paste.

Hope it will be useful for your needs...


Cheers
manolito

Nexin
6th February 2014, 05:11
Thanks I'll try this script later just processing another dvd where tracks carry over to the previous/next track. I did try that software I was sure or maybe imagined it the picture makes me think I had done!

So I tried it and it wouldn't work needing .NET framework v3.5
I have installed atm v1.0 v1.1 v2.0 v3.0 v4.0 . I never did install v3.5 because of its size. Would have thought at least v4.0 would have the needed bits to run the software. Still not interested installing v3.5 since this software is the only one so far saying it needs v3.5.

bigotti5
6th February 2014, 09:06
So I tried it and it wouldn't work needing .NET framework v3.5
Its a batch file...no need for any .NET framework.

manolito
6th February 2014, 13:28
Its a batch file...no need for any .NET framework.
Not for the batch file - but for ChapterGen, I guess...;)

You do not need ChapterGen, you can also use ChapterXtractor. All you need to do is make a custom preset for the required output format. The preset would look like this:
%hh:%mm:%ss:%cc\n

A few clarifications about .Net Framework:
Version 3.5 is so big because it contains all previous versions. If you install version 3.5 you will end up with versions 1.0, 1.1, 2.0, 3.0 and 3.5 on your computer. Microsoft did it this way because the different versions are not backward compatible, they need to be installed in parallel. Versions 4 and 4.5 also do not support software which requires versions 3.5 or earlier, so you need to install 3.5 separately.

If you think that this whole .Net Framework thing is one big PITA, then welcome to the club...:devil:


Cheers
manolito

Nexin
6th February 2014, 22:07
I will then uninstall all .Net inc v4.0 with .NET cleaner and start again with v3.5 and v4.0 installed. I did read somewhere v4.5 wasn't for xp will have a look at microsoft to check if it is now installable on xp3.

OT: That said I don't know how long xp3 will be valid for after support stops soon, for ssl certificates etc for software installs and net use. And there will be no doubt many people with bogus or incorrect updates once they know certificates have ended. Certificates is something microsoft should always keep supporting i'm sure take them little time to do when needed.

Will try ChapterGen and ChapterXtractor after doing .NET changes. Though MKVmerger next becomes a problem for splitting chapters later from mka file, will post in MKVtoolnix forum for that. If cannot find other ways to do the next part. At least chapters maybe soon a thing of the past no more DVD-A Extractor slow process for cue file.

Nexin
6th February 2014, 22:08
Also I have read that Foobar2000 with many files listed in Foobar2000 to play. Foobar2000 Converter can output to one audio file and make a cue files for the image.wav So far I have every possible way and no cue file is ever made for image.wav

Maybe it's something to do with using Foobar2000 portable mode so can have many version of Foobar2000 for use. I can play all the files loaded in Foobar2000 and convert but Foobar2000 never produces a cue file. Also would expect the cue file to have all cue timings adjusted for single audio image not have INDEX 01 00:00:00 as would be with individual audio track/s cue files. Always better to have many ways to a task than need rely on one.

Is it known if a Foobar2000 (portable) can output using its Converter an image.wav with a cue file for it ?