Re: YUV Overlay

2013-08-05 Thread tmurray
Do you happen to have ffmpeg installed? I'm not really sure how best to list a Perl module dependency on a C library. Alien::ffmpeg seems to recompile the whole library, which shouldn't be necessary for people who already have ffmpeg installed. The code for drawing on top of the overlay is o

Re: YUV Overlay

2013-08-05 Thread tmurray
Well, that's a bug. I'll have to update that script with the right module name. Thanks for letting me know. That script only dumps the video to a file without displaying it. The script 'uav_video_display', released with version 0.5, is the important one here. I ended up solving my overlay

Re: YUV Overlay

2013-07-24 Thread tmurray
I've made a simplified, standalone example: http://pastebin.com/dPPNc8VL The big array at the top is a single YUV420P frame. Expected behavior is to display that frame in a window for 5 seconds, and then quit. If I comment out the overlay handling, it displays a green background. I've veri

Re: YUV Overlay

2013-07-24 Thread tmurray
Yes. For my own testing purposes, it's not always convenient to connect to the ARDrone, so I overrode much of the behavior in Mock classes. For decoding the video stream to a file, you can do: $ uav_video_dump --in t_data/ardrone_video_stream_dump.bin --out /tmp/ardrone_video_stream_dump.h26

Re: YUV Overlay

2013-07-24 Thread tmurray
Short on time at the moment, but I have the complete code on a github repo: https://github.com/frezik/UAV-Pilot The relevant code is in UAV::Pilot::SDL::Video, and the decoding happens in the xs file for UAV::Pilot::Video::H264Decoder. The test t/160_video_decode.t should run the decoding en

YUV Overlay

2013-07-23 Thread tmurray
I'm working on a project involving decoding h.264 video frames with ffmpeg and then outputting them to an SDL surface. From what I've read, the YUV overlay is meant for this kind of job, but I'm having trouble getting it to work with the Perl bindings. One thing that seems odd to me in the Per