3 # Example of how to apply a videocrop effect in a GES pipeline.
5 # Crop and Scale the circular pattern, and put into the white rectangle of the
24 H_RATIO=$((WIDTH / SCALED_WIDTH))
25 V_RATIO=$((HEIGHT / SCALED_HEIGHT))
28 +test-clip smpte s=0 d=2 \
29 +test-clip circular s=0 d=2 set-alpha 0.9 \
32 +effect videocrop set-top $CROP_TOP set-bottom $CROP_BOTTOM set-left $CROP_LEFT set-right $CROP_RIGHT \
33 set-width $((SCALED_WIDTH - CROP_LEFT / H_RATIO - CROP_RIGHT / H_RATIO)) \
34 set-height $((SCALED_HEIGHT - CROP_TOP / V_RATIO - CROP_BOTTOM / V_RATIO))