gstreamer - 通过一些过滤器对我的 mpeg4 视频进行解码和编码的管道
问题描述
我使用以下管道在屏幕上播放我的视频
gst-launch-1.0 filesrc location=01_189_libxvid_1920x1080_6M.mp4 !
qtdemux ! mpeg4videoparse ! omxmpeg4videodec ! videobalance brightness=100 !
video/x-raw,format=BGRA ! waylandsink --gst-debug=*:2
但现在我不想直接播放,而是想对其进行编码并将其保存在某个文件夹中。请建议
解决方案
应该是这样的(以 h264 编解码器为例):
gst-launch-1.0 -e --gst-debug=3 \
filesrc location="/path/input/sample_in.mp4" \
! qtdemux \
! mpeg4videoparse \
! omxmpeg4videodec \
! queue \
! x264enc \
! qtmux \
! filesink location="/path/output/sample_out.mp4"
推荐阅读
- php - Codeigniter 会话在每个请求中刷新
- json - 在 Angular 通用 API 调用后 JSON-LD 不起作用
- flutter - 如何根据不同的屏幕尺寸使 Flutter Web Drawer 响应?
- python - python不返回值而是打印值..(数独搜索)
- sql - 根据组合查找要更新的字段
- c# - for loop asp:RadioButton 标签如何与 for loop asp:Label 标签相同?
- ios - CFRunLoopPerformBlock() 处理的块是什么?
- reactjs - 如何将 fetch 文件包装在 1 个文件名模块中,并导出每个 fetch 文件,并将其导入其他组件
- vue.js - 是否可以在 vuejs(客户端)中接受 POST 请求?
- react-native - 如何从登录中获得价值并在家中展示