Jump to content

Programming languages


Fjool
 Share

Recommended Posts

^ That really is turning into the most likely solution. :oops:

 

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

  • Replies 35
  • Created
  • Last Reply

Top Posters In This Topic

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

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

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 :wink:

Link to comment
Share on other sites

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

  • 3 years later...

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share


×
×
  • Create New...