<html><head></head><body><div class="ydp3e6d633dyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div></div>
<div dir="ltr" data-setdir="false">Hi Gonzalo,<br><br>Thank you for the info</div><div><br></div>
</div><div id="ydp61b2ba9ayahoo_quoted_6453544694" class="ydp61b2ba9ayahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Saturday, November 6, 2021, 11:39:02 PM EDT, Gonzalo GarramuƱo <ggarra13@gmail.com> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div id="ydp61b2ba9ayiv2484813374"><div>
<p><br clear="none">
</p>
<div id="ydp61b2ba9ayiv2484813374yqtfd13786" class="ydp61b2ba9ayiv2484813374yqt9804250620"><div class="ydp61b2ba9ayiv2484813374moz-cite-prefix">El 6/11/21 a las 23:35, Robert Smith
via Libav-user escribiĆ³:<br clear="none">
</div>
</div><blockquote type="cite"><div id="ydp61b2ba9ayiv2484813374yqtfd37299" class="ydp61b2ba9ayiv2484813374yqt9804250620">
</div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;" class="ydp61b2ba9ayiv2484813374yahoo-style-wrap"><div id="ydp61b2ba9ayiv2484813374yqtfd86901" class="ydp61b2ba9ayiv2484813374yqt9804250620">
</div><div dir="ltr"><div id="ydp61b2ba9ayiv2484813374yqtfd76828" class="ydp61b2ba9ayiv2484813374yqt9804250620"><span><span style="color:rgb(35, 38, 41);font-family:-apple-system, BlinkMacSystemFont, sans-serif;font-size:15px;">
</span></span><div><br clear="none">
</div>
</div><div dir="ltr"><div id="ydp61b2ba9ayiv2484813374yqtfd78432" class="ydp61b2ba9ayiv2484813374yqt9804250620">If I skip setting
setting <span><span style="color:rgb(35, 38, 41);font-family:-apple-system, BlinkMacSystemFont, sans-serif;font-size:15px;">sample format option </span></span>the
<span>swr_init display warning</span><br clear="none">
<br clear="none">
</div><div><div id="ydp61b2ba9ayiv2484813374yqtfd55810" class="ydp61b2ba9ayiv2484813374yqt9804250620">
<div>[SWR @ 0x2c7b950] Requested sample format (null)
is not supported internally, only float & S16 is
supported</div>
<div dir="ltr"><br clear="none">
and eventually <span><span style="color:rgb(35, 38, 41);font-family:-apple-system, BlinkMacSystemFont, sans-serif;font-size:15px;">swr_convert fails on
assertion:</span></span><br clear="none">
Assertion a->planar failed at
libswresample/swresample.c:284<br clear="none">
<br clear="none">
Could you advise how to resolve this issue? Thanks</div></div>
<div><br clear="none">
</div>
</div>
</div>
</div>
</div>
</blockquote>
<p>See if there's a swr_alloc_set_opts function in your libav. If
there is, you can pass all the flags like:<br clear="none">
<br clear="none">
swr_ctx = swr_alloc_set_opts(NULL, out_ch_layout,<br clear="none">
out_sample_fmt,
out_sample_rate,<br clear="none">
in_ch_layout,
in_sample_fmt,<br clear="none">
in_sample_rate,<br clear="none">
0, NULL);</p>
<p>Hope that helps!</p><div id="ydp61b2ba9ayiv2484813374yqtfd12676" class="ydp61b2ba9ayiv2484813374yqt9804250620"><br clear="none">
</div><div id="ydp61b2ba9ayiv2484813374yqtfd01345" class="ydp61b2ba9ayiv2484813374yqt9804250620">
</div></div></div><div class="ydp61b2ba9ayqt9804250620" id="ydp61b2ba9ayqtfd41743">_______________________________________________<br clear="none">Libav-user mailing list<br clear="none"><a shape="rect" href="mailto:Libav-user@ffmpeg.org" rel="nofollow" target="_blank">Libav-user@ffmpeg.org</a><br clear="none"><a shape="rect" href="https://ffmpeg.org/mailman/listinfo/libav-user" rel="nofollow" target="_blank">https://ffmpeg.org/mailman/listinfo/libav-user</a><br clear="none"><br clear="none">To unsubscribe, visit link above, or email<br clear="none"><a shape="rect" href="mailto:libav-user-request@ffmpeg.org" rel="nofollow" target="_blank">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".<br clear="none"></div></div>
</div>
</div></body></html>