search for: encodevideo

Displaying 2 results from an estimated 2 matches for "encodevideo".

Did you mean: encode_video
2006 Jul 18
0
ffmpeg and IO.popen
i?m fairly new to ruby... any suggestions getting the below to work... i?d like to use myfile_field.read within encodeVideo and then self.data = Student_Interviews.flv class Myfile < ActiveRecord::Base . . . def encodeVideo opts #, stream IO.popen(?ffmpeg #{opts}?, ?w?)#{ |io| io.puts stream} end def myfile=(myfile_field) if myfile_field and myfile_field.length > 0 encodeVideo ?-i /tmp/Student_Interviews.mov...
2006 May 17
0
Running shell commands from Rails.
Hi, I want to be able to run shell commands from Rails. I''m on the Windows platform. Would the code below work on Windows if IO.popen is called? If not, how would I run a shell command in Windows in order to run the ffmpeg program? ** *-----------------------------------* *def encodeVideo opts, stream IO.popen("ffmpeg #{opts}", ''w''){ |io| io.puts stream} end* A pipe is opened and written to in the form of a command. Options are then passed to the function that tell it which video to encode, the encoding options, and the output file. The call looks like t...