gwik / ffmpeg-ruby Goto Github PK
View Code? Open in Web Editor NEWRuby interface to the ffmpeg C library. It is able to extract images from videos but do not allow to encode full video.
License: MIT License
Ruby interface to the ffmpeg C library. It is able to extract images from videos but do not allow to encode full video.
License: MIT License
How can I get a listing of the available encoding and decoding audio and video codecs on the system that ffmpeg-ruby is installed?
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.
Otherwise this is a great gem, it helped me a lot.
Thanks
Marc
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:
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.