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 i

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 ./assets/l

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 "[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]overla

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 *1/5':h='ow/mdar'[v1];[2][0]scale2ref=w='iw*9/10':h='ow/mdar'[v2];[0][v1]overlay=main_w-overlay_w

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 *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

[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 from

Re: [FFmpeg-user] filter_complex out-of-sync videos

2022-01-07 Thread amindfv--- via ffmpeg-user
On Fri, Jan 07, 2022 at 12:54:06AM -0800, amindfv--- via ffmpeg-user wrote: > OS: Debian 11.2, latest ffmpeg git master. > > I've got a fairly simple filtergraph that's been giving me quite a hard time > in terms of starting or staying in sync. I've boiled it down to a test case > with three inp

[FFmpeg-user] filter_complex out-of-sync videos

2022-01-07 Thread amindfv--- via ffmpeg-user
OS: Debian 11.2, latest ffmpeg git master. I've got a fairly simple filtergraph that's been giving me quite a hard time in terms of starting or staying in sync. I've boiled it down to a test case with three input videos, two identical (i.e. the same file), which clearly shows at least a frame o

[FFmpeg-user] filter_complex: concat an image to a video, but ALSO xfade

2021-09-22 Thread Arif Driessen
Hi guys, What I have: [0:0] = thumbnail.png [1:0] = aevalsrc="-2+random(0)" (white noise) [2:0][2:1] = IN_VIDEO.avi (mono audio track) What I want: - [0:0] and [1:0] to play/loop unmodified for ${FADE_IN_DURATION_SECONDS} - THEN [0:0] will xfade into [2:0] - (however this

Re: [FFmpeg-user] filter_complex - manage missing input

2019-12-15 Thread Mark Filipak
Thanks Wayne & John. I guess I only have to find out why I'm not getting them even though I set up the list server to echo my own posts. Then I have to figure out why no one responds to my questions. Ah, well... On 12/15/2019 11:50 AM, Enrico Vittorini wrote: Hello Gents, i would need an help

[FFmpeg-user] filter_complex - manage missing input

2019-12-15 Thread Enrico Vittorini
Hello Gents, i would need an help. I am generating a mosaic with the following code: ffmpeg -re -y -i input.ts -map_chapters -1 -an -sn -dn -filter_complex "color=c=black:size=1920x1080 [base]; [0:#0xb0] setpts=PTS-STARTPTS, scale=320x240, drawtext=fontsize=30:x=(w-text_w)/2:y=(h-text_h)/2:y=200

Re: [FFmpeg-user] filter_complex > apad and -shortest

2019-03-04 Thread Gyan
On 04-03-2019 06:01 PM, Jon bae wrote: Am Mo., 4. März 2019 um 13:21 Uhr schrieb Moritz Barsnick : On Mon, Mar 04, 2019 at 17:21:08 +0530, Gyan wrote: Reproduced. Happens when all output streams are emitted from the same filtergraph. [...] Open a ticket at trac.ffmpeg.org, but search first

Re: [FFmpeg-user] filter_complex > apad and -shortest

2019-03-04 Thread Jon bae
Am Mo., 4. März 2019 um 13:21 Uhr schrieb Moritz Barsnick : > On Mon, Mar 04, 2019 at 17:21:08 +0530, Gyan wrote: > > Reproduced. Happens when all output streams are emitted from the same > > filtergraph. > [...] > > Open a ticket at trac.ffmpeg.org, but search first - there may already > > be one

Re: [FFmpeg-user] filter_complex > apad and -shortest

2019-03-04 Thread Moritz Barsnick
On Mon, Mar 04, 2019 at 17:21:08 +0530, Gyan wrote: > Reproduced. Happens when all output streams are emitted from the same > filtergraph. [...] > Open a ticket at trac.ffmpeg.org, but search first - there may already > be one. There is already one: https://trac.ffmpeg.org/ticket/3789 "shortest

Re: [FFmpeg-user] filter_complex > apad and -shortest

2019-03-04 Thread Gyan
On 04-03-2019 03:58 PM, Jon bae wrote: ffmpeg -i input.mp4 -filter_complex "[0:v]null;[0:a]apad,anull" -shortest -f null -* Reproduced. Happens when all output streams are emitted from the same filtergraph. Doesn't happen with, e.g.     ffmpeg -i input.mp4 -filter_complex "[0:v]null" -filte

Re: [FFmpeg-user] filter_complex > apad and -shortest

2019-03-04 Thread Moritz Barsnick
On Mon, Mar 04, 2019 at 11:45:16 +0100, Michael Koch wrote: > If audio and video come from the same source, then don't they have > already the same length? Not necessarily. Streams within a container can have different lengths. Moritz ___ ffmpeg-user m

Re: [FFmpeg-user] filter_complex > apad and -shortest

2019-03-04 Thread Michael Koch
Am 04.03.2019 um 11:28 schrieb Jon bae: Hello! Is there a way to apply filter_complex with video filter + audio filter *apad *and on top using -shortest in command line command? When I run this: *ffmpeg -i input.mp4 -filter_complex "[0:v]null;[0:a]apad,anull" -shortest -f null -* It end up in

[FFmpeg-user] filter_complex > apad and -shortest

2019-03-04 Thread Jon bae
Hello! Is there a way to apply filter_complex with video filter + audio filter *apad *and on top using -shortest in command line command? When I run this: *ffmpeg -i input.mp4 -filter_complex "[0:v]null;[0:a]apad,anull" -shortest -f null -* It end up in endless encoding... ffmpeg version is th

Re: [FFmpeg-user] filter_complex and map. Am i confused or bug?

2019-01-31 Thread Alex Molon
Hi Gyan, Thanks a lot, Seems to work as expected now :) Alex Molon -Original Message- From: ffmpeg-user [mailto:ffmpeg-user-boun...@ffmpeg.org] On Behalf Of Gyan Sent: 31 January 2019 12:59 To: ffmpeg-user@ffmpeg.org Subject: Re: [FFmpeg-user] filter_complex and map. Am i confused or

Re: [FFmpeg-user] filter_complex and map. Am i confused or bug?

2019-01-31 Thread Alex Molon
o:ffmpeg-user-boun...@ffmpeg.org] On Behalf Of Alex Molon Sent: 31 January 2019 12:52 To: FFmpeg user questions Subject: Re: [FFmpeg-user] filter_complex and map. Am i confused or bug? Hi Carl, My problem actually is not the order itself, but how the single tracks are actually enco

