Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DTS audio not detected #112

Open
zenny opened this issue Jan 31, 2017 · 4 comments
Open

DTS audio not detected #112

zenny opened this issue Jan 31, 2017 · 4 comments

Comments

@zenny
Copy link

zenny commented Jan 31, 2017

Hi, I am trying to replace DTS with ac3, but the script says it does not have DTS audio. Hmmm!

$ ffplay VideoWDTSaudio.mkv
....
Stream #0:0(eng): Video: h264, none(progressive), 1920x1080, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 2k tbc (default)
Metadata:
BPS : 6749686
BPS-eng : 6749686
DURATION-eng : 01:45:54.640000000
NUMBER_OF_FRAMES: 152359
NUMBER_OF_FRAMES-eng: 152359
NUMBER_OF_BYTES : 5361478341
NUMBER_OF_BYTES-eng: 5361478341
_STATISTICS_WRITING_APP: mkvmerge v8.5.2 ('Crosses') 32bit
_STATISTICS_WRITING_APP-eng: mkvmerge v8.5.2 ('Crosses') 32bit
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
DURATION : 01:00:00.221000000
Stream #0:1(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 768 kb/s (default)
Metadata:
BPS : 754499
BPS-eng : 754499
DURATION-eng : 01:45:54.635000000
NUMBER_OF_FRAMES: 595747
NUMBER_OF_FRAMES-eng: 595747
NUMBER_OF_BYTES : 599321482
NUMBER_OF_BYTES-eng: 599321482
_STATISTICS_WRITING_APP: mkvmerge v8.5.2 ('Crosses') 32bit
_STATISTICS_WRITING_APP-eng: mkvmerge v8.5.2 ('Crosses') 32bit
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
DURATION : 00:59:59.999000000
13.31 A-V: -3.230 fd= 0 aq= 452KB vq= 918KB sq= 0B f=32/0

$ mkvdts2ac3.sh -n VideoWDTSaudio.mkv
mkvdts2ac3-1.6.0 - by Jake Wharton [email protected] and
Chris Hoekstra [email protected]

ERROR: There are no DTS tracks in 'VideoWDTSaudio.mkv'.

@choekstr
Copy link
Collaborator

the script checks for A_DTS line in the output of mkvmerge. here is the specific line:
mkvmerge -i "$MKVFILE" | grep -m 1 "audio (A_DTS)" | cut -d ":" -f 1 | cut -d " " -f 3

Can you run mkvmerge -i VideoWDTSaudio.mkv and let's see what the DTS line looks like?
My guess is the mkvmerge output has changed to be DTS instead of A_DTS. If that is the case, you can just modify that line (~396) accordingly.

@ogboot
Copy link

ogboot commented May 18, 2020

Thanks, I have a file that mkvmerge reports as:
Track ID 1: audio (DTS-HD Master Audio)

changing the line in the script to DTS-HD Master Audio)

Solved it for me as well.

@tmchow
Copy link
Contributor

tmchow commented May 18, 2020

Thanks, I have a file that mkvmerge reports as:
Track ID 1: audio (DTS-HD Master Audio)

changing the line in the script to DTS-HD Master Audio)

Solved it for me as well.

I just change the link 408 to this:

DTSTRACK=$(mkvmerge -i "$MKVFILE" | grep -m 1 "${AUDIOTRACKPREFIX}DTS" | cut -d ":" -f 1 | cut -d " " -f 3)

Notice the removal of the trailing ) in the grep command.

I just submitted this: #121

@choekstr
Copy link
Collaborator

It's just a case of keeping up with the subtools and their changing output. We tried to make it as generic and match as many things as possible but when mkvmerge changes types, new DTS modes are added, etc then tweaks are required.

way to dig in and determine the changes required for this format...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants