简体   繁体   English

gstreamer管道视频和音频

[英]gstreamer pipeline video AND audio

I am very new to gstreamer and have a pipeline that parses a H.261 encoded video file fine with the following pipeline: 我是gstreamer的新手,它有一个管道,可以使用以下管道很好地解析H.261编码的视频文件:

gst-launch-1.0 filesrc location=trailer.mp4 ! 
qtdemux name=demux demux.video_0! queue ! h264parse ! omxh264dec !
nveglglessink -e

Now the video shows fine but this file also has audio encoded with MPEG-4 AAC . 现在,视频可以正常显示,但该文件还具有使用MPEG-4 AAC编码的音频。 Can someone tell me how I may modify the pipeline to also decode the audio stream? 有人可以告诉我如何修改管道以解码音频流吗?

gst-launch-1.0 filesrc location=trailer.mp4 ! qtdemux name=demux demux.video_0 ! queue ! h264parse ! omxh264dec ! nveglglessink demux.audio_0 ! queue ! aacparse ! faad ! autoaudiosink -e

Should do the trick? 应该做到这一点吗? If you haven't installed the faad decoder plugin you can try avdec_aac if you have installed the libav plugins. 如果尚未安装faad解码器插件,则可以在安装了libav插件的情况下尝试avdec_aac But you will need an AAC decoder plugin, thats for sure. 但是,您肯定需要一个AAC解码器插件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM