View Single Post
rheve's Avatar
Posts: 108 | Thanked: 6 times | Joined on Feb 2007 @ France
#7
Originally Posted by pmaxx69 View Post
Hi!
thanks for your reply.
You're welcome.
Originally Posted by pmaxx69 View Post
Hi!
In the next version i will add a option to force the destination frame rate to any value or to leave as is.
Great. In general, it is a good idea to avoid modification of the frame rate (can lead to synchro issues) unless you use integer division (1 out of 2 or 1 out of 3 for example)
Originally Posted by pmaxx69 View Post
Hi!
If you make some tests, please let me know :-)
I already did using mencoder. I convert my daily tv shows in 400x240, original frame rate, 784kbps for video and 192 kbps for audio, and it runs very smoothly.
Originally Posted by pmaxx69 View Post
Hi!
If you are interested, this is the formula that i use:

Width/Height: Source video resolution
dstWidth/dstHeight: Destination video resolution
maxWidth/maxHeight: Max Width/Height destination video resolution (400x240 or 400x224)
VideoRatio = Width/Height

1) - Fit Width
dstWidth = maxWidth
dstHeight = Round((1/VideoRatio) * dstWidth/16)*16 : I use multiples of 16

2) - Fit Height
dstHeight = maxHeight
dstWidth := Round(VideoRatio * dstHeight/16)*16;

3) - Stretch
dstWidth = maxWidth
dstHeight = maxHeight

Then i calc the crop values (multiples of 2) to pass to FFMPEG if dstHeight>maxHeight or dstWidth>maxWidth

I want add a option to force destination VideoRatio (in the next versions).

Paolo
Maybe an other way to compute the new size would be:
if VideoRatio < 400/240 then fit width else fit height.

This way you do not crop
__________________
N800
"Bois la Mondeuse, pète la dameuse. Qui bois la gnôle, casse la bagnole"