Page 1 of 1

preserve Aspect ratio

Posted: Tue Sep 09, 2014 12:26 pm
by ALA
Dear steipal,

first of all: great work, I really like your GUI and product concept!

Now our current issue. Not a bug at all, but we do not know how to handle it...

We use a 720x576px input video source file with an aspect ratio of 16:9 (DAR).
That's common in a TV production environment (anomorphic widescreen).

The H.264/mp4 output of the ffastrans/ffmepg/avisynth process is, unfortumately, a 720x576px video file with an aspect ratio 5:4.
Due to the fact that ffmpeg preserves the Aspect ratio in the libx264 encoding process, I assume that avisynth recalculates the aspect ratio from the video width and height dimensions by assuming square pixels.

Is there a way to prevent this, and to get a 16:9 DAR output as expected?
I had the idea to select a "Custom AviSynth Script" filter, but I do not have an idea on how to write this script.

Thanks for every suggestion.

ALA

Re: preserve Aspect ratio

Posted: Tue Sep 09, 2014 1:02 pm
by admin
Hei ALA and thanks for using FFAStrans!

Unfortunately there is no way (to my knowledge) to set DAR in AviSynth. This is a matter for the encoder. I know about this shortcoming in the supplied encoders so I urge you to create a "Custom FFmpeg"-encoder preset to deal with it. The ffmpeg argument "-aspect 16:9" should get you through it. If you do not know how to build such a preset in FFAStrans i can help you with it.

In a future version, the "Variable" version, I will make several clip-properties available as variables to insert where you need it in FFAStrans. It's on the roadmap ;)

-steipal

Re: preserve Aspect ratio

Posted: Wed Sep 10, 2014 1:33 pm
by ALA
Your aspect ratio argument suggestion works like a charme.

Thanks!

ALA