<div dir="ltr">Hi all,<div><br></div><div>When I run filesink location=/dev/stdout on the command line it is fine. (see below)</div><div>When I try to run that from a script file from http apache I get errrors:</div><div><br></div><div><div>[Tue Jan 30 11:32:10.075068 2018] [cgi:error] [pid 19290] [client <a href="http://192.168.1.8:43186">192.168.1.8:43186</a>] malformed header from script 'smframe_camera.cgi': Bad header: Setting pipeline to PAUSED ...</div><div>[Tue Jan 30 11:32:10.075238 2018] [cgi:error] [pid 19290] [client <a href="http://192.168.1.8:43186">192.168.1.8:43186</a>] AH01215: ERROR: Pipeline doesn't want to pause.</div><div>[Tue Jan 30 11:32:10.075480 2018] [cgi:error] [pid 19290] [client <a href="http://192.168.1.8:43186">192.168.1.8:43186</a>] AH01215: ERROR: from element /GstPipeline:pipeline0/GstFileSink:filesink0: Could not open file "/dev/stdout" for writing.</div><div>[Tue Jan 30 11:32:10.075503 2018] [cgi:error] [pid 19290] [client <a href="http://192.168.1.8:43186">192.168.1.8:43186</a>] AH01215: Additional debug info:</div><div>[Tue Jan 30 11:32:10.075553 2018] [cgi:error] [pid 19290] [client <a href="http://192.168.1.8:43186">192.168.1.8:43186</a>] AH01215: gstfilesink.c(438): gst_file_sink_open_file (): /GstPipeline:pipeline0/GstFileSink:filesink0:</div><div>[Tue Jan 30 11:32:10.075575 2018] [cgi:error] [pid 19290] [client <a href="http://192.168.1.8:43186">192.168.1.8:43186</a>] AH01215: system error: Permission denied</div></div><div><br></div><div>My script that I'm trying to run looks like this:</div><div><div>#!/bin/sh</div><div><br></div><div>/usr/bin/gst-launch-1.0 souphttpsrc location="http://user:pass@IP/channel1" is-live=true do-timestamp=1 ! filesink location=/dev/stdout</div></div><div><br></div><div>My file has the correct owner and permissions and +x is set. </div><div><br></div><div>How do I get the multipart data to goto stdout in the above way?</div><div>Thanks,</div><div><br></div><div>Jerry</div></div>