leerob / youtube-to-mp3

⚡️Electron application to convert and download YouTube videos as MP3s
https://electronjs.org/apps/youtube-to-mp3
MIT License
540 stars 132 forks source link

Conversion sits at 0% with ffmpeg error #16

Open Rooks103 opened 5 years ago

Rooks103 commented 5 years ago

Seeing issues when I'm trying to convert a video. Download seems to work fine, but soon

Uncaught Error: ffmpeg exited with code 126 at ChildProcess.<anonymous> (/Users/mattpeterson/code/youtube-to-mp3/node_modules/fluent-ffmpeg/lib/processor.js:182) at emitTwo (events.js:125) at ChildProcess.emit (events.js:213) at Process.ChildProcess._handle.onexit (internal/child_process.js:200)

Two things that might be contributing, but I can't track down whether either is an issue. First, when I run the webpack command, I never see that command complete, but not sure if that is supposed to finish. Second, when I run the app, I see the message Electron could not be found. No hard resets for you! Again, not sure if that's a problem or not as the app starts.

Running this on macOS 10.14.1.

leerob commented 5 years ago

Thanks for reporting this! I haven't had a chance to look into this repo much lately, but if I get some time I will.

leerob commented 5 years ago

Okay, so I had a chance to look into this today. I'm really not sure what's going wrong, but it has to do with the ffmpeg binaries. This issue seems related.

I tried installing ffmpeg directly on my machine with brew install ffmpeg to get the binary in my PATH, but it was still throwing the same error. Maybe we can look at how this repository is doing this? They list ffmpeg as a requirement first, so maybe that's what will need to change here.

valichek commented 5 years ago

osx, got no error, but conversion frozen at 0%, mp4 downloaded to /Downloads, also when running yum build it goes to webpack watch mode, no finish

bsalgado98 commented 5 years ago

@valichek I'm also getting the same issue.

Rooks103 commented 5 years ago

For what it's worth, I switched to using a program "Any Video Converter" in order to get some of the mp3s. Doesn't help with this problem, but might give some other folks a workaround.