tgotwig / vidmerger

📼 Merge video & audio files via CLI
https://tgotwig.github.io/vidmerger
113 stars 10 forks source link

Lack of format docs/logging #3

Closed palfrey closed 4 years ago

palfrey commented 4 years ago

So I tried doing cargo run -- -f foo target just as a "let's see how it copes" test (I know it'll fail, but was hoping for logging info detailing what was wrong) and got the following

Order of merging 👇

stderr: dyld: Library not loaded: /usr/local/opt/libffi/lib/libffi.6.dylib
  Referenced from: /usr/local/opt/p11-kit/lib/libp11-kit.0.dylib
  Reason: image not found

Something went wrong 😖

No idea what happened there! Thoughts?

tgotwig commented 4 years ago

I think this is an MacOS issue which I had a few months ago, does brew install libffi help?

Seems you also have no videos with the extention foo, you can run make prepare to load two videos over youtube-dl with the extension mp4 🎞

palfrey commented 4 years ago

I think the biggest problem I had here was that I have no idea what caused the error. A initial naive approach would assume this was something up with vidmerger, but the correct answer is that ffmpeg is a bit broken. However, from that error message I can't tell the difference. Possibly useful to print the command that failed before dumping the output from said command?

tgotwig commented 4 years ago

Yeah sounds good 😃👍