JakeWharton / mkvdts2ac3

Bash script to convert DTS audio to AC3 within a matroska file.
Apache License 2.0
322 stars 60 forks source link

Failing on "Muxing AC3 Track" step #110

Open realbigest opened 8 years ago

realbigest commented 8 years ago

Hello! Got mkvdts2ac3 from Homebrew package manager on OSX. First run was not successful:

mkvdts2ac3 dts_eng.mkv

mkvdts2ac3-1.6.0 - by Jake Wharton <jakewharton@gmail.com> and
                      Chris Hoekstra <chris.hoekstra@gmail.com>

Extracting Timecodes:
progress: 100%
Timecode extraction took:    00:00:15 (15 seconds)

Extracting DTS Track: 
DTS track extracting took:   00:00:33 (33 seconds)

Converting DTS to AC3:
Progress: 100%
DTS track conversion took:   00:01:24 (84 seconds)

/usr/local/bin/mkvdts2ac3: line 610: [: !=: unary operator expected
Muxing AC3 Track in:

Muxing AC3 track in took:    00:00:00 (0 seconds)

MOVING new file over old file. DO NOT KILL THIS PROCESS OR YOU WILL EXPERIENCE DATA LOSS!
NEW FILE: /tmp/dts_eng.new.mkv
MKV FILE: dts_eng.mkv
mv: /tmp/dts_eng.new.mkv: No such file or directory
ERROR: There was an error copying the new MKV over the old one. You can perform this manually by moving '/tmp/dts_eng.new.mkv' over 'dts_eng.mkv'.
/usr/local/bin/mkvdts2ac3: line 174: [: -gt: unary operator expected
File copy took:          00:00:00 (0 seconds)

Total processing time:      00:02:12 (132 seconds)

Filesize summary:
     Original Filesize:         1,215,684 KB
Extracted DTS Filesize:         1,214,876 KB
Converted AC3 Filesize:          360,680 KB
        Final Filesize:         1,215,684 KB

Second run with debug output spotted problem on this command:

nice -n 0 mkvmerge -o "/tmp/dts_eng.new.mkv" --compression :none "dts_eng.mkv" --track-name 0:"Оригинал" --compression 0:none "/tmp/dts_eng.ac3"

mkvmerge v2.3.0 ('Freak U') built on Sep  9 2008 17:43:13
Error: Invalid track ID specified in '--compression :none'.

After intuitive command line fixing got this:

nice -n 0 mkvmerge -o "/tmp/dts_eng.new.mkv" --compression 0:none "dts_eng.mkv" --track-name 0:"Оригинал" --compression 0:none "/tmp/dts_eng.ac3"

mkvmerge v2.3.0 ('Freak U') built on Sep  9 2008 17:43:13
'dts_eng.mkv': Using the Matroska demultiplexer.
'/tmp/dts_eng.ac3': Using the AC3 demultiplexer.
'dts_eng.mkv' track 1: Using the DTS output module.
'/tmp/dts_eng.ac3' track 0: Using the AC3 output module.
Warning: 'dts_eng.mkv': A track with the ID 0 was requested but not found in the file. The corresponding option will be ignored.
The file '/tmp/dts_eng.new.mkv' has been opened for writing.
progress: 100%
The cue entries (the index) are being written...
Muxing took 24 seconds.
realbigest commented 8 years ago

Seems like mkv container without video track will lead to this problem.