Re: [FFmpeg-user] write output of find_rect to a file?

2020-07-12 Thread Moritz Barsnick
On Sat, Jul 11, 2020 at 14:52:43 -0700, Hans Carlson wrote: > > The above command works fine, but is it possible to print the number of > > the frame instead of the timestamp? > I might be wrong, but I believe you need to infer the frame number based > on where it appears in the output. Given

Re: [FFmpeg-user] write output of find_rect to a file?

2020-07-11 Thread Mark Filipak
On 07/11/2020 05:52 PM, Hans Carlson wrote: On Sat, 11 Jul 2020, Michael Koch wrote: -snip- I did search the documentation for a list of variables, but didn't find any. Also "pkt_pts_time" seems to be undocumented. I've never found any documentation for this either.  The closest is the

Re: [FFmpeg-user] write output of find_rect to a file?

2020-07-11 Thread Hans Carlson
On Sat, 11 Jul 2020, Michael Koch wrote: $ ffprobe -f lavfi -i movie=input.mp4,find_rect=options -show_entries frame=pkt_pts_time:frame_tags=lavfi.rect.w,lavfi.rect.h,lavfi.rect.x,lavfi.rect.y -of csv The above command works fine, but is it possible to print the number of the frame instead

Re: [FFmpeg-user] write output of find_rect to a file?

2020-07-11 Thread Michael Koch
Hi Moritz, Hello, I want to track an object and need the x,y coordinates of this object for each frame. Is it possible to write the output of the find_rect filter to a file? I don't have any good command line for find_rect handy, but it should work with something like this (untested, of

Re: [FFmpeg-user] write output of find_rect to a file?

2020-07-09 Thread Valentin Schweitzer
> Unfortunately I can't compile ffmpeg myself on my Windows system. If you are comfortable with compiling FFmpeg in general but lack the tools on Windows, you could try the media-autobuild suite. https://github.com/m-ab-s/media-autobuild_suite If you need to recompile FFmpeg you can keep your

Re: [FFmpeg-user] write output of find_rect to a file?

2020-06-30 Thread Michael Koch
Am 29.06.2020 um 22:28 schrieb Moritz Barsnick: On Mon, Jun 29, 2020 at 17:35:50 +0200, Michael Koch wrote: Very good, that's exactly what I need. I did already make some tests with -show_entries before I posted this question. But I didn't know the names of the variables "lavfi.rect.x" and

Re: [FFmpeg-user] write output of find_rect to a file?

2020-06-29 Thread Moritz Barsnick
On Mon, Jun 29, 2020 at 17:35:50 +0200, Michael Koch wrote: > Very good, that's exactly what I need. I did already make some tests > with -show_entries before I posted this question. But I didn't know the > names of the variables "lavfi.rect.x" and "lavfi.rect.y". Are these > variables documented

Re: [FFmpeg-user] write output of find_rect to a file?

2020-06-29 Thread Michael Koch
Hi Moritz, I don't have any good command line for find_rect handy, but it should work with something like this (untested, of course): $ ffprobe -f lavfi -i movie=input.mp4,find_rect=options -show_entries frame=pkt_pts_time:frame_tags=lavfi.rect.w,lavfi.rect.h,lavfi.rect.x,lavfi.rect.y -of

Re: [FFmpeg-user] write output of find_rect to a file?

2020-06-29 Thread Moritz Barsnick
Hi Michael, On Mon, Jun 29, 2020 at 13:24:30 +0200, Michael Koch wrote: > Hello, > > I want to track an object and need the x,y coordinates of this object > for each frame. > Is it possible to write the output of the find_rect filter to a file? I don't have any good command line for find_rect

[FFmpeg-user] write output of find_rect to a file?

2020-06-29 Thread Michael Koch
Hello, I want to track an object and need the x,y coordinates of this object for each frame. Is it possible to write the output of the find_rect filter to a file? Michael ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org