thewh1teagle / vibe

Transcribe on your own!
https://thewh1teagle.github.io/vibe/
MIT License
442 stars 30 forks source link

Bug: Invalid data found when processing input #85

Closed vinajava closed 1 month ago

vinajava commented 1 month ago

What happened?

A bug happened!

Steps to reproduce

  1. step one...
  2. step two...

What OS are you seeing the problem on?

No response

Relevant log output

options: {
  "path": "D:\\Downloads\\4_5852669384987775006.mp4",
  "model_path": "C:\\Users\\user\\AppData\\Local\\github.com.thewh1teagle.vibe\\ggml-medium.bin",
  "lang": "zh",
  "verbose": false,
  "n_threads": 4,
  "init_prompt": "",
  "temperature": 0.4,
  "translate": true
}

Caused by:
    Invalid data found when processing input

Location:
    core\src\audio\encoder.rs:175:9
App Version: 1.0.9
Commit Hash: 3b58f0bf1fc76a126f3423fe9a426ca919a605c7
Arch: x86_64
Platform: windows
Kernel Version: 10.0.19044
OS: windows
OS Version: 10.0.19044
Models: ggml-medium.bin
Default Model: "C:\\Users\\user\\AppData\\Local\\github.com.thewh1teagle.vibe\\ggml-medium.bin"

CPU Features:
AVX: true
AVX2: true
AVX512: false
AVX512-VBMI: false
AVX512-VNNI: false
FMA: true
F16C: true
thewh1teagle commented 1 month ago

Thanks for reporting! Can you check if the file in

D:\\Downloads\585266938498.mp4

Is valid? You can try open it Also, does it happens with other files?

vinajava commented 1 month ago

That file is valid. The file can be played just fine. It does not happen to other file.

thewh1teagle commented 1 month ago

@vinajava

If the file is valid I'm not sure what's the reason that the fffmpeg encoder is failed to process it. Maybe try it directly with ffmpeg. You can open cmd.exe and execute:

winget install --id=Gyan.FFmpeg  -e
ffmpeg -i <file> -ar 16000 -ac 1 -c:a pcm_s16le -loglevel error

delete the <file> and drag and drop the file into the terminal (the path should pasted) and make sure it's pasted correctly (should have hyphens around)

Also if possible - maybe you can try upload the file to Google Drive and share here

vinajava commented 1 month ago

Thank you. I will try.