holzschu / a-Shell-commands

shell commands, pre-compiled to webAssembly, ready to use in a-Shell
554 stars 21 forks source link

Cannot run ffprobe and ffmpeg version #38

Open Behinder opened 1 year ago

Behinder commented 1 year ago

Wasm ffmpeg gives Error: Wasm ffprobe gives file ffprobe not found same if I add filepath as argument Both versions downloaded from this site.

holzschu commented 1 year ago

What about wasm ffprobe.wasm, or just ffprobe?

Behinder commented 1 year ago

After killing and relaunching a-shell ffprobe works. Wasm ffprobe.wasm shows file ffprobe.wasm not found so I assume ffprobe that launch successfully is the one built-in?

holzschu commented 1 year ago

I agree with your analysis (that ffprobe was the one built in). That leaves open the question: where is the ffprobe that you downloaded?

Behinder commented 1 year ago

~/Documents/bin

holzschu commented 1 year ago

Thanks. I assume you did check that it was present? (probably with ls -l bin/ff*)

If it's in ~/Documents/bin, then you need to call wasm with its actual location: wasm bin/ffprobe.wam. IIRC, if ffprobe.wasm is in ~/Documents/bin, then it will be called by ffprobe, before the built-in version. ffprobe.wam should definitely be executed. You can check which version is called by looking at what is says at the top (if it says enable-gpl, then it's the wasm version).

Behinder commented 1 year ago

I put it myself there I thought it is desired location. Ffprobe gives ffprobe version N-97747-gffae62d96c Copyright (c) 2007-2020 the FFmpeg developers built with clang version 13.0.0 (https://github.com/llvm/llvm-project bb31aec2cc85b6e2e85e687d086f85408b166c 42) Wasm bin/ffprobe.Wasm gives ffprobe version N-97747-gffae62d96c Copyright (c) 2007-2020 the FFmpeg developers built with clang version 13.0.0 (https://github.com/llvm/llvm-project bb31aec2cc85b6e2e85e687d086f85408b166c 42)

so at least I see they are identical. However I am not sure if shipped ffmpeg version is the latest one? I tried to download the ffmpeg source but apparently a-shell does not allow to configure make and make install.

the reason for checking this is as I currently have no Mac I find using ffmpeg on a-shell useful for recording television from HDHomerun. The recording mpg loooks fine if opened in FTPManager,(there is no ffplay tough so cannot play it natively) however such recordings converted to mpeg4 using this ffmpeg result in file that not displaying properly in Luma Fusion.