Код: Выделить всё
...
"! vaapih264enc name=encoder rate-control=cbr quality-level=7 keyframe-period=8 ",
"! video/x-h264, profile=constrained-baseline, width=640, height=480 ",
"! h264parse config-interval=1 ",
...
Код: Выделить всё
auto encoder = gst_bin_get_by_name_recurse_up(media, "encoder");
< /code>
И мне также удалось получить его раковину: < /p>
auto sink = GST_PAD(context->encoder->sinkpads->data);
Подробнее здесь: https://stackoverflow.com/questions/793 ... on-runtime
Мобильная версия