-
Notifications
You must be signed in to change notification settings - Fork 11
No dts-hd stream found, doing nothing #5
Comments
mkvmerge changed its command line interface. The output format is now JSON. This can be updated relatively easily using |
I was able to pass beyond that point. I even emailed you. I only updated some depracted commands. I'm stuck here now: Error: The JSON option file '/tmp/tmp.HKqFK8DZcH/options_file' contains an error: parse error - unexpected '-'. |
So what does your script look like now? |
I only changed two commands that changed. -i --atracks ave updated the parts that are related to mkvmerge deprecated commands. But I'm stuck with an error involving json that I honestly have no idea where to begin with. Here's the script: #!/bin/bash Version 1(C) 2017 Daniel Faust [email protected]A BASH script that transcodes all DTS-HD tracks of a matroska file to DTS Corewhile preserving the track's name and language and it's default and forced flags as well as its delay.Requires mktemp, mkvmerge, mkvextract and ffmpeg (version 3.1 or higher)Usage:chmod +x mkv-transcode-dts./mkv-transcode-dts "My File.mkv"This will create a new file called "My File [DTS Core].mkv".For batch converting all .mkv files in the current directoycopy mkv-transcode-dts to a directory in your PATH and execute:find -iname "*.mkv" -exec mkv-transcode-dts '{}' ;if [[ "$1" == "" ]] || [[ "$1" == "--help" ]] || [[ "$1" == "-h" ]]; then hash mktemp 2>/dev/null || { echo >&2 "Error: Command mktemp not found"; exit 1; } file_name=$1 tmp_dir=$(mktemp -d) trap 'rm -r "$tmp_dir"' EXIT option_file_name="$tmp_dir/options_file" IFS=' tracks=$(LANG=en_US.utf8 LANGUAGE=en_US.utf8 mkvmerge -i "$file_name" | grep "DTS-HD Master Audio") track_ids_string=""
track_name=${track_name/\\/\} # replace '\' with '' doesn't work
done if [[ "$track_ids_string" != "" ]]; then |
Sorry then end was missing. I'm on mobile to my way home |
You can have a look at this script for parsing the json output: https://paste.ubuntu.com/p/8T7GjTNgh8/ |
Thank You for replying it. I have no idea how I can fix that. I have asked in the mkvtoolnix subreddit to no avail (as of now) But I am gonna mail the developer asking for help on how to properly parse (adapt) this very handy script of yours to JSON |
You don't have to mail the mkvmerge Developer. The solution for that is in the Script i linked. If you are Interested in bash Scripting, you should read Up in that. But it's the Problem with the Last command of that Script that i mentioned, that's the Problem. |
I'm trying. I have used a shellcheck to look into bash. But I have zero knowledge. Can you point for me a direction? According to shellcheck there is only thing wrong with the latest script you passed which is the following: https://paste.ubuntu.com/p/9CC3VTGYRb/ shellcheck myscript Line 82: But when I try to run another error is given. ./script: line 62: $2: unbound variable |
I forget to mention that I changed some parameters which were wrong according to shellcheck.net |
Hi.
I have just discovered these tools. I am trying to convert DTS-HD to DTS.
But I'm only getting this No DTS-HD stream found, doing nothing
./mkv-transcode-dts The\ Expanse\ S01E01\ Dulcinea.mkv
No dts-hd stream found, doing nothing
But inside of this mkv there is a DTS-HD file, as seen below:
mkvmerge -i The\ Expanse\ S01E01\ Dulcinea.mkv
File 'The Expanse S01E01 Dulcinea.mkv': container: Matroska
Track ID 0: video (MPEG-H/HEVC/H.265)
Track ID 1: audio (DTS-HD Master Audio)
Track ID 2: subtitles (HDMV PGS)
Chapters: 5 entries
What am I doing wrong?
Please let me know.
The text was updated successfully, but these errors were encountered: