Gstreamer-1.0:在mp4容器中混合原始视频 [英] Gstreamer-1.0: mux raw video in a mp4 container

查看:315
本文介绍了Gstreamer-1.0:在mp4容器中混合原始视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个可以通过gstreamer播放的原始视频:

I have a raw video that I can play through gstreamer:

gst-launch-1.0 ... autovideoconvert ! autovideosink

我可以对此视频进行编码:

I can encode this video:

gst-launch-1.0 ... ! autovideoconvert ! x264enc ! h264parse ! mp4mux ! filesink location=a.mp4

我现在想将此原始视频无损"放入mp4容器中,而无需进行任何压缩.我该怎么办?

I would like now to put this raw video in a mp4 container "lossless", without any compression. How can I do that?

推荐答案

我认为我不能使用mp4mux,但是qtmux可以接受raw-uyvy.以下作品:

I don't think I can use mp4mux but qtmux accept raw-uyvy. The following works:

gst-launch-1.0 ... ! autovideoconvert ! "video/x-raw,format=(string)UYVY" ! qtmux ! filesink location=a.mov

这篇关于Gstreamer-1.0:在mp4容器中混合原始视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