2025-12-27, 05:46 PM
Hello
I noticed that when I play videos on Roku that are in portrait, I just get a blank screen.
I threw together a script to fix this with ffmpeg adding black bars:
Maybe not a perfect script but gets the job done for now. Does anyone know the reason for this? There is no useful information in the log, it just tries to DirectPlay the video and nothing shows.
I noticed that when I play videos on Roku that are in portrait, I just get a blank screen.
I threw together a script to fix this with ffmpeg adding black bars:
Code:
#!/usr/bin/env bash
fname="${1%.*}-landscape"
ffmpeg -i "$1" \
-vf "scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2,setsar=1" \
-c:v libx264 -pix_fmt yuv420p -profile:v high -level 4.1 \
-c:a aac -movflags +faststart \
"${fname}.mp4"Maybe not a perfect script but gets the job done for now. Does anyone know the reason for this? There is no useful information in the log, it just tries to DirectPlay the video and nothing shows.

![[Image: EJ6T8ay.png]](https://i.imgur.com/EJ6T8ay.png)