[Libav-user] Black Images
tom.medhurst at vigilantapps.com
Fri Nov 22 14:25:39 CET 2013
I'm working on a project that uses FFMPEG to fetch still images from a live
RTSP video stream and save them to disk. I am using the assemblies
aformat/codec-55.dll and the development headers and libs for compilation
from ffmpeg-20131120-git-e502783-win64-dev. The whole project is compiled
using Managed C++ (Cpp/cli) .NET 4.0 for 64-bit.
I have spent some time creating a simple demo, which all seems to work well
with the exception of all the images that are saved are plain black. I have
pointed my example to an inline video stream of Big Buck Bunny:
- But the images are always black. Opening the image shows nulls so I think
somewhere the video frames aren't being decoded correctly, or I am doing
something silly to wipe out the frame data..?
I have tried various things and followed various examples, though lot of
the tutorials out there are using deprecated method calls.
I hate to paste giant blobs of source code, but it's probably the best way;
I really need to get this working soon and would be eternally grateful to
anyone who can provide some assistance!
Here is the example code:
Many thanks in advance for your time.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user