search for: to_file

Displaying 7 results from an estimated 7 matches for "to_file".

Did you mean: io_file
2009 May 20
3
ffmpeg + mp3 convert
Hi all, I am using paperclip plugin to upload mp3''s. Before I save the mp3 I would like to convert it to a smaller size. I am using ffmpeg library and in my Track model I am calling: before_save :convert_mp3 def convert_mp3 system("ffmpeg -i #{mp3.to_file.path} -vn -ar 44100 -ac 2 -ab 64 -f mp3 #{mp3.to_file.path}") end But this fails. Am I missing something? Thanks Pete -- Posted via http://www.ruby-forum.com/.
2009 Oct 03
2
Looking for a good resource on open-uri and FileUtils
...(style = default_style) if original_filename File.exist?(path(style)) else false end end # Returns representation of the data of the file assigned to the given # style, in the format most representative of the current storage. def to_file style = default_style @queued_for_write[style] || (File.new(path(style)) if exists?(style)) end alias_method :to_io, :to_file def flush_writes #:nodoc: @queued_for_write.each do |style, file| FileUtils.mkdir_p(File.dirname(path(style))) result...
2016 Oct 28
0
Samba and BTRFS server-side copy
..., so there is no chance to trigger a server-side copy. Oh, just checked the current gvfs source code to copy an smb file. It does: static gboolean copy_file (GVfsBackendSmb *backend, GVfsJob *job, const char *from_uri, const char *to_uri) { SMBCFILE *from_file, *to_file; char buffer[4096]; size_t buffer_size; ssize_t res; char *p; gboolean succeeded; smbc_open_fn smbc_open; smbc_read_fn smbc_read; smbc_write_fn smbc_write; smbc_close_fn smbc_close; from_file = NULL; to_file = NULL; succeeded = FALSE; smbc_open = smbc_getFunctionOpen...
2016 Oct 28
3
Samba and BTRFS server-side copy
On Thu, 27 Oct 2016 16:57:13 -0700, Jeremy Allison <jra at samba.org> wrote : > On Fri, Oct 28, 2016 at 01:42:35AM +0200, Saint Germain via samba > wrote: > > On Thu, 27 Oct 2016 16:27:05 -0700, Jeremy Allison <jra at samba.org> > > > if you see any of these then it happened. > > > > Ok I understand how to check that it happened, but how can I make
2008 Oct 11
1
Asterisk 1.6.1 + openais
...in case. Any idea please bring it up. root at asterisk-slb01:~# cat /etc/ais/openais.conf # Please read the openais.conf.5 manual page totem { version: 2 secauth: off threads: 0 interface { ringnumber: 0 bindnetaddr: 192.168.1.0 mcastaddr: 226.94.1.1 mcastport: 5405 } } logging { to_stderr: yes to_file: yes logfile: /tmp/ais debug: off timestamp: on } amf { mode: disabled } root at asterisk-slb01:~# cat /etc/asterisk/ais.conf [device_state] type=event_channel publish_event=device_state subscribe_event=device_state -------------- next part -------------- An HTML attachment was scrubbed... URL:...
2010 Nov 05
1
res_ais Error
...B: 192.168.142.248 asterisk 1.8.0 openais.conf: # Please read the openais.conf.5 manual page totem { version: 2 secauth: off threads: 0 consensus: 4800 interface { ringnumber: 0 bindnetaddr: 192.168.142.0 mcastaddr: 226.94.1.1 mcastport: 5405 } } logging { to_stderr: yes debug: on timestamp: on to_file: yes to_syslog: no syslog_facility: daemon logfile: /var/log/openais.log } amf { mode: disabled } When I load res_ais.so module, the pbx crash (boths) Some time not crash but no clusters members are present. What I'm doing wrong? Thank's Regards
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