V
V
Vadim2018-08-06 16:51:06
Video
Vadim, 2018-08-06 16:51:06

FFmpeg - overlay with negative Y offset is not applied. How to overcome?

I set the simplest filter:
ffmpeg -i video.mp4 -loop 1 -i photo.jpg -filter_complex " [0:v][1:v] overlay=x=-220:y=0 [out]" -c:v libx264 -map [out] -t 10 -y out.mp4
Everything works as it should. But if I set a negative Y offset, then the image is not overlayed:
ffmpeg -i video.mp4 -r 1 -loop 1 -i photo.jpg -filter_complex " [0:v][1:v] overlay=x=-220: y=-220 [out]" -c:v libx264 -map [out] -t 10 -y
out.mp4 Moreover, if I set the offset to -100, then ffmpeg generally crashes with the error code -1073741819. I can't figure it out and googling didn't turn up anything.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadim, 2018-08-07
@vshemarov

In general, I was convinced that this is a ffmpeg bug. Works fine on older version

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question