Re: [FFmpeg-user] filter_complex and map. Am i confused or bug?

2019-01-31 Thread Gyan
On 31-01-2019 06:11 PM, Alex Molon wrote: -b:v:vidout1 2M -minrate:v:vidout1 2M -maxrate:v:vidout1 2M \ <- I specify that [vidout1] has to be encoded in 2M/2M/2M -b:v:vidout2 1M -minrate:v:vidout2 1M -maxrate:v:vidout2 1M \ <- I specify that [vidout2] has to be encoded in 1M/1M/1M Stream s

Re: [FFmpeg-user] filter_complex and map. Am i confused or bug?

2019-01-31 Thread Alex Molon
Eugen Hoyos Sent: 31 January 2019 12:45 To: FFmpeg user questions Subject: Re: [FFmpeg-user] filter_complex and map. Am i confused or bug? 2019-01-31 13:41 GMT+01:00, Alex Molon : > Basically I have a file with a single video track and a single audio track. > > What I want to achieve i

Re: [FFmpeg-user] filter_complex and map. Am i confused or bug?

2019-01-31 Thread Carl Eugen Hoyos
2019-01-31 13:41 GMT+01:00, Alex Molon : > Basically I have a file with a single video track and a single audio track. > > What I want to achieve is: > > > > a) Scale the video track to 720x576 and encode it in H264 @ 2M with 2M > minrate and 2M maxrate > > b) Scale the video track to 640x480 and

[FFmpeg-user] filter_complex and map. Am i confused or bug?

2019-01-31 Thread Alex Molon
Hi guys, What I'm trying to do, in theory, should be very simple but it seems that I miss to understand about how ffmpeg routes different tracks. Basically I have a file with a single video track and a single audio track. What I want to achieve is: a) Scale the video track to 720x576 and

Re: [FFmpeg-user] filter_complex

2018-11-15 Thread Mettavihari D
Thank you -:) On Thu, 15 Nov 2018, 17:02 DopeLabs fyi... > > - is a hyphen > > ' single quote > " double quote > > cheers =] > > > > On Nov 15, 2018, at 1:20 27AM, Mettavihari D wrote: > > > > Greetings all, > > > > The Problem is solved. > > It was only a problem of the correct hyphens around

Re: [FFmpeg-user] filter_complex

