<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><span></span></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Hi guys,</span><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"><br></span></div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">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.</span></div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"><br></span></div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">I have spent some time creating a simple demo, which all seems to work well streaming from h.264 to png with the exception of all the images that are saved are plain black. I have pointed my example to an online video stream of Big Buck Bunny: <br><br></span></div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">rtsp://<a href="http://184.72.239.149/vod/mp4:BigBuckBunny_175k.mov">184.72.239.149/vod/mp4:BigBuckBunny_175k.mov</a></span></div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"><br></span></div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">- But the images are always black. Opening the image in notepad++ shows null bytes so I think somewhere the video frames aren't being decoded correctly, or I am doing something silly to wipe out the frame data..?</span></div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"><br></span></div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">I have tried various things and followed various examples, though lot of the tutorials out there are using deprecated methods.</span></div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"><br></span></div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">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!</span></div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"><br></span></div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Here is the example code:</span></div><div><font color="#000000"><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"><a href="http://pastebin.com/ziYcWaYX" class="vt-p">http://pastebin.com/ziYcWaYX</a><br></span></font></div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"><br></span></div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Many thanks in advance for your time.</span></div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Kind regards,</span></div><div><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">-Tom</span></div></div></body></html>