techyian / MMALSharp

C# wrapper to Broadcom's MMAL with an API to the Raspberry Pi camera.
MIT License
195 stars 33 forks source link

Fliename error with FrameToVideo utility (v0.4.2) #57

Closed rrskybox closed 6 years ago

rrskybox commented 6 years ago

When running the simple FrameToVideo sample code, my application is throwing an exception during the FrameToVideo method where it appears that the delimiter for the jpg extension is getting dropped (see below).

image

The “.” between the filename and extension appears to be being dropped. I looked at the VideoUtilities code and on line 48, any trailing “.”s appear to be trimmed correctly, but never reinserted before the extension is appended.

My test code follows. I’ve modified it slightly from the original sample, but only superficially.

image

techyian commented 6 years ago

Thanks for picking this up. In the process of installing ffmpeg so I can look at this for you.

techyian commented 6 years ago

The fix for this looks to be working correctly. You can pick it up from source or via MyGet pre-release until I next push to NuGet (finishing a few bits off around the preview renderer before doing so). Let me know if you run into any problems with the fix.

rrskybox commented 6 years ago

Much obliged. Your project is a great concept with a superb implementation. I'm looking forward to putting it to work. I'll wait until it's up on NuGet to continue my experiments. - Rick

techyian commented 6 years ago

Thanks Rick, I hope it can be useful to you.

Ian