DelPierro
12-22-2006, 02:04 PM
Hi,
I 've installed FFMpeg, and it seems as if it has successuflly been installed. However, when I upload a wmv or avi file, it does not seem to convert it and place under the pre-defined folder (with write/access/execute permission).
I have installed the following:
flvtool2_1.0.5_rc6.tgz
lame-3.97.tar.gz
libogg-1.1.3.tar.gz
libvorbis-1.1.2.tar.gz
flvtool2_1.0.5_rc6.tgz
essential-20061611.tar.bz2
ffmpeg-php-0.5.0.tbz2
# ffmpeg --help
FFmpeg version SVN-r7353, Copyright (c) 2000-2006 Fabrice Bellard, et al.
configuration: --enable-mp3lame --enable-libogg --enable-vorbis --disable-mmx --enable-shared
libavutil version: 49.1.0
libavcodec version: 51.27.0
libavformat version: 51.6.0
built on Dec 21 2006 23:04:46, gcc: 3.4.6 20060404 (Red Hat 3.4.6-3)
Any help is highly appreciated.
tiamak
12-22-2006, 02:11 PM
see http://flowplayer.sourceforge.net/encoding.html for more details
Xeentech
12-22-2006, 02:15 PM
When I fisrt set this up I had some highdef AVIs that refused to convert. Most of the problems were either bitrates or a framerate that the flv format couldn't support. This was most annoying when converting from 3gp files.
The link tiamak posted has all the arguemnts you should need I think.
DelPierro
12-22-2006, 02:47 PM
Thanks.
The file 26236-5xx.zip is only a document file. Should it also be installed?
Thanks again!
DelPierro
12-22-2006, 03:02 PM
I tried to convert a wmv to flv via SSH, and here is the output (Note that the file it had created is 0kb)
root@server [/usr/src/install]# ffmpeg -i 1.wmv -s 320x240 -ar 44100 -r 12 movie.flv
FFmpeg version SVN-r7353, Copyright (c) 2000-2006 Fabrice Bellard, et al.
configuration: --enable-mp3lame --enable-libogg --enable-vorbis --disable-mmx --enable-shared
libavutil version: 49.1.0
libavcodec version: 51.27.0
libavformat version: 51.6.0
built on Dec 21 2006 23:04:46, gcc: 3.4.6 20060404 (Red Hat 3.4.6-3)
Seems stream 1 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 10.00 (10/1)
Input #0, asf, from '1.wmv':
Duration: 00:00:33.0, start: 3.100000, bitrate: 92 kb/s
Stream #0.0: Audio: wmav2, 11025 Hz, mono, 8 kb/s
Stream #0.1: Video: MSS1 / 0x3153534D, 640x480, 10.00 fps(r)
PIX_FMT_YUV420P will be used as an intermediate format for rescaling
Output #0, flv, to 'movie.flv':
Stream #0.0: Video: flv, yuv420p, 320x240, q=2-31, 200 kb/s, 12.00 fps(c)
Stream #0.1: Audio: mp3, 44100 Hz, mono, 64 kb/s
Stream mapping:
Stream #0.1 -> #0.0
Stream #0.0 -> #0.1
Unsupported codec (id=0) for input stream #0.1
root@server [/usr/src/install]# dir
./ ../ 1.wmv movie.flv
root@server [/usr/src/install]# cat movie.flv | flvtool2 -U stdin movie.flv
ERROR: undefined method `timestamp' for nil:NilClass
ERROR: /usr/local/ruby/lib/ruby/site_ruby/1.8/flv/stream.rb:285:in `lasttimestamp'
ERROR: /usr/local/ruby/lib/ruby/site_ruby/1.8/flv/stream.rb:274:in `duration'
ERROR: /usr/local/ruby/lib/ruby/site_ruby/1.8/flvtool2/base.rb:181:in `add_meta_data_tag'
ERROR: /usr/local/ruby/lib/ruby/site_ruby/1.8/flvtool2/base.rb:137:in `update'
ERROR: /usr/local/ruby/lib/ruby/site_ruby/1.8/flvtool2/base.rb:47:in `execute!'
ERROR: /usr/local/ruby/lib/ruby/site_ruby/1.8/flvtool2/base.rb:46:in `execute!'
ERROR: /usr/local/ruby/lib/ruby/site_ruby/1.8/flvtool2/base.rb:206:in `process_files'
ERROR: /usr/local/ruby/lib/ruby/site_ruby/1.8/flvtool2/base.rb:44:in `execute!'
ERROR: /usr/local/ruby/lib/ruby/site_ruby/1.8/flvtool2.rb:168:in `execute!'
ERROR: /usr/local/ruby/lib/ruby/site_ruby/1.8/flvtool2.rb:228
ERROR: /usr/local/ruby/bin/flvtool2:2
Xeentech
12-22-2006, 05:24 PM
Your ffmpeg build doesn't support the Audio type your working with.
Unsupported codec (id=0) for input stream #0.1
Input stream 0.1 was
Stream #0.1: Video: MSS1 / 0x3153534D, 640x480, 10.00 fps(r)
I'm guessing thats some Microsoft format audio?
DelPierro
12-22-2006, 07:57 PM
Your ffmpeg build doesn't support the Audio type your working with.
Unsupported codec (id=0) for input stream #0.1
Input stream 0.1 was
Stream #0.1: Video: MSS1 / 0x3153534D, 640x480, 10.00 fps(r)
I'm guessing thats some Microsoft format audio?
Yes, it's Windows Media Video.
I tried to convert an AVI file, and it was converted successfully. However, if I were to upload it (I am using the youtube clone script), it would not convert it and place it under the pre-defined folder.
I converted the AVI file via SSH, and I was able to play (http://cedarclips.com/flvideo/flvplayer.swf?file=http://www.cedarclips.com/video/movie.flv)
It isn't possible to convert WMV and WMA (Windows Movie files) to FLV?
Any suggestions?
DelPierro
12-23-2006, 12:43 PM
I am willing to pay if anyone could straighten down this problem. A thread (http://webhostingtalk.com/showthread.php?p=4279052)for this purpose has been opened in the Employmenent Offers and Requests forum.
Xeentech
12-23-2006, 05:14 PM
Could you link to an example of the video type you want to convert? I'll see if my machines can convert it. My sites can convert WMVs that I've created in Windows Movie Maker and other WMVs people have uploaded.
If it works I'd be more than happy to help you compile a version with the same arguments as mine.