<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<div>
<div id="x_compose-container" itemscope="" itemtype="https://schema.org/EmailMessage">
<span itemprop="creator" itemscope="" itemtype="https://schema.org/Organization"><span itemprop="name"></span></span>
<div>I started with adelay=1000|1000,atrim... and expected that to give me one second of silence  (for a stereo track), but it did not. I take it that it should have, so I should go back to debugging that? I gave up on it when I couldn't make sense of the output.<br>
</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Libav-user <libav-user-bounces@ffmpeg.org> on behalf of Paul B Mahol <onemda@gmail.com><br>
<b>Sent:</b> Tuesday, March 21, 2017 10:53:15 AM<br>
<b>To:</b> This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter.<br>
<b>Subject:</b> Re: [Libav-user] Using libav to insert silence at the beginning of an audio clip</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">On 3/21/17, Chris Hennes <chennes@pioneerlibrarysystem.org> wrote:<br>
> The software I am writing allows a user to combine multiple<br>
> potentially-overlapping audio clips by specifying an in and out point for<br>
> each clip, plus when in the final stream that clip starts. I'm trying to<br>
> string together a single filter graph that will do this and am struggling<br>
> with the start point bit. My thought was to take each of the audio files and<br>
> construct a filter chain for them that inserts silence of the required<br>
> length at the beginning, then the atrim'ed audio clip, then an apad to the<br>
> end of the required length, so (for just a single audio file), something<br>
> like:<br>
><br>
> (some kind of silence-generator here)[delay0];[in0]atrim=start=1:end=3,apad<br>
> [end0];[delay0][end0]concat=n=2,v=0,a=1[final0]<br>
><br>
> I can't seem to figure out how to make the concat work, though. No matter<br>
> what technique I use to generate the silence (or non-silence, I've tried<br>
> using sine and anoisesrc), I am getting an "invalid argument". I've tried<br>
> playing around with the ffmpeg exe on the command line, but still can't make<br>
> heads or tails of concat. What am I missing? Or is there a better way to do<br>
> what I am describing?<br>
><br>
<br>
Yes, see adelay filter.<br>
_______________________________________________<br>
Libav-user mailing list<br>
Libav-user@ffmpeg.org<br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</div>
</span></font>
</body>
</html>