Re: [FFmpeg-user] PNG-->GIF produces weird color aliasing?

2024-05-19 Thread Michael Koch
Am 19.05.2024 um 19:02 schrieb Steven Kan: I have a series of 476 PNGs, exported from Excel in a loop through a series of values to control the plotted range: https://www.kan.org/download/1.png https://www.kan.org/download/2.png https://www.kan.org/download/3.png

Re: [FFmpeg-user] Extract sound from multiple input files

2024-04-29 Thread Michael Koch
Am 29.04.2024 um 11:28 schrieb turgut kalfaoğlu: Hi. I have an interesting case. I need to extract sound from multiple input files,  combine those video files into one, and then re-insert the audio into the combined video file. Unfortunately I need to do them in this order. Extract sounds,

Re: [FFmpeg-user] Possible to speed up/down video while keeping audio pitch?

2024-03-25 Thread Michael Koch
Am 24.03.2024 um 23:30 schrieb Bo Berglund: But is it possible also to modify an mp4 video file to *play* faster/slower than original while keeping the accompanying audio pitch the same? It's possible to change audio length, sample rate and pitch, and also all combinations of these three

Re: [FFmpeg-user] Blend effect with displace filter

2024-01-11 Thread Michael Koch
Am 11.01.2024 um 10:53 schrieb emmanuel martin: I’m experimenting with the ‘displace’ filter, and I’d like to apply my displacement maps with a blend effect on the main track. I’ve tried various things without success, and I haven’t found many examples of using this filter. Is it possible to

Re: [FFmpeg-user] Video in video not from start

2024-01-05 Thread Michael Koch
Am 05.01.2024 um 10:26 schrieb Cecil Westerhof via ffmpeg-user: Ferdi Scholten writes: I want to play a video in a video from a certain point. I understood I could do something like: ffmpeg \ -i input1.mp4 \ -i input2.mp4 \ -filter_complex "

Re: [FFmpeg-user] Video in video not from start

2024-01-05 Thread Michael Koch
Am 05.01.2024 um 07:51 schrieb Ferdi Scholten: I want to play a video in a video from a certain point. I understood I could do something like: ffmpeg  \    -i input1.mp4 \    -i input2.mp4 \    -filter_complex " [0:v][1:v] overlay=25:25:

Re: [FFmpeg-user] Question about random() expression

