CCExtractor / video2srt

Superfast online transcript generator with FFmpeg/wasm + whisper
GNU General Public License v3.0
50 stars 10 forks source link

"FFProbe failed to look up audio tracks on the file you have submitted." for All Media #15

Open GuyPaddock opened 3 weeks ago

GuyPaddock commented 3 weeks ago

No matter whether I select WAV, MP3, or MP4 files, I get this message:

FFProbe failed to look up audio tracks on the file you have submitted. 1. You may have submitted a file that isn't a Video 2. The video file is not supported by FFProbe. If you believe this is an error, please submit an Issue report :)

However, I am running video2srt in WSL and the browser is in Windows. Does video2srt access the file by its path on the machine directly, or does the file get uploaded through the web browser?

Alternatively, is this an issue with my NodeJS setup? I'm using NodeJS 22.6.0.

MatejMecka commented 3 weeks ago

Hey there!

Thank you for reporting this ^_^ This is the first time I hear about such an issue, do you mind also attaching the logs of what happens in the developer console?

So everytime you upload a file to video2srt, it takes the file and creates a blob of the file with the lifetime being the same with how long video2srt is open in the browser tab. You can find the code for this part of the project here:

https://github.com/CCExtractor/video2srt/blob/cf046df94ffb67685eb3883665c8cdf2cc2fcdab/src/lib/components/FileHandler.svelte#L34-L38

The reason why that error pops up is related to the FFProbe component where it looks for audio tracks. One of my guesses, I don't have much information to confirm if this is it. If you have built it locally do you serve the following headers:

Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Embedder-Policy: require-corp

Would it be also okay to send a file I can also attempt to reproduce on my machine? If it's something of sensitive nature you can also send me an email with the attachment.

Have a good day, Matej