[FFmpeg-user] FFmpeg doesn't stop after it has written the correct output file

2021-03-13 Thread Michael Koch
Hello all, I just created a special effect which shows several optical sound tracks, like in cine film. The output video is perfectly ok and has the correct length 20s. But FFmpeg doesn't stop after it has written the output file. I have to terminate it with ctrl-c, and I don't understand why.

Re: [FFmpeg-user] hstack with one video offset in time (and keep audio synced)?

2021-03-17 Thread Michael Koch
Am 17.03.2021 um 19:31 schrieb Steven Kan: On Mar 6, 2021, at 11:22 AM, Steven Kan wrote: On Mar 5, 2021, at 2:00 PM, Michael Koch wrote: Am 05.03.2021 um 20:33 schrieb Steven Kan: I’d like to assemble these videos, side-by-side, but synced in time, which means the TrailDown video needs to

Re: [FFmpeg-user] 'mix' filter questions

2021-03-20 Thread Michael Koch
Am 20.03.2021 um 04:31 schrieb Mark Filipak (ffmpeg): : :   :   : :   Specify scale, if it is set it will be multiplied with sum of each weight multiplied with pixel values to give final destination pixel value. By default scale is auto scaled to sum of weig

Re: [FFmpeg-user] Cutting out part of a video does not work

2021-03-26 Thread Michael Koch
Am 26.03.2021 um 09:55 schrieb Cecil Westerhof via ffmpeg-user: I want to publish a speech I gave during a Zoom meeting. But cutting it out does not work. When I use: ffmpeg -y -i 2021-03-25ToastmastersClubAvond.mp4 -ss 1190 -to 1631 -acodec copy -vcodec copy -async 1 speech.mp4 The video

Re: [FFmpeg-user] Cut part of a video, crop it and blackout parts of it

2021-04-05 Thread Michael Koch
Am 05.04.2021 um 01:48 schrieb Cecil Westerhof via ffmpeg-user: I have to cut out a part of a video, crop it and blackout two parts. I do this with: ffmpeg -y \ -ss 00:19:49\ -i 2021-03-25ToastmastersCl

Re: [FFmpeg-user] Cut part of a video, crop it and blackout parts of it

2021-04-05 Thread Michael Koch
Am 05.04.2021 um 11:58 schrieb Cecil Westerhof via ffmpeg-user: Michael Koch writes: Am 05.04.2021 um 01:48 schrieb Cecil Westerhof via ffmpeg-user: I have to cut out a part of a video, crop it and blackout two parts. I do this with: ffmpeg -y

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

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

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

Re: [FFmpeg-user] Guide to denoise VHS videos

2021-04-11 Thread Michael Koch
Am 12.04.2021 um 00:39 schrieb Ulf Zibis: My question is not about head-switching effects, it mainly is about temporal noise. E.G., there is the hqdn3d filter, which can do both, spacial and temporal denoise. But I'm missing some guidance about using the parameters and in comparision to other

Re: [FFmpeg-user] Change in video length and loss of audio sync

2021-04-13 Thread Michael Koch
Am 13.04.2021 um 21:53 schrieb John Harlow via ffmpeg-user: RES1=`nice -20 cpulimit -l 400 /usr/bin/ffmpeg -y -hide_banner -loglevel verbose -r 29.97 -i "$TMP" \ I'm not sure, but doesn't the -r option before the input overwrite the framerate of the input? Michael _

Re: [FFmpeg-user] How to filter time dependent

2021-04-22 Thread Michael Koch
Am 22.04.2021 um 12:50 schrieb Ulf Zibis: Hi, I want to filter a video from pts 0 to 1999 with filter A, then from 2000 to 2199 with filter B, from 2200 with filter A and finally the whole stream with filter C. Can one please give me an example for a working command line? untested: ffmpeg

Re: [FFmpeg-user] How to filter time dependent

2021-04-22 Thread Michael Koch
Am 22.04.2021 um 23:27 schrieb Ulf Zibis: Am 22.04.21 um 13:01 schrieb Michael Koch: Am 22.04.2021 um 12:50 schrieb Ulf Zibis: Hi, I want to filter a video from pts 0 to 1999 with filter A, then from 2000 to 2199 with filter B, from 2200 with filter A and finally the whole stream with

Re: [FFmpeg-user] How to filter time dependent

2021-04-22 Thread Michael Koch
Am 23.04.2021 um 08:31 schrieb Gyan Doshi: You may be thinking of the interleave filter. select uses exactly one input. you are right and what I wrote was wrong. Michael ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mai

Re: [FFmpeg-user] How to filter time dependent

2021-04-23 Thread Michael Koch
Am 22.04.2021 um 23:27 schrieb Ulf Zibis: Am 22.04.21 um 13:01 schrieb Michael Koch: Am 22.04.2021 um 12:50 schrieb Ulf Zibis: Hi, I want to filter a video from pts 0 to 1999 with filter A, then from 2000 to 2199 with filter B, from 2200 with filter A and finally the whole stream with

Re: [FFmpeg-user] How to filter time dependent

2021-04-23 Thread Michael Koch
Am 23.04.2021 um 13:35 schrieb Nicolas George: Ulf Zibis (12021-04-23): I already had checked that. Unfortunately, crop has no timeline support: How would that work? Enabling or disabling crop changes the output resolution, which is not supported by libavfilter. The crop filter could be used

Re: [FFmpeg-user] How to filter time dependent

2021-04-23 Thread Michael Koch
Am 23.04.2021 um 14:05 schrieb Nicolas George: Michael Koch (12021-04-23): The crop filter could be used to change the x,y coordinates, with constant output resolution. With timeline? Please elaborate? Please forget what I wrote. It's wrong. Mi

Re: [FFmpeg-user] How to filter time dependent

2021-04-23 Thread Michael Koch
Am 23.04.2021 um 15:58 schrieb Ulf Zibis: Am 23.04.21 um 08:07 schrieb Michael Koch: The "between" function is including at both ends of the interval. Thanks for the info. Oh what a pitty ... imagine I set the upper border of the lower range to 10:23.59, the lower border of

Re: [FFmpeg-user] How to filter time dependent

2021-04-24 Thread Michael Koch
Am 23.04.2021 um 23:19 schrieb Ulf Zibis: Am 23.04.21 um 08:31 schrieb Gyan Doshi: On this topic generally, see https://superuser.com/q/1632998/ Much thanks for this hint. I was successful with this approach: ffmpeg -i 'Stille Tage in Clichy.mpg' -vf "split=3[a][b][c];[a]trim=0:2888.36,setp

Re: [FFmpeg-user] How to filter time dependent

2021-04-24 Thread Michael Koch
Am 24.04.2021 um 19:24 schrieb Michael Koch: Am 23.04.2021 um 23:19 schrieb Ulf Zibis: Am 23.04.21 um 08:31 schrieb Gyan Doshi: On this topic generally, see https://superuser.com/q/1632998/ Much thanks for this hint. I was successful with this approach: ffmpeg -i 'Stille Tage in Clich

Re: [FFmpeg-user] Possible to change pitch of audio in a downloaded mp4 file?

2021-04-28 Thread Michael Koch
Am 28.04.2021 um 08:51 schrieb Bo Berglund: Sometimes when I download a video it turns out to have some issues that has raised the audio pitch of the video making it not so enjoyable to watch/hear. So I wonder if there is an ffmpeg command that can modify the pitch of the audio without changing t

Re: [FFmpeg-user] Possible to change pitch of audio in a downloaded mp4 file?

2021-04-28 Thread Michael Koch
Am 28.04.2021 um 10:53 schrieb Bo Berglund: On Wed, 28 Apr 2021 09:03:26 +0200, Michael Koch wrote: Am 28.04.2021 um 08:51 schrieb Bo Berglund: Sometimes when I download a video it turns out to have some issues that has raised the audio pitch of the video making it not so enjoyable to watch

Re: [FFmpeg-user] Possible to change pitch of audio in a downloaded mp4 file?

2021-04-28 Thread Michael Koch
Am 28.04.2021 um 23:34 schrieb Bo Berglund: On Wed, 28 Apr 2021 11:35:47 +0200, Michael Koch wrote: I had tested this (which I found by googling) before I posted: ffmpeg -i input20.mp4 -filter:a "atempo=1.25" -vn output20.mp4 There were no errors displayed but the resulting

Re: [FFmpeg-user] Convert flv to mp4. Bad video quality

2021-05-28 Thread Michael Koch
Am 28.05.2021 um 11:25 schrieb Flavio Sartoretto: I use ffmpeg in order to convert fname.flv video to mp4: ffmpeg -i fname.flv -c:v mpeg4 -copyts -loglevel verbose fname.mp4 The video quality of my output is bad. How can I improve it? Add -q:v 1 to your command line. The number does specify th

Re: [FFmpeg-user] Convert flv to mp4. Bad video quality

2021-05-28 Thread Michael Koch
Am 28.05.2021 um 17:18 schrieb Carl Eugen Hoyos: This is (nearly) completely wrong: 9 is still high quality, highest compression happens at a much higher value. Old MEncoder documentation recommends not use a value lower than 2, sane values start between 5 and 10. This is an important informat

Re: [FFmpeg-user] FFmpeg 360 video Spherical metadata header injection

2021-06-14 Thread Michael Koch
Am 14.06.2021 um 18:23 schrieb Yann Cainjo: Hi FFmpeg users Using FFmpeg to transcode 360 video, does anyone know if it is possible to inject Spherical metadata ( https://github.com/google/spatial-media/blob/master/docs/spherical-video-rfc.md) in video header using only FFmpeg, without using G

Re: [FFmpeg-user] How to improve result of transitions

2021-06-22 Thread Michael Koch
However, now that I understand that for 4 seconds transition you need 4 seconds on each video, I don't understand why you need two parameters, duration and offset. Why not simply define the duration, and have ffmpeg calculate the offset as videoDuration minus transitionDuration? I think that'

Re: [FFmpeg-user] Audio out of sync after video concatenation

2021-06-22 Thread Michael Koch
Am 22.06.2021 um 12:14 schrieb ibur...@compuscience.com: I concatenate 3 videos as below: Video 1 - 13 seconds with audio Video 2 - 4 seconds without audio (I generated this video using xfade transition Video 3 - 4 seconds with audio If I concatenate video 1 and 3 everything works

Re: [FFmpeg-user] Audio out of sync after video concatenation

2021-06-22 Thread Michael Koch
Am 22.06.2021 um 20:16 schrieb ibur...@compuscience.com: Have you tried adding (silent) audio to video 2 and trying your join operation again? You could use `anullsrc': This is what I am trying to do, but wasn't able to accomplish the first step which is adding a silent audio to my video using

Re: [FFmpeg-user] Compressed file is larger than original...

2021-06-25 Thread Michael Koch
Am 25.06.2021 um 20:40 schrieb ibur...@compuscience.com: I'm trying to reduce the size of an mp4 file to adjust it for streaming. The video is about one minute long and I used the sample command shown in https://trac.ffmpeg.org/wiki/Encode/YouTube. The original file size is ~18MB while the

Re: [FFmpeg-user] Compressed file is larger than original...

2021-06-25 Thread Michael Koch
--- Youtube: r_frame_rate=30/1 avg_frame_rate=30/1 bit_rate=1011745 nb_frames=1847 -- What seems significant to me here is that YouTube reduced the frame rate and consequently the number of frames to half. The quality of the video still seems reasona

Re: [FFmpeg-user] Compressed file is larger than original...

2021-06-25 Thread Michael Koch
Am 25.06.2021 um 22:52 schrieb ibur...@compuscience.com: add -r 30 to your command line I did that; my new command looks like: -i HBR_TT747.mp4 -c:v libx264 -preset slow -crf 27 -r 30 -c:a copy -pix_fmt yuv420p HBR_TT747_Compressed.mp4 And it took it into account, now I have: r_frame_rate=30/1

Re: [FFmpeg-user] Problem with changing options at runtime with a command

2021-07-03 Thread Michael Koch
Hi Gyan, As the docs state, the acceptable commands are w, h, x, ,y so the syntax is     c crop -1 w 100 Is this documented somewhere? I mean typing "c" in the console while FFmpeg is running. I know that you mentioned it on stackoverflow some time ago, but I never found it in the FFmpeg

Re: [FFmpeg-user] Problem with changing options at runtime with a command

2021-07-03 Thread Michael Koch
Am 03.07.2021 um 15:06 schrieb Michael Koch: Hi Gyan, As the docs state, the acceptable commands are w, h, x, ,y so the syntax is     c crop -1 w 100 Is this documented somewhere? I mean typing "c" in the console while FFmpeg is running. I know that you mentioned it on sta

Re: [FFmpeg-user] Problem with changing options at runtime with a command

2021-07-03 Thread Michael Koch
Am 03.07.2021 um 15:57 schrieb Alex Christoffer Rasmussen: thank you for the quick answer when trying this out I notice 3 things *1: the original size is kept* if the starting crop is *crop=h=100 *then using *c crop -1 h 150 *dose noting and the other way, What you are trying to do might be i

[FFmpeg-user] looping an animated gif

2021-07-08 Thread Michael Koch
Hello, I want to overlay an animated gif over a video. The gif must be looped because it's much shorter than the video. I did try the "-loop 1" option, but I get the error message "Option loop not found". However, the loop option works fine for jpg images. How can an animated gif be looped?

Re: [FFmpeg-user] looping an animated gif

2021-07-09 Thread Michael Koch
Am 09.07.2021 um 08:49 schrieb Gyan Doshi: On 2021-07-09 12:07, Michael Koch wrote: Hello, I want to overlay an animated gif over a video. The gif must be looped because it's much shorter than the video. I did try the "-loop 1" option, but I get the error message "O

Re: [FFmpeg-user] Pattern_Type Glob *.JPG wildcard input file support for Windows 10?

2021-07-13 Thread Michael Koch
Am 13.07.2021 um 10:32 schrieb yaofahua--- via ffmpeg-user: This command may be helpful. cat *.jpg | ffmpeg -framerate 1/2 -pattern_type -f image2pipe -i - -filter_complex "scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:-1:-1:color=black,format=yuv420p" -r 30 -movflags +fastst

Re: [FFmpeg-user] Question regarding Sample Rates and Formats

2021-07-26 Thread Michael Koch
Am 26.07.2021 um 14:27 schrieb tim.russ...@med-associates.com: Does FFMPEG support sample rates (using the '-ar' parameter) of 192k? I don't see it listed in the documentation. yes that works, here is an example: ffmpeg -f lavfi -i sine=1000:d=10 -ar 192000 sine.wav Michael _

Re: [FFmpeg-user] -pix_fmt + pixel format conversions

2021-07-29 Thread Michael Koch
Am 29.07.2021 um 09:12 schrieb Green Koopa: My input file is yuvj420p(pc, bt709). My target output is yuv420p(tv, bt709). I would like to use "-pix_fmt +yuv420p" to specify the output format, and to force me to be explicit in my conversions in the filtergraph. How do I achieve explicit conversion

Re: [FFmpeg-user] Why FFMPEG?

2021-08-16 Thread Michael Koch
Am 16.08.2021 um 15:28 schrieb Reindl Harald: with you idiotic phone 50% auf my day would be wasted by swiching apps and say "ok, all fine there" can you please continue this discussion off-list Michael ___ ffmpeg-user mailing list ffmpeg-user@ffm

[FFmpeg-user] show the audio waveform of a file

2021-08-25 Thread Michael Koch
Hi, is it possible to convert the waveform of an entire audio file (or a segment of it) to a picture? The "showwavespic" filter has the problem that for each sample it draws a line from +level to -level. For example, if the input is a +0.5 DC signal, I can't decide from the output picture if t

[FFmpeg-user] Is there an image viewer with FileSystemWatcher?

2021-09-01 Thread Michael Koch
Hello, sometimes it's an iterative process to find the best parameters for a filter, especially when the filter changes brightness, contrast or colors: 1) Edit the filter parameters in the FFmpeg command line 2) Run FFmpeg 3) Open the output image in a viewer (normally I'm using IrfanView) 4) R

Re: [FFmpeg-user] Is there an image viewer with FileSystemWatcher?

2021-09-01 Thread Michael Koch
Am 01.09.2021 um 09:30 schrieb Paul B Mahol: On Wed, Sep 1, 2021 at 9:26 AM Michael Koch wrote: Hello, sometimes it's an iterative process to find the best parameters for a filter, especially when the filter changes brightness, contrast or colors: 1) Edit the filter parameters in the F

[FFmpeg-user] toggle between two streams

2021-09-03 Thread Michael Koch
I have two video streams and want to toggle between them in 1 second intervals. I did try this command: ffmpeg -i in1.mp4 -i in2.mp4 -lavfi streamselect=map='mod(t,2)' -t 30 out.mp4 This doesn't work because streamselect doesn't accept expressions. Who has an idea for a workaround? Thanks, M

Re: [FFmpeg-user] toggle between two streams

2021-09-03 Thread Michael Koch
Am 03.09.2021 um 14:21 schrieb Michael Koch: I have two video streams and want to toggle between them in 1 second intervals. I did try this command: ffmpeg -i in1.mp4 -i in2.mp4 -lavfi streamselect=map='mod(t,2)' -t 30 out.mp4 This doesn't work because streamselect

Re: [FFmpeg-user] toggle between two streams

2021-09-03 Thread Michael Koch
Am 03.09.2021 um 15:09 schrieb Paul B Mahol: On Fri, Sep 3, 2021 at 3:07 PM Michael Koch wrote: Am 03.09.2021 um 14:21 schrieb Michael Koch: I have two video streams and want to toggle between them in 1 second intervals. I did try this command: ffmpeg -i in1.mp4 -i in2.mp4 -lavfi

Re: [FFmpeg-user] toggle between two streams

2021-09-03 Thread Michael Koch
Am 03.09.2021 um 15:30 schrieb Paul B Mahol: sendcmd supports expressions. yes, but it's complicated and doesn't always work. rem   make two images for testing ffmpeg -f lavfi -i color=yellow -vf drawtext='text="1":fontcolor=red:fontsize=100:x=140:y=80' -frames 1 -y 1.png ffmpeg -f lavfi -i

Re: [FFmpeg-user] toggle between two streams

2021-09-03 Thread Michael Koch
Am 03.09.2021 um 20:01 schrieb Reino Wijnsma: On 2021-09-03T16:25:50+0200, Michael Koch wrote: But if I write all in the FFmpeg command line, then it doesn't work: ffmpeg -loop 1 -i 1.png -loop 1 -i 2.png -lavfi sendcmd=c="0 [expr] streamselect map 'gte(mod(T,2),1)'"

[FFmpeg-user] Invitation: FFmpeg workshop

2021-09-06 Thread Michael Koch
Hello, this week from Thursday 2021-09-09 to Sunday 2021-09-12 will take place the 12th "Sankt Andreasberger Teleskoptreffen", that's an event for amateur astronomers in the Harz Mountains in Germany. You are invited to observe the night sky and attend our lectures. You can come for one day,

Re: [FFmpeg-user] High audio latency (although low with ffplay!)

2021-09-08 Thread Michael Koch
Am 08.09.2021 um 11:44 schrieb Arif Driessen: about 3 seconds latency. I have also experimented with these flags: -thread_queue_size, -fflags nobuffer, -flags low_delay ,-strict experimental, -re, -deadline realtime Any ideas? I had a similar problem with the "dshow" input device and solved i

Re: [FFmpeg-user] Quality Reduced when Burning Subtitles

2021-09-13 Thread Michael Koch
Am 13.09.2021 um 10:42 schrieb Veronica & Stephen McGuckin: Thank you. Please can you explain a little bit more about what option I should set. Regards -Original Message- From: ffmpeg-user On Behalf Of Paul B Mahol Sent: 11 September 2021 16:54 To: FFmpeg user questions Subject: Re:

Re: [FFmpeg-user] Weird results with drawtext

2021-09-18 Thread Michael Koch
Am 18.09.2021 um 18:07 schrieb Cecil Westerhof via ffmpeg-user: I have several of the following (simplified): drawtext= enable = 'between(t, 105, 115)': text = 'speaker': y = main_h - (text_h * 4), drawtext= enable = 'between(t, 105

Re: [FFmpeg-user] Weird results with drawtext

2021-09-18 Thread Michael Koch
Am 18.09.2021 um 18:22 schrieb Michael Koch: Am 18.09.2021 um 18:07 schrieb Cecil Westerhof via ffmpeg-user: I have several of the following (simplified): drawtext=     enable = 'between(t, 105, 115)':     text   = 'speaker':     y  =

Re: [FFmpeg-user] Weird results with drawtext

2021-09-18 Thread Michael Koch
Am 18.09.2021 um 18:51 schrieb Michael Koch: Am 18.09.2021 um 18:22 schrieb Michael Koch: Am 18.09.2021 um 18:07 schrieb Cecil Westerhof via ffmpeg-user: I have several of the following (simplified): drawtext=     enable = 'between(t, 105, 115)':     text  

Re: [FFmpeg-user] Weird results with drawtext

2021-09-19 Thread Michael Koch
e I wanted to have them the placement of the speaker and subject text is on different heights. Sometimes one or the other is different, sometimes both and sometimes they are the same. Is this a bug, or am I doing something wrong? As Michael Koch said: The content of the variable "tex

Re: [FFmpeg-user] Weird results with drawtext

2021-09-19 Thread Michael Koch
e I wanted to have them the placement of the speaker and subject text is on different heights. Sometimes one or the other is different, sometimes both and sometimes they are the same. Is this a bug, or am I doing something wrong? As Michael Koch said: The content of the variable "tex

Re: [FFmpeg-user] Weird results with drawtext

2021-09-19 Thread Michael Koch
Am 19.09.2021 um 12:42 schrieb Cecil Westerhof via ffmpeg-user: Michael Koch writes: As Michael Koch said: The content of the variable "text_h" depends on which characters you are printing. So I changed: drawtext= enable = 'between(t, 105, 115)&

Re: [FFmpeg-user] -framerate, -r and -itsoffset confusion

2021-09-20 Thread Michael Koch
Am 20.09.2021 um 10:45 schrieb Duncan Robertson: What is the difference between -framerate and -r? -framerate is the framerate used for reading in the images. -r is the output framerate, it's 25 by default if you don't use this option. If -framerate is larger than -r, then some frames are dro

Re: [FFmpeg-user] scaling algorithms

2021-09-20 Thread Michael Koch
Am 20.09.2021 um 21:51 schrieb Paul B Mahol: On Sat, Oct 17, 2015 at 3:58 PM Michael Koch wrote: > That looks like the job for the filter, see inflate, deflate, erosion and dilation filters. I just tested the dilation filter. It's a nice workaround if the downscaling factor is 3:

Re: [FFmpeg-user] scaling algorithms

2021-09-28 Thread Michael Koch
Am 21.09.2021 um 08:57 schrieb Paul B Mahol: See new morpho filter, that gonna be in master soon. It is much faster than current filters and allow custom definition of structure/mask (rectangle/circle/etc) by using 2nd stream. I'd like to test it. Please push it. What's the meaning of "open

[FFmpeg-user] blend filter

2021-09-30 Thread Michael Koch
I like the sample images for the blend filter that Paul has added here: https://trac.ffmpeg.org/wiki/Blend Can you please also share the command line for making these images? Thanks, Michael ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https:/

Re: [FFmpeg-user] blend filter

2021-09-30 Thread Michael Koch
Am 30.09.2021 um 19:19 schrieb Paul B Mahol: On Thu, Sep 30, 2021 at 7:06 PM Michael Koch wrote: I like the sample images for the blend filter that Paul has added here: https://trac.ffmpeg.org/wiki/Blend Can you please also share the command line for making these images? mpv av

Re: [FFmpeg-user] blend filter

2021-10-02 Thread Michael Koch
Am 30.09.2021 um 19:05 schrieb Michael Koch: I like the sample images for the blend filter that Paul has added here: https://trac.ffmpeg.org/wiki/Blend In the documentation for the "opacity" options for the blend filter is written: "Only used in combination with pixel compon

Re: [FFmpeg-user] Regarding video compression

2021-10-04 Thread Michael Koch
Am 05.10.2021 um 07:27 schrieb Shailesh kumar Dangi via ffmpeg-user: Hi Team, This is Shailesh Kumar Dangi, Working on Maventus Group Inc. I am using FFMPEG for video compression for bitrate reduction and I want to be the same aspect ratio as the original video aspect ratio. I am facing a proble

Re: [FFmpeg-user] Regarding video compression

2021-10-04 Thread Michael Koch
Am 05.10.2021 um 08:03 schrieb Shailesh kumar Dangi via ffmpeg-user: Thanks, Micheal Here is the command, I am using to reduce the bitrate. ffmpeg -y -i original.MOV -b:v 4.5M -map_metadata 0:s:0 -c:v libx264 -preset superfast -tune film -ac 2 -c:a aac -maxrate 4M -bufsize 3M -strict -2 -vf sca

Re: [FFmpeg-user] Regarding video compression

2021-10-04 Thread Michael Koch
Am 05.10.2021 um 08:33 schrieb Shailesh kumar Dangi via ffmpeg-user: Hi, Please find below as an attachment. In the attachment input command and output, the console is there. Actual Input what i am using ffmpeg -y -i original.mov -b:v 4.5M -map_metadata 0:s:0 -c:v libx264 -preset superfast -tune

Re: [FFmpeg-user] Regarding video compression

2021-10-05 Thread Michael Koch
Am 05.10.2021 um 09:07 schrieb Shailesh kumar Dangi via ffmpeg-user: Yes, In the input video contains some black space around the video as you can see in the attachment below. If we pass the scale "-vf scale=1920:1080" then the video will be stretched. if we do not pass the scale. The scale will

Re: [FFmpeg-user] Regarding video compression

2021-10-05 Thread Michael Koch
Am 05.10.2021 um 09:54 schrieb Shailesh kumar Dangi via ffmpeg-user: Hi, Our final goal is to reduce the bitrate is below 5MB and the Aspect ratio, height, and width need to be the same. The bitrate is already below 5Mb/s, look at the end of the console output: bitrate=3772.4kbits/s Aspect ra

Re: [FFmpeg-user] Regarding video compression

2021-10-05 Thread Michael Koch
Am 05.10.2021 um 10:18 schrieb Shailesh kumar Dangi via ffmpeg-user: Do we have anything to stop rotation? Try to add the option -noautorotate Michael ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-use

Re: [FFmpeg-user] Regarding video compression

2021-10-05 Thread Michael Koch
Am 05.10.2021 um 12:39 schrieb Shailesh kumar Dangi via ffmpeg-user: Hi, When I use to stop rotation. -noautorotate. it is working fine in my local system, But when I upload the code on the Linux server after compression video itself gets to rotate. Original Video- https://maventus-us-east.s3.

Re: [FFmpeg-user] Regarding video compression

2021-10-05 Thread Michael Koch
Am 05.10.2021 um 12:55 schrieb Shailesh kumar Dangi via ffmpeg-user: Please find an attachment as a command with the console. ffmpeg version 2.8.17-0ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.12) 20160609 Your FFmpeg version i

[FFmpeg-user] shuffleplanes

2021-10-11 Thread Michael Koch
Hello, I have a question about the shuffleplanes filter. In this example the pixel format is RGB24. So the first plane is red and the second plane is green. I want to swap the red and green planes. ffmpeg -f lavfi -i testsrc2 -lavfi format=rgb24,split[a][b];[b]shuffleplanes=1:0:2[b];[a][b]vs

Re: [FFmpeg-user] shuffleplanes

2021-10-11 Thread Michael Koch
Am 11.10.2021 um 11:26 schrieb Paul B Mahol: On Mon, Oct 11, 2021 at 11:15 AM Michael Koch wrote: Hello, I have a question about the shuffleplanes filter. In this example the pixel format is RGB24. So the first plane is red and the second plane is green. I want to swap the red and green

[FFmpeg-user] fftfilt

2021-10-12 Thread Michael Koch
I have a question about the "fftfilt" filter. What's the default value of the weight_U and weight_V options? I'm asking because I get an unexpected result. This command line creates my input image for testing: ffmpeg -f lavfi -i color=black:s=300x50 -lavfi drawgrid=c=white:y=-1:w=2:h=51,split

Re: [FFmpeg-user] fftfilt

2021-10-12 Thread Michael Koch
Am 12.10.2021 um 18:52 schrieb Paul B Mahol: On Tue, Oct 12, 2021 at 10:55 AM Michael Koch wrote: I have a question about the "fftfilt" filter. What's the default value of the weight_U and weight_V options? I'm asking because I get an unexpected result. This command l

Re: [FFmpeg-user] fftfilt

2021-10-13 Thread Michael Koch
Am 12.10.2021 um 19:29 schrieb Michael Koch: Am 12.10.2021 um 18:52 schrieb Paul B Mahol: On Tue, Oct 12, 2021 at 10:55 AM Michael Koch wrote: I have a question about the "fftfilt" filter. What's the default value of the weight_U and weight_V options? I'm asking because

Re: [FFmpeg-user] fftfilt

2021-10-13 Thread Michael Koch
Am 13.10.2021 um 22:57 schrieb Paul B Mahol: On Wed, Oct 13, 2021 at 10:51 PM Michael Koch wrote: Am 12.10.2021 um 19:29 schrieb Michael Koch: Am 12.10.2021 um 18:52 schrieb Paul B Mahol: On Tue, Oct 12, 2021 at 10:55 AM Michael Koch wrote: I have a question about the "fftfilt&qu

Re: [FFmpeg-user] fftfilt

2021-10-13 Thread Michael Koch
Am 13.10.2021 um 23:09 schrieb Michael Koch: Am 13.10.2021 um 22:57 schrieb Paul B Mahol: On Wed, Oct 13, 2021 at 10:51 PM Michael Koch wrote: Am 12.10.2021 um 19:29 schrieb Michael Koch: Am 12.10.2021 um 18:52 schrieb Paul B Mahol: On Tue, Oct 12, 2021 at 10:55 AM Michael Koch wrote: I

Re: [FFmpeg-user] fftfilt

2021-10-14 Thread Michael Koch
Am 13.10.2021 um 23:52 schrieb Michael Koch: Am 13.10.2021 um 23:09 schrieb Michael Koch: Am 13.10.2021 um 22:57 schrieb Paul B Mahol: On Wed, Oct 13, 2021 at 10:51 PM Michael Koch wrote: Am 12.10.2021 um 19:29 schrieb Michael Koch: Am 12.10.2021 um 18:52 schrieb Paul B Mahol: On Tue

Re: [FFmpeg-user] fftfilt

2021-10-14 Thread Michael Koch
Am 14.10.2021 um 12:07 schrieb Paul B Mahol: Sorry but I'm not on windows, so I can not use your script. Then try the below (slightly improved) version. It would become much simpler with variables: ARRAY_H = pow(2,ceil(log(ceil(W*10/9))/log(2))) ARRAY_V = pow(2,ceil(log(ceil(H*10/9))/log(2)))

Re: [FFmpeg-user] fftfilt

2021-10-14 Thread Michael Koch
Am 14.10.2021 um 12:53 schrieb Paul B Mahol: On Thu, Oct 14, 2021 at 12:29 PM Michael Koch wrote: Am 14.10.2021 um 12:07 schrieb Paul B Mahol: Sorry but I'm not on windows, so I can not use your script. Then try the below (slightly improved) version. It would become much simpler

Re: [FFmpeg-user] fftfilt

2021-10-14 Thread Michael Koch
Am 14.10.2021 um 13:01 schrieb Paul B Mahol: On Thu, Oct 14, 2021 at 12:59 PM Michael Koch wrote: Am 14.10.2021 um 12:53 schrieb Paul B Mahol: On Thu, Oct 14, 2021 at 12:29 PM Michael Koch < astroelectro...@t-online.de> wrote: Am 14.10.2021 um 12:07 schrieb Paul B Mahol: Sorry b

Re: [FFmpeg-user] fftfilt

2021-10-14 Thread Michael Koch
Am 14.10.2021 um 13:11 schrieb Paul B Mahol: On Thu, Oct 14, 2021 at 1:08 PM Michael Koch wrote: Am 14.10.2021 um 13:01 schrieb Paul B Mahol: On Thu, Oct 14, 2021 at 12:59 PM Michael Koch < astroelectro...@t-online.de> wrote: Am 14.10.2021 um 12:53 schrieb Paul B Mahol: On Thu,

Re: [FFmpeg-user] fftfilt

2021-10-14 Thread Michael Koch
Am 14.10.2021 um 13:23 schrieb Paul B Mahol: On Thu, Oct 14, 2021 at 1:18 PM Michael Koch wrote: Am 14.10.2021 um 13:11 schrieb Paul B Mahol: On Thu, Oct 14, 2021 at 1:08 PM Michael Koch < astroelectro...@t-online.de> wrote: Am 14.10.2021 um 13:01 schrieb Paul B Mahol: On Thu,

Re: [FFmpeg-user] fftfilt

2021-10-14 Thread Michael Koch
Am 14.10.2021 um 13:29 schrieb Michael Koch: Am 14.10.2021 um 13:23 schrieb Paul B Mahol: On Thu, Oct 14, 2021 at 1:18 PM Michael Koch wrote: Am 14.10.2021 um 13:11 schrieb Paul B Mahol: On Thu, Oct 14, 2021 at 1:08 PM Michael Koch < astroelectro...@t-online.de> wrote: Am 14.10.2

Re: [FFmpeg-user] fftfilt

2021-10-14 Thread Michael Koch
Am 14.10.2021 um 16:13 schrieb Michael Koch: This is the command line for the lowpass filter, where the filter freqency isn't a function of input size. The constant "8" is the filter wavelength in pixels per linepair. ffmpeg -i test.png -vf scale=2*iw:2*ih,fftfilt=dc_Y=

Re: [FFmpeg-user] fftfilt

2021-10-18 Thread Michael Koch
Am 14.10.2021 um 23:34 schrieb Michael Koch: Am 14.10.2021 um 16:13 schrieb Michael Koch: This is the command line for the lowpass filter, where the filter freqency isn't a function of input size. The constant "8" is the filter wavelength in pixels per linepair. ffmpeg

