doc:appunti:linux:video:fix_smartphone_portrait_videos
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:appunti:linux:video:fix_smartphone_portrait_videos [2018/04/07 15:36] – [The Compromise Solution] niccolo | doc:appunti:linux:video:fix_smartphone_portrait_videos [2018/04/07 15:47] (current) – [The Gradient Overlay Mask] niccolo | ||
---|---|---|---|
Line 22: | Line 22: | ||
{{choose_crop_area.png? | {{choose_crop_area.png? | ||
- | We wrote a **[[the_python_script|Python script]]** to assist in step #1, which calculate all the required numbers just provinding two parameters: the **crop_aspect** and the **offset_y**. | + | We wrote a **[[#the_python_script|Python script]]** to assist in step #1, which calculate all the required numbers just provinding two parameters: the **crop_aspect** and the **offset_y**. |
Adjust the **crop_aspect** from 0.0 (which selects a square) to 1.0 (which selects the full rectangle of the picture). Using a square-shaped crop area we will get the **highest zoom** level into the video, but we will cut-out | Adjust the **crop_aspect** from 0.0 (which selects a square) to 1.0 (which selects the full rectangle of the picture). Using a square-shaped crop area we will get the **highest zoom** level into the video, but we will cut-out | ||
Line 36: | Line 36: | ||
===== The Gradient Overlay Mask ===== | ===== The Gradient Overlay Mask ===== | ||
- | When the cropped image is placed above the background, it is quite annoying to see the **sharp edge** of the image. A better approach is to gradually fade the image at the right and at left edges. This requires to blend the image and the background using a **gradient mask**. We prepared the mask as a PNG image, using **convert** | + | When the cropped image is placed above the background, it is quite annoying to see the **sharp edge** of the image. A better approach is to gradually fade the image at the right and at left edges. This requires to blend the image and the background using a **gradient mask**. We prepared the mask as a **{{gradient_overlay_mask.png? |
< | < | ||
Line 47: | Line 47: | ||
</ | </ | ||
- | {{gradient_overlay_mask.png?direct&150|Overlay Mask With Gradient}} | + | **NOTICE**: It seems that [[https:// |
===== The ffmpeg Recipe ===== | ===== The ffmpeg Recipe ===== | ||
Line 74: | Line 73: | ||
===== The Python Script ===== | ===== The Python Script ===== | ||
- | The Python script **smartphonevideo_2landscape** will make the calculation to prepare the whole incantation: | + | The Python script **{{smartphonevideo_2landscape.txt|smartphonevideo_2landscape}}** will make the calculation to prepare the whole incantation: |
< | < |
doc/appunti/linux/video/fix_smartphone_portrait_videos.txt · Last modified: 2018/04/07 15:47 by niccolo