Re: [FFmpeg-user] filter_complex with 2 images generates 3 files instead of one

2023-03-01 Thread Gabriel Dina
"In your example all three inputs are images, so the output can be only one image."-> this doesn;t happen. The output consists in: 1. the original image 2. the original image + logo 3. the original image + logo + info I wish it were simpler! Gabriel On Wed, Mar 1, 2023 at 12:06 PM Michael Koch

Re: [FFmpeg-user] filter_complex with 2 images generates 3 files instead of one

2023-03-01 Thread Michael Koch
Am 01.03.2023 um 10:55 schrieb Gabriel Dina: 1 frame, indeed, but is the first image without logo and info. Maybe it is a way to get the last frame? In your example all three inputs are images, so the output can only one image. If the first input is a video, you could add -ss 5 before this

Re: [FFmpeg-user] filter_complex with 2 images generates 3 files instead of one

2023-03-01 Thread Gabriel Dina
1 frame, indeed, but is the first image without logo and info. Maybe it is a way to get the last frame? Many thanks. Gabriel On Wed, Mar 1, 2023 at 11:49 AM Michael Koch wrote: > Am 01.03.2023 um 10:39 schrieb Gabriel Dina: > > Updated command: > > > > ffmpeg -i *uploads/test.png* -i

Re: [FFmpeg-user] filter_complex with 2 images generates 3 files instead of one

2023-03-01 Thread Michael Koch
Am 01.03.2023 um 10:39 schrieb Gabriel Dina: Updated command: ffmpeg -i *uploads/test.png* -i ./assets/logo.png -i ./assets/telefon.png -filter_complex

Re: [FFmpeg-user] filter_complex with 2 images generates 3 files instead of one

2023-03-01 Thread Gabriel Dina
Updated command: ffmpeg -i *uploads/test.png* -i ./assets/logo.png -i ./assets/telefon.png -filter_complex "[1][0]scale2ref=w='iw*1/5':h='ow/mdar'[v1];[2][0]scale2ref=w='iw*9/10':h='ow/mdar'[v2];[0][v1]overlay=main_w-overlay_w-5:5[vid];[vid][v2]overlay=10:main_h-overlay_h-10"* test.png* Result:

Re: [FFmpeg-user] filter_complex with 2 images generates 3 files instead of one

2023-03-01 Thread Michael Koch
Am 01.03.2023 um 10:23 schrieb Michael Koch: Am 01.03.2023 um 10:12 schrieb Gabriel Dina: ffmpeg -i uploads/image.mp4 -i ./assets/logo.png -i ./assets/info.png -filter_complex "[1][0]scale2ref=w='iw

Re: [FFmpeg-user] filter_complex with 2 images generates 3 files instead of one

2023-03-01 Thread Michael Koch
Am 01.03.2023 um 10:12 schrieb Gabriel Dina: ffmpeg -i uploads/image.mp4 -i ./assets/logo.png -i ./assets/info.png -filter_complex "[1][0]scale2ref=w='iw

[FFmpeg-user] filter_complex with 2 images generates 3 files instead of one

2023-03-01 Thread Gabriel Dina
ffmpeg -i uploads/image.mp4 -i ./assets/logo.png -i ./assets/info.png -filter_complex "[1][0]scale2ref=w='iw *1/5':h='ow/mdar'[v1];[2][0]scale2ref=w='iw*9/10':h='ow/mdar'[v2];[0][v1]overlay=main_w-overlay_w-5:5[vid];[vid][v2]overlay=10:main_h-overlay_h-10" uploads/image%0d.mp4 If I remove %0d