I'm trying to transcode an 854x480 h264 mp4 video to an h265 mp4 video using vaapi.

The video does come out nice looking, And encodes very quickly. But there is a black bar on the right side of the video. If I change my command to upscale to 1280x720 this does not happen. Any help appreciated, thanks.

ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i 1.mp4 -c:v hevc_vaapi -vf scale_vaapi=854:480 -ss 00:00:0.0 -t 10 -maxrate 400 output.mp4

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.