Ruslan-B / FFmpeg.AutoGen

FFmpeg auto generated unsafe bindings for C#/.NET and Core (Linux, MacOS and Mono).
GNU Lesser General Public License v3.0
1.37k stars 323 forks source link

can't get filtering_video.c FFmpeg example migrated to FFmpeg.AutoGen #281

Closed KaFo closed 1 year ago

KaFo commented 1 year ago

I tried to migrate the FFmpeg video filtering example from https://www.ffmpeg.org/doxygen/trunk/filtering_video_8c-example.html to FFmpeg.AutoGen. Most stuff is straightforward, only the fact that av_opt_set_int_list is a fancy macro rather than a converted function required a bit of work.

However the following call always results in a crash: if ((ret = avfilter_graph_parse_ptr(filter_graph, filters_descr, &inputs, &outputs, NULL)) < 0)

I put my code into a test repository here: https://github.com/KaFo/FFmpeg.AutoGen.Samples/ (windows FFmpeg dlls included)

Actual relevant .cs code is in this class: https://github.com/KaFo/FFmpeg.AutoGen.Samples/blob/main/FFmpeg.AutoGen.Samples/FFmpeg.AutoGen.Samples/FFmpegFilteringVideo.cs

Maybe somebody already got the filter stuff working. Any help is appreciated.

Ruslan-B commented 1 year ago

@KaFo have you checked this repo https://github.com/stjeong/ffmpeg_autogen_cs ? It has filtering.

KaFo commented 1 year ago

thanks for the pointer. I'll check it out and report back

Ruslan-B commented 1 year ago

closing topic