PHP Classes

Problems with examples

Recommend this page to a friend!

      PHP Video Toolkit  >  All threads  >  Problems with examples  >  (Un) Subscribe thread alerts  
Subject:Problems with examples
Summary:Some xamples work others don't...
Messages:8
Author:Sam Wolfe
Date:2008-05-04 12:27:58
Update:2010-08-03 22:52:52
 

  1. Problems with examples   Reply   Report abuse  
Picture of Sam Wolfe Sam Wolfe - 2008-05-04 12:27:59
OK, I'll try to provide as much info as possible.

FFmpeg-php version - 0.5.2.1
phpvideotoolkit version - 0.1.3

Problem:
When running example01 I get:

Warning: unlink(/home/watvids/public_html/phpvt/examples/tmp/1209903713-481daa618c8c1-multipass-0.log) [function.unlink]: No such file or directory in /home/watvids/public_html/phpvt/phpvideotoolkit.php on line 2266
FFMPEG ERROR: Execute error. Output for file "/home/watvids/public_html/phpvt/examples/to-be-processed/MOV00007.3gp" was not found. Please check server write permissions and/or available codecs compiled with FFmpeg. You can check the encode decode availability by inspecting the output array from PHPVideoToolkit::getFFmpegInfo().

example02 works fine.

example03 gives me:
FFMPEG ERROR: Execute error. Output for file "/home/watvids/public_html/phpvt/examples/tmp/1209903816-481daac86b2eb/tmp_%d.jpg" was found, but the file contained no data. Please check the available codecs compiled with FFmpeg can support this type of conversion. You can check the encode decode availability by inspecting the output array from PHPVideoToolkit::getFFmpegInfo().

I don't have vhook socan't use example04

example05 works fine

example06 works on one file:
FFMPEG ERROR: Execute error. Output for file "/home/watvids/public_html/phpvt/examples/to-be-processed/MOV00007.3gp" was found, but the file contained no data. Please check the available codecs compiled with FFmpeg can support this type of conversion. You can check the encode decode availability by inspecting the output array from PHPVideoToolkit::getFFmpegInfo().

Processing cat.mpeg
Audio extracted in 0.162430047989 seconds... /home/watvids/public_html/phpvt/examples/processed/audio/cat.mp3

The rest have similar errors.

My lof file for cat.mpeg shows:

-------------------------------
COMMAND
-------------------------------
/usr/local/bin/ffmpeg -i '/home/watvids/public_html/phpvt/examples/to-be-processed/cat.mpeg' -s '320x240' -sameq -acodec 'liblamemp3' -ab '64kb' -ar '44100' -f 'flv' -pass '1' -passlogfile '/home/watvids/public_html/phpvt/examples/tmp/1209903713-481daa619da29-multipass' -y /home/watvids/public_html/phpvt/examples/tmp/1209903713-481daa619d259.flv &> /home/watvids/public_html/phpvt/examples/tmp/1209903713-481daa619e1f7.info
/usr/local/bin/ffmpeg -i '/home/watvids/public_html/phpvt/examples/to-be-processed/cat.mpeg' -s '320x240' -sameq -acodec 'liblamemp3' -ab '64kb' -ar '44100' -f 'flv' -pass '2' -passlogfile '/home/watvids/public_html/phpvt/examples/tmp/1209903713-481daa619da29-multipass' -y /home/watvids/public_html/phpvt/examples/tmp/1209903713-481daa619d259.flv &> /home/watvids/public_html/phpvt/examples/tmp/1209903713-481daa619e1f7.info
-------------------------------
FFMPEG OUTPUT
-------------------------------
-------------------------------
RESULT
-------------------------------
Execute error. Output for file "/home/watvids/public_html/phpvt/examples/to-be-processed/cat.mpeg" was not found. Please check server write permissions and/or available codecs compiled with FFmpeg. You can check the encode decode availability by inspecting the output array from PHPVideoToolkit::getFFmpegInfo().



Dies anyone have any idea what is wrong and how I can fix it?

  2. Re: Problems with examples   Reply   Report abuse  
Picture of Oliver Lillie Oliver Lillie - 2008-05-08 00:53:39 - In reply to message 1 from Sam Wolfe

  3. Re: Problems with examples   Reply   Report abuse  
Picture of Pablo Camera Pablo Camera - 2008-12-04 03:00:28 - In reply to message 2 from Oliver Lillie
I follow your response but my example1 show again this:

This example shows you how to convert video to flash video (flv).
• The media player used below is Jeroen Wijering's excellent Flash Media Player. Although bundled with this package the Flash Media Player has a Creative Commons Attribution-Noncommercial-Share Alike 2.0 Generic license.
• The media player is embedded using PluginObject to embed the examples. It is distributed under a BSD License.

Please note that this example requires demo files. If you have not got these demo files you can download them from here.

Processing MOV00007.3gp

Warning: unlink(/var/www/apache2-default/video/examples/tmp/1228373953-49377fc121c16-multipass-0.log) [function.unlink]: No such file or directory in /var/www/apache2-default/video/phpvideotoolkit.php5.php on line 2597
FFMPEG ERROR: Execute error. Output for file "/var/www/apache2-default/video/examples/to-be-processed/MOV00007.3gp" was not found. Please check server write permissions and/or available codecs compiled with FFmpeg. You can check the encode decode availability by inspecting the output array from PHPVideoToolkit::getFFmpegInfo().

Processing Video000.3gp

