<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font size="+1">Hello,</font></p>
<p><font size="+1"><br>
</font></p>
<p> </p>
<div class="post-text" itemprop="text">
<p>How do I use quotes in quotes for gstreamer command line. This
is gstreamer version 1.14.4 and ubuntu version 4.9.140-tegra
using bash shell all running on Jetson Nano dev system.</p>
<p>I tried various escape methods and none worked. </p>
<p>The following has double quotes with quotes inside the sink
definition and doesn't work.</p>
<p>gst-launch-1.0 playbin
uri=<a class="moz-txt-link-freetext" href="file:///home/tom/Videos/UHD_demo_Nature.mp4">file:///home/tom/Videos/UHD_demo_Nature.mp4</a> sink="glupload !
glshader fragment="\"<code>ca
t testfrag.frag</code>\"" ! glimagesinkelement"</p>
<p>I assume it's an escape sequence issue, I tried bunch of ways
to escape but I would rather not bias anyone looking at this
problem. The opengl fragment is correct and works using a simple
command line example:</p>
<p>gst-launch-1.0 videotestsrc ! glupload ! glshader fragment="\"<code>cat
testfrag.frag</code>\"" ! glimagesink</p>
<p>Any ideas is this a command shell issue or gstreamer issue I
need to correct concerning double quotes.</p>
<p>Here is the fragment:</p>
<p>#version 100</p>
<p>#ifdef GL_ES</p>
<p>precision mediump float;</p>
<p>#endif</p>
<p>varying vec2 v_texcoord;</p>
<p>uniform sampler2D tex;</p>
<p>uniform float time;</p>
<p>uniform float width;</p>
<p>uniform float height; vec4 myColor;</p>
<p>void main () {</p>
<pre><code> myColor = texture2D( tex, v_texcoord );
gl_FragColor = myColor;
gl_FragColor.r = myColor.b;
gl_FragColor.b = myColor.r;
</code></pre>
<p>}</p>
<p>When I run the command line I get the following error: WARNING:
erroneous pipeline: no element "100"</p>
<p><br>
</p>
<p>Thanks in advance.</p>
<p><br>
</p>
<p> Tom<br>
</p>
</div>
<pre class="moz-signature" cols="72">--
TOM BOND
Vice President, Technology
14 Old French Road
Honeoye Falls, NY 14472
Phone: 585-869-9243
Mobile: 585-662-8956
Email: <a class="moz-txt-link-abbreviated" href="mailto:tom.bond@entexpinc.com">tom.bond@entexpinc.com</a>
Corporate Headquarters
Entertainment Experience LLC
9475 Double R Blvd. Suite 9
Reno, Nevada 89521
Websites: <a class="moz-txt-link-abbreviated" href="http://www.eecolor.com">www.eecolor.com</a></pre>
</body>
</html>