[FFmpeg-devel] [PATCH 2/2] lavfi: make filter_frame non-recursive.

Nicolas George george at nsup.org
Fri Dec 23 10:50:15 EET 2016


Le duodi 2 nivôse, an CCXXV, James Almer a écrit :
> This patch made audio encoding extremely slow.
> 
> time ./ffmpeg -i INPUT.wav -c:a tta -f null -
> 
> Before
> size=N/A time=00:00:22.98 bitrate=N/A speed= 373x
> video:0kB audio:1272kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
> real    0m0.089s
> user    0m0.000s
> sys     0m0.000s
> 
> After
> size=N/A time=00:00:22.98 bitrate=N/A speed=2.29x
> video:0kB audio:1272kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
> real    0m10.087s
> user    0m0.015s
> sys     0m0.000s
> 
> CPU usage for the latter is almost zero during the entire 10 seconds. And it can be reproduced
> with pretty much any encoder.

Yes, thanks. This is the glitch I am currently working on, and I think
it is almost fixed cleanly. Note that the actual time is still very
small, it is only ffmpeg keeps thinking the filter is not ready and
sleeping.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20161223/f5503579/attachment.sig>


More information about the ffmpeg-devel mailing list