FFmpeg.AutoGen icon indicating copy to clipboard operation
FFmpeg.AutoGen copied to clipboard

4.x

Open AddictedCS opened this issue 2 years ago • 4 comments

Fixing #182. Tested on OSx with FFmpeg v4.4.1 installed via brew.

➜  ~ ffmpeg -version
ffmpeg version 4.4.1 Copyright (c) 2000-2021 the FFmpeg developers
built with Apple clang version 13.0.0 (clang-1300.0.29.3)
configuration: --prefix=/usr/local/Cellar/ffmpeg/4.4.1_5 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-avresample --enable-videotoolbox
libavutil      56. 70.100 / 56. 70.100
libavcodec     58.134.100 / 58.134.100
libavformat    58. 76.100 / 58. 76.100
libavdevice    58. 13.100 / 58. 13.100
libavfilter     7.110.100 /  7.110.100
libavresample   4.  0.  0 /  4.  0.  0
libswscale      5.  9.100 /  5.  9.100
libswresample   3.  9.100 /  3.  9.100
libpostproc    55.  9.100 / 55.  9.100

AddictedCS avatar Jun 03 '22 15:06 AddictedCS

Hi there, thanks for the fix but do you recon that all this code is generated this is not going to fix the source of the issue.

Ruslan-B avatar Jun 03 '22 16:06 Ruslan-B

Yeah, so I thought. That's why I asked if there have been any changes in the generation of the source code since v4.3.2.1? I'm not completely aware of the tools that are used to generate it, any references will be appreciated.

AddictedCS avatar Jun 04 '22 10:06 AddictedCS

Well if you check FFmpeg.AutoGen.CppSharpUnsafeGenerator you will find all this project is a tool 😄. Technically it is possible to generate delegates in different manner than functions. However, I have strong feeling it is a bug in dotnet marshaling on specific platform. So it was reason why I ask to validate this function use on different platforms.

Ruslan-B avatar Jun 14 '22 19:06 Ruslan-B

Forming new way of API here https://github.com/Ruslan-B/FFmpeg.AutoGen/issues/210 - all none const array parameters are ref now. I'll appriciciet if you can test.

Ruslan-B avatar Aug 17 '22 12:08 Ruslan-B

I'll close this one as seems current version is working fine

Ruslan-B avatar Mar 02 '23 09:03 Ruslan-B