Re: [FFmpeg-user] How to dynamically drop frames as required to keep transcoding real time?

2021-04-08 Thread Mark Filipak (ffmpeg)

On 2021-04-08 04:56, Nicolas George wrote:

Adrian Cable (12021-04-08):

Mark – yes – you’re understanding exactly right! I was thinking
specifically of the encoder ‘throttle’ being a frame rate control, but
other forms of quality control that could be self-adjusted by the
encoder to keep up with the input would also work for me.

I did look through the history here but couldn’t find anything quite
applicable. I do appreciate you taking the time to understand my
issue! Hopefully someone who has direct experience of how to achieve
this will read this as a result and be able to help.


You realize that you are wasting your time by ignoring Carl Eugen's
authoritative answer, right?

If you want real help with your problem, start by stopping your
top-posting.

Regards,


For some unknown reason, We don't always get posts. I didn't get Carl Eugen's authoritative answer. 
I responded to Adrian's question because no one else seemed to respond. I'm posting this simply to 
inform you.


Regards,
Mark.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] -b:v option

2021-04-08 Thread Mar Andrés López
Sorry I would have to specify a bit more.


I want to do this in order to generate a DASH content, one of the profiles 
sould have the original bitrate, and the other ones fixed values. As an example:


ffmpeg -i bunny.mp4 -preset superfast -r 25 -vcodec libx264 -acodec aac -b:a 
128k -ac 1 -ar 44100 -map v:0 -b:v:0 source -map v:0 -b:v:1 72 -map v:0 
-b:v:2 36 -map 0:a? -f dash -segment_time 5000 
C:\ComponentsDeployment\CSD_DATA\VCS\DashStreams\9780081d-c864-4420-9669-8a9feb53f4a6\manifest.mpd.


So I would have the fist profile with the original bitrate  -b:v:0 source, the 
second one with 720kbps and the third one with 360kbps.


On the other one if not posible, what happens if I set this command?


ffmpeg -i bunny.mp4 -preset superfast -r 25 -vcodec libx264 -acodec aac -b:a 
128k -ac 1 -ar 44100 -map v:0 -b:v:0 108 -map v:0 -b:v:1 72 -map v:0 
-b:v:2 36 -map 0:a? -f dash -segment_time 5000 
C:\ComponentsDeployment\CSD_DATA\VCS\DashStreams\9780081d-c864-4420-9669-8a9feb53f4a6\manifest.mpd


And bunny.mp4 has a bitrate of 795kbps, which bitrate would be displayed in 
first profile 1080kbps, does make sense or is posible to increase bitrate??


De: ffmpeg-user  en nombre de Carl Eugen Hoyos 

Enviado: jueves, 8 de abril de 2021 12:47:25
Para: FFmpeg user questions
Asunto: Re: [FFmpeg-user] -b:v option




> Am 08.04.2021 um 12:45 schrieb Mar Andrés López :
>
> Is posible to specify bitrate option -b:v as the bitrate from the input? 
> instead of doing -b:v 300k is posible for example -b:v source, which would 
> output the bitrate from original video?

No, technically this would make very little sense.

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://urldefense.com/v3/__https://ffmpeg.org/mailman/listinfo/ffmpeg-user__;!!MvyJQugb!XbuxwPc6eGm_qYVExild2vph8Jtgv6b8ZVgFgYxvIRrBs_DBmiNAHO93Ks70568$

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

P Please consider the environment before printing this e-mail.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] -b:v option

2021-04-08 Thread Carl Eugen Hoyos



> Am 08.04.2021 um 12:45 schrieb Mar Andrés López :
> 
> Is posible to specify bitrate option -b:v as the bitrate from the input? 
> instead of doing -b:v 300k is posible for example -b:v source, which would 
> output the bitrate from original video?

No, technically this would make very little sense.

Carl Eugen 
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] -b:v option

2021-04-08 Thread Mar Andrés López
Dear all,


Is posible to specify bitrate option -b:v as the bitrate from the input? 
instead of doing -b:v 300k is posible for example -b:v source, which would 
output the bitrate from original video?


Aa lot of thanks.

P Please consider the environment before printing this e-mail.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Plotting Circles and labels on individual frames of a movie

2021-04-08 Thread Rainer M Krug
Thanks Michael - your book becomes even more valuable!


