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

Couldn't invoke ffmpeg, check that it's installed #8

Open
wingedonezero opened this issue Nov 28, 2023 · 6 comments
Open

Couldn't invoke ffmpeg, check that it's installed #8

wingedonezero opened this issue Nov 28, 2023 · 6 comments

Comments

@wingedonezero
Copy link

[FFProbe] Getting Media Information from eng.mkv...
[FFProbe] Getting Media Information from jpn.mkv...
[Sushi] Using default track 1: Audio in jpn.mkv
[FFProbe] Finding Audio Delay in eng.mkv...
[FFProbe] Finding Audio Delay in jpn.mkv...
[Sushi] Providing Source Audio eng_1.wav...
[Demuxer] Demuxing/Converting eng.mkv...
[Sushi] Couldn't invoke ffmpeg, check that it's installed ] 0%
[Sushi] Couldn't invoke ffmpeg, check that it's installed
[Sushi] Couldn't invoke ffmpeg, check that it's installed

Ffmpeg is installed and works elsewhere. I am on debian 12. ffmpeg version 5.1.4-0+deb12u1/ weird ffprobe works. cmd used is ./Sushi --type audios --src eng.mkv --dst jpn.mkv had to remove the .net in the executable due to how file names work in the terminal. And had to alter audio to audios to get it to work.

@maxpiva
Copy link
Owner

maxpiva commented Nov 28, 2023

hmm. Looking at the code is looking for "ffprobe" and "ffmpeg".

Check if ffmpeg is all lowercase, linux is case-sensitive.

worst case scenario copy it to the directory where sushi is. Tell me how it goes.

@wingedonezero
Copy link
Author

It is all lowercase on the system. And copying from a static build also does not work. Tried a build from https://johnvansickle.com/ffmpeg/ And that didnt work either. But ffprobe does. If i type in the console ffmpeg it works. I cannot tell any reason for it not to call ffmpeg.

Screenshot attached.
image

@maxpiva
Copy link
Owner

maxpiva commented Nov 29, 2023

Tested on Ubuntu 22.04 everything went fine... But...

Just published a new version v1.0.1, it seems the call to ffmpeg fails somehow in your machine.

So I added a logging that explicitly says how the ffmpeg is executed.

PLEASE: add -vv to your sushi line ./sushi.net --src ... --dst ... ... -vv
This will enable verbose logging

That will show something like this:
image

And proper error information.

Please run that command locally to see what happens. Probably doesn't work. And paste it in here. So I can pinpoint where is the problem.

@wingedonezero
Copy link
Author

