Ruslan-B/FFmpeg.AutoGen

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

KaFo opened this issue · 3 comments

KaFo commented

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.

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

KaFo commented

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

closing topic