find i m trying to convert sequence of images into a video. and for that i canme to know about the ffmpeg class.
the only wrapper class that i found is phpvideotoolkit but i m not able to work with it.
i installed phpvideotoolkit on xampp on my windows 2008 server . but it is throwing alor of errors
This example shows you how to extract a specific frame from a movie.
Notice: Undefined property: PHPVideoToolkit::$_tmb_directory in C:\xampp\htdocs\phpvideo\phpvideotoolkit.php5.php on line 869
Notice: Undefined offset: 0 in C:\xampp\htdocs\phpvideo\phpvideotoolkit.php5.php on line 877
PHPVideoToolkit Error: Execute error. Output for file "C:\xampp\htdocs\phpvideo\examples\working\to-be-processed\MOV00007.3gp" was not found. No images were generated.
Notice: Undefined property: PHPVideoToolkit::$_tmb_directory in C:\xampp\htdocs\phpvideo\phpvideotoolkit.php5.php on line 869
Notice: Undefined offset: 0 in C:\xampp\htdocs\phpvideo\phpvideotoolkit.php5.php on line 877
PHPVideoToolkit Error: Execute error. Output for file "C:\xampp\htdocs\phpvideo\examples\working\to-be-processed\Video000.3gp" was not found. No images were generated.
Notice: Undefined property: PHPVideoToolkit::$_tmb_directory in C:\xampp\htdocs\phpvideo\phpvideotoolkit.php5.php on line 869
Notice: Undefined offset: 0 in C:\xampp\htdocs\phpvideo\phpvideotoolkit.php5.php on line 877
PHPVideoToolkit Error: Execute error. Output for file "C:\xampp\htdocs\phpvideo\examples\working\to-be-processed\cat.mpeg" was not found. No images were generated.
example
PHPVideoToolkit Error: Execute error. Output for file "C:\xampp\htdocs\phpvideo\examples\working\tmp\1336156630-4fa421d69357d\tmp_%d.jpg" 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().
i m trying to make it work since last many hours but no luck
Also, for this code :
$srcFile = "test-mpeg.mpg";
$ffmpegObj = new ffmpeg_movie($srcFile);
i am gettign error that it cant file the file. i believe its something to do with permissions but i m not able to figure out
fpoen , fwrite , file_put_contents all are working fine without any permissions problems.
can anyone please guide me in the write direction. what do i need to do to make this phpvideotoolkit work
Related
im trying to update codeigniter version from 2.2 to 3.1.
me already to following this instruction https://www.codeigniter.com/userguide3/installation/upgrade_300.html
but i still get error like this.
Notice: Undefined index: log_path in C:\xampp\htdocs\simangkug\system\core\Log.php on line 127
Notice: Undefined index: log_path in C:\xampp\htdocs\simangkug\system\core\Log.php on line 127
Warning: mkdir(): Invalid path in C:\xampp\htdocs\simangkug\system\core\Log.php on line 131
what can i do to fix this problem ?
on my server using php version 7.3
I have a cron job that runs daily (for over a year) and suddenly does not work.
I have a cron job that looks like:
/usr/bin/php -q /home/tcanfarotta22/public_html/test_arg.php low_customer=2 high_customer=200
And then a PHP script that gets the variables like:
parse_str($argv[1], $params);
parse_str($argv[2], $params2);
$low_customer = $params['low_customer'];
$high_customer = $params2['high_customer'];
Now I am getting the following errors:
[18-Jun-2018 10:38:01 America/New_York] PHP Notice: Undefined
variable: argv in /home/tcanfarotta22/public_html/test_arg.php on line
5 [18-Jun-2018 10:38:01 America/New_York] PHP Notice: Undefined
variable: argv in /home/tcanfarotta22/public_html/test_arg.php on line
6 [18-Jun-2018 10:38:01 America/New_York] PHP Notice: Undefined
index: low_customer in /home/tcanfarotta22/public_html/test_arg.php on
line 8 [18-Jun-2018 10:38:01 America/New_York] PHP Notice: Undefined
index: high_customer in /home/tcanfarotta22/public_html/test_arg.php
on line 9
Nothing has changed so I ma not sure what to do. Does anyone know?
If the enabling of register_argc_argv does not fix the issue, then maybe you are trying to access $argv within a class, in this case, you need to declare it as global before you can access it:
global $argv;
BTW, I have tested your code (executed by the terminal) and it runs like a charm.
If this does not fix the issue, maybe then you need to put more details, also we need to know how you are testing?
I get tons of this error:
Notice: unserialize(): Error at offset 0 of 205 bytes in /home/xtf/public_html/index.php on line 58
After a failed opencart upgrade atempt, i took all the files from my backup (Working backup) and replaced all files on the server.
I have not done any changes to the data in the MySQL database.
Do anyone have tip on how i can fix this error?
Is there a script i can run?
Line 58$config->set($result['key'], unserialize($result['value']));
i decided to move my 1.1.19 to 2.07 and move to new directory.
but i couldn't upgrade my forum correctly. because:
repair_settings.php - (in bottom of page we got some error)
Notice: Undefined index: database_error in
/homepages/5/d394578306/htdocs/ResidentEvil/Sources/Subs-Db-mysql.php
on line 572
Fatal error: Call to undefined function allowedTo() in
/homepages/5/d394578306/htdocs/ResidentEvil/Sources/Subs-Db-mysql.php
on line 573
Upgrade.php - (we have many error on this page)
Notice: Undefined index: upgrade_progress in
/homepages/5/d394578306/htdocs/ResidentEvil/upgrade.php on line 3488
same error but on different lines.
Seems you're missing some files. Reupload all the Sources dir and the upgrade files with a software like WinSCP. Avoid FileZilla.
I'm trying to get the Ansinerator library to work my on my localhost, but something's amiss.
I'm receiving the following errors:
Notice: Undefined index: hash in ansi.php on line 23 Notice: Undefined index: aml in ansi.php on line 37 Notice: Undefined variable: PNG_DESTRUCT in ansi.php on line 119 Notice: Undefined offset: -1 in ansi.php on line 362 Notice: Trying to get property of non-object in ansi.php on line 362 Notice: Undefined variable: links in ansi.php on line 459 Notice: Trying to get property of non-object in ansi.php on line 677 Notice: Undefined variable: links in ansi.php on line 459 Notice: Undefined variable: map_link in ansi.php on line 687
Any idea where am I going wrong with this one? I've installed the php-gd library, restarted the server, and while runs perfectly on production server, localhost will refuse. Ideas?
Thank you.
Check
- That you've got 'proper' versions of everything installed on localhost. (Compare localhost with production.) There's obviously something different between the 2 servers here, just use phpinfo() to check.
Restart localhost again? (Just kidding...)
Is it possible that you have set different error reporting levels on both servers?
Before anything, put error_reporting(E_ALL); at the top of your script on both servers and see if it runs perfectly. (My guess is you will get errors on both servers)