sudo-nautilus / FFmpeg-Builds-Win32

Static FFmpeg Auto-Builds For 32-Bit Windows
MIT License
168 stars 22 forks source link

win32 version have some bug? #25

Open heweisheng opened 2 years ago

heweisheng commented 2 years ago

I have a file. If using win32 version ffmpeg api can't work,but using win64 version is true, why?

I try to reproduce the bug with ffplay image image

my command ffplay -i image1.jpg -vf "movie='image1.jpg'[mv];[mv][in]overlay=0:0[out]" my test file image1

sudo-nautilus commented 2 years ago

Sorry for being late, you can simply ignore that messages as they're just warnings in the x64 version, it's working for me tho :/

heweisheng commented 2 years ago

Sorry for being late, you can simply ignore that messages as they're just warnings in the x64 version, it's working for me tho :/

Warning is another matter,This test image cannot run normally in the 32-bit compiled version. You can try my command. It cannot be played in 32-bit ffplay.exe. But it can be played in 64 bit.

In 32-bit image In 64-bit image

sudo-nautilus commented 2 years ago

Uh I tried with the latest version,

https://user-images.githubusercontent.com/78522210/179450940-bed3e0ac-cc27-40eb-86f9-d90530e58833.mp4

heweisheng commented 2 years ago

Uh I tried with the latest version,

2022-07-18.11-05-40.mp4

I don't know what happened. I tried the new version. The virtual machine test I tried to use win11 was also the original result test test2

sudo-nautilus commented 2 years ago

Uhh I too don't have any idea what's happening, anyway how did you manage to install a 32-bit win11 vm

heweisheng commented 2 years ago

Uhh I too don't have any idea what's happening, anyway how did you manage to install a 32-bit win11 vm

I used 64 bit system for testing. Maybe it's a Microsoft 64 bit system bug?

pzhlkj6612 commented 2 years ago

Uhh I too don't have any idea what's happening, anyway how did you manage to install a 32-bit win11 vm

fwiw, there is no 32-bit Windows 11.

Processor 1 gigahertz (GHz) or faster with 2 or more cores on a compatible 64-bit processor or System on a Chip (SoC).

from: Windows 11 Specs and System Requirements | Microsoft

heweisheng commented 2 years ago

Uhh I too don't have any idea what's happening, anyway how did you manage to install a 32-bit win11 vm

fwiw, there is no 32-bit Windows 11.

Processor 1 gigahertz (GHz) or faster with 2 or more cores on a compatible 64-bit processor or System on a Chip (SoC).

from: Windows 11 Specs and System Requirements | Microsoft

You're right. Now I am using a 64 bit system to run 32-bit programs. I'll try the 32-bit system tomorrow

heweisheng commented 2 years ago

Uhh I too don't have any idea what's happening, anyway how did you manage to install a 32-bit win11 vm

fwiw, there is no 32-bit Windows 11.

Processor 1 gigahertz (GHz) or faster with 2 or more cores on a compatible 64-bit processor or System on a Chip (SoC). from: Windows 11 Specs and System Requirements | Microsoft

You're right. Now I am using a 64 bit system to run 32-bit programs. I'll try the 32-bit system tomorrow

I tested the 32-bit win7 SP1 virtual machine. Still unable to run, I gave up.

sudo-nautilus commented 2 years ago

Anyway, if you have access to a 64 bit system, you can just run 64 bit ffmpeg in it, And it's not a bug I guess

pzhlkj6612 commented 2 years ago

Anyway, if you have access to a 64 bit system, you can just run 64 bit ffmpeg in it,

I vote for it.

And it's not a bug I guess

Or say, it might be a BUG that only FFmpeg folks are able to fix. See Bug Reports - FFmpeg.

sudo-nautilus commented 2 years ago

And it's not a bug I guess

Or say, it might be a BUG that only FFmpeg folks are able to fix. See Bug Reports - FFmpeg.

I see

superbonaci commented 2 years ago

Plays perfectly fine for me with 64 bits ffmpeg and windows, will try again later with both 32 bits.

superbonaci commented 2 years ago

Checked with 32 bits windows and ffplay version N-107626-g1368b5a725-20220801 and I do get the same error:

[auto_scale_0 @ 062bb600] Error when evaluating the expression '1080'.
superbonaci commented 2 years ago

@heweisheng this versions work: ffmpeg-4.3.1-win32-static.zip from https://github.com/advancedfx/ffmpeg.zeranoe.com-builds-mirror/releases These fail: https://rwijnsma.home.xs4all.nl/files/ffmpeg/?C=M;O=D

This is the lof of the working one, with ffmpeg-4.3.1-win32-static.zip:

$ ffplay -i image1.jpg -vf "movie='image1.jpg'[mv];[mv][in]overlay=0:0[out]"
ffplay version 4.3.1 Copyright (c) 2003-2020 the FFmpeg developers
  built with gcc 10.2.1 (GCC) 20200726
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libgsm --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
    nan    :  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan    :  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
