<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 29, 2020, 1:46 PM Nicolas George <<a href="mailto:george@nsup.org" target="_blank" rel="noreferrer">george@nsup.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Kerry Loux (12020-05-29):<br>
> Thanks Nicholas. I was able to get it to work using the method you<br>
> described.<br>
<br>
Good to ear.<br>
<br>
> Actually, I had tried it earlier, but I struggled because I was passing<br>
> invalid channel layouts to my src buffer filters. My mistake was that I<br>
> expected av_get_channel_layout_string() to produce values suitable for<br>
> passing as a "channel_layout" option to my buffer filters.<br>
<br>
That is worrying, I think they should be compatible. Do you remember<br>
which particular channel layout caused a problem?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Yes, AV_CH_FRONT_LEFT is an example. The returned string is something like "1 channels (FL)." I had to extract only the parenthetical portion in order to avoid an "invalid argument" error when calling avfilter_init_str().</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
But you do not need it for this case, you can just print the channel<br>
layout as an integer.<br>
<br>
I forgot to add:<br>
<br>
If you need to change the order of the channels afterwards, the filter<br>
pan is there for that.<br>
<br>
Regards,<br>
<br>
-- <br>
 Nicolas George<br>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" rel="noreferrer noreferrer" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="https://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer noreferrer noreferrer" target="_blank">https://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br>
To unsubscribe, visit link above, or email<br>
<a href="mailto:libav-user-request@ffmpeg.org" rel="noreferrer noreferrer" target="_blank">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".</blockquote></div></div></div>