PHP Fatal error: Could not find decoder for

316 views
Skip to first unread message

DMNL

unread,
Oct 6, 2009, 1:15:18 PM10/6/09
to ffmpeg-php
I just updated one of our CentOS 5.3 box with the following:

[root@xxxxx ffmpeg-php]# uname -a
Linux xxxxxx.xxxxxx.com 2.6.24.4 #5 SMP Tue Apr 22 18:05:27 CDT 2008
x86_64 x86_64 x86_64 GNU/Linux
[root@xxxxx ffmpeg-php]# php -v
PHP 5.2.11 (cli) (built: Sep 18 2009 12:52:36)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
with eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator,
by eAccelerator
[root@xxxxx ffmpeg-php]# php -m
[PHP Modules]
bz2
ctype
curl
date
dbase
eAccelerator
exif
ffmpeg
filter
ftp
gd
gettext
gmp
hash
iconv
json
libxml
mbstring
mysql
mysqli
openssl
pcntl
pcre
readline
Reflection
session
shmop
SimpleXML
sockets
SPL
standard
tokenizer
xml
zip
zlib

[Zend Modules]
eAccelerator

[root@xxxxx ffmpeg-php]# ffmpeg -v
FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/
lib64 --mandir=/usr/share/man --incdir=/usr/include --extra-cflags=-
fPIC --enable-libamr-nb --enable-libamr-wb --enable-libdirac --enable-
libfaac --enable-libfaad --enable-libmp3lame --enable-libtheora --
enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --
enable-pthreads --enable-shared --enable-swscale --enable-x11grab
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 0 / 52.20. 0
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Jul 24 2009 01:40:27, gcc: 4.1.2 20080704 (Red Hat
4.1.2-44)
ffmpeg: missing argument for option '-v'


On a couple of scripts the getFrame and getaudiocodec functions
returns this error "PHP Fatal error: Could not find decoder for".
Make test failed on the same functions as well. Any ideas what I can
do to dig down what's wrong?

Cheers
DMNL

kom

unread,
Oct 19, 2009, 1:20:45 AM10/19/09
to ffmpeg-php
I also have this problem, specifically with AMR codecs.

s0ma

unread,
Oct 20, 2009, 12:46:00 PM10/20/09
to ffmpeg-php
Could you put in the output of 'php -i | grep -i ffmpeg'?

DMNL

unread,
Oct 21, 2009, 3:57:50 AM10/21/09
to ffmpeg-php
Fortunately this nly happens as far as I can see into FLV files, here
is an ffmpeg php -i output:

/etc/php.d/ffmpeg.ini,
ffmpeg
ffmpeg-php version => 0.6.3
ffmpeg-php built on => Oct 6 2009 10:32:39
ffmpeg-php gd support => enabled
ffmpeg libavcodec version => Lavc52.20.0
ffmpeg libavformat version => Lavf52.31.0
ffmpeg swscaler version => SwS0.7.1
ffmpeg.allow_persistent => 0 => 0
ffmpeg.show_warnings => 0 => 0

s0ma

unread,
Oct 24, 2009, 8:25:47 AM10/24/09
to ffmpeg-php
Could you run ffmpeg -i <filename> from the command line on one of the
flv files in question and paste the output here please?

DMNL

unread,
Oct 30, 2009, 1:56:05 AM10/30/09
to ffmpeg-php
hi s0ma,

Her it is:

[dmnl@zeus ~]$ ffmpeg -i /var/www/html/mysite.com/files/40274/test-
flv.flv
FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/
lib64 --mandir=/usr/share/man --incdir=/usr/include --extra-cflags=-
fPIC --enable-libamr-nb --enable-libamr-wb --enable-libdirac --enable-
libfaac --enable-libfaad --enable-libmp3lame --enable-libtheora --
enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --
enable-pthreads --enable-shared --enable-swscale --enable-x11grab
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 0 / 52.20. 0
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Jul 24 2009 01:40:27, gcc: 4.1.2 20080704 (Red Hat
4.1.2-44)
[flv @ 0x83eef0]Could not find codec parameters (Audio: 0x0000, 0
channels, s16)

Seems stream 0 codec frame rate differs from container frame rate:
1000.00 (1000/1) -> 30.00 (30/1)
Input #0, flv, from '/var/www/html/mysite.com/files/40274/test-
flv.flv':
Duration: 00:03:28.83, start: 0.000000, bitrate: 157 kb/s
Stream #0.0: Video: flv, yuv420p, 320x240, 157 kb/s, 30 tbr, 1k
tbn, 1k tbc
Stream #0.1: Audio: 0x0000, 0 channels, s16
At least one output file must be specified

It looks like this only happens to a very limited number of FLV files.

I'm not sure where else to look, prolly do a DBG on FFMpeg as soon as
I have time.

Cheers
Reply all
Reply to author
Forward
0 new messages