ffmpeg-php-user Mailing List for ffmpeg-php extension (Page 9)
Brought to you by:
tkirby
You can subscribe to this list here.
2005 |
Jan
|
Feb
(2) |
Mar
(14) |
Apr
(6) |
May
(23) |
Jun
(5) |
Jul
(1) |
Aug
(7) |
Sep
(4) |
Oct
|
Nov
(10) |
Dec
(3) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(1) |
2007 |
Jan
|
Feb
(1) |
Mar
(13) |
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
(5) |
Oct
(1) |
Nov
(4) |
Dec
(2) |
2008 |
Jan
(6) |
Feb
(23) |
Mar
(30) |
Apr
(23) |
May
(17) |
Jun
(10) |
Jul
(22) |
Aug
(18) |
Sep
(10) |
Oct
(4) |
Nov
|
Dec
(14) |
2009 |
Jan
(24) |
Feb
(4) |
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
From: Todd.Kirby <dou...@pa...> - 2005-03-25 02:55:46
|
Scott Larson wrote: > A follow-up on building GD directly into PHP rather than as an >extension: the bar.php script I posted earlier causes the Apache process >handling the request to segfault. It would seem that PHP/GD doesn't >play nicely on BSD. > > Try running the script from the command line? You may get a more useful error report. php bar.php If it still segfaults, run it in a debugger... gdb ---args php bar.php ...and type 'bt' after the segfault to generate a stack trace. Thanks, -Todd |
From: Scott L. <sl...@io...> - 2005-03-24 20:28:33
|
A follow-up on building GD directly into PHP rather than as an extension: the bar.php script I posted earlier causes the Apache process handling the request to segfault. It would seem that PHP/GD doesn't play nicely on BSD. -- Scott Larson Network Administrator IOWA LLC T:310.823.8238 F:310.823.7108 E: su...@io... www.iowalab.com |
From: Scott L. <sl...@io...> - 2005-03-24 19:45:27
|
The version of GD in use is the bundled version in PHP, 2.0.28, and currently it's being loaded as an extension. It should be fairly trivial for me to modify the port and build it directly into PHP and give that a try. Wiredrive Pro and Hub are web based apps, we just rolled out version 1.8 a couple months back with 2.0 currently in the works. If the people you know want to talk to someone in depth about it have them give a call to the number in my sig and ask for either Bill Sewell or Erika Levy, and access to the demo system can be set up. On Wed, 2005-03-23 at 22:28 -0800, Todd.Kirby wrote: > Hi Scott, > > togdimage() is the only function that interacts with gd so it's likely a > problem with the gd/ffmpeg-php integration (which is pure voodoo thanks > to the way gd is bundled into the php sources). Which version of gd are > you using? Is gd built into php or as an extension? > > BTW: I work at a large media company in Burbank and know some folks who > might be interested in WiredrivePro/Hub. Are these apps web based? > > -Todd -- Scott Larson Network Administrator IOWA LLC T:310.823.8238 F:310.823.7108 E: su...@io... www.iowalab.com |
From: Todd.Kirby <dou...@pa...> - 2005-03-24 06:29:01
|
Scott Larson wrote: > I'm running the following script on a RH Linux 3ES machine with no >problems, however when moving the script to a FreeBSD machine I get this >error: > >[21-Mar-2005 10:58:00] PHP Warning: togdimage(): supplied resource is >not a valid Image resource in /usr/local/www/data-dist/ffmpeg/bar.php on >line 16 > > Here is the script I'm testing with: > ><?php > >header("Content-type: image/jpeg"); > >$file = "qt/video.mov"; > >$movie = new ffmpeg_movie($file); >$total = $movie->getFrameCount(); >$bitrate = $movie->getBitRate(); >$type = $movie->getVideoCodec(); >$id = round($total/2); >$frame = $movie->getFrame($id); >$width = $frame->getWidth($frame); >$height = $frame->getHeight($frame); > > $image = $frame->togdimage(); > imagejpeg($image,'',100); > >?> > > The only underlying difference is the OS. Both machines run PHP >4.3.10, ffmpeg 0.4.9p1, and ffmpeg-php 0.4.3, and in both cases >ffmpeg-php is built as a dynamic extension. An interesting thing to >note is that on the troublesome BSD machine, all the other functions >seem to work. It correctly gets the frame count, bit rate, video codec, >width and height. > > > Hi Scott, togdimage() is the only function that interacts with gd so it's likely a problem with the gd/ffmpeg-php integration (which is pure voodoo thanks to the way gd is bundled into the php sources). Which version of gd are you using? Is gd built into php or as an extension? BTW: I work at a large media company in Burbank and know some folks who might be interested in WiredrivePro/Hub. Are these apps web based? -Todd |
From: anand k. <ana...@ya...> - 2005-03-22 04:23:23
|
Dear sir, I am going to use Vedio Clips or Audio clips on my webpages using php,i found this ffmpeg utility how can i use this in my webapplicaton,please direct me with kind suggestions, and i am using PHP5.0 on http-Apache server2.0 and Window2003 server is the Operation system pleasse help me desing my page with multimedia your Sincerely Anand --------------------------------- Do you Yahoo!? Yahoo! Small Business - Try our new resources site! |
From: Scott L. <sl...@io...> - 2005-03-21 22:45:10
|
Yes indeed, the same version of libavcodec on both boxes. I double checked the config on the FreeBSD machine and it does have zlib support enabled, I'll include the configure output. Here's a link to the test video: http://thor.iowalab.com/ffmpeg/qt/video.mov Install prefix /usr/local Source path /usr/ports/multimedia/ffmpeg/work/ffmpeg-0.4.9-pre1 C compiler cc make gmake CPU x86 (generic) Big Endian no inttypes.h yes broken inttypes.h no MMX enabled yes Vector Builtins yes gprof enabled no zlib enabled yes mp3lame enabled no vorbis enabled no faad enabled no faadbin enabled no faac enabled no a52 support yes a52 dlopened no pp support no debug symbols no optimize yes shared pp yes Video hooking yes SDL support no risky / patent encumbered codecs yes Imlib2 support no freetype support yes Sun medialib support no pthreads support no AMR-NB float support no AMR-NB fixed support no AMR-WB float support no License: GPL On Mon, 2005-03-21 at 21:08 +0100, Rob Coenen wrote: > I assume you're using the same version of libavcodec and/or libavformat > since you're using ffmpeg 0.4.9p1 on both machines. > > One thing I could think of is that your video.mov has it's headers > compressed with zlib. Make sure that ffmpeg is compiled with zlib support. > > Could you give us a link to the file you tested with (video.mov) ? > > -ROB > -- Scott Larson Network Administrator IOWA LLC T:310.823.8238 F:310.823.7108 E: su...@io... www.iowalab.com |
From: Rob C. <ro...@ma...> - 2005-03-21 20:08:50
|
I assume you're using the same version of libavcodec and/or libavformat since you're using ffmpeg 0.4.9p1 on both machines. One thing I could think of is that your video.mov has it's headers compressed with zlib. Make sure that ffmpeg is compiled with zlib support. Could you give us a link to the file you tested with (video.mov) ? -ROB -----Original Message----- From: ffm...@li... [mailto:ffm...@li...] On Behalf Of Scott Larson Sent: maandag 21 maart 2005 20:16 To: ffm...@li... Subject: [Ffmpeg-php-user] togdimage() not working on BSD I'm running the following script on a RH Linux 3ES machine with no problems, however when moving the script to a FreeBSD machine I get this error: [21-Mar-2005 10:58:00] PHP Warning: togdimage(): supplied resource is not a valid Image resource in /usr/local/www/data-dist/ffmpeg/bar.php on line 16 Here is the script I'm testing with: <?php header("Content-type: image/jpeg"); $file = "qt/video.mov"; $movie = new ffmpeg_movie($file); $total = $movie->getFrameCount(); $bitrate = $movie->getBitRate(); $type = $movie->getVideoCodec(); $id = round($total/2); $frame = $movie->getFrame($id); $width = $frame->getWidth($frame); $height = $frame->getHeight($frame); $image = $frame->togdimage(); imagejpeg($image,'',100); ?> The only underlying difference is the OS. Both machines run PHP 4.3.10, ffmpeg 0.4.9p1, and ffmpeg-php 0.4.3, and in both cases ffmpeg-php is built as a dynamic extension. An interesting thing to note is that on the troublesome BSD machine, all the other functions seem to work. It correctly gets the frame count, bit rate, video codec, width and height. -- Scott Larson Network Administrator IOWA LLC T:310.823.8238 F:310.823.7108 E: su...@io... www.iowalab.com ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Ffmpeg-php-user mailing list Ffm...@li... https://lists.sourceforge.net/lists/listinfo/ffmpeg-php-user |
From: Scott L. <sl...@io...> - 2005-03-21 19:16:28
|
I'm running the following script on a RH Linux 3ES machine with no problems, however when moving the script to a FreeBSD machine I get this error: [21-Mar-2005 10:58:00] PHP Warning: togdimage(): supplied resource is not a valid Image resource in /usr/local/www/data-dist/ffmpeg/bar.php on line 16 Here is the script I'm testing with: <?php header("Content-type: image/jpeg"); $file = "qt/video.mov"; $movie = new ffmpeg_movie($file); $total = $movie->getFrameCount(); $bitrate = $movie->getBitRate(); $type = $movie->getVideoCodec(); $id = round($total/2); $frame = $movie->getFrame($id); $width = $frame->getWidth($frame); $height = $frame->getHeight($frame); $image = $frame->togdimage(); imagejpeg($image,'',100); ?> The only underlying difference is the OS. Both machines run PHP 4.3.10, ffmpeg 0.4.9p1, and ffmpeg-php 0.4.3, and in both cases ffmpeg-php is built as a dynamic extension. An interesting thing to note is that on the troublesome BSD machine, all the other functions seem to work. It correctly gets the frame count, bit rate, video codec, width and height. -- Scott Larson Network Administrator IOWA LLC T:310.823.8238 F:310.823.7108 E: su...@io... www.iowalab.com |
From: Todd.Kirby <dou...@pa...> - 2005-03-09 05:42:50
|
Rob Coenen wrote: >Well I'm getting > 'Fatal error: Call to undefined function: togdimage() in >D:\_web\tests\getFrame.php on line 17' > >So I did test by setting HAVE_LIBGD20=1 in the pre-processor (b/c I know I >have GD2Lib.dll enabled), recompiled and then the error is > > 'Warning: togdimage(): supplied resource is not a valid Image >resource in D:\_web\tests\getFrame.php on line 17' > >I think the .dll basically works but it has trouble working with the gdlib >as it seems that there is something with the HAVE_LIBGD20 macro, but I have >no idea where it gets defined or where its definition is dependant upon. >Do you have any idea what the difference between Linux/Windows can be when >it comes down to this thing? > > The HAVE_LIBGD20 is probably defined in php/php_config.h. One of the other standard php extensions calls GD, cpdf I think it is. You might be able to look at it's source to get some clue about how to correctly setup and extension with gd on windows. Sorry I'm not much help, I know next to nothing about Windows. >-----Original Message----- >From: Todd.Kirby [mailto:dou...@pa...] >Sent: woensdag 9 maart 2005 5:51 >To: Rob Coenen >Subject: Re: [Ffmpeg-php-user] building ffmpeg-php on Windows > >Rob Coenen wrote: > > > >>Hi Todd, >> >>Nope - the getFrame() function doesn't resturn a ffmpeg_frame(). >>As far as I can see it is all dependant on #if HAVE_LIBGD20 right? >>Where does LIBGD20 get defined? >> >> >> >> >If LIBGD20 wasn't defined then the getFrame() function wouldn't exist at >all in the extension and you'd get something like: > >Fatal error: Call to undefined method ffmpeg_movie::getFrame() in >/home/tkirby/src/php-5.0.3/ext/ffmpeg-php/tests/test_ffmpeg.php on line 88 > > > > |
From: Todd.Kirby <dou...@pa...> - 2005-03-09 04:52:29
|
Rob Coenen wrote: >Hi Todd, > >Nope - the getFrame() function doesn't resturn a ffmpeg_frame(). >As far as I can see it is all dependant on #if HAVE_LIBGD20 right? >Where does LIBGD20 get defined? > > If LIBGD20 wasn't defined then the getFrame() function wouldn't exist at all in the extension and you'd get something like: Fatal error: Call to undefined method ffmpeg_movie::getFrame() in /home/tkirby/src/php-5.0.3/ext/ffmpeg-php/tests/test_ffmpeg.php on line 88 >-ROB > >-----Original Message----- >From: Todd.Kirby [mailto:dou...@pa...] >Sent: woensdag 9 maart 2005 4:47 >To: Rob Coenen; ffm...@li... >Subject: Re: [Ffmpeg-php-user] building ffmpeg-php on Windows > > ><...> >My language here wasn't very precise. As long as the configure script >can find the gd libraries and headers whether it's compiled into php or >as a separate library it should work . When you run test_ffmpeg.php what >does it list as the result of the getFrame() function? If it is >something like 'Object #1' then getFrame is compiled in and working. > > > > |
From: Todd.Kirby <dou...@pa...> - 2005-03-09 04:32:15
|
Rob Coenen wrote: >Hello Todd, > >Im looking into the GD LIb thing right now. > >Just another question / note : I was getting a lot these errors: >d:\dev\php-4.3.10_source\ext\ffmpeg\ffmpeg_frame.c(289) : >error C2065: 'tsrm_ls' : undeclared identifier > >Then I read this: >http://lists.horde.org/archives/turba/Week-of-Mon-20020624/001188.html > >So I added a TSRMLS_FETCH(); everywhere this error was occurring and not it >works. Not sure why this is an 'error' and if I did the correct fix. I think >so? > > Someone else reported this same problem recently. The current cvs version of ffmpeg has the TSRMLS_FETCH macros in it. I plan to release an updated version once I figure out the lrint() thing (hopefully tonight or tomorrow) > *Notice*: Object to string conversion in > *D:\_web\tests\test_ffmpeg.php* on line *88* I changed the test script to avoid this warning in the future. >get frame = Object >get frame number = 10 > >-------------------- > > The quickest way to test for sure the getFrame() is working is to... 1. Edit tests/getFrame.phpt and comment out unlink() line near the end. 2. Run 'php getFrame.phpt'. This should leave a file called 'test-0073.png' behind. 3. open test-0073.png and see if it is the quicktime logo. NOTE: last line of image is messed up because source movie is messed up and I've been to lazy to find a better one. |
From: <ro...@ma...> - 2005-03-06 19:41:06
|
Hello all, im a very unexperienced C++ programmer. For my project 'outloud.tv' (nonprofit video uploading community wich is connected to local TV in Amsterdam) I'm highly intrested in integrating using ffmpeg-php. However we're using sponsored soft- and hardware and are forced to work with Windows 2003 Web Edition / PHP and MySql. I came across this page about building php extension for Windows: http://www.schau.com/apachephp/apachephpwin32/module.html Should this work for the ffmpeg-php module aswell? Any help / ideas? Thanks! ROB ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. |
From: Todd.Kirby <dou...@pa...> - 2005-03-03 04:14:51
|
I've had the name of the cvs module on sourceforge changed from 'ffmpeg' to 'ffmpeg-php' so if you've checked out cvs for the project you will have to do one of the following to update to the new name: 1. Blow away your current version and check out again using 'ffmpeg-php' as the module name. 2. Edit the Repository file in your curennt checkout's CVS directories and change 'ffmpeg' to 'ffmpeg-php'. This will need to be done in the following places. ffmpeg-php/CVS/Repository ffmpeg-php/tests/CVS/Repository ffmpeg-php/build/CVS/Repository ffmpeg-php/include/CVS/Repository This chance should help eliminate any naming clashes with the offical ffmpeg project and allow checkouts of both to the same place. Sorry for the inconvenience. -Todd |
From: Todd.Kirby <dou...@pa...> - 2005-02-23 03:30:03
|
Collin Peters wrote: > Hi, I am able to use ffmpeg with flv (flash video) files from the > command line, but when I try to open one through ffmpeg-php I get a > seg fault in the apache log > > [flv @ 0x40d56a0c]skipping flv packet: type 18, size 72, flags 0 > [Tue Feb 22 13:35:14 2005] [notice] child pid 25172 exit signal > Segmentation fault (11) > > Any thoughts? > Hmm, works on my test files. http://localhost/videoget/videoget.php?url=http%3A%2F%2F66.126.28.162%2Ftest.flv Can you provide me a sample file? |
From: Collin P. <cp...@in...> - 2005-02-22 21:48:58
|
Hi, I am able to use ffmpeg with flv (flash video) files from the command line, but when I try to open one through ffmpeg-php I get a seg fault in the apache log [flv @ 0x40d56a0c]skipping flv packet: type 18, size 72, flags 0 [Tue Feb 22 13:35:14 2005] [notice] child pid 25172 exit signal Segmentation fault (11) Any thoughts? Collin |