serving raw PCM/RGB over HTTP
Adam Puckett
adotsdothmusic at gmail.com
Mon Jul 13 12:31:11 PDT 2015
Does the MIME type have to be audio/x-raw or video/x-raw for this to work?
On 7/12/15, Tim Müller <tim at centricular.com> wrote:
> On Sat, 2015-07-11 at 17:42 -0400, Adam Puckett wrote:
>
> Hi Adam,
>
>> I run a server that generates and serves raw PCM and RGB data over
>> HTTP using the loopback address, and I want to use GStreamer to mux
>> the streams into a WebM file. So, as wonderful as uridecodebin is for
>> decoding non-raw sources, I'm afraid it might not suit my needs,
>> unless there's a way to limit the type, width and height, samplerate,
>> and number of channels with a capsfilter. Is this possible?
>
> You might be able to do something like
>
> souphttpsrc ! audioparse format=raw raw-format=s16le rate=44100
> channels=2 ! ...
>
> and
>
> souphttpsrc ! videoparse format=rgb width=X height=Y
> framerate=N/1 ! ...
>
> assuming the audio and video are served separately and the data served
> is always frame aligned and video strides match.
>
> Alternatively, you could put the raw PCM/RGB into matroska and serve
> that.
>
> Cheers
> -Tim
>
> --
> Tim Müller, Centricular Ltd - http://www.centricular.com
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
More information about the gstreamer-devel
mailing list