gstreamer

how to stream audio with tcpserversink using gstreamer

做~自己de王妃 提交于 2020-01-06 06:44:15
问题 I need live-stream audio over Internet. Quick search in internet and I decide using Gstreamer. I has streamed successfully using udpsink, but it only work on LAN. I test with tcpserversink but it not working: Server (IP: 113.160.166.87) gst-launch-1.0 filesrc location="G:/Project/Gstreamer/TestContent/Em-Gai-Mua-Huong-Tram.mp3" ! decodebin ! mulawenc ! tcpserversink port=7001 host=0.0.0.0 Client: gst-launch-1.0 tcpclientsrc host=113.160.166.87 port=7001 ! "audio/x-mulaw, channels=1, depth=16,

gst_parse_launch differs output from command line gst_launch

拟墨画扇 提交于 2020-01-06 05:43:07
问题 I have a pipeline like this, which works with gst-launch-1.0 gst-launch-1.0 v4l2src device='/dev/video0' ! 'video/x-raw,format=(string)YUY2,width=(int)640,height=(int)480' ! nvvidconv ! 'video/x-raw(memory:NVMM),format=(string)NV12,width=(int)640,height=(int)480' ! nvvidconv ! 'video/x-raw,format=(string)NV12,width=(int)640,height=(int)480' ! nvvideoconvert ! 'video/x-raw(memory:NVMM),format=(string)NV12,width=(int)640,height=(int)480' ! mux.sink_0 nvstreammux live-source=1 name=mux batch

Video Transitions with GStreamer & GNonLin not working

可紊 提交于 2020-01-05 12:16:12
问题 I've been trying to combine 2 videos together with gstreamer with a short transition (like smpte) between them using gstreamer & gnonlin in python. However I can't get the gnloperation/smpte transition to work. Goal Below is a programme. I want it to play the first 4 sec of one file, and at 2 sec to start doing a smpte transition (that lasts for 2 seconds) to another file. (so the second file will start playing 2 seconds into the whole thing but be 'revealed' over the course of the 2 second

how to modify the following command line?

落爺英雄遲暮 提交于 2020-01-05 04:40:36
问题 I have the following gstreamer Command-line : gst-launch alsasrc ! mulawenc ! rtppcmupay ! udpsink host= 127.0.0.1 port=5555 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 and it works. Does anyone know how to specify stereo in the gstreamer command? 回答1: The problem is that rtppcmupay does not

Feeding gstreamer fdsrc via STDIN only produces fraction of expected result

寵の児 提交于 2020-01-04 11:40:11
问题 I am using gstreamer windows port OSSBuild. I want to feed gst-launch with video data via its STDIN using the fdsrc element. Doing so it seems as if the pipline is consuming just a small fraction of the input. For instance type source.yuv | gst-launch fdsrc ! videoparse format=GST_VIDEO_FORMAT_I420 width=176 height=144 framerate=30000/1001 ! x264enc ! mpegtsmux ! filesink location=out.ts will NOT work while gst-launch filesrc location=source.yuv ! videoparse format=GST_VIDEO_FORMAT_I420 width

Feeding gstreamer fdsrc via STDIN only produces fraction of expected result

感情迁移 提交于 2020-01-04 11:40:03
问题 I am using gstreamer windows port OSSBuild. I want to feed gst-launch with video data via its STDIN using the fdsrc element. Doing so it seems as if the pipline is consuming just a small fraction of the input. For instance type source.yuv | gst-launch fdsrc ! videoparse format=GST_VIDEO_FORMAT_I420 width=176 height=144 framerate=30000/1001 ! x264enc ! mpegtsmux ! filesink location=out.ts will NOT work while gst-launch filesrc location=source.yuv ! videoparse format=GST_VIDEO_FORMAT_I420 width

How to detect the device name for a capture device?

不问归期 提交于 2020-01-04 05:57:29
问题 I am writing a GStreamer application (GStreamer uses DirectShow under the hood on Windows) that captures a computer's microphone and videocamera. It works fine, but requires me to specify the device names manually. I would like to have my program detect these automatically. Does anyone know how to do that? 回答1: It would surprise me if GStreamer doesn't have capabilities to enumerate devices, but DirectShow definitely has. See the article on using the system device enumerator and use it with

How to detect the device name for a capture device?

♀尐吖头ヾ 提交于 2020-01-04 05:57:05
问题 I am writing a GStreamer application (GStreamer uses DirectShow under the hood on Windows) that captures a computer's microphone and videocamera. It works fine, but requires me to specify the device names manually. I would like to have my program detect these automatically. Does anyone know how to do that? 回答1: It would surprise me if GStreamer doesn't have capabilities to enumerate devices, but DirectShow definitely has. See the article on using the system device enumerator and use it with

Convert YUVj420p pixel format to RGB888 using gstreamer

ⅰ亾dé卋堺 提交于 2020-01-02 10:08:29
问题 im using gstreamer 1.2 to feed frames from my IP camera to opencv program the stream is (640*368 YUVj420p) and i want to convert it to RBG888 to be able to use it in my opencv program so is there a way to use gstreamer to do that conversion ? or do i have to do it by myself? if so please give me the equation that do this conversion 回答1: After some trials with gstreamer i decided to do the conversion myself and it worked First we have to understand the YUVj420p pixel format As shown in the

Convert YUVj420p pixel format to RGB888 using gstreamer

百般思念 提交于 2020-01-02 10:08:12
问题 im using gstreamer 1.2 to feed frames from my IP camera to opencv program the stream is (640*368 YUVj420p) and i want to convert it to RBG888 to be able to use it in my opencv program so is there a way to use gstreamer to do that conversion ? or do i have to do it by myself? if so please give me the equation that do this conversion 回答1: After some trials with gstreamer i decided to do the conversion myself and it worked First we have to understand the YUVj420p pixel format As shown in the