> On 8 Apr 2021, at 11:12, Michael Koch  wrote:
> 
> Am 08.04.2021 um 11:10 schrieb Rainer M Krug:
>> Hi Nicolas
>> 
>>> On 8 Apr 2021, at 10:58, Nicolas George  wrote:
>>> 
>>> Rainer M Krug (12021-04-08):
 I have found “draw_text”
 (https://ffmpeg.org/ffmpeg-filters.html#drawtext), but I have no idea
 how I could do this. We can assume that I have a text file with the
 following columns:
 
 FRAME: the frame on which the labels and circle should be plotted
 X: the x-coordinate
 Y: the y=coordinate
 LABEL: label for the point
 
 Also possibly important, there are multiple (many) particles for which
 circles and labels need to be plotted on each frame.
>>> This looks like something ASS subtitles can do easily.
> 
> Good idea!
> 
>> Interesting - could you give me some more pointers? Formats?
> 
> Chapter 2.139 in my book.
> 
> Michael
> 
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

--
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Orcid ID: -0002-7490-0066

Department of Evolutionary Biology and Environmental Studies
University of Zürich
Office Y34-J-74
Winterthurerstrasse 190
8075 Zürich
Switzerland

Office: +41 (0)44 635 47 64
Cell:   +41 (0)78 630 66 57
email:  rainer.k...@uzh.ch
rai...@krugs.de
Skype: RMkrug

PGP: 0x0F52F982





smime.p7s
Description: S/MIME cryptographic signature
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Plotting Circles and labels on individual frames of a movie

2021-04-08 Thread Rainer M Krug


> On 8 Apr 2021, at 10:23, Michael Koch  wrote:
> 
> Am 08.04.2021 um 09:46 schrieb Rainer M Krug:
>> Hi
>> 
>> I have a series of videos of moving particles (multiple particles per frame 
>> / movie), and would like to add a circle around each particle and add a 
>> label. At the moment I am using a script in R to plot, for each frame, these 
>> circles and labels into a png with alpha channel, combine the pngs to a 
>> movie, and overlay this movie to the original movie (see the thread 'Overlay 
>> images to frames in video’ for the background).
>> 
>> Now I realised, that the actual plotting of the labels takes up nearly 40% 
>> of the time of the R script and I would like to make this process faster.
>> 
>> I have found “draw_text” (https://ffmpeg.org/ffmpeg-filters.html#drawtext), 
>> but I have no idea how I could do this. We can assume that I have a text 
>> file with the following columns:
>> 
>> FRAME: the frame on which the labels and circle should be plotted
>> X: the x-coordinate
>> Y: the y=coordinate
>> LABEL: label for the point
>> 
>> Also possibly important, there are multiple (many) particles for which 
>> circles and labels need to be plotted on each frame.
>> 
>> I also found the “sendcmd” 
>> (https://ffmpeg.org/ffmpeg-filters.html#sendcmd_002c-asendcmd) but I do not 
>> get my head around how I can combine these two.
> 
> It's possible to do this with FFmpeg if the number of particles is known in 
> advance

Yes it is

> and constant in all frames.

No it isn’t.
But I should be able to extend the number of particles by plotting with size 0 
or outside the frame?


> Use several drawtext commands, one for each particle.

So I would have for each particle and each frame, a draw text command in the 
command,txt file which is read using the sendcmd command - is this correct?

Final point: how can I specify the frame as the start-end? I only fsaw in the 
documentation how to specify the time?

> But with a changing number of particles I have no idea how to do it. There 
> are a few examples for sendcmd in chapter 2.86 of my book:
> http://www.astro-electronic.de/FFmpeg_Book.pdf 
> 

Thanks for the link - I will loo into it, and it looks definitely useful!

Rainer

> 
> Michael
> 
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org 
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user 
> 
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org  with 
> subject "unsubscribe".

--
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Orcid ID: -0002-7490-0066

Department of Evolutionary Biology and Environmental Studies
University of Zürich
Office Y34-J-74
Winterthurerstrasse 190
8075 Zürich
Switzerland

Office: +41 (0)44 635 47 64
Cell:   +41 (0)78 630 66 57
email:  rainer.k...@uzh.ch
rai...@krugs.de
Skype: RMkrug

PGP: 0x0F52F982





smime.p7s
Description: S/MIME cryptographic signature
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Plotting Circles and labels on individual frames of a movie

2021-04-08 Thread Michael Koch

Am 08.04.2021 um 11:10 schrieb Rainer M Krug:

Hi Nicolas


On 8 Apr 2021, at 10:58, Nicolas George  wrote:

Rainer M Krug (12021-04-08):

I have found “draw_text”
(https://ffmpeg.org/ffmpeg-filters.html#drawtext), but I have no idea
how I could do this. We can assume that I have a text file with the
following columns:

FRAME: the frame on which the labels and circle should be plotted
X: the x-coordinate
Y: the y=coordinate
LABEL: label for the point

Also possibly important, there are multiple (many) particles for which
circles and labels need to be plotted on each frame.

This looks like something ASS subtitles can do easily.


Good idea!


Interesting - could you give me some more pointers? Formats?


Chapter 2.139 in my book.

Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Plotting Circles and labels on individual frames of a movie

2021-04-08 Thread Rainer M Krug
Hi Nicolas

> On 8 Apr 2021, at 10:58, Nicolas George  wrote:
> 
> Rainer M Krug (12021-04-08):
>> I have found “draw_text”
>> (https://ffmpeg.org/ffmpeg-filters.html#drawtext), but I have no idea
>> how I could do this. We can assume that I have a text file with the
>> following columns:
>> 
>> FRAME: the frame on which the labels and circle should be plotted
>> X: the x-coordinate
>> Y: the y=coordinate
>> LABEL: label for the point
>> 
>> Also possibly important, there are multiple (many) particles for which
>> circles and labels need to be plotted on each frame. 
> 
> This looks like something ASS subtitles can do easily.

Interesting - could you give me some more pointers? Formats?

Rainer


> 
> Regards,
> 
> -- 
>  Nicolas George
> 

--
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Orcid ID: -0002-7490-0066

Department of Evolutionary Biology and Environmental Studies
University of Zürich
Office Y34-J-74
Winterthurerstrasse 190
8075 Zürich
Switzerland

Office: +41 (0)44 635 47 64
Cell:   +41 (0)78 630 66 57
email:  rainer.k...@uzh.ch
rai...@krugs.de
Skype: RMkrug

PGP: 0x0F52F982





smime.p7s
Description: S/MIME cryptographic signature
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Plotting Circles and labels on individual frames of a movie

2021-04-08 Thread Nicolas George
Rainer M Krug (12021-04-08):
> I have found “draw_text”
> (https://ffmpeg.org/ffmpeg-filters.html#drawtext), but I have no idea
> how I could do this. We can assume that I have a text file with the
> following columns:
> 
> FRAME: the frame on which the labels and circle should be plotted
> X: the x-coordinate
> Y: the y=coordinate
> LABEL: label for the point
> 
> Also possibly important, there are multiple (many) particles for which
> circles and labels need to be plotted on each frame. 

This looks like something ASS subtitles can do easily.

Regards,

-- 
  Nicolas George


signature.asc
Description: PGP signature
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] How to dynamically drop frames as required to keep transcoding real time?

2021-04-08 Thread Nicolas George
Adrian Cable (12021-04-08):
> Mark – yes – you’re understanding exactly right! I was thinking
> specifically of the encoder ‘throttle’ being a frame rate control, but
> other forms of quality control that could be self-adjusted by the
> encoder to keep up with the input would also work for me.
> 
> I did look through the history here but couldn’t find anything quite
> applicable. I do appreciate you taking the time to understand my
> issue! Hopefully someone who has direct experience of how to achieve
> this will read this as a result and be able to help.

You realize that you are wasting your time by ignoring Carl Eugen's
authoritative answer, right?

If you want real help with your problem, start by stopping your
top-posting.

Regards,

-- 
  Nicolas George


signature.asc
Description: PGP signature
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Plotting Circles and labels on individual frames of a movie

2021-04-08 Thread Michael Koch

Am 08.04.2021 um 09:46 schrieb Rainer M Krug:

Hi

I have a series of videos of moving particles (multiple particles per frame / 
movie), and would like to add a circle around each particle and add a label. At 
the moment I am using a script in R to plot, for each frame, these circles and 
labels into a png with alpha channel, combine the pngs to a movie, and overlay 
this movie to the original movie (see the thread 'Overlay images to frames in 
video’ for the background).

Now I realised, that the actual plotting of the labels takes up nearly 40% of 
the time of the R script and I would like to make this process faster.

I have found “draw_text” (https://ffmpeg.org/ffmpeg-filters.html#drawtext), but 
I have no idea how I could do this. We can assume that I have a text file with 
the following columns:

FRAME: the frame on which the labels and circle should be plotted
X: the x-coordinate
Y: the y=coordinate
LABEL: label for the point

Also possibly important, there are multiple (many) particles for which circles 
and labels need to be plotted on each frame.

I also found the “sendcmd” 
(https://ffmpeg.org/ffmpeg-filters.html#sendcmd_002c-asendcmd) but I do not get 
my head around how I can combine these two.


It's possible to do this with FFmpeg if the number of particles is known 
in advance and constant in all frames. Use several drawtext commands, 
one for each particle. But with a changing number of particles I have no 
idea how to do it. There are a few examples for sendcmd in chapter 2.86 
of my book:

http://www.astro-electronic.de/FFmpeg_Book.pdf

Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Overlay images to frames in video

2021-04-08 Thread Rainer M Krug
Thanks a lot - these are the things I was afraid of missing.

 I will change it and use 'overlay=x=0:y=0’ for clarity. 

Rainer

> On 8 Apr 2021, at 09:45, Michael Koch  wrote:
> 
> Am 08.04.2021 um 09:27 schrieb Rainer M Krug:
>> ffmpeg -i ‘background_movie.avi' -i 'overlay.avi' -filter_complex 
>> 'overlay=0x0’ ‘final_movie.avi’ 
> 
> I think overlay=0x0 is not doing what you expect. It does set the x option to 
> hexadecimal 0, and it doesn't specify the y option. In your case that doesn't 
> matter because the default values are 0. You could write 'overlay=x=0:y=0' or 
> you could simplify it to just 'overlay' without any options.
> 
> Michael
> 
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

--
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Orcid ID: -0002-7490-0066

Department of Evolutionary Biology and Environmental Studies
University of Zürich
Office Y34-J-74
Winterthurerstrasse 190
8075 Zürich
Switzerland

Office: +41 (0)44 635 47 64
Cell:   +41 (0)78 630 66 57
email:  rainer.k...@uzh.ch
rai...@krugs.de
Skype: RMkrug

PGP: 0x0F52F982





smime.p7s
Description: S/MIME cryptographic signature
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] Plotting Circles and labels on individual frames of a movie

2021-04-08 Thread Rainer M Krug
Hi

I have a series of videos of moving particles (multiple particles per frame / 
movie), and would like to add a circle around each particle and add a label. At 
the moment I am using a script in R to plot, for each frame, these circles and 
labels into a png with alpha channel, combine the pngs to a movie, and overlay 
this movie to the original movie (see the thread 'Overlay images to frames in 
video’ for the background).

Now I realised, that the actual plotting of the labels takes up nearly 40% of 
the time of the R script and I would like to make this process faster.

I have found “draw_text” (https://ffmpeg.org/ffmpeg-filters.html#drawtext), but 
I have no idea how I could do this. We can assume that I have a text file with 
the following columns:

FRAME: the frame on which the labels and circle should be plotted
X: the x-coordinate
Y: the y=coordinate
LABEL: label for the point

Also possibly important, there are multiple (many) particles for which circles 
and labels need to be plotted on each frame. 

I also found the “sendcmd” 
(https://ffmpeg.org/ffmpeg-filters.html#sendcmd_002c-asendcmd) but I do not get 
my head around how I can combine these two.

Any help appreciated,

Rainer


--
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Orcid ID: -0002-7490-0066

Department of Evolutionary Biology and Environmental Studies
University of Zürich
Office Y34-J-74
Winterthurerstrasse 190
8075 Zürich
Switzerland

Office: +41 (0)44 635 47 64
Cell:   +41 (0)78 630 66 57
email:  rainer.k...@uzh.ch
rai...@krugs.de
Skype: RMkrug

PGP: 0x0F52F982





smime.p7s
Description: S/MIME cryptographic signature
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Overlay images to frames in video

2021-04-08 Thread Michael Koch

Am 08.04.2021 um 09:27 schrieb Rainer M Krug:
ffmpeg -i ‘background_movie.avi' -i 'overlay.avi' -filter_complex 
'overlay=0x0’ ‘final_movie.avi’ 


I think overlay=0x0 is not doing what you expect. It does set the x 
option to hexadecimal 0, and it doesn't specify the y option. In your 
case that doesn't matter because the default values are 0. You could 
write 'overlay=x=0:y=0' or you could simplify it to just 'overlay' 
without any options.


Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Overlay images to frames in video

2021-04-08 Thread Rainer M Krug
Thanks for your reply

Comments inline

> On 7 Apr 2021, at 21:28, pdr0  wrote:
> 
> Rainer M. Krug-2 wrote
>> Hi
>> 
>> First poster, o apologies for any forgotten info.
>> 
>> 
>> I have a video with the following metadata:
>> 
>> ```
>> $ ffprobe ./1.pre-processed.data/bemovi/20210208_00097.avi
>> ffprobe version 4.3.2 Copyright (c) 2007-2021 the FFmpeg developers
>>  built with Apple clang version 12.0.0 (clang-1200.0.32.29)
>>  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3.2_4 --enable-shared
>> --enable-pthreads --enable-version3 --enable-avresample --cc=clang
>> --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls
>> --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d
>> --enable-libmp3lame --enable-libopus --enable-librav1e
>> --enable-librubberband --enable-libsnappy --enable-libsrt
>> --enable-libtesseract --enable-libtheora --enable-libvidstab
>> --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264
>> --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma
>> --enable-libfontconfig --enable-libfreetype --enable-frei0r
>> --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb
>> --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq
>> --enable-libzimg --disable-libjack --disable-indev=jack
>> --enable-videotoolbox
>>  libavutil  56. 51.100 / 56. 51.100
>>  libavcodec 58. 91.100 / 58. 91.100
>>  libavformat58. 45.100 / 58. 45.100
>>  libavdevice58. 10.100 / 58. 10.100
>>  libavfilter 7. 85.100 /  7. 85.100
>>  libavresample   4.  0.  0 /  4.  0.  0
>>  libswscale  5.  7.100 /  5.  7.100
>>  libswresample   3.  7.100 /  3.  7.100
>>  libpostproc55.  7.100 / 55.  7.100
>> Input #0, avi, from './1.pre-processed.data/bemovi/20210208_00097.avi':
>>  Metadata:
>>encoder : Lavf58.45.100
>>  Duration: 00:00:12.50, start: 0.00, bitrate: 91831 kb/s
>>Stream #0:0: Video: png (PNG  / 0x20474E50), pal8(pc), 2048x2048,
>> 92565 kb/s, 10 fps, 10 tbr, 10 tbn, 10 tbc
>>Metadata:
>>  title   : FileAVI write  
>> ```
>> 
>> In addition, I have 125 images (jpg, but I can as easily create them as
>> png) which contain some labelling of the individual frames. The particles
>> are moving, the images are different.
>> 
>> Now I want to overlay the images over the corresponding frames.
>> 
>> What is the easiest to do this? I could convert them to a move, then
>> overlay these two, but I have the feeling I could do this in one step?
>> 
>> Any suggestions?
>> 
>> Thanks,
>> 
>> Rainer
> 
> 



> Overlay them where? What x,y position?

1:1 overlay - i.e. covering everything.

> What is the dimension of your jpg sequence?

They are the same dimensions as the video.

> 
> jpg does not specify an alpha channel (transparency information). If you
> overlay the jpg sequence over the base video layer , and assuming they are
> the same dimensions, you will "cover up" the video layer entirely . You will
> not see the video, only the jpg sequence
> 
> When you say you can "create them as PNG", does the original source have an
> alpha channel?

The images are created in a different script. I changed it to png and they have 
ab alpha channel.

I am using now the following:

ffmpeg -start_number 1 -framerate 10 -i 'frame_%d.png’ -vcodec png ‘overlay.avi'

To create the move from the png files (same frame rate and codec as the second 
movie), and

ffmpeg -i ‘background_movie.avi' -i 'overlay.avi' -filter_complex 'overlay=0x0’ 
‘final_movie.avi’

To do the actual overlay.

This is working. If I am missing something here, please let me know.


Thanks,

Rainer



> 
> 
> 
> 
> 
> 
> --
> Sent from: http://ffmpeg-users.933282.n4.nabble.com/ 
> 
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org 
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user 
> 
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org  with 
> subject "unsubscribe".

--
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Orcid ID: -0002-7490-0066

Department of Evolutionary Biology and Environmental Studies
University of Zürich
Office Y34-J-74
Winterthurerstrasse 190
8075 Zürich
Switzerland

Office: +41 (0)44 635 47 64
Cell:   +41 (0)78 630 66 57
email:  rainer.k...@uzh.ch
rai...@krugs.de
Skype: RMkrug

PGP: 0x0F52F982





smime.p7s
Description: S/MIME cryptographic signature
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] FFmpeg vsync option

2021-04-08 Thread Mar Andrés López
Dear all,


I have a video with two streams, a video stream and a metadata stream, I would 
like to set the vsync option to set the time stamps according to the video 
stream.


In the documentation ffmpeg of vsync says that:


-vsync parameter

Video sync method. For compatibility reasons old values can be specified as 
numbers. Newly added values will have to be specified as strings always.

With -map you can select from which stream the timestamps should be taken. You 
can leave either video or audio unchanged and sync the remaining stream(s) to 
the unchanged one.


I would like to use the -map option to set the timestamps of the rest of the 
streams according with my video stream, but there is no example provided. How 
could I achieve this?


A lot of thanks,

Regards.

P Please consider the environment before printing this e-mail.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".