PHP Classes

width x height => bug + fix

Recommend this page to a friend!

      PHP Video Toolkit  >  All threads  >  width x height => bug + fix  >  (Un) Subscribe thread alerts  
Subject:width x height => bug + fix
Summary:small bug
Messages:15
Author:Istvan Szakacs
Date:2008-03-30 21:22:54
Update:2008-04-02 22:02:15
 
  1 - 10   11 - 15  

  11. Re: width x height => bug + fix   Reply   Report abuse  
Picture of Oliver Lillie Oliver Lillie - 2008-03-31 16:36:28 - In reply to message 10 from Oliver Lillie
this is the problem

your video line is

Stream #0.1: Video: wmv2, yuv420p, 360x288, 25.00 tb(r)

mine is

Stream #0.0(jpn), 10.00 fps(r): Video: h263, yuv420p, 176x144

your frame rate is 25.00 tb(r) (not sure what tb stands for) but it is in a different position. I would be grateful if you could run the same command but for an mpeg or 3gp file to see if it is the same output or if it is different for each file. My wmv tests are the same as my other files.

Seems that stream 1 comes from film source: 1000.00 (1000/1) -> 25.00 (25/1)
Input #0, asf, from '/test.wmv':
Duration: 00:03:01.0, start: 3.000000, bitrate: 426 kb/s
Stream #0.0: Audio: wmav2, 22050 Hz, mono, 16 kb/s
Stream #0.1, 25.00 fps(r): Video: WMV3 / 0x33564D57, 384x288


  12. Re: width x height => bug + fix   Reply   Report abuse  
Picture of Oliver Lillie Oliver Lillie - 2008-03-31 17:13:52 - In reply to message 11 from Oliver Lillie
Ok I've patched the class, however I'm not going to update any of the downloads until some further updates are committed. If you need/want an updated copy shoot me an email through the contact form and I'll send you the updated version.

  13. Re: width x height => bug + fix   Reply   Report abuse  
Picture of Istvan Szakacs Istvan Szakacs - 2008-04-01 11:51:17 - In reply to message 12 from Oliver Lillie
Hi!

i made yesterday a couple of tests with the latest version which is available at phpclasses.org (so without the very latest "fixes" / modifications).

i encountered another problem when i tried to take snapshots(jpg file) from a video, gave me a zero division warning/error, this is another issue which is related to the file information gathering / parsing => just for your information.

of course i can do the tests with different video types like ogg... aswell!

i think it might be useful for both of us if i do the tests also with the very current version, therefor i will send you a message through the contact form providing my email address.

once i run the tests i will post the results in here, so we can see if your lastest changed version grabs the file information properly.

thanks for all the time and effort!
istvan

  14. Re: width x height => bug + fix   Reply   Report abuse  
Picture of Istvan Szakacs Istvan Szakacs - 2008-04-01 12:35:35 - In reply to message 13 from Istvan Szakacs
uhhhm

i am either blind or too stupid to find the contact button :P i just saw the one on the bottom of the page which isnt your contact button ;-( so i just leave my email address here : >

campos AT gmx DOT at

thanks

  15. Re: width x height => bug + fix   Reply   Report abuse  
Picture of Istvan Szakacs Istvan Szakacs - 2008-04-02 22:02:15 - In reply to message 14 from Istvan Szakacs
hi oliver!

i tested the script you've sent me and i have to say its working perfectly, at least the file information

i made a couple of tests and the results looked all very promissing

e.g.
<?xml version="1.0" encoding="ISO-8859-1"?>
<data>
<duration>
<seconds>3.9</seconds>
<timecode>
<rounded>00:00:03</rounded>
<seconds>
<exact>00:00:03.9</exact>
<excess>9</excess>
</seconds>
<frames>
<exact>00:00:03.23</exact>
<excess>23</excess>
</frames>
</timecode>
</duration>
<bitrate>701</bitrate>
<video>
<dimensions>
<width>360</width>
<height>288</height>
</dimensions>
<framerate>25</framerate>
<framecount>98</framecount>
<pixelformat>yuv420p</pixelformat>
<codec>wmv2</codec>
</video>
<audio>
<stereo>stereo</stereo>
<samplerate>44100</samplerate>
<bitrate>64</bitrate>
<codec>wmav2</codec>
</audio>
</data>

...
i have to admit that i hardly saw such well coded php by now (well structured &commented, simple to use and the best... it's working :- )


thanks :)

 
  1 - 10   11 - 15