2018-11-15 Thread DopeLabs
fyi... - is a hyphen ' single quote " double quote cheers =] > On Nov 15, 2018, at 1:20 27AM, Mettavihari D wrote: > > Greetings all, > > The Problem is solved. > It was only a problem of the correct hyphens around the object > > '0:a’ should be '0:a' > > ffmpeg -y -threads 16 -i video.mp

Re: [FFmpeg-user] filter_complex

2018-11-15 Thread Mettavihari D
Greetings all, The Problem is solved. It was only a problem of the correct hyphens around the object '0:a’ should be '0:a' ffmpeg -y -threads 16 -i video.mp4 -i logo.png -filter_complex "[1:v]scale=100:-1[logo];[0:v]scale=720:576[vid];[vid][logo]overlay=590:40[out]" -map '[out]' -map '0:a' -pre

Re: [FFmpeg-user] filter_complex

2018-11-14 Thread Mettavihari D
Greetings Joel -or alternately paste this into the terminal: ffmpeg -y -threads 16 -i $FILE1.mp4 -i vidasa11.png -filter_complex \ [1:v]scale=100:-1[logo]; "[0:v]scale=720:576[vid];" \ [vid][logo]overlay=590:40[out] -map [out] -map 0:a -preset slower \ -profile:v main -level 3.1 -c:v libx264

Re: [FFmpeg-user] filter_complex

2018-11-14 Thread Joel Roth
On Thu, Nov 15, 2018 at 09:14:40AM +0530, Mettavihari D wrote: > Greetings > > I need a bit of help to understand how to use filter_complex > I have a video file where I need to insert a logo in the video file. > > I have been suggested the following command > > ffmpeg -y -threads 16 -i $FILE1.m

[FFmpeg-user] filter_complex

2018-11-14 Thread Mettavihari D
Greetings I need a bit of help to understand how to use filter_complex I have a video file where I need to insert a logo in the video file. I have been suggested the following command ffmpeg -y -threads 16 -i $FILE1.mp4 -i vidasa11.png -filter_complex [1:v]scale=100:-1[logo]; "[0:v]scale=720:576

[FFmpeg-user] filter_complex

2018-11-14 Thread Mettavihari D
Greetings I need a bit of help to understand how to use filter_complex I have a video file where I need to insert a logo in the video file. I have been suggested the following command ffmpeg -y -threads 16 -i $FILE1.mp4 -i vidasa11.png -filter_complex [1:v]scale=100:-1[logo]; "[0:v]scale=720:576

Re: [FFmpeg-user] filter_complex concat large number of files.

2018-05-31 Thread Gyan Doshi
On 01-06-2018 05:58 AM, William C Bonner wrote: I'm using ffmpeg to concatenate a large number of files from my dash cam and then speed things up by a factor of 60. It works properly when the number of files is small, but fails as the filter_complex option string expands. I'm generating the co

[FFmpeg-user] filter_complex concat large number of files.

2018-05-31 Thread William C Bonner
I'm using ffmpeg to concatenate a large number of files from my dash cam and then speed things up by a factor of 60. It works properly when the number of files is small, but fails as the filter_complex option string expands. I'm generating the command line from a program. From the ffmpeg generate

Re: [FFmpeg-user] filter_complex vs vf with one filter

2017-11-18 Thread Gyan Doshi
On 11/18/2017 9:22 PM, Carl Eugen Hoyos wrote: This has come up before Could you point me to the report? See this thread: https://ffmpeg.org/pipermail/ffmpeg-user/2017-May/036078.html Regards, Gyan ___ ffmpeg-user mailing list ffmpeg-user@ffm

Re: [FFmpeg-user] filter_complex vs vf with one filter

2017-11-18 Thread Hans Carlson
On Sat, 18 Nov 2017, Gyan Doshi wrote: You can use 'scale=-1:720:flags=bicubic' in filter_complex to achieve the same result. Thanks, that worked, but now the obvious question is which one is "better"... quality-wise? I'm not that concerned about the size difference, it was just an indicati

Re: [FFmpeg-user] filter_complex vs vf with one filter

2017-11-18 Thread Carl Eugen Hoyos
2017-11-18 6:33 GMT+01:00 Gyan Doshi : > > On 11/18/2017 10:45 AM, Hans Carlson wrote: >> >> What's the difference between "-filter_complex" and "-vf" when >> only one filter is used? Specially, when the "scale" filter is used. > > This has come up before Could you point me to the report? Thank

Re: [FFmpeg-user] filter_complex vs vf with one filter

