Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 670840 - media-video/makemkv-1.14.1 unable to execute ccextractor
Summary: media-video/makemkv-1.14.1 unable to execute ccextractor
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: James Le Cuirot
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-10 13:55 UTC by junkmailnotread
Modified: 2018-11-16 21:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description junkmailnotread 2018-11-10 13:55:52 UTC
Running makemkv-1.14.1 as follows:

makemkvcon mkv dev:/dev/sr0 0 .

fails to execute ccextractor:

MakeMKV v1.14.1 linux(x64-release) started
Using direct disc access mode
Title #1 has length of 11 seconds which is less than minimum title length of 120 seconds and was therefore skipped
Title #2 was added (33 cell(s), 1:53:22)
Title #3 has length of 114 seconds which is less than minimum title length of 120 seconds and was therefore skipped
Operation successfully completed
Saving 1 titles into directory .
Unable to execute external program 'ccextractor' as its path is not set in preferences
Failed to execute external program 'ccextractor' from location '/usr/bin/mmccextr'
LIBMKV_TRACE: Exception: Error while reading input
Failed to save title 0 to file ./title_t00.mkv
0 titles saved, 1 failed
Copy complete. 0 titles saved, 1 failed.

I was able to fix it as follows:

emerge media-video/ccextractor
export MMCCEXTRACTOR=/usr/bin/ccextractor
makemkvcon mkv dev:/dev/sr0 0 .
Comment 1 James Le Cuirot gentoo-dev 2018-11-15 22:13:26 UTC
I'm having trouble reproducing this. Perhaps the right blu-ray is needed. I can see that ccextractor is sometimes used so I can add it as a dependency but unfortunately this is in the closed part of the code so I don't know the details. Is the MMCCEXTRACTOR variable really necessary? Does it not try "ccextractor" from the PATH? I think it at least tries "mmccextr" from the PATH so I could add a symlink. Could you please test this?
Comment 2 junkmailnotread 2018-11-16 20:25:04 UTC
I omitted to mention it was an NTSC DVD, not a Blu-ray. My apologies.

ccextractor is in my PATH:

% which ccextractor
/usr/bin/ccextractor

But makemkv does not find it without setting MMCCEXTRACTOR.

Happily creating the mmccextr symlink does fix the problem:

% ls -l /usr/bin/mmccextr
lrwxrwxrwx 1 root root 11 Nov 16 20:13 /usr/bin/mmccextr -> ccextractor

It is possible that MMCCEXTRACTOR can also be set in one of the ~/.MakeMKV settings files, but it is seemingly undocumented anywhere. I only discovered MMCCEXTRACTOR by running the strings command over the makemkvcon binary.
Comment 3 Larry the Git Cow gentoo-dev 2018-11-16 21:00:28 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d0fa0fef69f27a90083c0801d2b5cecb86a7e5d

commit 2d0fa0fef69f27a90083c0801d2b5cecb86a7e5d
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2018-11-16 21:00:07 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2018-11-16 21:00:07 +0000

    media-video/makemkv: Add missing ccextractor dependency with symlink
    
    Closes: https://bugs.gentoo.org/670840
    Package-Manager: Portage-2.3.51, Repoman-2.3.12
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 .../makemkv/{makemkv-1.14.1.ebuild => makemkv-1.14.1-r1.ebuild}       | 4 ++++
 1 file changed, 4 insertions(+)