how do I send a 128kbps mp3 file at a rate of 128Kibps (16KiB / s) using UDP socket in QT. I searched for tutorials, but I found none. Thanks.
Related
I have an RTP audio stream provided by gstreamer and I want to send them using a SIP communication. Does anybody know how can I do it? Do I need a SIP proxy like OpenSIPS?
I'm trying to connect to a RTP over UDP live video stream. I am trying to use the Gsocket to then apply to the udpsrc. I am unable to connect the the server with the Gsocket. Is there any suggestions anybody has to connect to the video stream?
I want to receive rtsp stream using gstreamer I knw rtspsrc can be used for this purpose but the problem is that it only receives it as a client but in my case i have a ffmpeg application which streams the video as a client and waits for a server to connect with it before streaming. So i want gstreamer to act as server and receive the stream from ffmpeg
I haven't used it myself, but I believe there is a separate package for RTSP server functionality. In Debian based systems it should be under something like:
libgstrtspserver-0.10-0
I was able to connect to SHOUTcast server via sockets. I try to send audio data to server, but I haven't idea how to calculate quality (bitrate) in each of the packages. Could someone explain this to me?
I open the mp3 in binary mode.
loop ?
The bit rate is set by the encoder. It doesn't have anything to do with your SHOUTcast connection really. Configure your encoder for whatever bit rate you need.
I've developed an app which sends RTP packets to a local ip client. So the client has to listen on the specified port (rtp://:#portnumber, on VLC) to play the streamed data. Right now i'm going to develop the code needed to create the SDP file needed to start streaming.
My doubt is, how to send this file to the client? At the beginning of the RTP stream?
Really n00b at this point. Any help will be useful.
Thanks
VLC specifically supports RTSP, HTTP, SAP protocols for establishing session and communication. And of course the local file system (file://)
so basically you can call vlc in some manner like this (I cannot test it but should be like this):
vlc file://path/to/sdp-file
or
vlc rtsp://server-path:port/sdpfile.sdp
and so on
Aside from storing the SDP file in the local system, perhaps HTTP would be easiest if you have up and running http server on your server machine.