【问题标题】:How to change the resolution of image in gstbuffer?如何更改gstbuffer中图像的分辨率?
【发布时间】:2016-08-19 12:56:09
【问题描述】:

我正在通过 UDP 接收数据,

在appsink的Pullbuffer回调函数中,正在将数据检索到gstbuffer中。

但该数据是 1920X1080 图像缓冲区。

但是,我想将其转换为 720X576 分辨率并流式传输该数据。

如何使用 gstreamer 做到这一点?

【问题讨论】:

  • 为什么不在appsink之前简单地使用videoscale?
  • 你能给我举一些videoscale的例子吗?

标签: image resize udp gstreamer resolution


【解决方案1】:

通过使用 videoscale 组件和 videocaps,我成功调整了图像大小。

示例管道:

gst-launch-1.0 videotestsrc ! videoscale ! video/x-raw,width=720,height=576 ! xvimagesink

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-05-24
    • 1970-01-01
    • 1970-01-01
    • 2020-10-23
    • 2023-03-19
    • 2018-02-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多