Fjool Posted October 21, 2010 Author Report Share Posted October 21, 2010 ^ That really is turning into the most likely solution. I thought for a while that perhaps my codecs were scrambled somehow, but I've tried them all and with the same effect. Other encoding software doesn't have this problem, so it's got to be my use of the library. Weirdness. Link to comment Share on other sites More sharing options...
EM Posted October 21, 2010 Report Share Posted October 21, 2010 So... after a couple of hours spent cobbling other people's C# code together, I have a small time-lapse program that will periodically capture a bitmap from a camera device and write the frames directly to an AVI.Why are you creating an AVI in any case? Seems there are more apropos containers nowadays (e.g. FLV), so rather than experience grief with AVI use something more recent. In any case, I'd recommend ffmpeg for actually doing the work. Link to comment Share on other sites More sharing options...
Fjool Posted October 21, 2010 Author Report Share Posted October 21, 2010 Eh, only that AVI was the sample code I had. I'm not particularly fussy about the output format, more that I have a library for doing the complex stuff. I'll see what else I can find, but AVI is an ok enough format for what I need (provided it doesn't invert the vertical of course!) Thanks for the info on ffmpeg; I'll check it out. Link to comment Share on other sites More sharing options...
Roachmill Posted October 26, 2010 Report Share Posted October 26, 2010 Most webcams have flags to flip the output vertically or horizontally. If it's C# you're using check out any relevant structures for flipping the flipping sources. My memory is slowly grinding in to life and, IIRC, particular codecs can and do write their frames upside down. This is coming from a long time ago... so that's about as much as you're gonna get Link to comment Share on other sites More sharing options...
Fjool Posted October 26, 2010 Author Report Share Posted October 26, 2010 Good thinking. The webcam does flip horizontally, but that's ok. But the bitmaps themselves are the right way up when I get them from the camera and write them as BMP to disk, so the problem has to be after this stage. I'll double check the library for such options in case I mangled something there. My other problem is that it's now doubling frames between cycles of the capture code, and there's no good reason that I can see for it to be doing this either... /ugh Link to comment Share on other sites More sharing options...
Jack Posted September 20, 2014 Report Share Posted September 20, 2014 I write Python, usually for making PyGame games and simple programs. I think its a great language, the syntax was relatively easy to learn and the gotchas aren't that bad. I just use the Python IDE but I'm thinking of taking a look at Eclipse for Python scripting quite soon. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now