Soggfy icon indicating copy to clipboard operation
Soggfy copied to clipboard

Resolve Relative Output Paths for ffmpeg

Open SmilerRyan opened this issue 2 years ago • 0 comments

Since soggfy can be treated as a portable application, it would be nice to save files to a relative path. When the application launches, i can enter "../Downloads" and jpg/mp4/txt/lrc files export just fine.

It does however seem like ffmpeg (might) not allow for relative paths in the file paths provided. The Output settings I've tried are the Original OGG and MP3 320K formats, neither get saved.

Would it be possible to have soggfy resolve relative paths to full paths for just ffmpeg? I've checked the arguments, and the only path that's not resolved is the output path.

Here's an example error I get in the log file for each song it tried to download:

[ERR] Failed to save track Various Artists - Entropy: FFmpeg exited with code 1. Check log for details.
[DBG] Requesting metadata for playback 5814f539187177b87c63290acb4db0f9...
[INF] Saving track Jim Yosef - Passion
[DBG]   stream: playback_5814f539187177b87c63290acb4db0f9.dat
[DBG] [ffmpeg.exe]: ../Downloads/Jim Yosef - Passion.ogg: No such file or directory

And here's how my file structure looks like:

image

SmilerRyan avatar Aug 13 '22 04:08 SmilerRyan