Displaying 20 results from an estimated 8000 matches similar to: "Running shell commands from Rails."
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
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
2007 Apr 08
0
6 commits - libswfdec/Makefile.am libswfdec/swfdec_audio_flv.c libswfdec/swfdec_audio_flv.h libswfdec/swfdec_audio_stream.c libswfdec/swfdec_audio_stream.h libswfdec/swfdec_buffer.c libswfdec/swfdec_codec_adpcm.c libswfdec/swfdec_codec_audio.c
libswfdec/Makefile.am | 10 -
libswfdec/swfdec_audio_flv.c | 55 ++++-----
libswfdec/swfdec_audio_flv.h | 8 -
libswfdec/swfdec_audio_stream.c | 64 +++++-----
libswfdec/swfdec_audio_stream.h | 10 -
libswfdec/swfdec_buffer.c | 10 +
libswfdec/swfdec_codec.c | 142 -----------------------
libswfdec/swfdec_codec.h | 58 ---------
2008 Nov 13
2
How to fix broken ogg/theora files
>> Thanks for the suggestion. Unfortunately it did not help completely.
>> When we edit the original file with oggCut and then use oggz-validate we
>> get an error message like the one posted before. Now oggz-sort will fix
>> the file so oggz-validate doesn't find any errors. However ffmpeg still
>> produces and error with it:
>>
>> ffmpeg -i rlang.ogg
2008 Nov 13
2
How to fix broken ogg/theora files
>>
>> Examples of error messages follow:
>> $ oggz-validate jnazario.ogg
>> jnazario.ogg: Error:
>> 00:55:27.957: serialno 0846930886: Packet out of order (previous
>> 00:55:27.960)
>> 01:05:09.077: serialno 0846930886: Packet out of order (previous
>> 01:05:09.080)
>>
>> Are there any tools that can reliably fix broken Ogg/Theora files?
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
2008 Apr 22
3
Encoding speed
I tried to encode two minutes from an AVI DV file 720x480:
ffmpeg latest release produces a FLV 320x240 25fps 360k video 40k audio in about 45 sec.
ffmpeg latest release produces an OGG 320x240 25fps 360k video 40k audio in about 1:20 sec.
ffmpeg2theora the same in about 2 minutes or more.
The FLV quality it's quite good, some dropped frames maybe.
I was wondering to know if ffmpeg team
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
2007 Apr 05
0
4 commits - libswfdec/swfdec_audio_flv.c libswfdec/swfdec_audio_stream.c libswfdec/swfdec_codec_adpcm.c libswfdec/swfdec_codec.c libswfdec/swfdec_codec_ffmpeg.c libswfdec/swfdec_codec_gst.c libswfdec/swfdec_codec.h libswfdec/swfdec_codec_mad.c
libswfdec/swfdec_audio_flv.c | 5 +-
libswfdec/swfdec_audio_stream.c | 2
libswfdec/swfdec_codec.c | 27 +++++++-----
libswfdec/swfdec_codec.h | 31 +++++++-------
libswfdec/swfdec_codec_adpcm.c | 2
libswfdec/swfdec_codec_ffmpeg.c | 85 ++++++++++++++++------------------------
libswfdec/swfdec_codec_gst.c | 32 ++++++++++++---
libswfdec/swfdec_codec_mad.c
2007 Jan 17
2
Using IO.popen to capture stderr?
Hello,
I''m trying to write a utility to run an external process and capture
it''s stderr. It seems that IO.popen only lets me read the stdout. Any
tips for how to read stderr?
Mike
snippet of code...
def process_file(filename)
@filename = filename
puts "Processing: " + @filename
cmdline = "ffmpeg -i " + @filename
ffmpeg =
2008 Nov 13
0
How to fix broken ogg/theora files
2008/11/13 Oliver Frommel <ofrommel at linuxnewmedia.de>:
>>>
>>> Examples of error messages follow:
>>> $ oggz-validate jnazario.ogg
>>> jnazario.ogg: Error:
>>> 00:55:27.957: serialno 0846930886: Packet out of order (previous
>>> 00:55:27.960)
>>> 01:05:09.077: serialno 0846930886: Packet out of order (previous
>>>
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?
2006 May 16
4
dealing with media file formats and RMagick.
Hello,
I basically have the following problem - I have a site that will allow
people to upload videos. The video may be in any format - .mov, .avi, .wmv
etc.. I can either use embedded Windows Media Player, or embedded Quicktime
to play the files but the problem is, how do I create stills from the movies
to display them as .jpg''s on my site so when somebody clicks on them, the
video
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
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:
2007 Jul 17
2
swfdec new version
Hi,
Firstly thanks for great job done with swfdec.
I had recognized swfdec at gtk.org site. Last week i decided to integrate
it to gtk+webcore browser.
And i successfully did it with version 0.4.5
Even thought it is integrated and works fine there are some problems with
swfdec. I want to ask some questions about it. Also yesterday i saw the last
release 0.5 And i have some questions about it.
2011 Aug 24
0
Speex-dev Digest, Vol 87, Issue 12
rtmplite -- http://code.google.com/p/rtmplite/ -- can be used to
record Speex .flv audio and a/v files from Flash/Flex applets, and
ffmpeg can be used to extract the Speex audio from such files, which
can also be replayed on Flash.
> Date: Tue, 23 Aug 2011 14:53:52 -0700
> From: Jozsef Vass <jovass at adobe.com>
>
> The only way to do this is to publish from Flash Player and
2005 Nov 06
1
Piping AVI to ffmpeg2theora
I wish to transcode an AVI from 29fps to 15fps theora. I have tried many
combinations.
The nearest I have so far is to:
1)
ffmpeg -i input.avi -f avi -vcodec rawvideo -acodec pcm_s16le -r 15 -ar
22050 -ac 1 intermediate.avi
then
2)
./ffmpeg2theora-0.15.linux.bin -f avi -c1 -H 22050 -o out.ogg
intermediate.avi
This gives me an output I want, however, the intermediate uncompressed
stage
2007 Sep 18
10
How do i make rails wait until an ffmpeg call is complete?
In my app i upload a file, convert it with ffmpeg, delete the original
and make a small thumbnail out of the big thumbnail ffmpeg makes.
At the moment it seems like these actions are tripping over each other -
how can i make the app wait until ffmpeg has completed it''s output
before doing the next thing?
--
Posted via http://www.ruby-forum.com/.
2007 Jan 14
0
Changes to 'refs/tags/0.4.1'
Tag '0.4.1' created by Benjamin Otte <otte@gnome.org> at 2007-01-14 19:00 -0800
release 0.4.1 ("Dragostea din tei")
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQBFqn3tvMv5VCdLq8QRAtNyAJ98RlOV96OBbuWryJwxQoYSu1JEEwCdFkNA
rJCp14FbLefPT+DDPK0UpgU=
=2Uj1
-----END PGP SIGNATURE-----
Changes since 0.4.0:
Benjamin Otte:
back to cvs
generate