filesink location /dev/stdout

Tim Müller tim at centricular.com
Tue Jan 30 17:02:26 UTC 2018


On Tue, 2018-01-30 at 11:39 -0500, Jerry Geis wrote:

Hi Jerry,

> When I run filesink location=/dev/stdout on the command line it is
> fine. (see below)
> When I try to run that from a script file from http apache I get
> errrors:
> 
> [Tue Jan 30 11:32:10.075068 2018] [cgi:error] [pid 19290] [client
> 192.168.1.8:43186] malformed header from script 'smframe_camera.cgi':
> Bad header: Setting pipeline to PAUSED ...
>  (snip)
> My script that I'm trying to run looks like this:
> #!/bin/sh
> 
> /usr/bin/gst-launch-1.0 souphttpsrc location="http://user:pass@IP/cha
> nnel1" is-live=true do-timestamp=1 ! filesink location=/dev/stdout

gst-launch-1.0 is a debugging tool, you're not really supposed to use
it like this.

However, the problem is that you send not just the data from the camera
to stdout, but also the output of gst-launch-1.0 itself.

You should be able to pass the -q / --quiet option to suppress that.

There's also fdsink for what it's worth.

Cheers
 -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com


More information about the gstreamer-devel mailing list