phpvideotoolkit
440bro / phpvideotoolkit Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/phpvideotoolkit
Automatically exported from code.google.com/p/phpvideotoolkit
phpvideotoolkit
What steps will reproduce the problem?
1. when converting to flv the -sameq param is set by default. thi
beaks ffmpeg on mac ports
What is the expected output? What do you see instead?
Ffmpeg says "Unable for find a suitable output format for ''"
What version of the product are you using? On what operating system?
v 0.1.5 on OSX 10.5
Please provide any additional information below.
Output log file attached.
Putting this in the _combineCommands:
[code]
$command_string = trim($command.($argument ? ' '.$argument : ''));
if ($command == '-sameq') $command_string = '-sameq';
[/code]
fixes the issue.
But I recommend extending PHPVideoToolkit and overwriting
setFormatToFLV(). Instead of:
$this->addCommand('-sameq');
a better result is obtained with:
$this->addCommand('-qmin', 3);
$this->addCommand('-qmax', 6);
$this->addCommand('-r', 25);
Original issue reported on code.google.com by [email protected]
on 14 Oct 2009 at 3:52
Attachments:
What steps will reproduce the problem?
1. Do $info = PHPVideoToolkit::getFileInfo on a video using the codec: mpeg4
(DX50 / 0x30355844)
What is the expected output? What do you see instead?
The returned dimensions under $info['video']['dimensions'] are 0x30355 instead
of the real video's dimensions.
The fault is at line 890 of phpvideotoolkit.php5.php, where it uses the
following regex to parse raw ffmpeg output:
/([0-9]{1,5})x([0-9]{1,5})/
One way of fixing this would be to change the regex to:
/[^0-9]([0-9]{1,5})x([0-9]{1,5})[^0-9]/
Original issue reported on code.google.com by [email protected]
on 16 Jan 2012 at 7:47
What steps will reproduce the problem?
1. $toolkit->extractFrame('00:00:02.5',false)
2.
3.
What is the expected output? What do you see instead?
single frame from video
What version of the product are you using? On what operating system?
1.5
Please provide any additional information below.
set second param to 1 instead of false
Original issue reported on code.google.com by [email protected]
on 13 Apr 2009 at 4:44
Execute fails to run on (T)CSH shell due to output redirect. Seems it is
default in FreeBSD
Original issue reported on code.google.com by [email protected]
on 11 Apr 2008 at 10:40
Line 869 needs to refer to $this->tmp_directory, but instead refers to
$this->_tmb_directory, thus causing a number of 'Undefined Offset' notices
later in the function.
Original issue reported on code.google.com by [email protected]
on 25 Aug 2011 at 12:50
V0.13: "PHP Notice: Undefined offset: 6 in
/dam/httpdocs/vendors/PhpVideoToolKit/phpvideotoolkit.php on line 615"
problem with the abbreviations?
// grab the abbreviations available to ffmpeg
$abbreviations = trim($matches[$indexs['abbreviations']]);
Original issue reported on code.google.com by [email protected]
on 8 Apr 2008 at 10:04
line 1997 of php5:
strpos($output_name, '%timecode') !== false
should be
strpos($output_name, '%timecode') == false
Original issue reported on code.google.com by [email protected]
on 14 Oct 2009 at 6:21
Hi,m getting following error while watermarking videos:
← Back to examples list
This example shows you how to watermark a video. Please note; that in
order to watermark a video FFmpeg has to have been compiled with vhooks
enabled.
• The media player is embedded using PluginObject to embed the video
examples. It is distributed under a BSD License.
Testing for vhook support...
You FFmpeg binary has been compiled with vhook support.
Notice: Undefined offset: 1 in /home/mobiworl/public_html/upload/
phpvideotoolkit.php5.php on line 773
Notice: Undefined offset: 0 in /home/mobiworl/public_html/upload/
phpvideotoolkit.php5.php on line 774
Warning: rename(/home/mobiworl/public_html/upload/examples/working/tmp/
1250861565-4a8ea1fdc1f53.info,/home/mobiworl/public_html/upload/examples/
working/logs/New.log) [function.rename]: Permission denied in /home/
mobiworl/public_html/upload/phpvideotoolkit.php5.php on line 3093
PHPVideoToolkit Error: Execute error. Output for file "/home/mobiworl/
public_html/upload/examples/working/to-be-processed/New.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().
Kindly help me out
Original issue reported on code.google.com by [email protected]
on 21 Aug 2009 at 2:25
I am getting this error when PHP is configured in strict mode :
Strict Standards: Only variables should be passed by reference in
/var/www/geddan/phpvideotoolkit/phpvideotoolkit.php5.php on line 1581
Original issue reported on code.google.com by [email protected]
on 13 Aug 2011 at 1:04
When trying to extract a single frame from a flv, phpvideotoolkit is
currently trying something like this, notice the "-an ''"
/usr/bin/ffmpeg -i 'web/uploads/assets/batman.flv' -an '' -ss '00:00:07.0'
-t '00:00:07.0' -r '15' -vframes '1' -y web/uploads/assets/batman-%12d.jpg
This results in the error:
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --prefix=/usr --libdir=/usr/lib --mandir=/usr/share/man
--incdir=/usr/include/ffmpeg --enable-libmp3lame --enable-libogg
--enable-libvorbis --enable-libfaad --enable-libfaac --enable-libgsm
--enable-xvid --enable-x264 --enable-liba52 --enable-liba52bin --enable-pp
--enable-shared --enable-pthreads --enable-gpl --disable-strip
libavutil version: 49.4.0
libavcodec version: 51.40.4
libavformat version: 51.12.1
built on Jan 11 2008 02:31:29, gcc: 3.4.6 20060404 (Red Hat 3.4.6-9)
Seems stream 0 codec frame rate differs from container frame rate: 1000.00
(1000/1) -> 15.00 (15/1)
Input #0, flv, from 'web/uploads/assets/batman.flv':
Duration: 00:00:28.3, start: 0.000000, bitrate: 64 kb/s
Stream #0.0: Video: flv, yuv420p, 320x240, 15.00 fps(r)
Stream #0.1: Audio: mp3, 22050 Hz, mono, 64 kb/s
Unable for find a suitable output format for ''
If I change "-an ''" to "-an" it works okay:
/usr/bin/ffmpeg -i 'web/uploads/assets/batman.flv' -an -ss '00:00:07.0' -t
'00:00:07.0' -r '15' -vframes '1' -y web/uploads/assets/batman-%12d.jpg
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --prefix=/usr --libdir=/usr/lib --mandir=/usr/share/man
--incdir=/usr/include/ffmpeg --enable-libmp3lame --enable-libogg
--enable-libvorbis --enable-libfaad --enable-libfaac --enable-libgsm
--enable-xvid --enable-x264 --enable-liba52 --enable-liba52bin --enable-pp
--enable-shared --enable-pthreads --enable-gpl --disable-strip
libavutil version: 49.4.0
libavcodec version: 51.40.4
libavformat version: 51.12.1
built on Jan 11 2008 02:31:29, gcc: 3.4.6 20060404 (Red Hat 3.4.6-9)
Seems stream 0 codec frame rate differs from container frame rate: 1000.00
(1000/1) -> 15.00 (15/1)
Input #0, flv, from 'web/uploads/assets/batman.flv':
Duration: 00:00:28.3, start: 0.000000, bitrate: 64 kb/s
Stream #0.0: Video: flv, yuv420p, 320x240, 15.00 fps(r)
Stream #0.1: Audio: mp3, 22050 Hz, mono, 64 kb/s
Output #0, image2, to 'web/uploads/assets/batman-%12d.jpg':
Stream #0.0: Video: mjpeg, yuvj420p, 320x240, q=2-31, 200 kb/s, 15.00 fps(c)
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
Compiler did not align stack variables. Libavcodec has been miscompiled
and may be very slow or crash. This is not a bug in libavcodec,
but in the compiler. Do not report crashes to FFmpeg developers.
frame= 1 fps= 0 q=5.5 Lsize= 0kB time=0.1 bitrate= 0.0kbits/s
video:8kB audio:0kB global headers:0kB muxing overhead -100.000000%
Original issue reported on code.google.com by [email protected]
on 23 Jul 2008 at 12:01
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.