NapoleonWils0n / ffmpeg-scripts

ffmpeg shell scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feedback and or bug

hn-88 opened this issue · comments

commented

Hi,

When I run overlay-pip with
./overlay-pip -i "East Perth Harbour ghosts.mp4" -v Earth720.mp4 -p 2
I get something like the attached file. That is, the overlay is happening twice, with

  1. the correct overlay video, Earth720, appearing on the left instead of as a pip

  2. the 'background' video appearing as pip on the right hand side overlaid on itself.

Screenshot from East Perth Harbour ghosts-pip-2020-05-09-08-54-17 mp4

commented

Interestingly, for
./overlay-pip -i Earth720.mp4 -v "East Perth Harbour ghosts.mp4" -p 2
I get Earth as the pip instead of harbour. Initially Earth is seen (for the first 2 seconds, as I gave -p 2) Then Earth becomes small, and harbour becomes the background, but with the aspect ratio of Earth.

Screenshot from Earth720-pip-2020-05-09-09-11-41 mp4

hi mate

the videos have to be exactly the same or you might gets some odd issues

eg the videos have to be the same size, aspect ratio, framerate etc

have you tried using the same video for both base video and the overlay,
to see if you get any issues

looking at the images the videos look like they have a different aspect ratio

commented

If you use the same video for both the base and overlay, you may not be able to distinguish the issues :) If I use this, for example, two videos with exactly the same number of pixels and aspect ratio,
./overlay-pip -i Video3.mp4 -v "East Perth Harbour ghosts.mp4" -p 2
At first Video3 plays,
Screenshot from 2020-05-10 08-47-28
then at the 2 second mark, Video3 becomes the pip,
Screenshot from 2020-05-10 08-47-54

hi mate
my bad i didnt mean the same video silly typo
i meant videos encoded the same way eg size, frame rate codec

the script will put the base video in the pip window

and replace the base video with the overlay video
when the the overlay video stops playing the main video in the pip window goes back to the main window

where you expecting it to work the other way around or something

commented

the script will put the base video in the pip window

and replace the base video with the overlay video
when the the overlay video stops playing the main video in the pip window goes back to the main window

where you expecting it to work the other way around or something

Ah! Yes. So, if this is the expected behaviour, then everything is fine :)