To calculate the correct -X -B values one has to do the following (at least on 
my point of view):

finalwidth = "Framesize height of inputvideo" x "Aspectratio of inputvideo"
Xvalue = finalwidth - "Framesize width of inputvideo"
Xvaluediv8 = round_to_closes_multiplier_of_eight (Xvalue / 8);

-X 0,Xvaluediv8,8

If one wants to alter the height instead of the width, one simply changes some 
values intelligently.

For -B values is the same as X just with other signs.

Is this the best way to keep the original aspect? Otherwise the movie always 
gets stretched, either horizonally or vertically.

The according output (-g 720x576 --import_asr 2 -f 25.000,0) of the 
mplayerprobe.sh script doesn't work on all moves. Actually it didn't work on 
one of my movies (DVB Streams).

Would it not be possible to integrate the algorithm above into transcodes 
converting algorithm? It would then most likely be faster. Of course I don't 
know if transcode stretches every video and not just mine.

It is funny why xine can play (unstreched) a vob video with a size of 720:576 
and an aspect ratio of 16:9 and not an avi file with the same aspectratio and 
size (the avi file is converted with transcode (so transcode streches the 
movie, but actually it doesn't i believe, because tcprobe still shows nearly 
the same aspect and size. So where and what is the problem)).

Reply via email to