Producers should have aspect ratio conversion options. As of today, each texture is stretched to fill the channel resolution.
By knowing the producers native resolution, we should have a set of parameters to apply scaling for achieving the normal aspect ratio conversions: Fill, Fit, Fill to Fit, 1:1.
The 1:1 option could be expanded or combined with position options: top left, centred, center top, bottom right etc. It might even be takes as long as "top left titlesafe", obeying the SMPTE guidelines (which actually scale between resolutions!) and snapping i.e. a logo png file to the top left titlesafe position.
Duplicate/extension of #160
@jesperstarkar by Fit and Fill to Fit do you mean keeping original aspect ratio?
I often run into this with stills. I am given a number of photos some of which were taken in portrait orientation and CCG currently stretches them to fill the screen.
Stretch: Stretch source to match channel.
Fill: Scale source, keeping aspect, until it fills channel. The source will be clipped.
Fit: Scale source, keeping aspect, util it can't be bigger without clipping. Black bars on the short sides.
1:1: Center the source without scaling. Either clipping or adding black bars.
I would recommend not to fill black bars in this case but leave the "bars" transparent or cropped from layer. So a larger background comes through. Of course this background could be solid black (or any other content).
In case anybody is interested, I currently run all incoming stills through the following script:
mogrify -resize 1920x1080 -background black -gravity center -extent 1920x1080 "filename"
It not only changes them to proper aspect ratio (16:9), but also down-/up- scales them to 1920x1080.
(This brings up another problem -- CCG takes "forever" to render hi-res stills. But this is probably subject for another bug/feature request.)
P.S. mogrify is part of ImageMagick package.
P.P.S. For transparent background, change "black" to "transparent" above.
@premultiply but of course
+++++++++++1
Today I'm dealing with this issue. Does anyone has a workaround to avoid to transcode each video to have the correct aspect ratio?
I'm not totally sure if caspar uses ffmpeg to play the media, if that is the case isn't possible to pass a flag to resize a video on the fly?
In the NRK fork we are looking at adding support for this. https://github.com/nrkno/tv-automation-casparcg-server/pull/28
The intention is to look at merging any changes back here later.
If anyone has any input on how they would like to see this work, please give it a test and give some feedback over in the PR.
Most helpful comment
I would recommend not to fill black bars in this case but leave the "bars" transparent or cropped from layer. So a larger background comes through. Of course this background could be solid black (or any other content).