【发布时间】:2021-07-14 07:21:19
【问题描述】:
我要编码的内容
- 从 h264 编码的 mp4 文件中获取缓冲区
- 将缓冲区传递给应用程序接收器
- 然后分别在另一个管道中,appsrc 将读取缓冲区
- 缓冲区将是 h264parse,然后使用 GstRTSPServer 通过 rtp 发送出去
希望为 CLI 管道模拟此情况,以确保视频上限正常工作:
我的尝试如下: gst-launch-1.0 文件rc location=video.mp4 !应用程序名称 = mysink !应用程序名称 = mysrc !视频/x-h264 宽度=720 高度=480 帧率=30/1 ! h264parse 配置间隔=1 ! rtph264pay 名称=pay0 pt=96 ! udpsink 主机=192.168.x.x 端口=1234
但这并没有真正起作用,我不太确定这就是 appsrc 和 appsink 的使用方式
谁能给我解惑
编辑: 我要播放的文件具有以下属性
一般 全名:video3.mp4 格式:AVC 格式/信息:高级视频编解码器 文件大小:45.4 MiB
Video
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Baseline@L2.2
Format settings, CABAC : No
Format settings, ReFrames : 1 frame
Format settings, GOP : M=1, N=30
Width : 720 pixels
Height : 480 pixels
Display aspect ratio : 3:2
Frame rate : 30.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
谢谢
【问题讨论】: