<div>-ac channels        set number of audio channels<br></div><div>AKA stereo sound.  So that isn&#39;t what you want.</div><div><br></div><div>This should help you:</div><div><a href="http://libav.org/avconv.html#Stream-selection">http://libav.org/avconv.html#Stream-selection</a><br>
</div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 4, 2012 at 10:57 AM, John Pilkington <span dir="ltr">&lt;<a href="mailto:J.Pilk@tesco.net" target="_blank">J.Pilk@tesco.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 04/12/12 15:33, D. R. Newman wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 04/12/12 09:20, John Pilkington wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  Can you switch channels on playback?  The -ac 2 suggests (to me) that<br>
both channels would be passed.<br>
</blockquote>
<br>
I thought -ac 2 merely told avconv to produce stereo, rather than 5<br>
channel output from a particular audio track, not to use a different track?<br>
</blockquote>
<br></div>
That was a guess.  avconv --help and man avconv both drew a blank and I didn&#39;t look further.  It looked like an audio option.  What you describe below is essentially what my script does, for DVB-T, with the option to choose the audio PID.  I haven&#39;t tried it with DVB-S,  I follow it with:<br>

<br>
 ionice -c3 mythutil  --clearcutlist  --chanid &quot;$chanid&quot; --starttime<br>
&quot;$starttime&quot;<br>
<br>
ionice -c3 mythcommflag --rebuild --file $1<br>
<br>
ionice -c3 mythpreviewgen --chanid &quot;$chanid&quot; --starttime &quot;$starttime&quot;<br>
<br>
using --file in the mythcommflag line because it seemed fussy about<br>
the starttime format.   The previewgen is optional but I like it there.  mythcommflag --rebuild now resets the filesize in the DB, so there&#39;s no need to script that.<div class="HOEnZb"><div class="h5"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
My solution to the original problem is to run a demux script on every UK<br>
MPEG2 recording. It uses projectx to split into video and audio tracks,<br>
finds the longest audio file, then uses mplex to combine that with with<br>
the video file, producing an MPEG2 file with only one audio track. Put<br>
that into mythexport and all should be well.<br>
<br>
David Newman<br>
______________________________<u></u>_________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/<u></u>listinfo/mythtv-users</a><br>
<br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/<u></u>listinfo/mythtv-users</a><br>
</div></div></blockquote></div><br></div>