Does paperclip need FFMPEG to upload videos? - ruby-on-rails

I'm using this gem right now:
Do i need to install FFMPEG like i did for uploading images (imagemagick)?
If I do, i can't seem to figure out how to install FFMPEG since I'm using Nitrous.io, which is a cloud based IDE.
I found out how to install Image magick from a line of code on nitrous.io, but i see nothing for FFMPEG.
So far I have tried googling quite a lot for an alternative encoder that's compatible with nitrous.

Depends on the system you are running and the configuration you need. if on MacOS i suggest using Homebrew.
https://ffmpeg.org/download.html

Related

How to install luagraph using luarocks

I'm trying to use luagraph, a binding to the graphviz library:
http://luagraph.luaforge.net/index.html
To install, I'm using luarocks in Mac OS X. The following command is executed in bash:
luarocks install luagraph
The output is the following:
Installing https://luarocks.org/luagraph-1.0.4-1.src.rock... Using
https://luarocks.org/luagraph-1.0.4-1.src.rock... switching to 'build'
mode
Error: Could not find expected file graphviz/graph.h, or
graphviz/graph.h for GRAPHVIZ -- you may have to install GRAPHVIZ in
your system and/or pass GRAPHVIZ_DIR or GRAPHVIZ_INCDIR to the
luarocks command. Example: luarocks install luagraph
GRAPHVIZ_DIR=/usr/local
I have been installed graphviz using homebrew, but I can't figure out how to pass GRAPHVIZ_DIR or GRAPHVIZ_INCDIR properly.
How can I install luagraph?
I've updated LuaGRAPH a couple of weeks ago. It now supports the newest version of Graphviz based on the cgraph library instead of the old graph library.
There is one drawback: I couldn't get luagraph to run on Windows using mingw because of some runtime library issues (compiler and dll compatibility probably). Please look at the README file for more details.
I personally never produced a rockspec for this module. This was created by someone else based on a fork of my luagraph library.
Installation without Luarocks is simple. Download from
https://github.com/hleuwer/luagraph
and follow the instruction in the documentation and the README file. You need adopt a simple config file which is included by make.
Herbert
Well, luaGRAPH is still the top result when searching for lua and graph. So the question is still standing.
And, unfortunately, the answer is: luagraph is OLD, the last update happened before the ubuntu 14.04 was released. And there seem to be some notable changes in the system itself, the flags the error message show do not seem to work. On top of that, graphviz is now about 20 releases newer than the luarock recommends.
There now is a bare bone alternative lua package: graphviz
It is extremely basic, and documentation in not at all informative, but at least it works.
update: Luagraph may be working again, but not through rocks. See the other answer.

What do we need to install for developing with JavaCV?

I want to use and learn JavaCV.
• So, I read some articles about how to set up JavaCV development environment in Window 7. At first they download and install OpenCV and adding some directory paths to System Variable, After that ,they extract javacv-0.7-bin.zip and javacv-0.7-cppjars.zip packages to somewhere(probably C:) and add some .jar files to their projects.
My Question : Do I need to install OpenCV for developing in JavaCV? because I wrote some JavaCV programs and my JavaCV programs compile and run properly (without installing OpenCV).
According to a javacv developer, the answer is NO. It comes bundled. Source: javacv issue 406 on GitHub.

iOS command line tool to convert jpeg to png?

I am looking for a command line tool to use in my bash script that converts a jpg image to a png one.
Thx!
edit: to be clear, the platform the script runs on is iOS. So I am looking for a binary that's compiled for the ARM plaform.
Since you mentioned iOS, I assume you are using Mac OSX. If so, you can install ImageMagick via Homebrew or MacPorts and use the following command in your script
convert my_image.jpg my_image.png
ImageMagick is a powerful tool for manipulating all sorts of images. Check out the documentation if you wish to go a bit more advanced

About installing the open cv library

sir,
I have tried my level best to install open cv library 2.2.0 version.but it has'nt suceeded
it shows that errors in linking the library hughigh,
whether we wanted to insatll the ipp library prior to install the opencv?
please help me ?..............
I can only recommend the install advice on the OpenCV page. If you are using a unix download the source of the library you want to install and then use cmake to install the library. That usually works fine for me.
Try installing the 1.1 version of OpenCV.
The 2.x version is brand new and as of Nov 1 2009 you will have difficulty finding documentation for that. The 1.1 version of OpenCV, on the other hand, is very well documented and you should have no trouble finding online tutorials for your platform that walk you through the installation process step-by-step.
As an aside: "IPP" refers to Intel's Performance Primitives. In the 1.1 version these are entirely optional. OpenCV does not require them. If you have the Performance Primitives installed, however, your OpenCV code may run faster. (For me it cut down my image processing time by a factor of five.) Once you get everything up and running you can purchase the IPP library from intel here: http://software.intel.com/en-us/intel-ipp/

Compile OpenCV with ffMpeg support

I'm having problems compiling OpenCV with ffMpeg support under Debian.
I downloaded new ffMpeg and installed it, downloaded opencv-1.1pre1.tar.gz and unpacked it.
then
./configure --enable-apps --enable-shared --with-ffmpeg --with-gnu-ld --without-quicktime CFLAGS=-I/usr/local/include CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib
ffMpeg checked yes and finally when I make it says
../../../otherlibs/highgui/.libs/libhighgui.so: undefined reference to `img_convert'
Now I've been around the forums and tried various stuff but nothing worked.
Can anybody help me get this thing installed?
OpenCV and FFmpeg evolved very much in last months and nowadays its possible to make OpenCV 2.1 work with FFmpeg without much suffering.
There were some changes in FFmpeg API after OpenCV 1.1pre1 was released, so OpenCV might not work properly with new FFMPEG. I'd suggest trying older versions. I was using FFMPEG trunk snapshot of 07/2008 without problems.

Resources