ARudik / php-reader

Automatically exported from code.google.com/p/php-reader
0 stars 0 forks source link

ASF unable to write wma lossless file #73

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Encoder Windows Media Audio 9.1 Lossless
Encoder Settings VBR Quality 100, 44 kHz, 2 channel 16 bit 1-pass VBR
Audio Quality Perfect (Lossless)
Type Media Center file    [.wma]

Able to read the file fine, but "Example #3: How to write ASF information" 
fails with:

PHP Fatal error:  Uncaught exception 'Zend_Media_Asf_Exception' with message 
'Operation not supported' in 
C:\progs\phpinclude\php-reader-1.8.1\library\Zend\Media\Asf\Object\IndexParamete
rs.php:123
Stack trace:
#0 
C:\progs\phpinclude\php-reader-1.8.1\library\Zend\Media\Asf\Object\HeaderExtensi
on.php(96): 
Zend_Media_Asf_Object_IndexParameters->write(Object(Zend_Io_StringWriter))
#1 
C:\progs\phpinclude\php-reader-1.8.1\library\Zend\Media\Asf\Object\Header.php(11
7): Zend_Media_Asf_Object_HeaderExtension->write(Object(Zend_Io_StringWriter))
#2 C:\progs\phpinclude\php-reader-1.8.1\library\Zend\Media\Asf.php(170): 
Zend_Media_Asf_Object_Header->write(Object(Zend_Io_StringWriter))
#3 C:\progs\RDA\silence\test.php(19): Zend_Media_Asf->write(NULL)
#4 {main}
  thrown in C:\progs\phpinclude\php-reader-1.8.1\library\Zend\Media\Asf\Object\IndexParameters.php on line 123

Looking at IndexParameters.php:123 reveals that the exception is by design. 
What to do?

Original issue reported on code.google.com by montiw...@gmail.com on 3 Mar 2013 at 6:17