[MPlayer-users] Transcoding from one aspect ratio to another

Nix niks1024 at gmail.com
Thu Nov 4 23:06:37 CET 2010

On 2010.11.04. 23:50, Rolf Ernst wrote:
> On Thu, Nov 4, 2010 at 4:33 PM, Nix<niks1024 at gmail.com>  wrote:
>> On 2010.11.04. 03:24, Rolf Ernst wrote:
>> Ok, I'd say you would probably be best served just using YAMF but I looked
>> at the code and here is what it does when multiplexing to matroska:
>> It passes the --aspect-ratio parameter to  Matrosdka and here is how it
>> calculates it (sorry for confusing you beforehand but I hadn't looked at the
>> code in a long time):
>>                  double origAspect = (double) cropData.getTotalWidth() /
>> (double) cropData.getTotalHeight() / runDef.getTechInfo().getVideoAspect();
>>                  double newAspect = (double) cropData.getCroppedWidth() /
>> (double) cropData.getCroppedHeight();
>>                  double aspectRatio = (newAspect / origAspect);
So the code does basically the same calculations what I do with pen and 
paper to find the correct DAR only instead of PAR(?) change factor I 
prefer to find the new DAR. But that still doesn't explain how you plan 
to solve original problem as you're expected to *change* DAR without 
losing information or distorting the image which is not something you 
can magically fix by using anamorphic video.

More information about the MPlayer-users mailing list