[Ffmpeg-php-user] problems with framecount & duration
Brought to you by:
tkirby
From: Andy <an...@ac...> - 2005-05-10 21:02:49
|
Hi All, FFMPEG version: FFMpeg-20050430.tar.bz2 ffmpeg-php version: from nightly CVS (10/May/2005) webserver: lighttpd php build as CGI binary version: 4.3.11 Compiled ffmpeg, compiled ffmpeg-php as a shared extension. All went OK, it installed the shared extension ok: Installing shared extensions: /www/php2/lib/php/extensions/no-debug-non-zts-20020429/ I ran the test_ffmpeg.php file, and am getting very strange errors, a large number of fields are showing up as 0 The duration field seems to change everytime I refresh the page. E.g.for test_media/test.avi duration = 107374.488668 seconds frame count = 0 frame rate = 0.000 fps comment = title = author = copyright = frame height = 0 pixels frame width = 0 pixels has audio = No --refresh-- test_media/test.avi duration = 39930311.25718 seconds frame count = 0 frame rate = 0.000 fps comment = title = author = copyright = frame height = 0 pixels frame width = 0 pixels has audio = No The total output for test_ffmpeg.php is here, any help please? I had this working before doing a server rebuild and upgrading php/ffmpeg/ffmpeg-php so i'm not sure where I've messed up!! Regards, Andy test_ffmpeg.php output: libavcodec version number: 1032 libavcodec build number: 4680 Functions available in /www/php2/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg.so extension: Methods available in class ffmpeg_movie: ffmpeg_movie getduration getframecount getframerate getfilename getcomment gettitle getauthor getartist getcopyright getalbum getgenre getyear gettracknumber getframewidth getframeheight getframenumber getpixelformat getbitrate hasaudio getnextkeyframe getframe getvideocodec getaudiocodec getaudiochannels -------------------- file name = agement/ffmpeg/test_media/robot.avi duration = 73019.34932 seconds frame count = 0 frame rate = 0.000 fps comment = title = author = copyright = frame height = 0 pixels frame width = 0 pixels has audio = No Warning: Can't find video stream in agement/ffmpeg/test_media/robot.avi in /www/htdocs/home-management/ffmpeg/test_ffmpeg.php on line 75 get pixel format = yuv420p get video codec = get audio codec = get audio channels = get bit rate = 3 kb/s get frame = false Warning: Can't find video stream in agement/ffmpeg/test_media/robot.avi in /www/htdocs/home-management/ffmpeg/test_ffmpeg.php on line 89 get frame number = 0 -------------------- DEBUG: /www/htdocs/home-management/ffmpeg/test_media/test.avi file name = agement/ffmpeg/test_media/test.avi duration = 39930311.25718 seconds frame count = 0 frame rate = 0.000 fps comment = title = author = copyright = frame height = 0 pixels frame width = 0 pixels has audio = No Warning: Can't find video stream in agement/ffmpeg/test_media/test.avi in /www/htdocs/home-management/ffmpeg/test_ffmpeg.php on line 75 get pixel format = yuv420p get video codec = get audio codec = get audio channels = get bit rate = -1837036 kb/s get frame = false Warning: Can't find video stream in agement/ffmpeg/test_media/test.avi in /www/htdocs/home-management/ffmpeg/test_ffmpeg.php on line 89 get frame number = 0 -------------------- DEBUG: /www/htdocs/home-management/ffmpeg/test_media/Ballad of the Sneak.mp3 file name = agement/ffmpeg/test_media/Ballad of the Sneak.mp3 duration = 73014.524032 seconds frame count = 0 frame rate = 0.000 fps comment = title = author = copyright = frame height = 0 pixels frame width = 0 pixels has audio = No Warning: Can't find video stream in agement/ffmpeg/test_media/Ballad of the Sneak.mp3 in /www/htdocs/home-management/ffmpeg/test_ffmpeg.php on line 75 get pixel format = yuv420p get video codec = get audio codec = get audio channels = get bit rate = 3 kb/s get frame = false Warning: Can't find video stream in agement/ffmpeg/test_media/Ballad of the Sneak.mp3 in /www/htdocs/home-management/ffmpeg/test_ffmpeg.php on line 89 get frame number = 0 -------------------- |