[FFmpeg-user] VAAPI decoding/encoding of several video streams in parallel

Anton Sviridenko anton at corp.bluecherry.net
Tue Dec 20 20:21:12 EET 2016

I want to use hardware acceleration for processing multiple realtime
videostreams (coming over RTSP).
I've read this thread -

and have some questions related to scaling this everything to several
video streams:

1) Is it possible at all to use VAAPI acceleration for several
independent video streams simultaneously?

2) How should I initialize VAAPI related stuff? Do I have to create
separate hwframe context for each stream?

3) Can I use single hwdevice and vaapi_context instances for all
streams or there should be own instance for each decoded/encoded


More information about the ffmpeg-user mailing list