similar to: ffmpeg and IO.popen

Displaying 20 results from an estimated 3000 matches similar to: "ffmpeg and IO.popen"

2006 May 29
3
File.size() on Uploaded Images Fail
I am checking the file size of an uploaded file and storing it in a filesize column. It will work just fine when the user uploads any files other than images (jpg,png,gif). Word, Excel, Powerpoint, .zip and more all work fine. This is my model asset.rb that handles the file upload. def newfile=(newfile_field) self.filename = base_part_of(newfile_field.original_filename) self.filetype
2006 Jul 04
0
Uploading files - getting size
Hi, I want to get the size of an uploaded file that is saved in the database. Can you help me? In the edit view formular there is: <input id="attachment_title" name="attachment[title]" size="30" type="text" /> <input id="attachment_attachment" name="attachment[attachment]" size="30" type="file" />
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}
2007 Jul 05
2
undefined method `original_filename' for "random.jpg":String
I have a problem getting attachments to work in a specific case... I have the following data model (this is a relevant subset of it): - a log can have many journals - a journal belongs to a log and can have many attachments - an attachment belongs to a journal When adding on a new journal to an existing log the new journal form and the corresponding controller handle the attachment as well and
2006 Jul 03
0
Multiple File Upload
Hello together, I developed a file upload in my application like this (files uploaded belong to a project): project_controller.rb: ---------------------- def upload_attachment project = Project.find(@params[:id]) begin project.attachments.create(params[:attachment]) rescue flash[:attachment_error] = "Error at Upload" end redirect_to :action => "edit_project", :id
2006 Jul 07
3
quick send_data question...
Hi, I am using send_data to allow users to download files from the database but ran into a small problem, it seems that files upload fine but when they download only 64kb of the file is sent. I''m using the basic rails code from the Agile book: #upload code in my sheet model def file=(document_field) self.filename = base_part_of(document_field.original_filename)
2006 Mar 06
1
Uploaded File to Database
Hi, I currently write a tool for my school. Therefore I have to save uploaded files. I bought Agile Web Dev. with Rails to learn webdev with Rails. I''m very new at rails and couln''d find anything on the internet. Now when I want to save the file data to the mysql database, rails gives me an error. My code is the same as written in the book on page 363. Here is my code of the
2006 Feb 05
0
validating presence of file uploads
not sure whats going on here, but I''m using some pretty standard code to manage file uploads in to a db, but having trouble detecting if the file upload field has been filled or not. in my Asset Model, I have: def asset=(asset_field) self.name = base_part_of(asset_field.original_filename) self.content_type = asset_field.content_type.chomp self.data = asset_field.read end def
2005 Sep 07
0
model constructor errors.
I have a model; I do photo = Photo.new(parameters) parameters contains: {"picture"=>#<File:C:/DOCUME~1/BART~1/LOCALS~1/Temp/CGI3180.1>} so i expect that the def picture=(filename) method is called in this constructor.. this is not the case. Does anyone know why? params[:photo].each_pair do |id, parameters| photo = Photo.new(parameters) end class Photo
2008 Oct 01
1
ffmpeg audio not working
I''m converting videos to .flv but I can''t hear any sound. Is this ffmpeg command correct? ffmpeg -i #{path} -an -s 480x360 -vcodec flv -r 25 -qscale 8 -f flv -y #{flv} Thank you. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email
2011 Nov 28
1
Speex stereo encoding
Hi. I trying to encode PCM16 8000Hz stereo data to speex and put it into the .flv file format. But at the output I can hear only noise. What I doing wrong? Here is the code: void main() { SpeexBits bits; void *enc_state; int frame_size; int quality = 10; char cbits[MAX_FRAME_BYTES]; FILE *fin, *speex; short input[MAX_FRAME_SIZE]; int nbBytes; int channels =
2009 Mar 12
0
compiling ffmpeg with --enable-libspeex (was Re: from Adobe Flex / Flash Player 10 .flv Speex via Red5 to .wav PCM?)
This is resolved: apt-get remove libspeex-dev cd ~/src/speex-1.2rc1/ ./configure --prefix=/usr make; make install cd ../ffmpeg ./configure --enable-libspeex make; make install worked; then I was able to decode a Speex .flv file: ~/flvs$ ffmpeg -i SpeexQ6R16Efalse.flv foo.wav FFmpeg version SVN-r17174, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --enable-libspeex
2010 Oct 01
20
Paperclip not executing FFMPEG properly
Im using a customs processor to run ffmpeg on a video to create a thumbnail. So far so good. Except when I do: cmd = "-i #{@file.path} -f flv -s 320x240 ~/Downloads/foobar/q.flv" success = Paperclip.run(''ffmpeg'', cmd) Console is reporting: ffmpeg ''-i /var/folders/uL/uL0bYOOZEZaJH5E+BmDJVE+++TI/-Tmp-/stream, 16824,1.mpeg -f flv -s 320x240
2006 Jul 18
2
FLV Player
I need a flv player - any recommendations? -- Posted via http://www.ruby-forum.com/.
2006 Aug 01
3
Upload file to file system and sql insert date errors
I''m trying to use one form to upload a file to the file system and insert a title and description field into the database. I have no problem uploading files to the file system using the code from http://wiki.rubyonrails.com/rails/pages/HowtoUploadFiles There are more fields on the form than need to be inserted into the database, name and file. I need to pull out these extra fields
2009 Jan 03
1
Unable install ffmpeg
Hi, I installed ffmpeg using yum, and then tried to convert a asx video to flv it says unable to find encoder x264, eventhough it is installed and I am able to view it when I check ffmpeg --help.Can anyone tell me how to fix this issue? Thanks and Regards Marky -------------- next part -------------- An HTML attachment was scrubbed... URL:
2008 Jun 15
11
Ouch! Can't figure out this file upload issue...
Okay, so this is driving me crazy. I''m trying to do a file upload using code from a book. What happens: I get wrong number of arguments (1 for 0) in the upload controller save action. No idea why. Schema: The schema for the picture model object is just a textfield named comments and a binary field called data. Upload controller: def get @picture =Picture.new end def save
2010 Oct 18
3
File size comparisons
Hi all, I just did a brief test with 3 different codec combinations: 1) ffmpeg sorenson/flv, mp3 audio in flv container 2) ffmpeg h264/vorbis audio/matroska 3) ogg/theora/vorbis using encoder_example Here are the results: 10721201 2010-10-16 14:46 origem1.flv 20731108 2010-09-13 23:04 origem1.mkv 33101703 2010-10-03 11:24 origem1.ogv as you can see, flv wins hands down, and it doesn't look
2009 Mar 12
2
compiling ffmpeg with --enable-libspeex (was Re: from Adobe Flex / Flash Player 10 .flv Speex via Red5 to .wav PCM?)
I am having trouble compiling ffmpeg to support speex, which didn't work with the ubuntu libspeex-dev package, but looks like it might with the Speex version 1.2rc1 tarball from http://speex.org/downloads/ How do I tell ffmpeg's configure and/or make to use the 1.2rc1 version of libspeex in /usr/local/include instead of the older debian/ubuntu libspeex-dev package in /usr/include/speex?
2007 Mar 20
0
4 commits - libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_flv_decoder.h libswfdec/swfdec_movie.c test/trace
libswfdec/swfdec_flv_decoder.c | 108 +++++++++++++++++++++++++++++++- libswfdec/swfdec_flv_decoder.h | 4 + libswfdec/swfdec_movie.c | 2 test/trace/Makefile.am | 3 test/trace/onload-childparent.c | 38 +++++++++++ test/trace/onload-childparent.swf |binary test/trace/onload-childparent.swf.trace | 3 7 files