<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>I have an application that has been running for many months which uses OSProcess to run a program to record an audio stream. The content is available in two flavors, an mps stream that is recorded in real time and an flv which is recorded in less than a minute. I am working to&nbsp;</div>

<div>refactor the working method to use the faster recording option.</div>

<div>&nbsp;</div>

<div>I have a methods to create a command line string which I execute using OS process. The command to record the mp3 is simple,</div>

<div>the command to record&nbsp;<span style="font-family: Verdana, sans-serif, Arial, &#39;Trebuchet MS&#39;; font-size: 13px; line-height: 1.6em;">the flv stream is more complex and this may be the source of my problem, but I am not sure and I don&#39;t know how to debug it. </span></div>

<div>&nbsp;</div>

<div><span style="font-family: Verdana, sans-serif, Arial, &#39;Trebuchet MS&#39;; font-size: 13px; line-height: 1.6em;">If I copy either command to a terminal screen and run them there, the programs execute as expected.</span></div>

<div>When I run them in Squeak, the mp3 produces results, the flv dies.</div>

<div><span style="font-family: Verdana, sans-serif, Arial, &#39;Trebuchet MS&#39;; font-size: 13px; line-height: 1.6em;">The biggest difference between the two command lines is the use of semi-colon command separators &nbsp;and double quotes in the flv example.</span></div>

<div>&nbsp;</div>

<div>The command line for the mp3 is : (exitStatus 0)</div>

<div>&nbsp;</div>

<div>/opt/local/bin/ffmpeg -i mmsh://wm.bbc.co.uk/wms/prod_rb2_wm_wma_low_intl/p025mlpk_b007gwqn_1410010018428.wma -y -map_metadata -1 -acodec libmp3lame -ab 128k /Volumes/MediaVault/BBC/Baldi.4.4.6-NoSin.mp3</div>

<div>&nbsp;</div>

<div>The command line for the flv is: (exitStatus 256)</div>

<div>&nbsp;</div>

<div>/opt/local/bin/rtmpdump -r &quot;rtmp://bbcodspdns.fcod.llnwd.net:1935/a5999/e1?as=adobe-hmac-sha256&amp;av=1&amp;te=connect&amp;mp=prod_rb2_flv_aac_low_intl/iplayerstream/p025mlpk_b007gwqn_1410009892525.mp4&amp;et=1410418602&amp;fmta-token=9e6e9980cc1fc445173a649286ea33b76018f14be91bebdc361b035283304013&quot; -a &quot;a5999/e1?as=adobe-hmac-sha256&amp;av=1&amp;te=connect&amp;mp=prod_rb2_flv_aac_low_intl/iplayerstream/p025mlpk_b007gwqn_1410009892525.mp4&amp;et=1410418602&amp;fmta-token=9e6e9980cc1fc445173a649286ea33b76018f14be91bebdc361b035283304013&quot; -y &quot;mp4:prod_rb2_flv_aac_low_intl/iplayerstream/p025mlpk_b007gwqn_1410009892525.mp4&quot; -o /Volumes/MediaVault/BBC/490947196.flv ; ffmpeg -loglevel quiet &nbsp;-i /Volumes/MediaVault/BBC/490947196.flv -c copy -copyts /Volumes/MediaVault/BBC/Baldi.4.4.6-NoSin.mp4 ; rm /Volumes/MediaVault/BBC/490947196.flv</div>

<div>&nbsp;</div>

<div>The command generated by OSProcess may be:</div>

<div>
<p class="p1">/bin/sh -c rtmpdump -r &quot;rtmp://bbcodspdns.fcod.llnwd.net:1935/a5999/e1?as=adobe-hmac-sha256&amp;av=1&amp;te=connect&amp;mp=prod_rb2_flv_aac_low_intl/iplayerstream/p025mlpk_b007gwqn_1410009892525.mp4&amp;et=1410413706&amp;fmta-token=ccb5e3e42d2288246c6d083b34cdc49d43bb94c0a0e536bf9a14fbea2857d4d3&quot; -a &quot;a5999/e1?as=adobe-hmac-sha256&amp;av=1&amp;te=connect&amp;mp=prod_rb2_flv_aac_low_intl/iplayerstream/p025mlpk_b007gwqn_1410009892525.mp4&amp;et=1410413706&amp;fmta-token=ccb5e3e42d2288246c6d083b34cdc49d43bb94c0a0e536bf9a14fbea2857d4d3&quot; -y &quot;mp4:prod_rb2_flv_aac_low_intl/iplayerstream/p025mlpk_b007gwqn_1410009892525.mp4&quot; -o /Volumes/MediaVault/BBC/960136998.flv ; ffmpeg -loglevel quiet&nbsp; -i /Volumes/MediaVault/BBC/960136998.flv -c copy -copyts /Volumes/MediaVault/BBC/Baldi.4.4.6-NoSin.mp4 ; rm /Volumes/MediaVault/BBC/960136998.flv</p>

<p class="p1">if this is correct, when I run it at the command line, I get an error:</p>

<p class="p1">RTMPDump 2.4<br/>
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL<br/>
ERROR: You must specify a hostname (--host) or url (-r &quot;rtmp://host[:port]/playpath&quot;) containing a hostname<br/>
rm: /Volumes/MediaVault/BBC/960136998.flv: No such file or directory</p>

<p class="p1">&nbsp;</p>
</div>

<div>but when I inspect the instance of&nbsp;ExternalUnixOSProcess &gt;&nbsp;osp2 := ExternalUnixOSProcess command: cmdLine. I don&#39;t see anything in</div>

<div>the stdout or stderror.</div>

<div>&nbsp;</div>

<div>Thanks for any suggestions,</div>

<div>jrm</div>

<div>&nbsp;</div>

<div>&nbsp;</div>

<div>&nbsp;</div></div></body></html>