如何修改以下命令行? [英] how to modify the following command line?
本文介绍了如何修改以下命令行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有以下gstreamer命令行:
I have the following gstreamer Command-line :
gst-launch alsasrc ! mulawenc ! rtppcmupay ! udpsink host= 127.0.0.1 port=5555
它记录单声道语音,如果我在5555端口上监听(使用了回显IP),我可以听到它.但是我需要传送立体声. 我还使用以下命令尝试了麦克风的立体声录音功能:
It records Mono Voice and i can hear it ,if i listen on 5555 port ( echo IP was used). But i need to transmit Stereo . I have also tried my Microphone for stereo-recording Capability using the following command:
arecord -vv -fdat voiceFile.wav
,并且有效. 有人知道如何在gstreamer命令中指定 stereo 吗?
and it works. Does anyone know how to specify stereo in the gstreamer command?
推荐答案
问题是rtppcmupay
不支持立体声:
$ gst-inspect rtppcmupay
...
Capabilities:
audio/x-mulaw
channels: 1
rate: 8000
....
您可以尝试其他编解码器(例如vorbis):
You can try some other codec (e.g. vorbis):
$ gst-launch alsasrc \
! 'audio/x-raw-int,channels=2' \
! audioconvert \
! vorbisenc \
! rtpvorbispay \
! udpsink host=127.0.0.1 port=5555
这篇关于如何修改以下命令行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文