[nycphp-talk] [OT] FFMPEG & LAME
Ben Sgro (ProjectSkyLine)
ben at projectskyline.com
Wed Oct 10 09:33:22 EDT 2007
Good morning,
Super off topic, but since this list is one of my best resources for help,
I figured I'll try here.
I've spent a lot of time on google and can't seem to figure out the problem.
I have a PHP app that is converting .avi's to .flvs. I'm using ffmpeg and lame.
I've built ffmpeg w/libmp3lame support enabled, to encode to .mp3 for the .flv
However, I don't know much about this stuff, and I can't seem to figure out the correct
parameters. The online documentation for ffmpeg is lacking.
[sk at tinman storyx]$ /usr/local/bin/ffmpeg -i uploaded_videos/978516602470bb1a2a1373.AVI -acodec libmp3lame -vcodec flv -b 1200kb -mbd 2 -flags +4mv+4rell -aic 2 -cmp 2 -subcmp 2 -s 450x300 -title Title converted_videos/978516602470bb1a2a1373.flv
FFmpeg version SVN-r10700, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --enable-libmp3lame
libavutil version: 49.5.0
libavcodec version: 51.45.0
libavformat version: 51.14.0
built on Oct 9 2007 15:26:19, gcc: 4.1.1 20070105 (Red Hat 4.1.1-52)
Input #0, avi, from 'uploaded_videos/978516602470bb1a2a1373.AVI':
Duration: 00:00:09.1, start: 0.000000, bitrate: 3407 kb/s
Stream #0.0: Video: mjpeg, yuvj422p, 320x240, 20.00 fps(r)
Stream #0.1: Audio: pcm_u8, 11024 Hz, mono, 88 kb/s
File 'converted_videos/978516602470bb1a2a1373.flv' already exists. Overwrite ? [y/N] y
PIX_FMT_YUV420P will be used as an intermediate format for rescaling
Output #0, flv, to 'converted_videos/978516602470bb1a2a1373.flv':
Stream #0.0: Video: flv (hq), yuv420p, 450x300, q=2-31, 1200 kb/s, 20.00 fps(c)
Stream #0.1: Audio: libmp3lame, 11024 Hz, mono, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
[flv @ 0x84b51f0]removing common factors from framerate
Error while opening codec for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height
Any one w/experiance that can help is appreciated!
- Ben
Ben Sgro, President
ProjectSkyLine - Defining New Horizons
+1 718.487.9368 (N.Y. Office)
Our company: www.projectskyline.com
Our products: www.project-contact.com
This e-mail is confidential information intended only for the use of the individual to whom it is addressed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20071010/571f7da6/attachment.html>
More information about the talk
mailing list