2017-11-17 Thread Gyan Doshi
On 11/18/2017 10:45 AM, Hans Carlson wrote: What's the difference between "-filter_complex" and "-vf" when only one filter is used?  Specially, when the "scale" filter is used. This has come up before, and looks like it hasn't been fixed. In the filter_complex, the scale filter uses the bilin

[FFmpeg-user] filter_complex vs vf with one filter

2017-11-17 Thread Hans Carlson
What's the difference between "-filter_complex" and "-vf" when only one filter is used? Specially, when the "scale" filter is used. I assumed the results would be the same, but discovered the "-vf" version creates an mpeg2 file almost 80M larger for my ~600M input test file. $ ls -lGg TEST

Re: [FFmpeg-user] filter_complex for multiple rtmp stream

2017-10-23 Thread Jesse Liu
you should use api do it yourself, the ffmpeg command line tool doesn’t support what you want. > On 22 Oct 2017, at 8:44 AM, kamal shadi wrote: > > Hi all, > > I am trying to apply a filter_complex operation on multiple rtmp streams. > Here is my sample run of ffmpeg to do so: > > *ffmpeg -i

[FFmpeg-user] filter_complex for multiple rtmp stream

2017-10-21 Thread kamal shadi
Hi all, I am trying to apply a filter_complex operation on multiple rtmp streams. Here is my sample run of ffmpeg to do so: *ffmpeg -i rtmp://localhost/live1/stream1 -i rtmp://localhost/live1/stream2 -filter_complex "[1][2]overlay=x=160:y=0" -c:v libx264 -preset veryfast -b:v 2000k -bufsize 4000k

Re: [FFmpeg-user] filter_complex

2017-01-17 Thread Reto Kromer
Sankeeta Bhandari wrote: >FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg >developers, built on Jan 29 2012 17:52:15 with gcc 4.4.5 >20110214 (Red Hat 4.4.5-6) We are in 2017 and the current release is 3.2.2. ___ ffmpeg-user mailing list ffmpe

[FFmpeg-user] filter_complex

2017-01-17 Thread Sankeeta Bhandari
Hello, I am trying to run " *​filter_complex*" command on my Godaddy VPS server but it is giving "Unrecognized option 'filter_complex' " error. But when I try to run it on my local system server it works perfectly fine. I tried contacting Godaddy server support team, but they are saying they have

Re: [FFmpeg-user] -filter_complex Gudiance Needed

2014-09-25 Thread Nicolas George
Le quartidi 4 vendémiaire, an CCXXIII, Steve Kelly a écrit : > ffmpeg -i "TEST.MXF" -filter_complex "[0:1][0:2] amerge=inputs=2, > aformat=sample_fmts=s16:channel_layouts=stereo [a_out]" -map '[0:v]' -map > '[a_out]' -codec:v prores -profile:v 3 -codec:a pcm_s16le "TEST_CONV.mov" The "[0:v]" is

Re: [FFmpeg-user] -filter_complex Gudiance Needed

2014-09-25 Thread Steve Kelly
On 25 Sep 2014, at 17:19, Moritz Barsnick wrote: > Hi Steve, > > On Thu, Sep 25, 2014 at 17:05:05 +0100, Steve Kelly wrote: >> ffmpeg -i "TEST.MXF" —filter_complex "[0:1][0:2] amerge=inputs=2, >> aformat=sample_fmts=s16:channel_layouts=stereo [a_out]" -map '[0:v]' -map >> '[a_out]' -codec:v p

Re: [FFmpeg-user] -filter_complex Gudiance Needed

2014-09-25 Thread Moritz Barsnick
Hi Steve, On Thu, Sep 25, 2014 at 17:05:05 +0100, Steve Kelly wrote: > ffmpeg -i "TEST.MXF" —filter_complex "[0:1][0:2] amerge=inputs=2, > aformat=sample_fmts=s16:channel_layouts=stereo [a_out]" -map '[0:v]' -map > '[a_out]' -codec:v prores -profile:v 3 -codec:a pcm_s16le "TEST_CONV.mov" > > Gi

[FFmpeg-user] -filter_complex Gudiance Needed

2014-09-25 Thread Steve Kelly
Struggling to get -filter_complex to work. Source file is an MXF with 4 mono audio streams. I want to take the first two audio streams, convert them to 16 bit and map them into a stereo stream and re-encode the video to a prores MOV ffmpeg -i "TEST.MXF" —filter_complex "[0:1][0:2] amerge=inputs=