UAV::Pilot::Video::H264Decoder
# $display is some object that does the role UAV::Pilot::Video::RawHandler, like # UAV::Pilot::SDL::Video my $display = ...; my $decoder = UAV::Pilot::Video::H264Decoder->new({ displays => [ $display ], });
Decodes a stream of h.264 frames using ffmpeg. Does the UAV::Pilot::Video::H264Handler role.
UAV::Pilot::Video::H264Handler
After a frame is decoded, there are two ways to fetch it: a fast way for things implemented in C, and a slow way for things implemented in Perl.
Returns a scalar which contains a pointer to the decoded AVFrame object. In C, you can derefernce the pointer to get the AVFrame and handle it from there.
Converts data of the three YUV channels into one array each, and then pushes those onto an array and returns the an arrayref. This is really, really slow, and not at all suitable for real-time processing. It has the advantage that you can do everything in Perl.
To install UAV::Pilot, copy and paste the appropriate command in to your terminal.
cpanm
cpanm UAV::Pilot
CPAN shell
perl -MCPAN -e shell install UAV::Pilot
For more information on module installation, please visit the detailed CPAN module installation guide.