Git Product home page Git Product logo

ffmpeg-ruby's People

Contributors

gwik avatar phlipper avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ffmpeg-ruby's Issues

PPM header and memory usage issue

Hello,

I've discovered this gem a few days ago and I've been trying to use it in one of our projects. I've run into the following problems to make it work :

One thing that is not critical is when you look at the to_ppm method in ffmpeg_frame.c, the generated header is not correct, there is an x between the width and height, it should'nt be there.
http://netpbm.sourceforge.net/doc/ppm.html

One other thing is that this header gets funny from time to time, I noticed that one one of my servers running ubuntu. This is caused by the use of strcat instead of strcpy.

When you malloc your memory space, sometimes it already contains some remaining data in it so when you concatenate the header, it's concatenated to the existing data in the memory, therefore your header does not start on the very first block.

So either you use a method that get sure the allocated memory is empty or you can use strcpy instead that overwrites the existing data in the allocated memory. That way you are always sure that the header starts on the very first block of the allocated memory.

I'm not a C developer but from what I know and what I understood it is what caused my problem.

Here's a gist that include those two issues.

http://gist.github.com/191148

Otherwise this is a great gem, it helped me a lot.

Thanks

Marc

Using web camera and output to Gtk window

Good day. I'm a developer of P2P social network Pandora.
I've used gstreamer before, but it has a lot of bugs after migration to version 1.0.
Well, I've decided to use ffmpeg now.

Questions came, how can I do:

  1. capture video stream from web cam
  2. encode it to h264
  3. take raw data from stream (i will send it via TCP)
  4. put raw data to stream
  5. decode it from h264
  6. show video in Gtk window

Does "ffmpeg-ruby" can do it? Does "ffmpeg-ruby" work in Windows?

p.s. I know terminal commands:
ffmpeg -f video4linux2 -r 25 -s 640x480 -i /dev/video0 out.avi
ffplay out.avi
but don't know how to do it with your bindings.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.