Hi all,
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 ... [Tue Jan 30 11:32:10.075238 2018] [cgi:error] [pid 19290] [client 192.168.1.8:43186] AH01215: ERROR: Pipeline doesn't want to pause. [Tue Jan 30 11:32:10.075480 2018] [cgi:error] [pid 19290] [client 192.168.1.8:43186] AH01215: ERROR: from element /GstPipeline:pipeline0/GstFileSink:filesink0: Could not open file "/dev/stdout" for writing. [Tue Jan 30 11:32:10.075503 2018] [cgi:error] [pid 19290] [client 192.168.1.8:43186] AH01215: Additional debug info: [Tue Jan 30 11:32:10.075553 2018] [cgi:error] [pid 19290] [client 192.168.1.8:43186] AH01215: gstfilesink.c(438): gst_file_sink_open_file (): /GstPipeline:pipeline0/GstFileSink:filesink0: [Tue Jan 30 11:32:10.075575 2018] [cgi:error] [pid 19290] [client 192.168.1.8:43186] AH01215: system error: Permission denied 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/channel1" is-live=true do-timestamp=1 ! filesink location=/dev/stdout My file has the correct owner and permissions and +x is set. How do I get the multipart data to goto stdout in the above way? Thanks, Jerry _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
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 _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |