<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 49: getPixelAspectRatio does not work with wmv files.</title><link href="https://sourceforge.net/p/ffmpeg-php/bugs/49/" rel="alternate"/><link href="https://sourceforge.net/p/ffmpeg-php/bugs/49/feed.atom" rel="self"/><id>https://sourceforge.net/p/ffmpeg-php/bugs/49/</id><updated>2011-03-16T01:56:45Z</updated><subtitle>Recent changes to 49: getPixelAspectRatio does not work with wmv files.</subtitle><entry><title>getPixelAspectRatio does not work with wmv files.</title><link href="https://sourceforge.net/p/ffmpeg-php/bugs/49/" rel="alternate"/><published>2011-03-16T01:56:45Z</published><updated>2011-03-16T01:56:45Z</updated><author><name>Mark El-Wakil</name><uri>https://sourceforge.net/u/seventhcycle/</uri></author><id>https://sourceforge.netcf6a7bc3519ba482f5244854ea6c6781fefbe6fe</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'm currently trying to detect the pixel aspect ratio for movie files that are imported within our content management system.  I see within ffmpeg-php that there's an undocumented method called getPixelAspectRatio.  This seems to work for the mpg sample that I have posted, however, it does not seem to work for any WMV files I create:&lt;/p&gt;
&lt;p&gt;The simplest way to reproduce this is as follows:&lt;/p&gt;
&lt;p&gt;$movie = "movietest.wmv";&lt;br /&gt;
$fm = new ffmpeg_movie($movie);&lt;br /&gt;
$pa = $fm-&amp;gt;getPixelAspectRatio();&lt;br /&gt;
echo $pa;&lt;/p&gt;
&lt;p&gt;In this case, the result here is blank.  When loading a sample .mpg file, I get a result of 1, which I assume is because the aspect ratio is the same as the pixel ratio.&lt;/p&gt;
&lt;p&gt;You can see a live example of this here:&lt;br /&gt;
&lt;a href="http://elevatedx.com/ffmpeg/" rel="nofollow"&gt;http://elevatedx.com/ffmpeg/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Please let me know if you have any questions.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>