Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Endless paths when attempting to find ffmpeg #1341

Open
3 tasks done
daBomb61978 opened this issue May 29, 2024 · 3 comments
Open
3 tasks done

Endless paths when attempting to find ffmpeg #1341

daBomb61978 opened this issue May 29, 2024 · 3 comments

Comments

@daBomb61978
Copy link

daBomb61978 commented May 29, 2024

Prerequisites

Description

Attempting to create an MKV from an Ugoira results in endless loop while attempting to find ffmpeg.exe, although the .zip and .ugoira files download just fine.

Steps to Reproduce

  1. Input: 2
  2. Image ids: 71702827

Expected behavior: mkv to be created

Actual behavior:

Processing Image Id: 71702827
Member Name   : EY/どぶみず
Member Avatar : https://i.pximg.net/user-profile/img/2022/03/27/21/45/38/22454031_6e14c62a4683b21f62681a2a07bb5801.jpg
Member Token  : mstrk
Member Backgrd: https://i.pximg.net/c/1920x960_80_a2_g5/background/img/2022/04/07/23/37/24/7784483_783305d379b8933e997455378aa9e82b.jpg
Title     : パワーパフガールズ20周年
Tags      : うごイラ, パワーパフガールズ
Date      : 2018-11-17 16:22:00+00:00
Mode      : ugoira_view
Bookmarks : 77
[1/1] Image URL : https://i.pximg.net/img-zip-ugoira/img/2018/11/18/01/22/43/71702827_ugoira1920x1080.zip
[1/1] Filename  : C:\Users\[user]\Downloads\pixivutil202305\EY_どぶみず (7784483)\71702827_ugoira1920x1080 - パワーパフガールズ20周年.zip
Local file exists: C:\Users\[user]\Downloads\pixivutil202305\EY_どぶみず (7784483)\71702827_ugoira1920x1080 - パワーパフガールズ20周年.zip

Processing ugoira to mkv...
Cannot find file at '..\\lib\ffmpeg\tools\ffmpeg\bin\ffmpeg.exe' (C:\Users\[user]\Downloads\lib\ffmpeg\tools\ffmpeg\bin\ffmpeg.exe). This usually indicates a missing or moved file.

pixivutil2 is located in C:\Users[user]\Downloads, and I thought having ffmpeg in PATHS was sufficient. Just to see what would happen, though, I created C:\Users[user]\Downloads\lib\ffmpeg\tools\ffmpeg\bin\ and copied ffmpeg.exe into it, and the result was...

Processing Image Id: 71702827
Member Name   : EY/どぶみず
Member Avatar : https://i.pximg.net/user-profile/img/2022/03/27/21/45/38/22454031_6e14c62a4683b21f62681a2a07bb5801.jpg
Member Token  : mstrk
Member Backgrd: https://i.pximg.net/c/1920x960_80_a2_g5/background/img/2022/04/07/23/37/24/7784483_783305d379b8933e997455378aa9e82b.jpg
Title     : パワーパフガールズ20周年
Tags      : うごイラ, パワーパフガールズ
Date      : 2018-11-17 16:22:00+00:00
Mode      : ugoira_view
Bookmarks : 77
[1/1] Image URL : https://i.pximg.net/img-zip-ugoira/img/2018/11/18/01/22/43/71702827_ugoira1920x1080.zip
[1/1] Filename  : C:\Users\[user]\Downloads\pixivutil202305\EY_どぶみず (7784483)\71702827_ugoira1920x1080 - パワーパフガールズ20周年.zip
Local file exists: C:\Users\[user]\Downloads\pixivutil202305\EY_どぶみず (7784483)\71702827_ugoira1920x1080 - パワーパフガールズ20周年.zip

Processing ugoira to mkv...
Cannot find file at '..\\lib\ffmpeg\tools\ffmpeg\bin\ffmpeg.exe' (C:\Users\[user]\Downloads\lib\ffmpeg\tools\ffmpeg\lib\ffmpeg\tools\ffmpeg\bin\ffmpeg.exe). This usually indicates a missing or moved file.

And again, just for fun...

Processing Image Id: 71702827
Member Name   : EY/どぶみず
Member Avatar : https://i.pximg.net/user-profile/img/2022/03/27/21/45/38/22454031_6e14c62a4683b21f62681a2a07bb5801.jpg
Member Token  : mstrk
Member Backgrd: https://i.pximg.net/c/1920x960_80_a2_g5/background/img/2022/04/07/23/37/24/7784483_783305d379b8933e997455378aa9e82b.jpg
Title     : パワーパフガールズ20周年
Tags      : うごイラ, パワーパフガールズ
Date      : 2018-11-17 16:22:00+00:00
Mode      : ugoira_view
Bookmarks : 77
[1/1] Image URL : https://i.pximg.net/img-zip-ugoira/img/2018/11/18/01/22/43/71702827_ugoira1920x1080.zip
[1/1] Filename  : C:\Users\[user]\Downloads\pixivutil202305\EY_どぶみず (7784483)\71702827_ugoira1920x1080 - パワーパフガールズ20周年.zip
Local file exists: C:\Users\[user]\Downloads\pixivutil202305\EY_どぶみず (7784483)\71702827_ugoira1920x1080 - パワーパフガールズ20周年.zip

Processing ugoira to mkv...
Cannot find file at '..\\lib\ffmpeg\tools\ffmpeg\bin\ffmpeg.exe' (C:\Users\[user]\Downloads\lib\ffmpeg\tools\ffmpeg\lib\ffmpeg\tools\ffmpeg\lib\ffmpeg\tools\ffmpeg\bin\ffmpeg.exe). This usually indicates a missing or moved file.

It seems to be running down an infinite corridor trying to find ffmpeg.

Config:

[FFmpeg]
ffmpeg = ffmpeg.exe
ffmpegCodec = libvpx-vp9
ffmpegExt = webm
ffmpegParam = -lossless 0 -crf 15 -b 0 -vsync 0
mkvCodec = copy
mkvParam = 
webpCodec = libwebp
webpParam = -lossless 0 -compression_level 5 -quality 100 -loop 0 -vsync 0
gifParam = -filter_complex [0:v]split[a][b];[a]palettegen=stats_mode=diff[p];[b][p]paletteuse=dither=bayer:bayer_scale=5:diff_mode=rectangle -vsync 0
apngParam = -plays 0 -vsync 0
verboseOutput = False

[Ugoira]
writeUgoiraInfo = False
createUgoira = True
createMkv = True
createWebm = False
createWebp = False
createGif = False
createApng = False
deleteUgoira = False
deleteZipFile = False

Versions

v20230105

@NHOrus
Copy link
Contributor

NHOrus commented May 29, 2024

Put absolute path to ffmpeg in there.

@daBomb61978
Copy link
Author

daBomb61978 commented May 29, 2024

In...where? Be more specific.

EDIT: Okay, figured it out. You meant in the config file after "ffmpeg = ".

That fixed it! Thanks!

@NHOrus
Copy link
Contributor

NHOrus commented May 29, 2024

in config:

[FFmpeg]
ffmpeg = ffmpeg.exe

for example, in my config, I have

[FFmpeg]
ffmpeg = D:/ffmpeg/bin/ffmpeg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants