Re: [FFmpeg-user] ffmpeg filters

2019-11-15 Thread Michael Koch
Am 15.11.2019 um 16:35 schrieb David Previs: Hello I have the following Filters: Watermark: "overlay=x=(main_w-overlay_w)/2:y=(main_h-overlay_h)/2" Text Overlay: drawtext="fontsize=24:fontcolor=00@0.5:fontfile=/Windows/Fonts/Arial.ttf :text='Test

Re: [FFmpeg-user] ffmpeg filters

2019-11-15 Thread Michael Koch
Am 15.11.2019 um 16:53 schrieb David Previs: -y -i "c:\ffmpeg\Black.mp4" -i "C:\pw\temp\watermark99.png" -filter_complex "overlay=x=(main_w-overlay_w)/2:y=(main_h-overlay_h)/2", drawtext="fontsize=24:fontcolor=00@0.5:fontfile=/Windows/Fonts/Arial.ttf :text='Huntley Film

Re: [FFmpeg-user] How to use ffmpeg in batch mode?

2019-10-21 Thread Michael Koch
Am 20.10.2019 um 23:56 schrieb arthur brogard via ffmpeg-user: I have been trying to convert a bunch of mkv files to mp4 using ffmpeg in batch mode via a .bat file but I can't get it right. I've followed a number of suggested commands from various hits I've got on google but none of them work.

Re: [FFmpeg-user] How to use ffmpeg in batch mode?

2019-10-21 Thread Michael Koch
set OUT=%IN:mkv=mp4% please note that this renaming will give unexpected results if "mkv" is also part of the filename, for example aamkv.mkv will be renamed to aamp4.mp4 If someone knows a solution to this problem, please let us know. Michael

[FFmpeg-user] Writing PGM files

2019-10-20 Thread Michael Koch
Hello, FFmpeg can read PGM (Portable Gray Map) files that are either ASCII coded (beginning with "P2") or binary coded (beginning with "P5"). When writing a PGM file, the default format is binary. Is it also possible to write an ASCII coded PGM file? Thanks, Michael

Re: [FFmpeg-user] Problem with astats and adrawgraph

2019-11-26 Thread Michael Koch
Am 26.11.2019 um 09:55 schrieb Carl Eugen Hoyos: Am 26.11.2019 um 09:40 schrieb Michael Koch : Am 26.11.2019 um 07:11 schrieb Carl Eugen Hoyos: Am 25.11.2019 um 23:36 schrieb Michael Koch : [mp4 @ 006288c0] Frame rate very high for a muxer not efficiently supporting it. Please

Re: [FFmpeg-user] Problem with astats and adrawgraph

2019-11-26 Thread Michael Koch
Am 26.11.2019 um 07:11 schrieb Carl Eugen Hoyos: Am 25.11.2019 um 23:36 schrieb Michael Koch : [mp4 @ 006288c0] Frame rate very high for a muxer not efficiently supporting it. Please consider specifying a lower framerate, a different muxer Did you see this? I did not read the whole

Re: [FFmpeg-user] Problem with astats and adrawgraph

2019-11-26 Thread Michael Koch
Thanks for your suggestion. Adding -r 25 does indeed solve the problem. Although I don't understand why it is required. The input framerate is 25 and it's detected correctly when I use the simpler filter chain. Ah, I know why this happens, you need to use settb=1/FPS filter after vstack. This

[FFmpeg-user] Problem with astats and adrawgraph

2019-11-24 Thread Michael Koch
Hello all, I'd like to draw a curve of the RMS audio level with the following command line. The problem is that the output is a black video and no curve is visible. c://ffmpeg/ffmpeg -i P1000479.mov -lavfi astats,adrawgraph= m1="lavfi.astats.RMS level

Re: [FFmpeg-user] Problem with astats and adrawgraph

2019-11-24 Thread Michael Koch
Am 24.11.2019 um 22:17 schrieb Michael Koch: Hello all, I'd like to draw a curve of the RMS audio level with the following command line. The problem is that the output is a black video and no curve is visible. c://ffmpeg/ffmpeg -i P1000479.mov -lavfi astats,adrawgraph= m1="lavfi.astat

Re: [FFmpeg-user] Problem with astats and adrawgraph

2019-11-26 Thread Michael Koch
Am 26.11.2019 um 17:48 schrieb Michael Koch: Am 26.11.2019 um 17:32 schrieb Michael Koch: Am 26.11.2019 um 14:26 schrieb Paul B Mahol: I have a new example with testsrc2 and anoisesrc. There is no input file required for reproducing. There are two graphs: The first one uses signalstats

Re: [FFmpeg-user] Problem with astats and adrawgraph

2019-11-26 Thread Michael Koch
Am 26.11.2019 um 17:32 schrieb Michael Koch: Am 26.11.2019 um 14:26 schrieb Paul B Mahol: I have a new example with testsrc2 and anoisesrc. There is no input file required for reproducing. There are two graphs: The first one uses signalstats and drawgraph, and the second one uses astats

Re: [FFmpeg-user] Problem with astats and adrawgraph

2019-11-26 Thread Michael Koch
Am 26.11.2019 um 14:26 schrieb Paul B Mahol: I have a new example with testsrc2 and anoisesrc. There is no input file required for reproducing. There are two graphs: The first one uses signalstats and drawgraph, and the second one uses astats and adrawgraph. The problem is that the two graphs

Re: [FFmpeg-user] Problem with astats and adrawgraph

2019-11-25 Thread Michael Koch
Am 25.11.2019 um 12:04 schrieb Paul B Mahol: On 11/25/19, Michael Koch wrote: Am 25.11.2019 um 00:08 schrieb Michael Koch: I just found the solution to this problem myself: astats=metadata=1:reset=1,adrawgraph=m1=lavfi.astats.1.RMS_level The underline character is missing

Re: [FFmpeg-user] Problem with astats and adrawgraph

2019-11-25 Thread Michael Koch
Am 25.11.2019 um 00:08 schrieb Michael Koch: I just found the solution to this problem myself: astats=metadata=1:reset=1,adrawgraph=m1=lavfi.astats.1.RMS_level The underline character is missing in the documentation, where the option is called "RMS level dB". Same problem for

Re: [FFmpeg-user] Problem with astats and adrawgraph

2019-11-25 Thread Michael Koch
Am 25.11.2019 um 23:36 schrieb Michael Koch: Am 25.11.2019 um 22:46 schrieb Paul B Mahol: On 11/25/19, Michael Koch wrote: Am 25.11.2019 um 12:04 schrieb Paul B Mahol: On 11/25/19, Michael Koch wrote: Am 25.11.2019 um 00:08 schrieb Michael Koch: I just found the solution to this problem

Re: [FFmpeg-user] Problem with astats and adrawgraph

2019-11-25 Thread Michael Koch
Am 25.11.2019 um 22:46 schrieb Paul B Mahol: On 11/25/19, Michael Koch wrote: Am 25.11.2019 um 12:04 schrieb Paul B Mahol: On 11/25/19, Michael Koch wrote: Am 25.11.2019 um 00:08 schrieb Michael Koch: I just found the solution to this problem myself: astats=metadata=1:reset=1,adrawgraph=m1

[FFmpeg-user] afftfilt example

2019-10-10 Thread Michael Koch
Hi, in the documentation is a new example for afftfilt: afftfilt="real='hypot(re,im)*sin(0)':imag='hypot(re,im)*cos(0)':win_size=512:overlap=0.75" What's the point of multiplying by sin(0) and cos(0)? Isn't this exactly the same as afftfilt="real=0:imag='hypot(re,im)':win_size=512" Michael

[FFmpeg-user] rounding errors in v360 filter

2020-02-23 Thread Michael Koch
Hi, there seem to be some rounding (or +-1) errors in the v360 filter, when converting from double fisheye to equirectangular. Can be reproduced as follows: ffmpeg -f lavfi -i color=red:size=40x40 -f lavfi -i color=green:size=40x40 -lavfi "[0][1]hstack,v360=input=dfisheye:output=e" -frames

Re: [FFmpeg-user] v360 expressions

2020-02-26 Thread Michael Koch
Am 25.02.2020 um 11:37 schrieb Paul B Mahol: On 2/25/20, Paul B Mahol wrote: On 2/25/20, Michael Koch wrote: Am 25.02.2020 um 10:40 schrieb Paul B Mahol: On 2/25/20, Michael Koch wrote: Paul, On 2/19/20, Michael Koch wrote: Hi, would it be possible to allow expressions for the yaw

Re: [FFmpeg-user] audio is too short

2020-02-26 Thread Michael Koch
Am 26.02.2020 um 16:48 schrieb Michael Koch: Hi, I'd like to know if someone can reproduce this problem: Make a 6s video with audio: ffmpeg -f lavfi -i testsrc2=size=vga -f lavfi -i sine=1000 -t 6 -y video.mp4 The video plays correctly and has 6s of audio. Now mix the audio channels from

Re: [FFmpeg-user] How do I create an ffmpeg command line?

2020-03-01 Thread Michael Koch
Am 01.03.2020 um 10:16 schrieb Mark Filipak: On 03/01/2020 03:55 AM, Paul B Mahol wrote: On 3/1/20, Mark Filipak wrote: I have been looking for months, on and off. Is there any place that shows how to form a working ffmpeg command line? I'm trying to figure out how to use a fieldmatch filter.

Re: [FFmpeg-user] How do I create an ffmpeg command line?

2020-03-01 Thread Michael Koch
Am 01.03.2020 um 11:30 schrieb Mark Filipak: Then please test the following (assuming your input is actually telecined, if it is not the command is slow and makes little sense. Remember that soft-telecined is progressive and not telecined from FFmpeg‘s point of view): Not telecined from

Re: [FFmpeg-user] red-shift and blue-shift

2020-03-04 Thread Michael Koch
Am 04.03.2020 um 12:37 schrieb Paul B Mahol: On 3/4/20, Michael Koch wrote: Hi, is there any known workaround for making a red-shift or a blue-shift? I mean shifting the visible spectrum towards red or blue. In the middle of the spectrum this can be realized by the "hue&qu

Re: [FFmpeg-user] red-shift and blue-shift

2020-03-04 Thread Michael Koch
Am 04.03.2020 um 12:44 schrieb Mark Filipak: On 03/04/2020 05:52 AM, Michael Koch wrote: Hi, is there any known workaround for making a red-shift or a blue-shift? I mean shifting the visible spectrum towards red or blue. In the middle of the spectrum this can be realized by the "hue&qu

[FFmpeg-user] red-shift and blue-shift

2020-03-04 Thread Michael Koch
Hi, is there any known workaround for making a red-shift or a blue-shift? I mean shifting the visible spectrum towards red or blue. In the middle of the spectrum this can be realized by the "hue" filter, but at the end of the spectrum I want a different behaviour. I want a shift instead of a

[FFmpeg-user] Difference between video filters "copy" and "null"?

2020-03-02 Thread Michael Koch
Is there a difference between the video filters "copy" and "null"? 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

Re: [FFmpeg-user] v360 expressions

2020-02-27 Thread Michael Koch
Am 27.02.2020 um 00:14 schrieb Paul B Mahol: On 2/27/20, Michael Koch wrote: Am 25.02.2020 um 11:37 schrieb Paul B Mahol: On 2/25/20, Paul B Mahol wrote: On 2/25/20, Michael Koch wrote: Am 25.02.2020 um 10:40 schrieb Paul B Mahol: On 2/25/20, Michael Koch wrote: Paul, On 2/19/20

Re: [FFmpeg-user] v360 expressions

2020-02-27 Thread Michael Koch
Am 27.02.2020 um 11:27 schrieb Mick Finn: Ok sorry about that but the thread had as an assumption a feature most of vr360 commands maybe you have some idea where that is documented? As far as I know, there are only two sources for v360 documentation: 1. The official documentation

Re: [FFmpeg-user] rounding errors in v360 filter

2020-02-24 Thread Michael Koch
Am 23.02.2020 um 18:20 schrieb Paul B Mahol: On 2/23/20, Michael Koch wrote: Hi, there seem to be some rounding (or +-1) errors in the v360 filter, when converting from double fisheye to equirectangular. Can be reproduced as follows: ffmpeg -f lavfi -i color=red:size=40x40 -f lavfi -i color

Re: [FFmpeg-user] v360 expressions

2020-02-25 Thread Michael Koch
Paul, On 2/19/20, Michael Koch wrote: Hi, would it be possible to allow expressions for the yaw, pitch and roll parameters in the v360 filter? I have a project where I need these angles to be a function of time. Nope, would make filter 10x times slower. Would it always slow down

Re: [FFmpeg-user] v360 expressions

2020-02-25 Thread Michael Koch
Am 25.02.2020 um 10:40 schrieb Paul B Mahol: On 2/25/20, Michael Koch wrote: Paul, On 2/19/20, Michael Koch wrote: Hi, would it be possible to allow expressions for the yaw, pitch and roll parameters in the v360 filter? I have a project where I need these angles to be a function of time

Re: [FFmpeg-user] v360 expressions

2020-02-25 Thread Michael Koch
Am 25.02.2020 um 11:37 schrieb Paul B Mahol: On 2/25/20, Paul B Mahol wrote: On 2/25/20, Michael Koch wrote: Am 25.02.2020 um 10:40 schrieb Paul B Mahol: On 2/25/20, Michael Koch wrote: Paul, On 2/19/20, Michael Koch wrote: Hi, would it be possible to allow expressions for the yaw

[FFmpeg-user] Stitching two overlapping fisheye videos with maskedmerge

2020-03-03 Thread Michael Koch
I'd like to stitch two fisheye videos together to an equirectangular video. The input videos have larger than 180° field of view, so that there is an overlap region and I want to use the maskedmerge filter for merging the videos. My first (successful) test is with png images: First create the

Re: [FFmpeg-user] Stitching two overlapping fisheye videos with maskedmerge

2020-03-03 Thread Michael Koch
Am 03.03.2020 um 10:52 schrieb Paul B Mahol: Hi, On 3/3/20, Michael Koch wrote: I'd like to stitch two fisheye videos together to an equirectangular video. The input videos have larger than 180° field of view, so that there is an overlap region and I want to use the maskedmerge filter

[FFmpeg-user] audio is too short

2020-02-26 Thread Michael Koch
Hi, I'd like to know if someone can reproduce this problem: Make a 6s video with audio: ffmpeg -f lavfi -i testsrc2=size=vga -f lavfi -i sine=1000 -t 6 -y video.mp4 The video plays correctly and has 6s of audio. Now mix the audio channels from two of these input videos: ffmpeg -i video.mp4 -i

[FFmpeg-user] find_rect, write coordinates to a file

2020-01-26 Thread Michael Koch
Hello all, is it possible to track a moving object with find_rect and write the x,y coordinates to a file? Thanks, Michael ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit

[FFmpeg-user] FFplay toggle subtitles on / off?

2020-01-29 Thread Michael Koch
Does FFplay have a keyboard shortcut to toggle the subtitles on / off while playing? In the documentation I found only "t" for cycling the subtitle channel. I'm asking because I have a MP4 file with subtitles, created with FFmpeg. The subtitles are visible in VLC player, but not in FFplay.

Re: [FFmpeg-user] sendcmd and overlay

2020-02-01 Thread Michael Koch
Am 01.02.2020 um 22:15 schrieb Paul B Mahol: On 2/1/20, Michael Koch wrote: Am 01.02.2020 um 21:38 schrieb Paul B Mahol: On 2/1/20, Michael Koch wrote: Am 01.02.2020 um 21:16 schrieb Paul B Mahol: On 2/1/20, Michael Koch wrote: I want to use sendcmd to set the x,y coordinates

Re: [FFmpeg-user] sendcmd and overlay

2020-02-01 Thread Michael Koch
Console output: F:\Test>c:\ffmpeg\ffmpeg -i main.mov -i lp.mp4 -filter_complex "[1 ]scale=100:100,sendcmd=f=test.cmd[2];[0][2]overlay=x='':y=''" -q:v 2 -t 4 -y out x="":y="" are invalid arguments. They must be valid, even if they not gonna be used later. now it works. Thank you! Should

Re: [FFmpeg-user] sendcmd and overlay

2020-02-01 Thread Michael Koch
Am 01.02.2020 um 21:16 schrieb Paul B Mahol: On 2/1/20, Michael Koch wrote: I want to use sendcmd to set the x,y coordinates of the overlay filter. If I write sendcmd before overlay, I get this error message: Too many inputs specified for the "sendcmd" filter. But the two inputs ar

[FFmpeg-user] sendcmd and overlay

2020-02-01 Thread Michael Koch
I want to use sendcmd to set the x,y coordinates of the overlay filter. If I write sendcmd before overlay, I get this error message: Too many inputs specified for the "sendcmd" filter. But the two inputs are required for the overlay filter. How can this problem be solved? Console output is

Re: [FFmpeg-user] sendcmd and overlay

2020-02-01 Thread Michael Koch
Am 01.02.2020 um 21:38 schrieb Paul B Mahol: On 2/1/20, Michael Koch wrote: Am 01.02.2020 um 21:16 schrieb Paul B Mahol: On 2/1/20, Michael Koch wrote: I want to use sendcmd to set the x,y coordinates of the overlay filter. If I write sendcmd before overlay, I get this error message: Too

Re: [FFmpeg-user] sendcmd and overlay

2020-02-01 Thread Michael Koch
Am 01.02.2020 um 22:35 schrieb Paul B Mahol: On 2/1/20, Michael Koch wrote: Console output: F:\Test>c:\ffmpeg\ffmpeg -i main.mov -i lp.mp4 -filter_complex "[1 ]scale=100:100,sendcmd=f=test.cmd[2];[0][2]overlay=x='':y=''" -q:v 2 -t 4 -y out x="":y="" are inva

Re: [FFmpeg-user] xfade and acrossfade

2020-01-31 Thread Michael Koch
Am 31.01.2020 um 19:09 schrieb Paul B Mahol: On 1/31/20, Michael Koch wrote: Paul, is there any chance that the new xfade filter and the acrossfade filter could be harmonized, so that they accept the same parameters? The acrossfade filter does always fade near the end of the first input

[FFmpeg-user] xfade and acrossfade

2020-01-31 Thread Michael Koch
Paul, is there any chance that the new xfade filter and the acrossfade filter could be harmonized, so that they accept the same parameters? The acrossfade filter does always fade near the end of the first input stream. Only the duration must be specified. The xfade filter expects a duration

[FFmpeg-user] displace filter

2020-02-03 Thread Michael Koch
Is it correct that the "displace" filter allows only displacements in the [-128 ... +127] range? Michael ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email

Re: [FFmpeg-user] displace filter

2020-02-04 Thread Michael Koch
Am 04.02.2020 um 11:53 schrieb Paul B Mahol: On 2/3/20, Michael Koch wrote: Is it correct that the "displace" filter allows only displacements in the [-128 ... +127] range? It works only with 8bit pixel formats, so yes. Locally I have warp filter, which works by specifying 2D w

Re: [FFmpeg-user] V360 filter

2020-01-24 Thread Michael Koch
Paul, Single-fisheye is done as output only currently, user need to set both h_fov and v_fov. I'm just testing the new single fisheye options and as far as I have tested, everything looks good. Would it be possible to add an option for filling the unused area with a user-defined color,

Re: [FFmpeg-user] Play video and simultaneously record audio

2020-01-24 Thread Michael Koch
I've written a summary into my book in chapter 3.16 (but chapter numbering may change in future): http://www.astro-electronic.de/FFmpeg_Book.pdf Book contains obsolete info about v360 filter, please fix it. Done. Many new examples for the v360 filter added to chapters 2.48 to 2.55

Re: [FFmpeg-user] v360 expressions

2020-02-19 Thread Michael Koch
Am 19.02.2020 um 14:04 schrieb Paul B Mahol: On 2/19/20, Michael Koch wrote: Hi, would it be possible to allow expressions for the yaw, pitch and roll parameters in the v360 filter? I have a project where I need these angles to be a function of time. Nope, would make filter 10x times slower

[FFmpeg-user] v360 expressions

2020-02-19 Thread Michael Koch
Hi, would it be possible to allow expressions for the yaw, pitch and roll parameters in the v360 filter? I have a project where I need these angles to be a function of time. Michael ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org

Re: [FFmpeg-user] gif overlay miscalculating x and y, extra frame flash

2020-02-09 Thread Michael Koch
Am 09.02.2020 um 23:51 schrieb S Andreason: Hi, I continued building and rendering after asking some questions last week. After 6 days x10 hours per day of (render,test,measure,edit,repeat) I finally was able to publish my video. In doing so I made it easy to duplicate the bugs I have been

Re: [FFmpeg-user] gif overlay miscalculating x and y, extra frame flash

2020-02-10 Thread Michael Koch
Am 10.02.2020 um 09:35 schrieb Paul B Mahol: On 2/10/20, Michael Koch wrote: Am 09.02.2020 um 23:51 schrieb S Andreason: Hi, I continued building and rendering after asking some questions last week. After 6 days x10 hours per day of (render,test,measure,edit,repeat) I finally was able

Re: [FFmpeg-user] [CLT2020] FFmpeg at Chemnitzer Linux-Tage

2020-02-10 Thread Michael Koch
Am 10.02.2020 um 10:54 schrieb Thilo Borgmann: We would like to encourage everyone visiting the CLT to bring us sample files and/or command lines that show suspicious or buggy behavior - this will be your change to get your bug fixed right away! Sounds interesting. I'll visit and bring some

Re: [FFmpeg-user] rounding errors in v360 filter

2020-02-23 Thread Michael Koch
Am 23.02.2020 um 18:20 schrieb Paul B Mahol: On 2/23/20, Michael Koch wrote: Hi, there seem to be some rounding (or +-1) errors in the v360 filter, when converting from double fisheye to equirectangular. Can be reproduced as follows: ffmpeg -f lavfi -i color=red:size=40x40 -f lavfi -i color

Re: [FFmpeg-user] remap filter, unmapped pixels

2020-02-20 Thread Michael Koch
Am 20.02.2020 um 11:07 schrieb Paul B Mahol: On 2/20/20, Michael Koch wrote: I'd like to understand how the new "fill" option in the remap filter works. What is an "unmapped pixel"? How is it possible that pixels are unmapped, if the xmap and ymap files have the same size

[FFmpeg-user] remap filter, unmapped pixels

2020-02-20 Thread Michael Koch
I'd like to understand how the new "fill" option in the remap filter works. What is an "unmapped pixel"? How is it possible that pixels are unmapped, if the xmap and ymap files have the same size as the output image? Is a pixel "unmapped" if it has invalid coordinates (negative or too big) in

Re: [FFmpeg-user] remap filter, unmapped pixels

2020-02-20 Thread Michael Koch
Am 20.02.2020 um 12:49 schrieb Paul B Mahol: On 2/20/20, Michael Koch wrote: Am 20.02.2020 um 11:07 schrieb Paul B Mahol: On 2/20/20, Michael Koch wrote: I'd like to understand how the new "fill" option in the remap filter works. What is an "unmapped pixel"? How is it

Re: [FFmpeg-user] remap filter, unmapped pixels

2020-02-20 Thread Michael Koch
Am 20.02.2020 um 12:49 schrieb Paul B Mahol: On 2/20/20, Michael Koch wrote: Am 20.02.2020 um 11:07 schrieb Paul B Mahol: On 2/20/20, Michael Koch wrote: I'd like to understand how the new "fill" option in the remap filter works. What is an "unmapped pixel"? How is it

Re: [FFmpeg-user] remap filter, unmapped pixels

2020-02-20 Thread Michael Koch
Am 20.02.2020 um 13:47 schrieb Paul B Mahol: On 2/20/20, Michael Koch wrote: Am 20.02.2020 um 12:49 schrieb Paul B Mahol: On 2/20/20, Michael Koch wrote: Am 20.02.2020 um 11:07 schrieb Paul B Mahol: On 2/20/20, Michael Koch wrote: I'd like to understand how the new "fill&qu

Re: [FFmpeg-user] gif overlay miscalculating x and y, extra frame flash

2020-02-10 Thread Michael Koch
Paul, Nevertheless I have the same problem as the original poster, also when I add :format=rgb. Something is wrong with the x,y calculations in the overlay filter. In my example I'm using sendcmd to set x and y. The coordinates are sometimes off by a few pixels. At the moment my command line

Re: [FFmpeg-user] gif overlay miscalculating x and y, extra frame flash

2020-02-10 Thread Michael Koch
Am 10.02.2020 um 18:31 schrieb Michael Koch: Paul, Nevertheless I have the same problem as the original poster, also when I add :format=rgb. Something is wrong with the x,y calculations in the overlay filter. In my example I'm using sendcmd to set x and y. The coordinates are sometimes off

Re: [FFmpeg-user] Stretch/Scale only center of overlay image

2020-02-13 Thread Michael Koch
Am 13.02.2020 um 02:36 schrieb Hans Carlson: Is it possible to stretch/scale only the center part of an overlay image? I don't mean the middle section of a video, I mean only the center part of a single image (png) that will be overlayed onto a background, such that the left and right sides

[FFmpeg-user] Play video and simultaneously record audio

2020-01-16 Thread Michael Koch
Hello all, can FFmpeg or FFplay be used for playing a video (without audio) and exactly simultaneously record an audio file? I mean for making sound effects for the video. If this isn't possible, is there any other free software that can do it? Thanks Michael

Re: [FFmpeg-user] Play video and simultaneously record audio

2020-01-16 Thread Michael Koch
Hello Gyan, can FFmpeg or FFplay be used for playing a video (without audio) and exactly simultaneously record an audio file? I mean for making sound effects for the video. If this isn't possible, is there any other free software that can do it? Basic syntax would be,     ffmpeg -re -i

Re: [FFmpeg-user] Play video and simultaneously record audio

2020-01-18 Thread Michael Koch
My second test: ffmpeg -re -i test.mp4 -f dshow -channels 2 -i audio="Mikrofon (Realtek High Definiti" -y -map 1:a audio.wav -map 0:v -f sdl2 - This command line has two problems: 1. The video doesn't play continuously, it's stop-and-go. May be my notebook has not enough computing power?

Re: [FFmpeg-user] Play video and simultaneously record audio

2020-01-19 Thread Michael Koch
Hello Gyan, I did try the above example (with some changes) but it has another problem: FFplay can't be stopped when the video has ended, and it uses the full screen. Which means I can't see the console window and can't close it. FFmpeg can only be stopped by the task manager. Looks like

Re: [FFmpeg-user] Play video and simultaneously record audio

2020-01-19 Thread Michael Koch
Am 19.01.2020 um 13:54 schrieb Paul B Mahol: On 1/19/20, Michael Koch wrote: Hello Gyan, I did try the above example (with some changes) but it has another problem: FFplay can't be stopped when the video has ended, and it uses the full screen. Which means I can't see the console window

[FFmpeg-user] Mix a video with an audio file

2020-01-19 Thread Michael Koch
Hello, I've just found a problem that can be reproduced as follows: Step 1: Make a 6 seconds test video with 1kHz tone. The file is ok when played. ffmpeg -f lavfi -i testsrc2=size=vga -f lavfi -i sine=1000 -t 6 -y video.mp4 Step 2: Make a 10 seconds audio file with silence and a short

Re: [FFmpeg-user] Mix a video with an audio file

2020-01-19 Thread Michael Koch
Am 19.01.2020 um 21:56 schrieb Paul B Mahol: On 1/19/20, Michael Koch wrote: Am 19.01.2020 um 21:01 schrieb Paul B Mahol: On 1/19/20, Michael Koch wrote: Hello, I've just found a problem that can be reproduced as follows: Step 1: Make a 6 seconds test video with 1kHz tone. The file is ok

Re: [FFmpeg-user] Mix a video with an audio file

2020-01-19 Thread Michael Koch
Am 19.01.2020 um 21:01 schrieb Paul B Mahol: On 1/19/20, Michael Koch wrote: Hello, I've just found a problem that can be reproduced as follows: Step 1: Make a 6 seconds test video with 1kHz tone. The file is ok when played. ffmpeg -f lavfi -i testsrc2=size=vga -f lavfi -i sine=1000 -t 6 -y

Re: [FFmpeg-user] ff* command lines that work

2020-03-09 Thread Michael Koch
Am 09.03.2020 um 21:49 schrieb Mark Filipak: On 03/09/2020 03:39 PM, hydra3...@gmail.com wrote: Well, I'm a dumb user and google gave me LOTS and LOTS of commandlines that work - simply filter the google results by the "date in the last year" to be sure you get the latest syntax.  Lots. You

Re: [FFmpeg-user] ff* command lines that work

2020-03-09 Thread Michael Koch
Am 09.03.2020 um 23:31 schrieb Mark Filipak: On 03/09/2020 05:30 PM, Michael Koch wrote: Am 09.03.2020 um 21:49 schrieb Mark Filipak: On 03/09/2020 03:39 PM, hydra3...@gmail.com wrote: Well, I'm a dumb user and google gave me LOTS and LOTS of commandlines that work - simply filter the google

Re: [FFmpeg-user] ffmpeg keep aspect ratio when scaling, keep dimensions divisable by n

2020-04-09 Thread Michael Koch
Am 09.04.2020 um 11:36 schrieb atticus via ffmpeg-user: Hi there, I'm scaling a video by with this filter: -vf "scale=720:320:force_original_aspect_ratio=decrease" which works perfectly fine, since I can input the my desired resolution and ffmpeg decides on its own which dimension should be

[FFmpeg-user] How to set a seed value for a random generator?

2020-04-13 Thread Michael Koch
Hello, I want to add a +-10 pixels random horizontal jitter to video lines. This is the first test: c:\ffmpeg\ffmpeg -f lavfi -i testsrc2=size=vga -vf format=gray,geq=lum='lum(X-10+20*random(0),Y)' -t 3 -y out1.mp4 This works, but it's a pixel-wise jitter and that's not what I want. I

Re: [FFmpeg-user] delay time in live ultrasound converter

2020-04-18 Thread Michael Koch
Am 18.04.2020 um 08:41 schrieb Michael Koch: Am 18.04.2020 um 00:54 schrieb Roger Pack: In my test the FFT method has a shorter delay time than the amultiply method. I just found out that the delay can be minimized by setting -audio_buffer_size to a very small value (10ms). Delay is now about

Re: [FFmpeg-user] delay time in live ultrasound converter

2020-04-18 Thread Michael Koch
Am 18.04.2020 um 00:54 schrieb Roger Pack: In my test the FFT method has a shorter delay time than the amultiply method. I just found out that the delay can be minimized by setting -audio_buffer_size to a very small value (10ms). Delay is now about 0.5 seconds. Short enough to see and hear the

Re: [FFmpeg-user] delay time in live ultrasound converter

2020-04-18 Thread Michael Koch
Am 18.04.2020 um 19:30 schrieb Michael Glenn Williams: Wow that is so cool! Will ffmpeg generate ultrasound sounds to, or do we know of a plugin or other that could do that, then feed the signal to ffmpeg? Sure, you can generate ultrasound with FFmpeg. Try the first example in chapter 3.24.

Re: [FFmpeg-user] delay time in live ultrasound converter

2020-04-18 Thread Michael Koch
Am 18.04.2020 um 16:52 schrieb Michael Glenn Williams: The subject line about ultrasound caught me eye on this thread that woke up from last year. Can anyone tell us what the original interest in ffmpeg and ultrasound is? Well, you can use FFmpeg to convert ultrasound to lower frequencies, for

Re: [FFmpeg-user] delay time in live ultrasound converter

2020-04-18 Thread Michael Koch
Am 18.04.2020 um 18:25 schrieb Ted Park: I don't know where I can find bats nearby so I couldn't try it but how does it work? The book makes it sound like you can use any mic, even one built into a laptop for this? I suppose that's plausible looking at a typical mic's frequency response graph,

Re: [FFmpeg-user] 'image trails'

2020-04-08 Thread Michael Koch
Am 08.04.2020 um 04:48 schrieb Mark Filipak: Start again after a good sleep. Re: https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20200407/4556ce6a/attachment.mpv Kindly play 'attachment'. Got any ideas what's causing the image trails? fmpeg -i "M:\Test Videos\23.976p.mkv" \

Re: [FFmpeg-user] 'image trails'

2020-04-08 Thread Michael Koch
Am 08.04.2020 um 08:09 schrieb Michael Koch: Am 08.04.2020 um 04:48 schrieb Mark Filipak: Start again after a good sleep. Re: https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20200407/4556ce6a/attachment.mpv Kindly play 'attachment'. Got any ideas what's causing the image trails? fmpeg

[FFmpeg-user] center-align multiple text lines

2020-04-11 Thread Michael Koch
Hello, I want to show the content of a credits file scrolling up.The file contains many lines of different lengths. drawtext=textfile=credits.txt:x=(w-text_w)/2:y=h-100*t The variable text_w is the width of the longest line in the text file. This line is center-aligned in the frame, and all

Re: [FFmpeg-user] decomb versus deinterlace

2020-04-19 Thread Michael Koch
Mark, "recurse" works if your timestamps are correct. Carl Eugen said that, too. How could the timestamps be wrong? Well, I think the timestamp isn't "wrong", but it's "not as you expect". If a filter has two inputs and the input frames have different timestamps, then what's the

Re: [FFmpeg-user] Keyframe

2020-04-21 Thread Michael Koch
Am 21.04.2020 um 04:09 schrieb Mark Filipak: Hey, I have a question for you knowledgeable folks. I've seen where some use the term "keyframe" but I've never seen a definition. It's not terribly important, but here goes... I've assumed -- you know how good I am at that! -- that a keyframe is

Re: [FFmpeg-user] Needed: 10 minute, p24 test video

2020-04-21 Thread Michael Koch
Am 21.04.2020 um 01:39 schrieb Mark Filipak: To submit a trac ticket on the 'pp' filter, I need a p24 video that's over 10 minutes, I need to test using that video, and then upload the file and update the ticket to 'reopen'. It has to be non-copyrighted material. Any ideas? ffmpeg -f lavfi

Re: [FFmpeg-user] ffmpeg architecture question

2020-04-21 Thread Michael Koch
I now appreciate that 'blend' has a "preferred" input similar to 'overlay', but that behavior is not documented. In the case of 'overlay', the name "main" doesn't convey that meaning, and in the case of 'blend', that behavior is not documented at all. Both documentations should explain how

