3gp to flv error

19 views
Skip to first unread message

b3dm4n

unread,
Apr 18, 2008, 6:23:24 AM4/18/08
to ffmpeg-php
Hi,
I've installed ffmpeg and ffmpeg-php with no error. I installed the
ffmpeg from yum repo at http://apt.sw.be, I can succesfully convert
almost every video format, but not 3gp files and some mpeg files
my question is :
1. I know that my installed ffmpeg is not supporting 3gp decode
function, I found that out from the ffmpeg.example9.php file, it
said :
[3gp] => Array
(
[encode] => 1
[decode] =>
[fullname] => 3gp format
)
so how do I recompile ffmpeg to enable 3gp? since i installed ffmpeg
from yum repo, maybe Im asking this in the wrong group, but maybe
somebody in this group knows the answer

2. Everytime I upload movie through the ffmpeg-php script, the process
is loged in httpd's error_log even if there is no error, so my httpd
error log is growing very fast. Is there work arround so the httpd
error log is only logging the error output of the ffmpeg-php process?

here is example of my error log :
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard,
et al.
configuration: --prefix=/usr --libdir=/usr/lib --mandir=/usr/share/
man --incdir=/usr/include/ffmpeg --enable-libmp3lame --enable-libogg --
enable-libvorbis --enable-libogg --enable-libtheora --enable-libfaad --
enable-libfaac --enable-libgsm --enable-xvid --enable-x264 --enable-
liba52 --enable-liba52bin --enable-pp --enable-shared --enable-
pthreads --enable-gpl --disable-strip
libavutil version: 49.4.0
libavcodec version: 51.40.4
libavformat version: 51.12.1
built on Jun 4 2007 11:02:12, gcc: 4.1.1 20070105 (Red Hat
4.1.1-52)

Seems stream 0 codec frame rate differs from container frame rate:
1000.00 (1000/1) -> 29.92 (359/12)
Input #0, flv, from '/homepage/idc/video/video/
1208512986-480871da62a01-TEST.flv':
Duration: 00:00:02.9, start: 0.000000, bitrate: 64 kb/s
Stream #0.0: Video: flv, yuv420p, 320x240, 29.92 fps(r)
Stream #0.1: Audio: mp3, 44100 Hz, stereo, 64 kb/s
Output #0, image2, to '/homepage/idc/video/video/
1208512986-480871da62a01-TEST.jpg':
Stream #0.0: Video: mjpeg, yuvj420p, 320x240, q=2-31, 200 kb/s,
25.00 fps(c)
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
frame= 25 fps= 0 q=24.8 Lsize= 0kB time=1.0 bitrate=
0.0kbits/s
video:150kB audio:0kB global headers:0kB muxing overhead -100.000000%

Somebody please enlight me :)

I'm using :
CentOS 5.1
ffmpeg-php-0.5.2.1
FFmpeg version SVN-rUNKNOWN

Regards,
ArMan

Todd Kirby

unread,
Apr 18, 2008, 1:45:34 PM4/18/08
to ffmpe...@googlegroups.com
On Fri, Apr 18, 2008 at 12:23 AM, b3dm4n <b3d...@gmail.com> wrote:

Hi,
I've installed ffmpeg and ffmpeg-php with no error. I installed the
ffmpeg from yum repo at http://apt.sw.be, I can succesfully convert
almost every video format, but not 3gp files and some mpeg files
my question is :
1. I know that my installed ffmpeg is not supporting 3gp decode
function, I found that out from the ffmpeg.example9.php file, it
said :
[3gp] => Array
               (
                   [encode] => 1
                   [decode] =>
                   [fullname] => 3gp format
               )



so how do I recompile ffmpeg to enable 3gp?  since i installed ffmpeg
from yum repo, maybe Im asking this in the wrong group, but maybe
somebody in this group knows the answer

Does your ffmpeg build have the amr libraries built into it? 


2. Everytime I upload movie through the ffmpeg-php script, the process
is loged in httpd's error_log even if there is no error, so my httpd
error log is growing very fast. Is there work arround so the httpd
error log is only logging the error output of the ffmpeg-php process?

Redirect output of your ffmpeg command /dev/null/

Bedman

unread,
Apr 22, 2008, 6:32:04 AM4/22/08
to ffmpe...@googlegroups.com

----- Original Message -----
From: "Todd Kirby" <ffmpe...@gmail.com>
To: <ffmpe...@googlegroups.com>
Sent: Saturday, April 19, 2008 12:45 AM
Subject: [ffmpeg-php] Re: 3gp to flv error


| > so how do I recompile ffmpeg to enable 3gp? since i installed ffmpeg
| > from yum repo, maybe Im asking this in the wrong group, but maybe
| > somebody in this group knows the answer
|
|
| Does your ffmpeg build have the amr libraries built into it?

How do I check that?
at ffmpeg.example9.php it says
[amr] => Array
(
[encode] => 1
[decode] => 1
[fullname] => 3gpp amr file format
)

does it mean that I have amr libraries? but when I version the ffmpg, here
what is shows
[user@ffmpeg]# ffmpeg --version


FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --prefix=/usr --libdir=/usr/lib --mandir=/usr/share/man --incdir=/usr/include/ffmpeg
--enable-libmp3lame --enable-libogg --enable-libvorbis --enable-libogg --enable-libtheora
--enable-libfaad --enable-libfaac --enable-libgsm --enable-xvid --enable-x264
--enable-liba52 --enable-liba52bin --enable-pp --enable-shared --enable-pthreads
--enable-gpl --disable-strip
libavutil version: 49.4.0
libavcodec version: 51.40.4
libavformat version: 51.12.1
built on Jun 4 2007 11:02:12, gcc: 4.1.1 20070105 (Red Hat 4.1.1-52)

then I tried to install the amr lib from
http://ftp.penguin.cz/pub/users/utx/amr/ , and then do svn checkout ffmpeg,
and reconfigure ffmpeg adding --enable-libamr-nb --enable-libamr-wb but I
got error that I have to add --enable-nonfree, so I added it, after
installation I check the version again, it doesn't change

so do I actually have the amr libraries installed?


| >
| > 2. Everytime I upload movie through the ffmpeg-php script, the process
| > is loged in httpd's error_log even if there is no error, so my httpd
| > error log is growing very fast. Is there work arround so the httpd
| > error log is only logging the error output of the ffmpeg-php process?
|
|
| Redirect output of your ffmpeg command /dev/null/

How exactly do I do that? can U give me example?
Sorry if such anoying question, I am newbie in linux :D

Regards,
ArMan

Todd Kirby

unread,
Apr 22, 2008, 8:04:15 AM4/22/08
to ffmpe...@googlegroups.com

try running...

 locate libamr


| >
| > 2. Everytime I upload movie through the ffmpeg-php script, the process
| > is loged in httpd's error_log even if there is no error, so my httpd
| > error log is growing very fast. Is there work arround so the httpd
| > error log is only logging the error output of the ffmpeg-php process?
|
|
| Redirect output of your ffmpeg command /dev/null/

How exactly do I do that? can U give me example?
Sorry if such anoying question, I am newbie in linux :D

add...

>/dev/null

...to the end of your ffmpeg command.

Regards,
ArMan




Reply all
Reply to author
Forward
0 new messages