Warning: unlink(/var/www/apache2-default/video/examples/tmp/1228373953-49377fc12d813-multipass-0.log) [function.unlink]: No such file or directory in /var/www/apache2-default/video/phpvideotoolkit.php5.php on line 2597
FFMPEG ERROR: Execute error. Output for file "/var/www/apache2-default/video/examples/to-be-processed/Video000.3gp" was not found. Please check server write permissions and/or available codecs compiled with FFmpeg. You can check the encode decode availability by inspecting the output array from PHPVideoToolkit::getFFmpegInfo().

Processing cat.mpeg

Warning: unlink(/var/www/apache2-default/video/examples/tmp/1228373953-49377fc138486-multipass-0.log) [function.unlink]: No such file or directory in /var/www/apache2-default/video/phpvideotoolkit.php5.php on line 2597
FFMPEG ERROR: Execute error. Output for file "/var/www/apache2-default/video/examples/to-be-processed/cat.mpeg" was not found. Please check server write permissions and/or available codecs compiled with FFmpeg. You can check the encode decode availability by inspecting the output array from PHPVideoToolkit::getFFmpegInfo().

The total time taken to process all 3 file(s) is : 0
The average time taken to process each file is : 0

Please help me!!!!

  4. Re: Problems with examples   Reply   Report abuse  
Picture of Pablo Camera Pablo Camera - 2008-12-04 03:30:41 - In reply to message 2 from Oliver Lillie
I solved my problem but now cant convert .3gp to flv,

The log as follow

-------------------------------
FFMPEG OUTPUT
-------------------------------
-------------------------------
COMMAND
-------------------------------
/usr/local/bin/ffmpeg -i '/var/www/apache2-default/video/examples/to-be-processed/MOV00007.3gp' -f 'mp4' -ar '44100' -ab '128kb' -vcodec 'mpeg4' -aspect '4:3' -s '320x240' -r '29.7' -mbd '2' -flags '+4mv+trell' -aic '2' -cmp '2' -subcmp '2' -title 'MOV00007' -y /var/www/apache2-default/video/examples/tmp/1228375576-49378618075eb.mp4 &> /var/www/apache2-default/video/examples/tmp/1228375576-493786180956b.info
Stream #0.0(jpn): Video: h263, yuv420p, 176x144 [PAR 12:11 DAR 4:3], 29.97 tb(r)
Stream #0.1(jpn): Audio: samr / 0x726D6173, 8000 Hz, mono, s16
Unable to parse option value "trell": undefined constant or missing (
Unable to parse option value "trell": undefined constant or missing (
Unable to parse option value "trell": undefined constant or missing (
Unable to parse option value "trell": undefined constant or missing (
/usr/local/bin/ffmpeg: unrecognized option '-flags'
-------------------------------
RESULT
-------------------------------
Execute error. Output for file "/var/www/apache2-default/video/examples/to-be-processed/MOV00007.3gp" was not found. Please check server write permissions and/or available codecs compiled with FFmpeg. You can check the encode decode availability by inspecting the output array from PHPVideoToolkit::getFFmpegInfo().

  5. Re: Problems with examples   Reply   Report abuse  
Picture of zkizzik zkizzik - 2009-07-23 00:46:22 - In reply to message 4 from Pablo Camera
the fuck class not work
>:(

Warning: unlink(/home/xxx/public_html/examples/tmp/1248309389-4a67b08de83d0-multipass-0.log) [function.unlink]: No such file or directory in /usr/lib/php/phpvideotoolkit.php5.php on line 2597
FFMPEG ERROR: Execute error. Output for file "/home/xxx/public_html/examples/to-be-processed/test.avi" was not found. Please check server write permissions and/or available codecs compiled with FFmpeg. You can check the encode decode availability by inspecting the output array from PHPVideoToolkit::getFFmpegInfo().

  6. Re: Problems with examples   Reply   Report abuse  
Picture of Muhammad Ali Awais Muhammad Ali Awais - 2009-12-16 10:41:29 - In reply to message 2 from Oliver Lillie
My Example 2 is not working, i have also downloaded the latest code from svn link given at googlecode for phpvideo toolkit. please help.

  7. Re: Problems with examples   Reply   Report abuse  
Picture of Eino Tuominen Eino Tuominen - 2010-01-28 14:43:43 - In reply to message 1 from Sam Wolfe
Example 2 does not work. This is the output:

This example shows you how to extract frames from a movie.

Note; This example should work correctly, however it's not. I don't currently understand why it's not producing the expected thumbnails. I'm currently looking into it and the xample will be updated when this process is fixed.

Extracting xxx_xxx_xxx.flv
We are extracting frames at a rate of 5/second so for this file we should have 0 frames below.
FFMPEG ERROR: Execute error. Output for file "/home/xxx/public_html/xxx/videotoolkittest/to-be-processed/xxx_xxx_xxx.flv" was not found. No images were generated.
The total time taken to process all 1 file(s) is : 0
The average time taken to process each file is : 0

  8. Re: Problems with examples   Reply   Report abuse  
Picture of joseph bailey joseph bailey - 2010-08-03 22:52:52 - In reply to message 7 from Eino Tuominen
i know this is thread is a little old but i have found that the error of FFMPEG ERROR: Execute error. Output for file "/home/xxx/public_html/xxx/videotoolkittest/to-be-processed/xxx_xxx_xxx.flv" was not found

i have noticed the reason i have gotten this error is do to one of the folders needed not being chmod 0777.

Make sure logs, tmp, processed, to-be-processed folders are chmod 0777 before running the script.