2023-12-28 Thread Michael Koch
Am 28.12.2023 um 03:25 schrieb Carl Zwanzig: On 12/27/2023 3:54 PM, Jim DeLaHunt wrote: The documentation says, "x is the index of the internal variable which will be used to save the seed/state." (https://ffmpeg.org/ffmpeg-all.html#Expression-Evaluation). I don't know what it means by "index

Re: [FFmpeg-user] Question about random() expression

2023-12-27 Thread Michael Koch
Am 27.12.2023 um 23:59 schrieb Jim DeLaHunt: Michael: On 2023-12-27 13:51, Michael Koch wrote: ...I'm using this command line to print four consecutive random numbers: ... I do not have an answer to your question about the behaviour of the random() function. However, I cannot reproduce your

Re: [FFmpeg-user] Question about random() expression

2023-12-27 Thread Michael Koch
Am 27.12.2023 um 23:04 schrieb Devin Heitmueller: On Wed, Dec 27, 2023 at 4:51 PM Michael Koch wrote: Hi, I'm using this command line to print four consecutive random numbers: ffmpeg -loglevel repeat -f lavfi -i color=gray:size=1x1,format=gray -vf geq=lum='st(0,0.123);print(random(0));print

[FFmpeg-user] Question about random() expression

2023-12-27 Thread Michael Koch
Hi, I'm using this command line to print four consecutive random numbers: ffmpeg -loglevel repeat -f lavfi -i color=gray:size=1x1,format=gray -vf geq=lum='st(0,0.123);print(random(0));print(random(0));print(random(0));print(random(0));0' -frames 1 -y out.png The output is always the same

Re: [FFmpeg-user] Displacement map - glass effect

2023-12-19 Thread Michael Koch
Am 19.12.2023 um 13:56 schrieb emmanuel martin: Hello, Is there a way to do a displacement map in FFMPEG ? I would like to achieve this glass effect - See attached file. yes, please have a look at the "displace" filter or better the "remap" filter. You find many examples in my book:

Re: [FFmpeg-user] Multiple overlays at specific times

2023-12-16 Thread Michael Koch
Am 16.12.2023 um 23:41 schrieb emmanuel martin: Thanks for answering ! I took some time to understand the jpg frequency at 25fps. I made the following modifications and it works very well : ffmpeg -framerate 30 -loop 1 -i participant1.jpg -framerate 30 -i participant1.jpg -filter_complex "\

Re: [FFmpeg-user] Multiple overlays at specific times

2023-12-16 Thread Michael Koch
Am 16.12.2023 um 19:51 schrieb emmanuel martin: I have two inputs that are the same image. The first one, I loop to create a video for 8 seconds. I also create two streams that I will overlay. The background is the normal video, and above it is the same video with a LUT (Look-Up Table) that I

Re: [FFmpeg-user] Multiple overlays at specific times

2023-12-16 Thread Michael Koch
Am 16.12.2023 um 19:51 schrieb emmanuel martin: I have two inputs that are the same image. The first one, I loop to create a video for 8 seconds. I also create two streams that I will overlay. The background is the normal video, and above it is the same video with a LUT (Look-Up Table) that I

Re: [FFmpeg-user] Image sequence with part pixelated with a mask

2023-12-02 Thread Michael Koch
Am 02.12.2023 um 05:34 schrieb Ric Hunter: Hello I want to convert an image sequence (jpg) into a mp4 but i want some part of the image sequence to be pixelated based on another mask image sequence (jpg, the white being pixelated, the black being not, but it can be png with alpha I don't mind,

Re: [FFmpeg-user] How to inject video into a live stream?

2023-11-11 Thread Michael Koch
Am 11.11.2023 um 00:35 schrieb James Thornton: When you have two or more live streams, and you want the ability to toggle between the two, such as switching to camera 2's feed on the main screen, how do you do that and what do you need to consider when constructing such a system? I prefer to do

Re: [FFmpeg-user] Requesting colormatrix advice

2023-11-07 Thread Michael Koch
Am 07.11.2023 um 18:23 schrieb Phil Rhodes via ffmpeg-user: So let me get this straight. There's a command line option called colorspace. There's a filter called colorspace which has options including "space," "trc" (meaning "transfer characteristics") and "primaries," as well as several

Re: [FFmpeg-user] Same number of frames dropped and duplicated; What does that mean?

2023-10-29 Thread Michael Koch
Am 29.10.2023 um 18:08 schrieb Ulf Zibis: [Parsed_vfrdet_0 @ 0x55a6d9979b80] VFR:0.232174 (34273/113345) min: 900 max: 14400 avg: 4892 What do the numbers mean, are this nano seconds ? (the ffmpeg docs don't outline this) That's a good question. I also don't know the answer. Michael

[FFmpeg-user] protected whitespace in Wiki?

2023-10-20 Thread Michael Koch
How can I insert protected whitespaces in the Wiki? I've tried and but both don't work. I did also search on this page, but didn't find it: https://trac.ffmpeg.org/wiki/WikiFormatting Thanks, Michael ___ ffmpeg-user mailing list

Re: [FFmpeg-user] Change only video

2023-10-16 Thread Michael Koch
Am 16.10.2023 um 13:50 schrieb Cecil Westerhof via ffmpeg-user: For example: if I have a video where I want to change for a short while only the video, but not the audio. Say I have a video A of five minutes B of 3 seconds and C of 5 seconds. At 2:12 I want to use the video of video B instead of

Re: [FFmpeg-user] How to extend this page about screen recording

2023-10-12 Thread Michael Koch
Am 12.10.2023 um 11:51 schrieb Cecil Westerhof via ffmpeg-user: I just found this: https://trac.ffmpeg.org/wiki/Capture/Desktop Very interesting indeed. I have two monitors. I could write something about how to use this with two monitors (or more). Would that be appreciated? If yes, how

Re: [FFmpeg-user] MP4 with 9 subtitle streams

2023-09-24 Thread Michael Koch
Am 23.09.2023 um 23:31 schrieb Mark Filipak: On Sat, Sep 23, 2023 at 1:44 PM Michael Koch wrote: I have an example in chapter 2.223 in my book: http://www.astro-electronic.de/FFmpeg_Book.pdf Scroll down to "Method 3". Thank you, Michael! I expanded on it. ffmpeg -i "%SOUR

Re: [FFmpeg-user] MP4 with 9 subtitle streams

2023-09-23 Thread Michael Koch
Am 23.09.2023 um 19:24 schrieb Mark Filipak: The question is this: How can I use ffmpeg to put SRT subs into MP4? Is there a direct parameter? I have an example in chapter 2.223 in my book: http://www.astro-electronic.de/FFmpeg_Book.pdf Scroll down to "Method 3". Michael

Re: [FFmpeg-user] extract RAW frames into local directory from network camera

2023-09-21 Thread Michael Koch
Am 20.09.2023 um 16:50 schrieb Naveen.B: Hello, Thanks for the sharing the useful links, I tried the way you said, but I am not sure whats happening, I don't see anything happening after executing the command (neither it saves the jpg files in the current path), I need to kill the process in

Re: [FFmpeg-user] extract RAW frames into local directory from network camera

2023-09-19 Thread Michael Koch
Am 19.09.2023 um 16:49 schrieb Naveen.B: Hello, udp_data is a directory created to store the extracted RAW frames from the camera. The correct syntax is: ffmpeg -i input output For output, it's not sufficient to specify a folder. You must also specify the filename, which may contain a

Re: [FFmpeg-user] extract RAW frames into local directory from network camera

2023-09-19 Thread Michael Koch
Am 19.09.2023 um 13:11 schrieb Naveen.B: Hello, I have a ethernet camera connected to my laptop hub, it is configured and i can see the streamed Images from the camera using the ffplay command, but when I try to save the RAW Images onto the local directory, I am facing the error,

Re: [FFmpeg-user] stream frames using Ethernet camera

2023-09-05 Thread Michael Koch
Am 05.09.2023 um 11:47 schrieb Naveen.B: Hello, How could I achive it by directing ethernet images to the screen? Use ffplay instead of ffmpeg. See also the first example in chapter 24.34.3: https://www.ffmpeg.org/ffmpeg-all.html Michael ___

Re: [FFmpeg-user] FFplay: How to show the first frame of a video

2023-08-14 Thread Michael Koch
Am 14.08.2023 um 08:30 schrieb Gyan Doshi: On 2023-08-14 11:47 am, Michael Koch wrote: Am 14.08.2023 um 07:41 schrieb Michael Koch: Hello, I'd like to make a batch file for FFplay that shows only the first frame of a video until the window is closed. It should also work for still images

Re: [FFmpeg-user] FFplay: How to show the first frame of a video

2023-08-14 Thread Michael Koch
Am 14.08.2023 um 07:41 schrieb Michael Koch: Hello, I'd like to make a batch file for FFplay that shows only the first frame of a video until the window is closed. It should also work for still images. This command line works for still images and for most videos, but not for all: ffplay

[FFmpeg-user] FFplay: How to show the first frame of a video

2023-08-13 Thread Michael Koch
Hello, I'd like to make a batch file for FFplay that shows only the first frame of a video until the window is closed. It should also work for still images. This command line works for still images and for most videos, but not for all: ffplay -loop 0 -t 0 -x 500 -an %1 Below is the console

Re: [FFmpeg-user] why reducing the resolution a percentage doesn't reduce the video the same proportion?

2023-03-14 Thread Michael Koch
Am 14.03.2023 um 10:37 schrieb Natalia Molinero Mingorance: I'm using this command: -y -r -i $inVideoUri -movflags faststart -c:v libx265 -s $videoResolution -c:a copy -preset ultrafast $outPutUri" However, if "videoResolution" is a 50% of the original video resolution, the resulting file

Re: [FFmpeg-user] Selecting colors of the waveform

2023-03-10 Thread Michael Koch
Am 10.03.2023 um 06:01 schrieb Marcin Borkowski: On 2023-03-08, at 19:15, Michael Koch wrote: Am 08.03.2023 um 18:48 schrieb Marcin Borkowski: Hi all, I'm fairly new to ffmpeg, so sorry, if this is something obvious. (I'd also appreciate any pointers to the docs - I haven't read them all

Re: [FFmpeg-user] Selecting colors of the waveform

2023-03-08 Thread Michael Koch
Am 08.03.2023 um 18:48 schrieb Marcin Borkowski: Hi all, I'm fairly new to ffmpeg, so sorry, if this is something obvious. (I'd also appreciate any pointers to the docs - I haven't read them all, of course, but I _did_ try to find the answer to my questions there.) I know that I can create a

Re: [FFmpeg-user] filter_complex with 2 images generates 3 files instead of one

2023-03-01 Thread Michael Koch
Am 01.03.2023 um 10:55 schrieb Gabriel Dina: 1 frame, indeed, but is the first image without logo and info. Maybe it is a way to get the last frame? In your example all three inputs are images, so the output can only one image. If the first input is a video, you could add -ss 5 before this

Re: [FFmpeg-user] filter_complex with 2 images generates 3 files instead of one

2023-03-01 Thread Michael Koch
Am 01.03.2023 um 10:39 schrieb Gabriel Dina: Updated command: ffmpeg -i *uploads/test.png* -i ./assets/logo.png -i ./assets/telefon.png -filter_complex

Re: [FFmpeg-user] filter_complex with 2 images generates 3 files instead of one

2023-03-01 Thread Michael Koch
Am 01.03.2023 um 10:23 schrieb Michael Koch: Am 01.03.2023 um 10:12 schrieb Gabriel Dina: ffmpeg -i uploads/image.mp4 -i ./assets/logo.png -i ./assets/info.png -filter_complex "[1][0]scale2ref=w='iw *1/5':h='ow/mdar'[v1];[2][0]scale2ref=w='iw*9/10':h='ow/mdar'[v2];[0][v1]overlay=m

Re: [FFmpeg-user] filter_complex with 2 images generates 3 files instead of one

2023-03-01 Thread Michael Koch
Am 01.03.2023 um 10:12 schrieb Gabriel Dina: ffmpeg -i uploads/image.mp4 -i ./assets/logo.png -i ./assets/info.png -filter_complex "[1][0]scale2ref=w='iw

Re: [FFmpeg-user] Repeatable resolution issue exporting mxfs, 1080p is coming out as 1088p

2023-02-27 Thread Michael Koch
Am 27.02.2023 um 16:52 schrieb Michael Koch: Am 27.02.2023 um 16:34 schrieb Michael Koch: Am 27.02.2023 um 16:07 schrieb William Jones: Hi All, I'm having a big problem with ffmpeg at the moment and wanted to pry the minds of anyone who may know. Trying to export a image sequence as a .mxf

Re: [FFmpeg-user] Repeatable resolution issue exporting mxfs, 1080p is coming out as 1088p

2023-02-27 Thread Michael Koch
Am 27.02.2023 um 16:34 schrieb Michael Koch: Am 27.02.2023 um 16:07 schrieb William Jones: Hi All, I'm having a big problem with ffmpeg at the moment and wanted to pry the minds of anyone who may know. Trying to export a image sequence as a .mxf file at 1920x1080, DnxHD 115. Unfortunately

Re: [FFmpeg-user] Repeatable resolution issue exporting mxfs, 1080p is coming out as 1088p

2023-02-27 Thread Michael Koch
Am 27.02.2023 um 16:07 schrieb William Jones: Hi All, I'm having a big problem with ffmpeg at the moment and wanted to pry the minds of anyone who may know. Trying to export a image sequence as a .mxf file at 1920x1080, DnxHD 115. Unfortunately every time I try, the resulting file comes out

Re: [FFmpeg-user] ddagrab

2023-02-20 Thread Michael Koch
Am 20.02.2023 um 15:50 schrieb Michael Koch: Am 20.02.2023 um 15:46 schrieb Gyan Doshi: On 2023-02-20 07:58 pm, Michael Koch wrote: Am 20.02.2023 um 15:18 schrieb Gyan Doshi: On 2023-02-20 07:33 pm, Michael Koch wrote: Am 20.02.2023 um 14:54 schrieb Gyan Doshi: On 2023-02-20 07:15 pm

Re: [FFmpeg-user] ddagrab

2023-02-20 Thread Michael Koch
Am 20.02.2023 um 15:46 schrieb Gyan Doshi: On 2023-02-20 07:58 pm, Michael Koch wrote: Am 20.02.2023 um 15:18 schrieb Gyan Doshi: On 2023-02-20 07:33 pm, Michael Koch wrote: Am 20.02.2023 um 14:54 schrieb Gyan Doshi: On 2023-02-20 07:15 pm, Michael Koch wrote: Am 20.02.2023 um 14:29

Re: [FFmpeg-user] ddagrab

2023-02-20 Thread Michael Koch
Am 20.02.2023 um 15:18 schrieb Gyan Doshi: On 2023-02-20 07:33 pm, Michael Koch wrote: Am 20.02.2023 um 14:54 schrieb Gyan Doshi: On 2023-02-20 07:15 pm, Michael Koch wrote: Am 20.02.2023 um 14:29 schrieb Gyan Doshi: On 2023-02-20 06:27 pm, Michael Koch wrote: Am 20.02.2023 um 13:50

Re: [FFmpeg-user] ddagrab

2023-02-20 Thread Michael Koch
Am 20.02.2023 um 14:54 schrieb Gyan Doshi: On 2023-02-20 07:15 pm, Michael Koch wrote: Am 20.02.2023 um 14:29 schrieb Gyan Doshi: On 2023-02-20 06:27 pm, Michael Koch wrote: Am 20.02.2023 um 13:50 schrieb Gyan Doshi: On 2023-02-20 06:03 pm, Michael Koch wrote: Hello, I'm testing

Re: [FFmpeg-user] ddagrab

2023-02-20 Thread Michael Koch
Am 20.02.2023 um 14:54 schrieb Gyan Doshi: On 2023-02-20 07:15 pm, Michael Koch wrote: Am 20.02.2023 um 14:29 schrieb Gyan Doshi: On 2023-02-20 06:27 pm, Michael Koch wrote: Am 20.02.2023 um 13:50 schrieb Gyan Doshi: On 2023-02-20 06:03 pm, Michael Koch wrote: Hello, I'm testing

Re: [FFmpeg-user] ddagrab

2023-02-20 Thread Michael Koch
Am 20.02.2023 um 14:29 schrieb Gyan Doshi: On 2023-02-20 06:27 pm, Michael Koch wrote: Am 20.02.2023 um 13:50 schrieb Gyan Doshi: On 2023-02-20 06:03 pm, Michael Koch wrote: Hello, I'm testing the ddagrab filter with the example from the documentation. I did only add -t 10 -y

Re: [FFmpeg-user] ddagrab

2023-02-20 Thread Michael Koch
Am 20.02.2023 um 13:50 schrieb Gyan Doshi: On 2023-02-20 06:03 pm, Michael Koch wrote: Hello, I'm testing the ddagrab filter with the example from the documentation. I did only add -t 10 -y, but that can't be the problem. ffmpeg -f lavfi -i ddagrab -c:v h264_nvenc -cq 18 -t 10 -y out.mp4

[FFmpeg-user] ddagrab

2023-02-20 Thread Michael Koch
Hello, I'm testing the ddagrab filter with the example from the documentation. I did only add -t 10 -y, but that can't be the problem. ffmpeg -f lavfi -i ddagrab -c:v h264_nvenc -cq 18 -t 10 -y out.mp4 What does this error message mean? [h264_nvenc @ 01f5f7bbf980] OpenEncodeSessionEx

Re: [FFmpeg-user] Write audio volume info to file

2023-02-16 Thread Michael Koch
Am 16.02.2023 um 12:31 schrieb Alexander Bieliaev via ffmpeg-user: How can I analyze the volume of input audio (in dB) and write that to the text file? If you want to know the mean and maximum volume in the whole stream, that can be done with the volumedetect filter. Or do you want to know

Re: [FFmpeg-user] Question about "normalize" filter

2023-02-07 Thread Michael Koch
Am 30.01.2023 um 20:45 schrieb Paul B Mahol: filter supports up to 16bit rgb(a), adding float would be trivial. patch welcome Thanks for adding float to colorlevels. Is there any filter for gamma correction with float? Does the geq filter support float? Yes. Gamma correction with float

Re: [FFmpeg-user] Replace part of the audio

2023-02-01 Thread Michael Koch
Am 01.02.2023 um 09:39 schrieb Alexander Bieliaev via ffmpeg-user: Thanks, it kinda worked for me, but it seems like it's dependent on the length of the inserted audio. For example if I have a 2 minute audio and try to replace some parts of it with audio that is 1 minute long, for the first

Re: [FFmpeg-user] Replace multiple parts of audio with beeps

2023-02-01 Thread Michael Koch
Am 01.02.2023 um 11:27 schrieb Alexander Bieliaev via ffmpeg-user: How can I replace multiple parts of audio with generated beeps? I tried next command: -filter_complex " [0]volume=0:enable='between(t,10,15)+between(t,20,30)'[main]; sine=f=800, pan=stereo|FL=c0|FR=c0,

Re: [FFmpeg-user] Question about "normalize" filter

2023-01-30 Thread Michael Koch
Am 30.01.2023 um 12:52 schrieb Paul B Mahol: On 1/30/23, Michael Koch wrote: Am 30.01.2023 um 10:29 schrieb Paul B Mahol: You wrote: "With default parameters and just strength(2) set to your values, so the darkest pixels are left untouched." However I want that black remains

Re: [FFmpeg-user] Question about "normalize" filter

2023-01-30 Thread Michael Koch
Am 30.01.2023 um 10:29 schrieb Paul B Mahol: You wrote: "With default parameters and just strength(2) set to your values, so the darkest pixels are left untouched." However I want that black remains untouched. That's not the same, because the darkest pixels in the image aren't black. The

Re: [FFmpeg-user] Question about "normalize" filter

2023-01-30 Thread Michael Koch
Am 30.01.2023 um 08:47 schrieb Paul B Mahol: On Mon, Jan 30, 2023 at 12:23 AM Michael Koch wrote: Am 29.01.2023 um 23:36 schrieb Paul B Mahol: On 1/29/23, Michael Koch wrote: Am 29.01.2023 um 23:07 schrieb Paul B Mahol: On 1/29/23, Michael Koch wrote: Am 29.01.2023 um 22:05 schrieb Paul

Re: [FFmpeg-user] Question about "normalize" filter

2023-01-29 Thread Michael Koch
Am 29.01.2023 um 23:36 schrieb Paul B Mahol: On 1/29/23, Michael Koch wrote: Am 29.01.2023 um 23:07 schrieb Paul B Mahol: On 1/29/23, Michael Koch wrote: Am 29.01.2023 um 22:05 schrieb Paul B Mahol: On 1/29/23, Michael Koch wrote: Am 29.01.2023 um 19:32 schrieb Paul B Mahol: On 1/29/23

Re: [FFmpeg-user] Question about "normalize" filter

2023-01-29 Thread Michael Koch
Am 29.01.2023 um 23:07 schrieb Paul B Mahol: On 1/29/23, Michael Koch wrote: Am 29.01.2023 um 22:05 schrieb Paul B Mahol: On 1/29/23, Michael Koch wrote: Am 29.01.2023 um 19:32 schrieb Paul B Mahol: On 1/29/23, Michael Koch wrote: Hello, if I understood the documentation correctly

Re: [FFmpeg-user] Question about "normalize" filter

2023-01-29 Thread Michael Koch
Am 29.01.2023 um 22:05 schrieb Paul B Mahol: On 1/29/23, Michael Koch wrote: Am 29.01.2023 um 19:32 schrieb Paul B Mahol: On 1/29/23, Michael Koch wrote: Hello, if I understood the documentation correctly, the normalize filter maps the darkest input pixel to blackpt and the brightest input

Re: [FFmpeg-user] Question about "normalize" filter

2023-01-29 Thread Michael Koch
Am 29.01.2023 um 19:32 schrieb Paul B Mahol: On 1/29/23, Michael Koch wrote: Hello, if I understood the documentation correctly, the normalize filter maps the darkest input pixel to blackpt and the brightest input pixel to whitept: darkest pixel --> blackpt brightest pixel --> w

[FFmpeg-user] Question about "normalize" filter

2023-01-29 Thread Michael Koch
Hello, if I understood the documentation correctly, the normalize filter maps the darkest input pixel to blackpt and the brightest input pixel to whitept: darkest pixel --> blackpt brightest pixel --> whitept However I need a slightly different mapping: A black input pixel shall remain black,

[FFmpeg-user] Mathematical Art

2023-01-28 Thread Michael Koch
Hello all, this is not a question. This cool equation was designed by Hamid Naderi Yeganeh. I did only translate it into a FFmpeg command. Let it run and see what comes out. ffmpeg -f lavfi -i color=black:s=hd1080,format=gray -vf

Re: [FFmpeg-user] Replace part of the audio

2023-01-23 Thread Michael Koch
Am 22.01.2023 um 23:52 schrieb Reino Wijnsma: Hello Michael, On 2023-01-22T18:50:20+0100, Michael Koch wrote: This command line works with asendcmd and astreamselect: ffmpeg -i audio1.wav -i audio2.wav -lavfi asendcmd="4 astreamselect map 1",asendcmd="6 astreamselect map 0

Re: [FFmpeg-user] Replace part of the audio

2023-01-22 Thread Michael Koch
Am 22.01.2023 um 19:21 schrieb Paul B Mahol: On 1/22/23, Michael Koch wrote: Am 22.01.2023 um 16:56 schrieb Michael Koch: Am 22.01.2023 um 16:25 schrieb Paul B Mahol: On 1/22/23, Michael Koch wrote: Am 21.01.2023 um 17:05 schrieb Paul B Mahol: On 1/19/23, Michael Koch wrote: Am

Re: [FFmpeg-user] Replace part of the audio

2023-01-22 Thread Michael Koch
Am 22.01.2023 um 16:56 schrieb Michael Koch: Am 22.01.2023 um 16:25 schrieb Paul B Mahol: On 1/22/23, Michael Koch wrote: Am 21.01.2023 um 17:05 schrieb Paul B Mahol: On 1/19/23, Michael Koch wrote: Am 19.01.2023 um 15:49 schrieb Alexander Bieliaev via ffmpeg-user: How can I replace a part

Re: [FFmpeg-user] Replace part of the audio

2023-01-22 Thread Michael Koch
Am 22.01.2023 um 16:25 schrieb Paul B Mahol: On 1/22/23, Michael Koch wrote: Am 21.01.2023 um 17:05 schrieb Paul B Mahol: On 1/19/23, Michael Koch wrote: Am 19.01.2023 um 15:49 schrieb Alexander Bieliaev via ffmpeg-user: How can I replace a part of the audio from and to a specific time

Re: [FFmpeg-user] Replace part of the audio

2023-01-22 Thread Michael Koch
Am 21.01.2023 um 17:05 schrieb Paul B Mahol: On 1/19/23, Michael Koch wrote: Am 19.01.2023 um 15:49 schrieb Alexander Bieliaev via ffmpeg-user: How can I replace a part of the audio from and to a specific time with some other audio/sound (I want to replace it with beep in this case)? Here

Re: [FFmpeg-user] Issue with "%04d" when creating image sequence from a video

2023-01-20 Thread Michael Koch
Am 20.01.2023 um 00:37 schrieb JJ jo: Hi, I'm new and I don't know if it's the right way to ask for a problem. I have a problem when attempting to create an image sequence from an mkv file. This is the code i put in a *.bat file: ffmpeg -i input.mkv %04d.jpg If used in a (Windows) batch file,

Re: [FFmpeg-user] Replace part of the audio

2023-01-19 Thread Michael Koch
Am 19.01.2023 um 15:49 schrieb Alexander Bieliaev via ffmpeg-user: How can I replace a part of the audio from and to a specific time with some other audio/sound (I want to replace it with beep in this case)? Here is an example: ffmpeg -lavfi sine=500:d=10 -y audio1.wav ffmpeg -lavfi

Re: [FFmpeg-user] Create a black box over top of the video for a set duration at a set time.

2022-12-31 Thread Michael Koch
Am 31.12.2022 um 10:31 schrieb Bouke / Videotoolshed: On 31 Dec 2022, at 04:53, Gyan Doshi wrote: On 2022-12-31 08:15 am, David Niklas wrote: Sorry for taking so long to reply. It is not working. Terminal output below. % ffmpeg -i Ducksinarow.mp4 -filter_complex

Re: [FFmpeg-user] Extract chapter names to a text file?

2022-12-05 Thread Michael Koch
Am 06.12.2022 um 01:10 schrieb Carl Zwanzig: On 12/5/2022 1:36 PM, Laine wrote: If you are able to generate “chapters.txt” but observe an overabundance of information in that file, you might try the options that I used to get just the video title and a list of the chapters. 'grep' does

Re: [FFmpeg-user] Sending 2 camera outputs side by side to loopback device

2022-11-24 Thread Michael Koch
Am 25.11.2022 um 08:02 schrieb Jim Ruxton: I am on Ubuntu 22.04 and trying to combine 2 cameras into one stream that is being sent to a loopback device. The command appears to work but I can't see the stream in any way. I've tried VLC Cheese ffplay guvcview and none of them work. The command I

Re: [FFmpeg-user] datascope 16-bit

2022-11-22 Thread Michael Koch
Am 22.11.2022 um 02:15 schrieb Jim DeLaHunt: On 2022-11-20 00:15, Michael Koch wrote: Am 20.11.2022 um 02:39 schrieb list+ffmpeg-u...@jdlh.com: On 2022-11-19 07:34, Michael Koch wrote: Am 03.11.2022 um 10:10 schrieb Paul B Mahol: Some things in sea of myriad others: [...] Why you claim

Re: [FFmpeg-user] datascope 16-bit

2022-11-20 Thread Michael Koch
Am 20.11.2022 um 02:39 schrieb list+ffmpeg-u...@jdlh.com: On 2022-11-19 07:34, Michael Koch wrote: Am 03.11.2022 um 10:10 schrieb Paul B Mahol: Some things in sea of myriad others: [...] Why you claim that datascope does not support >8 bit formats where in fact it does support it? In s

[FFmpeg-user] datascope 16-bit

2022-11-19 Thread Michael Koch
Am 03.11.2022 um 10:10 schrieb Paul B Mahol: Some things in sea of myriad others: [...] Why you claim that datascope does not support >8 bit formats where in fact it does support it? In some cases datascope works with 16-bit data, but not in all cases. Here is an example where it doesn't

Re: [FFmpeg-user] Piping from FFmpeg to FFplay

2022-11-13 Thread Michael Koch
Am 13.11.2022 um 22:52 schrieb Reino Wijnsma: On 2022-11-13T20:45:42+0100, Michael Koch wrote: ffmpeg -f lavfi -i testsrc2 -f nut | ffplay - Btw, I hope you know that ffplay can do this too: ffplay -f lavfi testsrc2 yes, that's known. Michael

Re: [FFmpeg-user] Piping from FFmpeg to FFplay

2022-11-13 Thread Michael Koch
Am 13.11.2022 um 22:47 schrieb Reino Wijnsma: On 2022-11-13T22:18:15+0100, Michael Koch wrote: Is the "-" at the end an (undocumented) option of FFplay, or is it a batch file operator? The first, I guess. I've found 'opusenc' (Opus command-line encoder) to print: Usage: opusen

Re: [FFmpeg-user] Piping from FFmpeg to FFplay

2022-11-13 Thread Michael Koch
Am 13.11.2022 um 21:57 schrieb Reino Wijnsma: Hello Michael, On 2022-11-13T20:45:42+0100, Michael Koch wrote: ffmpeg -f lavfi -i testsrc2 -f nut | ffplay - This command line works fine and I have used it many times. It shouldn't, because you forgot a "-" after "-f nut&qu

[FFmpeg-user] Piping from FFmpeg to FFplay

2022-11-13 Thread Michael Koch
I have a question about piping from FFmpeg to FFplay (in a Windows batch file): ffmpeg -f lavfi -i testsrc2 -f nut | ffplay - This command line works fine and I have used it many times. But I don't know what's the meaning of the - character after ffplay. Does this - character belong to the

Re: [FFmpeg-user] Change fps from 50 to 25

2022-11-12 Thread Michael Koch
Am 12.11.2022 um 12:39 schrieb Cecil Westerhof via ffmpeg-user: I have a few videos that have a 50 fps. But the computer I am playing them on cannot handle that properly. Can I use ffmpeg to change the fps to 25? While still having the same length. sure, that's easy: ffmpeg -i in.mp4 -r 25

Re: [FFmpeg-user] 16:9 to 2.35:1 and true HD 7.1 to DTS

2022-11-03 Thread Michael Koch
Am 03.11.2022 um 20:17 schrieb Bartosz Trzebuchowski: Hi, I’m completely new to ffmpeg and have 2 questions: 1. How can I convert 16:9 movies to 2.35:1? My projector can’t scale down and 16:9 movies run outside my 2.35:1 canvas at the top and the bottom. I need to black out top and bottom so

Re: [FFmpeg-user] V360 stabilization

2022-11-03 Thread Michael Koch
Am 03.11.2022 um 10:10 schrieb Paul B Mahol: Your book is full or factual errors, Notice to anyone: do not use this thing for anything serious. Thank you for so much promotion for my book. Sure, it's likely that in more than 900 pages there are a few errors. We all make errors. If anyone finds

Re: [FFmpeg-user] V360 stabilization

2022-11-03 Thread Michael Koch
Am 03.11.2022 um 10:10 schrieb Paul B Mahol: On 11/3/22, Michael Koch wrote: Am 03.11.2022 um 09:35 schrieb Paul B Mahol: On 10/11/20, Michael Koch wrote: Am 29.09.2020 um 22:54 schrieb Michael Koch: Hello all, I've programmed a C# workaround for stabilization of 360° videos

Re: [FFmpeg-user] V360 stabilization

2022-11-03 Thread Michael Koch
Am 03.11.2022 um 09:35 schrieb Paul B Mahol: On 10/11/20, Michael Koch wrote: Am 29.09.2020 um 22:54 schrieb Michael Koch: Hello all, I've programmed a C# workaround for stabilization of 360° videos. The procedure is as follows: 1. FFmpeg: From each frame of the equirectangular input video

Re: [FFmpeg-user] Error in aeval?

2022-10-29 Thread Michael Koch
Am 29.10.2022 um 12:02 schrieb Paul B Mahol: On 10/29/22, Michael Koch wrote: This command line works as expected: ffmpeg -f lavfi -i sine,aeval="val(0)|val(0)*sin(2)*sin(2)" -ac 2 -t 5 -y out.wav Why does it no longer work when I replace sin(2)*sin(2) by pow(sin(2),2) ? ffmpe

[FFmpeg-user] Error in aeval?

2022-10-29 Thread Michael Koch
This command line works as expected: ffmpeg -f lavfi -i sine,aeval="val(0)|val(0)*sin(2)*sin(2)" -ac 2 -t 5 -y out.wav Why does it no longer work when I replace sin(2)*sin(2)  by pow(sin(2),2)  ? ffmpeg -f lavfi -i sine,aeval="val(0)|val(0)*pow(sin(2),2)" -ac 2 -t 5 -y out.wav Is this a

Re: [FFmpeg-user] What is a "pad" in the context of an "input pad", an "output pad" and a "filter pad"

2022-10-27 Thread Michael Koch
Am 27.10.2022 um 21:57 schrieb Clay via ffmpeg-user: Dumb ffmpeg question alert: What is a "pad" in the context of an "input pad", an "output pad" and a "filter pad"? "input pad" and "output pad" are described in chapter 32: https://www.ffmpeg.org/ffmpeg-all.html#Filtergraph-description

Re: [FFmpeg-user] encode to RAW video

2022-10-25 Thread Michael Koch
Am 25.10.2022 um 09:29 schrieb Naveen.B: What do you want to do with the RAW video? You know that you can't play it with most players? Yes, I know it cannot be played with most of th players, I need to see the size of the RAW video and make some compression on it for our further analysis.

Re: [FFmpeg-user] encode to RAW video

2022-10-24 Thread Michael Koch
Am 24.10.2022 um 18:36 schrieb Naveen.B: Are you sure that there is a file CapturedImage-000.raw ? You forgot to specify the input pixel format. Many parameters are missing for the raw output. But the error message is from the input. Do you really want raw video? That's not the easiest format

Re: [FFmpeg-user] encode to RAW video

2022-10-24 Thread Michael Koch
Am 24.10.2022 um 17:50 schrieb Naveen.B: Hello Team, I have managed to convert raw Images files to .mp4 video, I need to encode to a RAW video instead, could you please let me know the command for this? RAW Image file is, resolution - 1600x1300 fps-30 bit depth-16bit Do not specify a

[FFmpeg-user] Convert from TIF to DNG

2022-10-24 Thread Michael Koch
On a website (1) I found the idea that a TIF file can be converted to a DNG file just by adding some tags and renaming it. Let's test it. Make a 16-bit TIF file: ffmpeg -f lavfi -i nullsrc=s=320x320,format=yuv444p10le -vf geq=lum='X/W*32+32*floor(Y/H*32)':cr=512:cb=512,format=rgb48be -frames

Re: [FFmpeg-user] encode to RAW video

2022-10-24 Thread Michael Koch
Am 24.10.2022 um 14:29 schrieb Naveen.B: On 24 Oct 2022, at 12:52, Naveen.B wrote: Hello Team, I have managed to convert raw Images files to .mp4 video, I need to encode to a RAW video instead, could you please let me know the command for this? RAW Image file is, resolution - 1600x1300

Re: [FFmpeg-user] ScaleUp the Raw file

2022-10-19 Thread Michael Koch
The -s option in your command line is for the output size because it's written after -i. You must also set the input size before -i. Your RAW image contains only pixel data and no header for size and pixel format. I din't understand the header for size and pixel format, width error is

Re: [FFmpeg-user] ScaleUp the Raw file

2022-10-19 Thread Michael Koch
Am 19.10.2022 um 21:50 schrieb Naveen.B: I got an error by trying this command. Could you kindly let me know if this is feasible? Always always always include the complete output of ffmpeg when asking for help. For one, we don't know what error you got.

Re: [FFmpeg-user] ScaleUp the Raw file

2022-10-19 Thread Michael Koch
Am 19.10.2022 um 21:26 schrieb Naveen.B: I got an error by trying this command. Could you kindly let me know if this is feasible? Always always always include the complete output of ffmpeg when asking for help. For one, we don't know what error you got.

Re: [FFmpeg-user] Help: is it possibile to join an image and a live stream?

2022-10-09 Thread Michael Koch
Am 07.10.2022 um 20:28 schrieb Michael Koch: Am 07.10.2022 um 19:32 schrieb i...@mbsoft.biz: i have 2 inputs first input image  -i logo.png second input dshow webcam  -f dshow -i video="my webcam" is it possible to show 5 seconds logo and and subsequently start webcam? it can al

Re: [FFmpeg-user] R: Help: is it possibile to join an image and a live stream?

2022-10-07 Thread Michael Koch
Am 07.10.2022 um 21:32 schrieb i...@mbsoft.biz: I have tried ffmpeg.exe" -loglevel quiet -analyzeduration 0 -probesize 32 -report -i "e:\\logo.png" -f dshow -video_size 1280x720 -framerate 30 -video_device_number 0 -i "video=Full HD 1080P PC Camera" "sendcmd='5.0" streamselect map

Re: [FFmpeg-user] Help: is it possibile to join an image and a live stream?

2022-10-07 Thread Michael Koch
Am 07.10.2022 um 19:32 schrieb i...@mbsoft.biz: i have 2 inputs first input image -i logo.png second input dshow webcam -f dshow -i video="my webcam" is it possible to show 5 seconds logo and and subsequently start webcam? it can also be done with "streamselect" filter, have a look at the

Re: [FFmpeg-user] Help: is it possibile to join an image and a live stream?

2022-10-07 Thread Michael Koch
Am 07.10.2022 um 19:32 schrieb i...@mbsoft.biz: i have 2 inputs first input image -i logo.png second input dshow webcam -f dshow -i video="my webcam" is it possible to show 5 seconds logo and and subsequently start webcam? Here is an example for switching between two inputs after 5

Re: [FFmpeg-user] datascope

2022-09-18 Thread Michael Koch
Am 18.09.2022 um 18:50 schrieb Carl Zwanzig: On 9/18/2022 5:28 AM, Michael Koch wrote: It seems the crop filter did change the pixel format to GBR. Which brings the follow-up question- why did crop...? geq or crop, one of them. IIRC, some/many/most/all filters operate on a limited number

Re: [FFmpeg-user] datascope

2022-09-18 Thread Michael Koch
Am 18.09.2022 um 13:36 schrieb Michael Koch: Why does datascope show the color components in the unusual order GBR (from top to bottom)? It's confusing. Can the order be changed to RGB? ffmpeg -f lavfi -i color=black:s=26x6 -lavfi format=rgb24,geq=r='clip(64*mod(X,5),0,255)':g='clip(64*Y

  1   2   3   4   5   6   7   8   >