[Libav-user] How to transcode without usage of av_opt_set_sample_fmt function
wmk587 at yahoo.com
Mon Nov 8 16:15:35 EET 2021
Thank you for the info
On Saturday, November 6, 2021, 11:39:02 PM EDT, Gonzalo Garramuño <ggarra13 at gmail.com> wrote:
El 6/11/21 a las 23:35, Robert Smith via Libav-user escribió:
If I skip setting setting sample format option the swr_init display warning
[SWR @ 0x2c7b950] Requested sample format (null) is not supported internally, only float & S16 is supported
and eventually swr_convert fails on assertion:
Assertion a->planar failed at libswresample/swresample.c:284
Could you advise how to resolve this issue? Thanks
See if there's a swr_alloc_set_opts function in your libav. If there is, you can pass all the flags like:
swr_ctx = swr_alloc_set_opts(NULL, out_ch_layout,
Hope that helps!
Libav-user mailing list
Libav-user at ffmpeg.org
To unsubscribe, visit link above, or email
libav-user-request at ffmpeg.org with subject "unsubscribe".
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user