Re: [FFmpeg-user] Alternative to Dynamic Text

2021-11-01 Thread Michael Koch
Am 01.11.2021 um 16:21 schrieb LianCheng Tan: Hi, Beside using textfile (reload=1) in drawtext for dynamic text, is there any other method to add dynamic texts onto the video stream? You could use subtitles. It's described in the wiki: https://trac.ffmpeg.org/wiki/WikiStart There are also so

Re: [FFmpeg-user] How to contribute to Wiki

2021-11-01 Thread Michael Koch
Am 01.11.2021 um 15:15 schrieb PPRJ01: Hello All, I have been using ffmpeg for two years and I would be pleased to contribute to ffmpeg wiki. I don't know how to do it. Can you help me please ? First you need an account and you must log in. Then you go the the wiki page that you want to edi

Re: [FFmpeg-user] Alternative to Dynamic Text

2021-11-01 Thread Michael Koch
Am 01.11.2021 um 19:58 schrieb Michael Koch: Am 01.11.2021 um 16:21 schrieb LianCheng Tan: Hi, Beside using textfile (reload=1) in drawtext for dynamic text, is there any other method to add dynamic texts onto the video stream? You could use subtitles. It's described in the wiki:

Re: [FFmpeg-user] Alternative to Dynamic Text

2021-11-02 Thread Michael Koch
Am 02.11.2021 um 00:09 schrieb LianCheng Tan: Thank you Michael. For subtitles, what if the content of .srt or .ass file is being updated at every second. Will ffmpeg crash because the file is being ‘locked’ by another process that is updating it? I don't know if this works. I thought the te

Re: [FFmpeg-user] How to contribute to Wiki

2021-11-02 Thread Michael Koch
Am 02.11.2021 um 18:38 schrieb PPRJ01: Thank you Michael, I tried to register a new account at https://trac.ffmpeg.org/register There is an antispam check in this page. I don't know what to answer to the first question about the project name. I think it begins with "f" and has 6 characters

Re: [FFmpeg-user] How to contribute to Wiki

2021-11-02 Thread Michael Koch
Am 02.11.2021 um 19:43 schrieb PPRJ01: Thank you again Michael for your kindly help. Now I have an account to edit existing Wiki pages. My question is how can I add a new page with my contribution before linking it to an existing page ? I have never done that in the the FFmpeg wiki. In other

Re: [FFmpeg-user] Cropping video

2021-12-11 Thread Michael Koch
Am 11.12.2021 um 22:24 schrieb Cecil Westerhof via ffmpeg-user: I gave a speech on zoom. It was recorded, but sadly together with others. So I want to crop my part out of it. At the moment this works: ffmpeg -y -i input.mp4 -filter:v "crop=480:360:80:180" output.mp4 Was just wondering if th

Re: [FFmpeg-user] Concatenating video cuts - audio gets out of sync...

2021-12-15 Thread Michael Koch
Am 15.12.2021 um 13:30 schrieb Bo Berglund: I am using this script on Ubuntu 20.04.3 server which I wrote to paste together clips from a video into one single video. It takes the output video file as the first argument and all following are the clip files. Script has error checking for user input

Re: [FFmpeg-user] Concatenating video cuts - audio gets out of sync...

2021-12-15 Thread Michael Koch
Am 15.12.2021 um 14:14 schrieb Bo Berglund: On Wed, 15 Dec 2021 13:45:13 +0100, Michael Koch wrote: You could remove -c copy, but that makes the process much slower. Are you sure that all input videos have the same properties? Same size, video codec, framerate, audio codec, number of audio

Re: [FFmpeg-user] New post

2021-12-29 Thread Michael Koch
Am 30.12.2021 um 07:09 schrieb Jim DeLaHunt: On 2021-12-29 21:00, paul king wrote: In the ffmpeg Documentation there is this command for Select the pass number (1 or 2): ffmpeg -i foo.mov -c:v libxvid -pass 1 -an -f rawvideo -y NUL ffmpeg -i foo.mov -c:v libxvid -pass 1 -an -f rawvideo -y /dev/n

Re: [FFmpeg-user] Split Video into RGB and Alpha

2022-01-04 Thread Michael Koch
Am 04.01.2022 um 03:19 schrieb Hanna Frangiyyeh: Hi Guys; I have a video file that has an embedded alpha in it. I would like to have it output two files, one RGB and the other Alpha. Any idea how to accomplish this? Making the RGB video is easy, just convert the pixel format to RGB. For extra

Re: [FFmpeg-user] Filter Question

2022-01-04 Thread Michael Koch
Am 04.01.2022 um 21:12 schrieb Hanna Frangiyyeh: Hi Guys; I'm new to ffmpeg and I'm trying to figure out what is wrong with the below filter. It keep erroring out with the following error: Unable to find a suitable output format for '[rgb_in][alpha_in][rgb_in]' ffpmpeg -i "D:\TEMP\Source Files\

  1   2   3   4   5   6   7   8   9   >