Re: [FFmpeg-user] ffmpeg architecture question

2020-04-21 Thread Michael Koch
Am 21.04.2020 um 11:07 schrieb Paul B Mahol: On 4/21/20, Michael Koch wrote: I now appreciate that 'blend' has a "preferred" input similar to 'overlay', but that behavior is not documented. In the case of 'overlay', the name "main" doesn't convey that meaning, and i

Re: [FFmpeg-user] ffmpeg architecture question

2020-04-19 Thread Michael Koch
that was not happening. Apparently it does recurse, but only if you connect certain pads to certain other pads. I don't understand what you mean by "recursively". Specifically, it depends on how you 'wire up' a 'blend' filter. I learned that from Michael Koch after he suggested that I reverse the c

Re: [FFmpeg-user] Stuck preparing to compile ffmpeg from git source

2020-04-13 Thread Michael Koch
Mark, cross compiling FFmpeg for Windows is -- in my opinion -- very difficult. That's something for people who have a lot of experience. There is no binaries at ffmpeg.org. https://ffmpeg.org/download.html links to https://ffmpeg.zeranoe.com/builds/ but the ffmpeg build there apparently

Re: [FFmpeg-user] ffmpeg architecture question

2020-04-17 Thread Michael Koch
Am 17.04.2020 um 09:44 schrieb Mark Filipak: On 04/17/2020 02:41 AM, Michael Koch wrote: Am 17.04.2020 um 08:02 schrieb Mark Filipak: Thanks to pdr0 -at- shaw.ca, My quest for the (nearly perfect) p24-to-p60 transcode has concluded. But remaining is an ffmpeg behavior that seems (to me

Re: [FFmpeg-user] Requesting to add a new book to the "Books about FFmpeg" section?

2020-04-17 Thread Michael Koch
Am 17.04.2020 um 02:18 schrieb John Riselvato: Oh interesting, I appreciate you explaining that to me. There is some documentation here: https://www.ffmpeg.org/git-howto.html If you figure out how git works, that would be a nice new chapter for your book. Michael

Re: [FFmpeg-user] ffmpeg architecture question

2020-04-17 Thread Michael Koch
Am 17.04.2020 um 08:02 schrieb Mark Filipak: Thanks to pdr0 -at- shaw.ca, My quest for the (nearly perfect) p24-to-p60 transcode has concluded. But remaining is an ffmpeg behavior that seems (to me) to be key to understanding ffmpeg architecture, to wit: The characteristics of frame

Re: [FFmpeg-user] 'overlay' filter question

2020-04-06 Thread Michael Koch
Am 06.04.2020 um 12:39 schrieb Mark Filipak: Here: https://ffmpeg.org/ffmpeg-filters.html#overlay-1 is found this example: ffmpeg -i input -i logo -filter_complex 'overlay=10:main_h-overlay_h-10' output ^ What is

Re: [FFmpeg-user] Please help confirm if this hard, system crash is reproducible

2020-04-06 Thread Michael Koch
Am 06.04.2020 um 12:00 schrieb Ted Park: Hi, I am experiencing a no-warning, system level, dead Macintosh II bitmap logo, sad Finder face icon type HARD CRASH every time I run a ffplay command. The exact command line is the following: % ffplay -f lavfi -i "anoisesrc[a1];sine,[a1]amix" is

Re: [FFmpeg-user] Remove everything but a single color (range)

2020-03-15 Thread Michael Koch
Am 15.03.2020 um 11:13 schrieb Dan Bridges: Is it possible to "remove" everything in a video except a specific color (or maybe a range... ie close to a specific color. By "remove" I mean covert every that is NOT the color(s) I want to black or transparent. I have a video that contains a

Re: [FFmpeg-user] drawtext, suggestion for improvement

2020-03-26 Thread Michael Koch
Am 26.03.2020 um 19:59 schrieb Carl Eugen Hoyos: Am Do., 26. März 2020 um 19:34 Uhr schrieb Michael Koch : I have a suggestion for improvement for the drawtext filter. If the text is read from a file, it must be in UTF-8 format. In Windows, many text editors (including Notepad) insert a 3-byte

[FFmpeg-user] drawtext, suggestion for improvement

2020-03-26 Thread Michael Koch
Hi, I have a suggestion for improvement for the drawtext filter. If the text is read from a file, it must be in UTF-8 format. In Windows, many text editors (including Notepad) insert a 3-byte "Byte order mark" at the beginning of the file. This is described here:

Re: [FFmpeg-user] How to change overlay parameter at runtime

2020-03-27 Thread Michael Koch
Am 27.03.2020 um 11:07 schrieb foxtail mega: Clarification regarding information (x,y for overlay filter). I am using ffmpeg for mobile devices so i am using flutter-ffmpeg. Now i am using dart language for supplying x and y co-ordinates to ffmpeg instance. Issue is, after i run the ffmpeg

<    1   2   3   4   5   6   7   8   >