Input #0, image2, from 'image1.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: 170710 kb/s
    Stream #0:0: Video: mjpeg (Progressive), yuvj444p(pc, bt470bg/unknown/unknown), 1920x1080, 25 tbr, 25 tbn, 25 tbc
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
[swscaler @ 00861000] deprecated pixel format used, make sure you did set range correctly
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
[swscaler @ 09bd9180] deprecated pixel format used, make sure you did set range correctly
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
[swscaler @ 00861000] deprecated pixel format used, make sure you did set range correctly
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
[swscaler @ 00861000] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
[Parsed_movie_0 @ 007dd200] EOF timestamp not reliable
   0.68 M-V: -0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
   0.80 M-V: -0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   

This is the log that fails, with ffmpeg-5.1-1721-f3b7ba2-win32-static-xpmod-sse.7z:

$ ffplay -i image1.jpg -vf "movie='image1.jpg'[mv];[mv][in]overlay=0:0[out]"
ffplay version N-106824-gf3b7ba2-Reino Copyright (c) 2003-2022 the FFmpeg developers
  built with gcc 11.2.0 (GCC)
  configuration: --arch=x86 --target-os=mingw32 --prefix=/cygdrive/m/ffmpeg-windows-build-helpers-master/ffmpeg_local_builds/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32 --cross-prefix=/cygdrive/m/ffmpeg-windows-build-helpers-master/ffmpeg_local_builds/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32- --extra-cflags='-O2 -march=pentium3 -mtune=athlon-xp -mfpmath=sse -msse' --pkg-config=pkg-config --pkg-config-flags=--static --extra-version=Reino --enable-gpl --enable-gray --enable-version3 --disable-bcrypt --disable-debug --disable-doc --disable-htmlpages --disable-manpages --disable-mediafoundation --disable-podpages --disable-txtpages --disable-w32threads --enable-avisynth --enable-frei0r --enable-filter=frei0r --enable-gmp --enable-libaom --enable-libass --enable-libfdk-aac --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libmp3lame --enable-libopenmpt --enable-libopus --enable-libsoxr --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-mbedtls
  libavutil      57. 24.101 / 57. 24.101
  libavcodec     59. 27.100 / 59. 27.100
  libavformat    59. 23.100 / 59. 23.100
  libavdevice    59.  6.100 / 59.  6.100
  libavfilter     8. 38.100 /  8. 38.100
  libswscale      6.  6.100 /  6.  6.100
  libswresample   4.  6.100 /  4.  6.100
  libpostproc    56.  5.100 / 56.  5.100
    nan    :  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan    :  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan    :  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan    :  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
Input #0, image2, from 'image1.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: 170710 kb/s
  Stream #0:0: Video: mjpeg (Progressive), yuvj444p(pc, bt470bg/unknown/unknown), 1920x1080, 25 fps, 25 tbr, 25 tbn
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
[swscaler @ 00ade000] [swscaler @ 00aed2c0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00ade000] [swscaler @ 00b38e80] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00ade000] [swscaler @ 0a925680] deprecated pixel format used, make sure you did set range correctly
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
[swscaler @ 0a9adb40] [swscaler @ 0a9b6e00] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0a9adb40] [swscaler @ 0a9c71c0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0a9adb40] [swscaler @ 0a9fe340] deprecated pixel format used, make sure you did set range correctly
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
[swscaler @ 0bb112c0] [swscaler @ 0bb23280] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0bb112c0] [swscaler @ 0a9d2e40] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0bb112c0] [swscaler @ 0a9fe340] deprecated pixel format used, make sure you did set range correctly
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
[swscaler @ 0bb112c0] [swscaler @ 0bb23280] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0bb112c0] [swscaler @ 0a9fe340] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0bb112c0] [swscaler @ 0aa07600] deprecated pixel format used, make sure you did set range correctly
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
[swscaler @ 0bb112c0] [swscaler @ 0bb23280] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0bb112c0] [swscaler @ 0a9fe340] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0bb112c0] [swscaler @ 0aa07600] deprecated pixel format used, make sure you did set range correctly
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
[auto_scale_0 @ 00a98bc0] Error when evaluating the expression '1080'.
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
superbonaci commented 2 years ago

Checked with previous builds like ffmpeg-4.3-3133-1128aa8-win32-static-xpmod-sse.7z and works fine, so must be some bug introduced later or some compilation flag.

sudo-nautilus commented 2 years ago

libopenjpeg is absent in the second one but that isn't the issue tho

superbonaci commented 2 years ago

I've tested all the rwijnsma.home.xs4all.nl static builds, and ffmpeg-4.4-853-276d86a-win32-static-xpmod-sse.7z is the highest build that works, and ffmpeg-4.4-2460-2c6f532-win32-static-xpmod-sse.7z the lowest that doesn't, which is exactly the next build. So the issue was introduced between builds 853 and 2460 within version 4.4.

superbonaci commented 1 year ago

@heweisheng download latest from here the builds made by @sudo-nautilus: https://github.com/sudo-nautilus/FFmpeg-Builds-Win32/releases/download/latest/ffmpeg-master-latest-win32-gpl.zip

It's working perfectly on real 32 bits systems, so I think the bug has been fixed. Previous stable ffmpeg-n5.1-latest-win32-gpl-5.1.zip is not working so must be a recent fix.