Den 14.05.2025 04:04, skrev Andrew Randrianasulu via Cin:
Even if our code compiles it does not work anymore ...
[out @ 0xe1821180] Option 'pix_fmts' is not a runtime option and so
cannot be set after the object has been initialized
int ret = 0; char args[BCTEXTLEN];
AVPixelFormat pix_fmt = (AVPixelFormat)avpar->format;
snprintf(args, sizeof(args),
"video_size=%dx%d:pix_fmt=%i:time_base=%d/%d:pixel_aspect=%d/%d",
avpar->width, avpar->height,(int)pix_fmt,
st->time_base.num, st->time_base.den, sa_num, sa_den);
if( ret >= 0 ) {
filt_ctx = 0;
ret = insert_filter("buffer", args, "in");
buffersrc_ctx = filt_ctx;
}
if( ret >= 0 )
ret = flip(theta);
AVFilterContext *fsrc = filt_ctx;
if( ret >= 0 ) {
filt_ctx = 0;
ret = insert_filter("buffersink", 0, "out");
buffersink_ctx = filt_ctx;
}
if( ret >= 0 ) {
ret = av_opt_set_bin(buffersink_ctx, "pix_fmts",
(uint8_t*)&pix_fmt, sizeof(pix_fmt),
AV_OPT_SEARCH_CHILDREN);
}
if( ret >= 0 )
ret = config_filters(filter_spec, fsrc);
else
ff_err(ret, "FFVideoStream::create_filter");
return ret >= 0 ? 0 : -1;
=
There is no video filtering example in doc/examples.
How I supposed to know what should be put there now?
I have read a discussion on reddit that -pix_fmt possibly is
deprecated(?) in favour of -vf format= or -pixel_format
https://www.reddit.com/r/ffmpeg/comments/1du0mia/vf_formatpixel_format_vs_pix_fmt_pixel_format/
--
Cin mailing list
Cin@lists.cinelerra-gg.org
https://lists.cinelerra-gg.org/mailman/listinfo/cin