[FFmpeg-devel] [PATCH] avdevice/lavfi: output wrapped AVFrames

Michael Niedermayer michael at niedermayer.cc
Sat Jul 2 11:54:52 EEST 2022


On Thu, Jun 30, 2022 at 05:22:06PM +0200, Timo Rothenpieler wrote:
> This avoids an extra copy of potentially quite big video frames.
> Instead of copying the entire frames data into a rawvideo packet it
> packs the frame into a wrapped avframe packet and passes it through
> as-is.
> Unfortunately, wrapped avframes are set up to be video frames, so the
> audio frames unfortunately continue to be copied.
> 
> Additionally, this enabled passing through video frames that previously
> were impossible to process, like hardware frames or other special
> formats that couldn't be packed into a rawvideo packet.
> ---
>  libavdevice/lavfi.c                       | 87 +++++++++--------------
>  tests/ref/fate/filter-metadata-cropdetect |  3 +-
>  2 files changed, 36 insertions(+), 54 deletions(-)

seems to get this stuck:
./ffmpeg -f lavfi -i 'amovie=fate-suite/wavpack/num_channels/eva_2.22_6.1_16bit-partial.wv,asplit=3[out1][a][b]; [a]showwaves=s=340x240,pad=iw:ih*2[waves]; [b]showspectrum=s=340x240[spectrum]; [waves][spectrum] overlay=0:h [out0]'   file-waves.avi

(stuck as in OOM killed)

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Nations do behave wisely once they have exhausted all other alternatives. 
-- Abba Eban
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20220702/4cba5921/attachment.sig>


More information about the ffmpeg-devel mailing list