chaoz@chaoz:~/Desktop/Makemkv/Sushi.Net.v1.0.0-linux-x64$ ./Sushi --type audios --src eng.mkv --dst jpn.mkv -vv
[FFProbe] Getting Media Information from eng.mkv...
[FFProbe] CMD: /home/chaoz/Desktop/Makemkv/Sushi.Net.v1.0.0-linux-x64/ffprobe -hide_banner -v quiet -print_format json -show_format -show_entries stream=index,codec_name,codec_type,width,height,sample_rate,channels,channel_layout,start_time,duration,bit_rate -show_entries stream_tags=title,language,handler_name -show_entries stream_disposition=default,forced,comment,hearing_impaired -show_entries chapters "eng.mkv"
[FFProbe] {
[FFProbe] "programs": [
[FFProbe] ],
[FFProbe] "streams": [
[FFProbe] {
[FFProbe] "index": 0,
[FFProbe] "codec_name": "h264",
[FFProbe] "codec_type": "video",
[FFProbe] "width": 1920,
[FFProbe] "height": 1080,
[FFProbe] "start_time": "0.000000",
[FFProbe] "disposition": {
[FFProbe] "default": 1,
[FFProbe] "comment": 0,
[FFProbe] "forced": 0,
[FFProbe] "hearing_impaired": 0
[FFProbe] },
[FFProbe] "tags": {
[FFProbe] "title": "[Golumpa"
[FFProbe] }
[FFProbe] },
[FFProbe] {
[FFProbe] "index": 1,
[FFProbe] "codec_name": "aac",
[FFProbe] "codec_type": "audio",
[FFProbe] "sample_rate": "44100",
[FFProbe] "channels": 2,
[FFProbe] "channel_layout": "stereo",
[FFProbe] "start_time": "0.005000",
[FFProbe] "disposition": {
[FFProbe] "default": 1,
[FFProbe] "comment": 0,
[FFProbe] "forced": 0,
[FFProbe] "hearing_impaired": 0
[FFProbe] },
[FFProbe] "tags": {
[FFProbe] "language": "eng"
[FFProbe] }
[FFProbe] },
[FFProbe] {
[FFProbe] "index": 2,
[FFProbe] "codec_name": "ass",
[FFProbe] "codec_type": "subtitle",
[FFProbe] "start_time": "0.000000",
[FFProbe] "duration": "1429.936000",
[FFProbe] "disposition": {
[FFProbe] "default": 1,
[FFProbe] "comment": 0,
[FFProbe] "forced": 0,
[FFProbe] "hearing_impaired": 0
[FFProbe] },
[FFProbe] "tags": {
[FFProbe] "language": "eng",
[FFProbe] "title": "English (US) / English (US)"
[FFProbe] }
[FFProbe] },
[FFProbe] {
[FFProbe] "index": 3,
[FFProbe] "codec_name": "ttf",
[FFProbe] "codec_type": "attachment",
[FFProbe] "start_time": "0.000000",
[FFProbe] "duration": "1429.936000",
[FFProbe] "disposition": {
[FFProbe] "default": 0,
[FFProbe] "comment": 0,
[FFProbe] "forced": 0,
[FFProbe] "hearing_impaired": 0
[FFProbe] },
[FFProbe] "tags": {
[FFProbe] }
[FFProbe] },
[FFProbe] {
[FFProbe] "index": 4,
[FFProbe] "codec_name": "ttf",
[FFProbe] "codec_type": "attachment",
[FFProbe] "start_time": "0.000000",
[FFProbe] "duration": "1429.936000",
[FFProbe] "disposition": {
[FFProbe] "default": 0,
[FFProbe] "comment": 0,
[FFProbe] "forced": 0,
[FFProbe] "hearing_impaired": 0
[FFProbe] },
[FFProbe] "tags": {
[FFProbe] }
[FFProbe] },
[FFProbe] {
[FFProbe] "index": 5,
[FFProbe] "codec_name": "ttf",
[FFProbe] "codec_type": "attachment",
[FFProbe] "start_time": "0.000000",
[FFProbe] "duration": "1429.936000",
[FFProbe] "disposition": {
[FFProbe] "default": 0,
[FFProbe] "comment": 0,
[FFProbe] "forced": 0,
[FFProbe] "hearing_impaired": 0
[FFProbe] },
[FFProbe] "tags": {
[FFProbe] }
[FFProbe] },
[FFProbe] {
[FFProbe] "index": 6,
[FFProbe] "codec_name": "ttf",
[FFProbe] "codec_type": "attachment",
[FFProbe] "start_time": "0.000000",
[FFProbe] "duration": "1429.936000",
[FFProbe] "disposition": {
[FFProbe] "default": 0,
[FFProbe] "comment": 0,
[FFProbe] "forced": 0,
[FFProbe] "hearing_impaired": 0
[FFProbe] },
[FFProbe] "tags": {
[FFProbe] }
[FFProbe] }
[FFProbe] ],
[FFProbe] "chapters": [
[FFProbe] ],
[FFProbe] "format": {
[FFProbe] "filename": "eng.mkv",
[FFProbe] "nb_streams": 7,
[FFProbe] "nb_programs": 0,
[FFProbe] "format_name": "matroska,webm",
[FFProbe] "format_long_name": "Matroska / WebM",
[FFProbe] "start_time": "0.000000",
[FFProbe] "duration": "1429.936000",
[FFProbe] "size": "1448359239",
[FFProbe] "bit_rate": "8103071",
[FFProbe] "probe_score": 100,
[FFProbe] "tags": {
[FFProbe] "encoder": "no_variable_data",
[FFProbe] "creation_time": "1970-01-01T00:00:00.000000Z"
[FFProbe] }
[FFProbe] }
[FFProbe] }
[FFProbe] Getting Media Information from jpn.mkv...
[FFProbe] CMD: /home/chaoz/Desktop/Makemkv/Sushi.Net.v1.0.0-linux-x64/ffprobe -hide_banner -v quiet -print_format json -show_format -show_entries stream=index,codec_name,codec_type,width,height,sample_rate,channels,channel_layout,start_time,duration,bit_rate -show_entries stream_tags=title,language,handler_name -show_entries stream_disposition=default,forced,comment,hearing_impaired -show_entries chapters "jpn.mkv"
[FFProbe] {
[FFProbe] "programs": [
[FFProbe] ],
[FFProbe] "streams": [
[FFProbe] {
[FFProbe] "index": 0,
[FFProbe] "codec_name": "h264",
[FFProbe] "codec_type": "video",
[FFProbe] "width": 1920,
[FFProbe] "height": 1080,
[FFProbe] "start_time": "0.000000",
[FFProbe] "disposition": {
[FFProbe] "default": 1,
[FFProbe] "comment": 0,
[FFProbe] "forced": 0,
[FFProbe] "hearing_impaired": 0
[FFProbe] },
[FFProbe] "tags": {
[FFProbe] }
[FFProbe] },
[FFProbe] {
[FFProbe] "index": 1,
[FFProbe] "codec_name": "flac",
[FFProbe] "codec_type": "audio",
[FFProbe] "sample_rate": "48000",
[FFProbe] "channels": 2,
[FFProbe] "channel_layout": "stereo",
[FFProbe] "start_time": "0.000000",
[FFProbe] "disposition": {
[FFProbe] "default": 1,
[FFProbe] "comment": 0,
[FFProbe] "forced": 0,
[FFProbe] "hearing_impaired": 0
[FFProbe] },
[FFProbe] "tags": {
[FFProbe] "language": "jpn"
[FFProbe] }
[FFProbe] },
[FFProbe] {
[FFProbe] "index": 2,
[FFProbe] "codec_name": "aac",
[FFProbe] "codec_type": "audio",
[FFProbe] "sample_rate": "44100",
[FFProbe] "channels": 2,
[FFProbe] "channel_layout": "stereo",
[FFProbe] "start_time": "0.000000",
[FFProbe] "disposition": {
[FFProbe] "default": 0,
[FFProbe] "comment": 0,
[FFProbe] "forced": 0,
[FFProbe] "hearing_impaired": 0
[FFProbe] },
[FFProbe] "tags": {
[FFProbe] "language": "eng"
[FFProbe] }
[FFProbe] },
[FFProbe] {
[FFProbe] "index": 3,
[FFProbe] "codec_name": "ass",
[FFProbe] "codec_type": "subtitle",
[FFProbe] "start_time": "0.000000",
[FFProbe] "disposition": {
[FFProbe] "default": 1,
[FFProbe] "comment": 0,
[FFProbe] "forced": 0,
[FFProbe] "hearing_impaired": 0
[FFProbe] },
[FFProbe] "tags": {
[FFProbe] "language": "eng",
[FFProbe] "title": "Dialogue"
[FFProbe] }
[FFProbe] },
[FFProbe] {
[FFProbe] "index": 4,
[FFProbe] "codec_name": "ass",
[FFProbe] "codec_type": "subtitle",
[FFProbe] "start_time": "0.000000",
[FFProbe] "duration": "1430.954000",
[FFProbe] "disposition": {
[FFProbe] "default": 0,
[FFProbe] "comment": 0,
[FFProbe] "forced": 0,
[FFProbe] "hearing_impaired": 0
[FFProbe] },
[FFProbe] "tags": {
[FFProbe] "language": "eng",
[FFProbe] "title": "Signs"
[FFProbe] }
[FFProbe] },
[FFProbe] {
[FFProbe] "index": 5,
[FFProbe] "codec_name": "mjpeg",
[FFProbe] "codec_type": "video",
[FFProbe] "width": 400,
[FFProbe] "height": 566,
[FFProbe] "start_time": "0.000000",
[FFProbe] "duration": "1430.954000",
[FFProbe] "disposition": {
[FFProbe] "default": 0,
[FFProbe] "comment": 0,
[FFProbe] "forced": 0,
[FFProbe] "hearing_impaired": 0
[FFProbe] },
[FFProbe] "tags": {
[FFProbe] }
[FFProbe] },
[FFProbe] {
[FFProbe] "index": 6,
[FFProbe] "codec_name": "ttf",
[FFProbe] "codec_type": "attachment",
[FFProbe] "start_time": "0.000000",
[FFProbe] "duration": "1430.954000",
[FFProbe] "disposition": {
[FFProbe] "default": 0,
[FFProbe] "comment": 0,
[FFProbe] "forced": 0,
[FFProbe] "hearing_impaired": 0
[FFProbe] },
[FFProbe] "tags": {
[FFProbe] }
[FFProbe] },
[FFProbe] {
[FFProbe] "index": 7,
[FFProbe] "codec_name": "ttf",
[FFProbe] "codec_type": "attachment",
[FFProbe] "start_time": "0.000000",
[FFProbe] "duration": "1430.954000",
[FFProbe] "disposition": {
[FFProbe] "default": 0,
[FFProbe] "comment": 0,
[FFProbe] "forced": 0,
[FFProbe] "hearing_impaired": 0
[FFProbe] },
[FFProbe] "tags": {
[FFProbe] }
[FFProbe] },
[FFProbe] {
[FFProbe] "index": 8,
[FFProbe] "codec_name": "ttf",
[FFProbe] "codec_type": "attachment",
[FFProbe] "start_time": "0.000000",
[FFProbe] "duration": "1430.954000",
[FFProbe] "disposition": {
[FFProbe] "default": 0,
[FFProbe] "comment": 0,
[FFProbe] "forced": 0,
[FFProbe] "hearing_impaired": 0
[FFProbe] },
[FFProbe] "tags": {
[FFProbe] }
[FFProbe] },
[FFProbe] {
[FFProbe] "index": 9,
[FFProbe] "codec_name": "ttf",
[FFProbe] "codec_type": "attachment",
[FFProbe] "start_time": "0.000000",
[FFProbe] "duration": "1430.954000",
[FFProbe] "disposition": {
[FFProbe] "default": 0,
[FFProbe] "comment": 0,
[FFProbe] "forced": 0,
[FFProbe] "hearing_impaired": 0
[FFProbe] },
[FFProbe] "tags": {
[FFProbe] }
[FFProbe] },
[FFProbe] {
[FFProbe] "index": 10,
[FFProbe] "codec_name": "ttf",
[FFProbe] "codec_type": "attachment",
[FFProbe] "start_time": "0.000000",
[FFProbe] "duration": "1430.954000",
[FFProbe] "disposition": {
[FFProbe] "default": 0,
[FFProbe] "comment": 0,
[FFProbe] "forced": 0,
[FFProbe] "hearing_impaired": 0
[FFProbe] },
[FFProbe] "tags": {
[FFProbe] }
[FFProbe] },
[FFProbe] {
[FFProbe] "index": 11,
[FFProbe] "codec_name": "ttf",
[FFProbe] "codec_type": "attachment",
[FFProbe] "start_time": "0.000000",
[FFProbe] "duration": "1430.954000",
[FFProbe] "disposition": {
[FFProbe] "default": 0,
[FFProbe] "comment": 0,
[FFProbe] "forced": 0,
[FFProbe] "hearing_impaired": 0
[FFProbe] },
[FFProbe] "tags": {
[FFProbe] }
[FFProbe] }
[FFProbe] ],
[FFProbe] "chapters": [
[FFProbe] {
[FFProbe] "id": 3121570296351739456,
[FFProbe] "time_base": "1/1000000000",
[FFProbe] "start": 0,
[FFProbe] "start_time": "0.000000",
[FFProbe] "end": 733983244444,
[FFProbe] "end_time": "733.983244",
[FFProbe] "tags": {
[FFProbe] "title": "Part A"
[FFProbe] }
[FFProbe] },
[FFProbe] {
[FFProbe] "id": -8172176063634395793,
[FFProbe] "time_base": "1/1000000000",
[FFProbe] "start": 733983244444,
[FFProbe] "start_time": "733.983244",
[FFProbe] "end": 823948111111,
[FFProbe] "end_time": "823.948111",
[FFProbe] "tags": {
[FFProbe] "title": "OP"
[FFProbe] }
[FFProbe] },
[FFProbe] {
[FFProbe] "id": 3277525054351435836,
[FFProbe] "time_base": "1/1000000000",
[FFProbe] "start": 823948111111,
[FFProbe] "start_time": "823.948111",
[FFProbe] "end": 1339963600000,
[FFProbe] "end_time": "1339.963600",
[FFProbe] "tags": {
[FFProbe] "title": "Part B"
[FFProbe] }
[FFProbe] },
[FFProbe] {
[FFProbe] "id": -3263847349145703442,
[FFProbe] "time_base": "1/1000000000",
[FFProbe] "start": 1339963600000,
[FFProbe] "start_time": "1339.963600",
[FFProbe] "end": 1430954000000,
[FFProbe] "end_time": "1430.954000",
[FFProbe] "tags": {
[FFProbe] "title": "ED"
[FFProbe] }
[FFProbe] }
[FFProbe] ],
[FFProbe] "format": {
[FFProbe] "filename": "jpn.mkv",
[FFProbe] "nb_streams": 12,
[FFProbe] "nb_programs": 0,
[FFProbe] "format_name": "matroska,webm",
[FFProbe] "format_long_name": "Matroska / WebM",
[FFProbe] "start_time": "0.000000",
[FFProbe] "duration": "1430.954000",
[FFProbe] "size": "3476668387",
[FFProbe] "bit_rate": "19436926",
[FFProbe] "probe_score": 100,
[FFProbe] "tags": {
[FFProbe] "title": "S01E01-TTGA",
[FFProbe] "encoder": "libebml v1.3.9 + libmatroska v1.5.2",
[FFProbe] "creation_time": "2020-08-30T04:18:04.000000Z"
[FFProbe] }
[FFProbe] }
[FFProbe] }
[Sushi] Using default track 1: Audio in jpn.mkv
[FFProbe] Finding Audio Delay in eng.mkv...
[FFProbe] CMD: /home/chaoz/Desktop/Makemkv/Sushi.Net.v1.0.0-linux-x64/ffprobe -select_streams a:1 -hide_banner -of default=noprint_wrappers=1 -show_entries packet=dts -read_intervals 0%+#1 "eng.mkv"
[FFProbe] Finding Audio Delay in jpn.mkv...
[FFProbe] CMD: /home/chaoz/Desktop/Makemkv/Sushi.Net.v1.0.0-linux-x64/ffprobe -select_streams a:1 -hide_banner -of default=noprint_wrappers=1 -show_entries packet=dts -read_intervals 0%+#1 "jpn.mkv"
[FFProbe] dts=0
[Sushi] Providing Source Audio eng_1.wav...
[Demuxer] Demuxing/Converting eng.mkv...
[FFMpeg] CMD: /home/chaoz/Desktop/Makemkv/Sushi.Net.v1.0.0-linux-x64/ffmpeg -hide_banner -i "eng.mkv" -y -map 0:1 -ar 44000 -ac 1 -acodec pcm_s16le "eng_1.wav_temp.wav" -map 0:2 "eng_English (US) / English (US).default.eng.ass"
[FFMpeg] Input #0, matroska,webm, from 'eng.mkv':
[FFMpeg] Metadata:
[FFMpeg] encoder : no_variable_data
[FFMpeg] creation_time : 1970-01-01T00:00:00.000000Z
[FFMpeg] Duration: 00:23:49.94, start: 0.000000, bitrate: 8103 kb/s
[FFMpeg] Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn (default)
[FFMpeg] Metadata:
[FFMpeg] title : [Golumpa
[FFMpeg] Stream #0:1(eng): Audio: aac (LC), 44100 Hz, stereo, fltp (default)
[FFMpeg] Stream #0:2(eng): Subtitle: ass (default)
[FFMpeg] Metadata:
[FFMpeg] title : English (US) / English (US)
[FFMpeg] Stream #0:3: Attachment: ttf
[FFMpeg] Metadata:
[FFMpeg] filename : arial.ttf
[FFMpeg] mimetype : application/x-truetype-font
[FFMpeg] Stream #0:4: Attachment: ttf
[FFMpeg] Metadata:
[FFMpeg] filename : trebuc.ttf
[FFMpeg] mimetype : application/x-truetype-font
[FFMpeg] Stream #0:5: Attachment: ttf
[FFMpeg] Metadata:
[FFMpeg] filename : verdana.ttf
[FFMpeg] mimetype : application/x-truetype-font
[FFMpeg] Stream #0:6: Attachment: ttf
[FFMpeg] Metadata:
[FFMpeg] filename : times.ttf
[FFMpeg] mimetype : application/x-truetype-font
[FFMpeg] [out#1/ass @ 0x7bfa640] Error opening output eng_English (US) / English (US).default.eng.ass: No such file or directory
[FFMpeg] Error opening output file eng_English (US) / English (US).default.eng.ass.
[FFMpeg] Error opening output files: No such file or directory
[FFMpeg] Exception Error: CliWrap.Exceptions.CommandExecutionException: Command execution failed because the underlying process (ffmpeg#34786) returned a non-zero exit code (254).

     Command:
     /home/chaoz/Desktop/Makemkv/Sushi.Net.v1.0.0-linux-x64/ffmpeg -hide_banner -i "eng.mkv" -y -map 0:1 -ar 44000 -ac 1 -acodec pcm_s16le "eng_1.wav_temp.wav" -map 0:2 "eng_English (US) / English (US).default.eng.ass"
     
     You can suppress this validation by calling `WithValidation(CommandResultValidation.None)` on the command.
        at CliWrap.Command.ExecuteAsync(ProcessEx, CancellationToken , CancellationToken ) in /_/CliWrap/Command.Execution.cs:line 258
        at CliWrap.Command.ExecuteAsync(ProcessEx, CancellationToken , CancellationToken ) in /_/CliWrap/Command.Execution.cs:line 272
        at CliWrap.Command.ExecuteAsync(ProcessEx, CancellationToken , CancellationToken ) in /_/CliWrap/Command.Execution.cs:line 272
        at CliWrap.Command.ExecuteAsync(ProcessEx, CancellationToken , CancellationToken ) in /_/CliWrap/Command.Execution.cs:line 272
        at CliWrap.Utils.Extensions.TaskExtensions.Select[TSource,TDestination](Task`1, Func`2) in /_/CliWrap/Utils/Extensions/TaskExtensions.cs:line 12
        at CliWrap.EventStream.EventStreamCommandExtensions.ListenAsync(Command, Encoding, Encoding, CancellationToken , CancellationToken)+MoveNext() in /_/CliWrap/EventStream/PullEventStreamCommandExtensions.cs:line 73
        at Sushi.Net.Library.Common.Extensions.WithLogger(Command, ILogger, CancellationToken, Boolean , IPercentageProcessor , IProgress`1 , Encoding ) in C:\Sources\Projects\GIT\Sushi.Net\Sushi.Net.Library\Common\Extensions.cs:line 219
        at Sushi.Net.Library.Common.Extensions.WithLogger(Command, ILogger, CancellationToken, Boolean , IPercentageProcessor , IProgress`1 , Encoding ) in C:\Sources\Projects\GIT\Sushi.Net\Sushi.Net.Library\Common\Extensions.cs:line 219
        at Sushi.Net.Library.Tools.Tool.ExecuteAsync(Command, Boolean , IPercentageProcessor , Encoding ) in C:\Sources\Projects\GIT\Sushi.Net\Sushi.Net.Library\Tools\Tool.cs:line 66
        at Sushi.Net.Library.Tools.FFMpeg.DeMux(Mux) in C:\Sources\Projects\GIT\Sushi.Net\Sushi.Net.Library\Tools\FFMpeg.cs:line 359

[Sushi] Couldn't invoke ffmpeg, check that it's installed
[Sushi] Couldn't invoke ffmpeg, check that it's installed
[Sushi] Couldn't invoke ffmpeg, check that it's installed

@wingedonezero
Copy link
Author

Yea its not detecting ffmpeg for some reason which is weird if your on ubuntu and its working. Because debian is what ubuntu is based on. And i do have all parts installed and other apps work just fine with it..

@maxpiva
Copy link
Owner

maxpiva commented Nov 30, 2023 via email

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

2 participants