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

Latest version seems to be ignoring the "ffmpegExt" config #1047

Closed
BinaryMan101 opened this issue Nov 8, 2021 · 0 comments
Closed

Latest version seems to be ignoring the "ffmpegExt" config #1047

BinaryMan101 opened this issue Nov 8, 2021 · 0 comments

Comments

@BinaryMan101
Copy link

BinaryMan101 commented Nov 8, 2021

Running on the latest version (20211104), the ffmpeg configuration seems to be ignoring the "ffmpegExt" variable. I use the following configurations to convert ugoira to mp4:

ffmpeg = ffmpeg
ffmpegCodec = libx264
ffmpegExt = mp4
ffmpegParam = -vsync 2 -r 999 -pix_fmt yuv420p -preset medium -crf 18 -tune animation -an -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2"

But when it tries converting, it fails as follows:

2021-11-08 13:29:53,267 - PixivUtil20211104 - INFO - [convert_ugoira()] running with cmd: ffmpeg -y -safe 0 -i "C:/Users/the_o/AppData/Local/Temp/convert_ugoirajnpbw3ik/i.ffconcat" -c:v libx264 -vsync 2 -r 999 -pix_fmt yuv420p -preset medium -crf 18 -tune animation -an -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2" "C:/Users/the_o/AppData/Local/Temp/convert_ugoirajnpbw3ik/temp.webm"
2021-11-08 13:29:53,273 - PixivUtil20211104 - INFO - Start encoding E:\Downloads\PixivDump\94007045_ugoira1920x1080.mp4
2021-11-08 13:29:53,343 - PixivUtil20211104 - ERROR - Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
2021-11-08 13:29:53,343 - PixivUtil20211104 - ERROR - NoneType: None

2021-11-08 13:29:53,351 - PixivUtil20211104 - ERROR - Failed when converting image using ffmpeg -y -safe 0 -i "C:/Users/the_o/AppData/Local/Temp/convert_ugoirajnpbw3ik/i.ffconcat" -c:v libx264 -vsync 2 -r 999 -pix_fmt yuv420p -preset medium -crf 18 -tune animation -an -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2" "C:/Users/the_o/AppData/Local/Temp/convert_ugoirajnpbw3ik/temp.webm" ==> ffmpeg return exit code=1, expected to return 0.
2021-11-08 13:29:53,351 - PixivUtil20211104 - ERROR - NoneType: None

The destination file is correct, but ffmpeg is trying to output a "temp.webm" file, despite being configurated for "mp4".

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

1 participant