ffmpeg_batch icon indicating copy to clipboard operation
ffmpeg_batch copied to clipboard

[Bug] Something is wrong with the interaction between the new ffmpeg and ffmpeg_batch

Open iG8R opened this issue 1 year ago • 18 comments

Hi. ffmpeg_batch (FFmpeg_Batch_AV_Converter_Portable_3.0.0_x64) doesn't correctly interact with the new ffmpeg. Here are the examples.

  1. Old ffmpeg from 04.03.20023 image

ffmpeg_batch-04.03.2033-Video_2023-10-20_161034.webm

  1. New ffmpeg from 07.09.2023 image

First encoding attempt.

ffmpeg_batch-07.09.2023-Video_2023-10-20_161541.webm

Second encoding attempt.

ffmpeg_batch-07.09.2023-2nd-attempt-Video_2023-10-20_161541.webm

iG8R avatar Oct 20 '23 14:10 iG8R

Is it possible that everything works for everyone and such a problem does not arise with the new version?

iG8R avatar Oct 24 '23 15:10 iG8R

I've checked all versions of fmmpeg after 6.0 2023-03-04 and they all don't work correctly with ffmpeg_batch.

iG8R avatar Oct 24 '23 16:10 iG8R

I don't have any similiar report about problems with other ffmpeg.exe versions. It must be related to your system, of your input file. You could send me some samples for testing purposes.

eibol avatar Oct 24 '23 16:10 eibol

Here is the original video sample: https://drive.google.com/file/d/1bHlHWA1ONjlXKgKMvGA5YV0FvlTQ3gFQ/view?usp=sharing

iG8R avatar Oct 24 '23 17:10 iG8R

Hi, ffmpeg console displays errors with this file that seem to freeze the user interface:

[vost#0:0/libx264 @ 0000024c274e7c40] More than 1000 frames duplicated 0.4kbits/s dup=973 drop=0 speed=0.229x [vost#0:0/libx264 @ 0000024c274e7c40] More than 10000 frames duplicated6.3kbits/s dup=9965 drop=0 speed=0.214x [out#0/mp4 @ 0000024c274ab740] video:6893kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead:

It generates a useless grey file.

First of all, do not include in parameters -i %1 (it is automatically added) Also -y is added by default. Second, vp9 encoding is extremely slow. Third, ffmpeg.exe included version seems to work erratically in FFmpeg Batch, please try replacing it with this one

eibol avatar Oct 24 '23 18:10 eibol

Release version should also work: https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-essentials.zip

eibol avatar Oct 24 '23 18:10 eibol

Third, ffmpeg.exe included version seems to work erratically in FFmpeg Batch, please try replacing it with this one

Release version should also work: https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-essentials.zip

All these "ffmpeg.exe"s, mentioned above, they match the one in the archive with ffmpeg_batch version 2.8.8 and work fine with version 3.0.0. My issue arises because of newer versions, newer than those that you provided in the messages above, in particular, the version that goes in the same archive with the 3.0.0 version, dated 2023-09-07, does not work with any version of ffmpeg_batch, although it successfully processes any files through the console, the same situation with newer ones ffmpeg versions, for example, from 2023-10-23. By the way, regardless of whether -i %1 -y are present or absent in the parameter string, they have no effect on the operation of ffmpeg_batch with working ffmpeg from 2023-04-03.

Here are my attempts to use new ffmpegs with ffmpeg_batch. And as you can see in this video, all console ffmpegs (old and new) successfully process the original video sample.

FFBatch-3.0-issue-with-ffmpeg-Video_2023-10-24_221358_FFB.webm

iG8R avatar Oct 24 '23 21:10 iG8R

Thanks for the detailed report, this is going to be tough to debug, I"ll do my best.

eibol avatar Oct 25 '23 05:10 eibol

Thanks a lot for your efforts!

iG8R avatar Oct 25 '23 09:10 iG8R

Finally some light at the end of the tunnel. I found out that the new builds with the exact version number 6.0 in their names from here https://github.com/BtbN/FFmpeg-Builds/releases/tag/latest work well with ffmpeg_batch.

iG8R avatar Oct 25 '23 13:10 iG8R

That's good. It's weird, the standard output in new ffmpeg versions sinks into a void and encoding never ends. This patched version should work fine with all ffmpeg versions. FFBatch.zip

eibol avatar Oct 25 '23 14:10 eibol

Thanks a lot, but the problem still exists and even a new one has appeared.

FFBatch-3.0.1-Video_2023-10-25_180249.webm

FFBatch-3.0.1-dif-ffmpegs-Video_2023-10-25_183416.webm

iG8R avatar Oct 25 '23 15:10 iG8R

I will have to generate a full release package for better testing.

eibol avatar Oct 25 '23 16:10 eibol

V3.0.1

eibol avatar Oct 25 '23 16:10 eibol

Unfortunately, still the same result.

FFBatch-3.0.1-in-bundle-Video_2023-10-25_220737_FFB.webm

iG8R avatar Oct 25 '23 19:10 iG8R

Unfortunately I'm not experiencing the issue anymore. You could try deleting current FFbatch.exe and replacing it again with this tested one in both portable/installed versions:

ffbatch.log FFBatch.zip

If this does not work, I would uninstall/reinstall application.

eibol avatar Oct 26 '23 17:10 eibol

It' a pity, but it doesn't work either:( I've done everything I can think of, but it only works well with ffmpeg's 6.0 versions. Is it possible to compile FFBatch so that it can record extended debug information during its operation?

iG8R avatar Oct 26 '23 18:10 iG8R

:(

I'll upload newest 3.0.1 code, you will be able to pull and compile it with VS Studio.

Can you please point to a ffmpeg.exe not working at all for you? What is the sympton? What's the log file?

You can enable "Verbose logs" in settings for more log information.

eibol avatar Oct 26 '23 19:10 eibol