This tutorial requires FFmpeg libraries compiled with HW\n acceleration enabled.\n\n Please refer to\n `Enabling GPU video decoder/encoder
Currently, ``hw_accel`` option and\n :py:meth:`~torchaudio.io.StreamReader.add_basic_video_stream`\n are not compatible. ``add_basic_video_stream`` adds post-decoding\n process, which is designed for frames in CPU memory.\n Please use :py:meth:`~torchaudio.io.StreamReader.add_video_stream`.
When there are multiple of GPUs available, ``StreamReader`` by\n default uses the first GPU. You can change this by providing\n ``\"gpu\"`` option.
``\"gpu\"`` option and ``hw_accel`` option can be specified\n independently. If they do not match, decoded frames are\n transfered to the device specified by ``hw_accell``\n automatically.
Currently, HW decoder does not support colorspace conversion.\n Decoded frames are YUV format.\n The following function performs YUV to RGB covnersion\n (and axis shuffling for plotting).