Re: [FFmpeg-user] How to get he total number of frames

2021-03-09 Thread Ulf Zibis
Am 09.03.21 um 13:07 schrieb Nicolas George: -c copy tells ffmpeg to dispense with the decoder, which means it does not count frames but packets. Have you tried telling ffprobe to count packets? So for correctness, ffmpeg should report packets instead frames in its progress output line, at le

Re: [FFmpeg-user] How to get he total number of frames

2021-03-09 Thread Ulf Zibis
Am 09.03.21 um 11:53 schrieb Moritz Barsnick: On Tue, Mar 09, 2021 at 11:07:21 +0100, Ulf Zibis wrote: Am 09.03.21 um 10:43 schrieb Ulf Zibis: I suspect that the last "progression" line shows the exact count, as it may only report the last progression state a few µs before the op

Re: [FFmpeg-user] How to get he total number of frames

2021-03-09 Thread Ulf Zibis
Am 09.03.21 um 14:22 schrieb Nicolas George: Ulf Zibis (12021-03-09): So for correctness, ffmpeg should report packets instead frames in its progress output line, at least with -c copy ... or please correct me. Would you insist on people saying that the mailman brings envelopes instead of

Re: [FFmpeg-user] How to get he total number of frames

2021-03-09 Thread Ulf Zibis
Am 09.03.21 um 11:48 schrieb Peter White: On Tue, Mar 09, 2021 at 11:07:21AM +0100, Ulf Zibis wrote: Am 09.03.21 um 10:43 schrieb Ulf Zibis: Am 09.03.21 um 09:57 schrieb Peter White: The frame count *is* exact. The way to get there is just not that pretty. If anybody on this list knows a

Re: [FFmpeg-user] FFmpeg list footer

2021-03-09 Thread Ulf Zibis
Am 09.03.21 um 12:25 schrieb Reindl Harald: as said: bunch of idiots! Please take into account, that people tend to completely ignore posts of people who repetitively express as such, me too in most cases. This time I do an exception!!! when someone tells me "don't top post" and i don't un

Re: [FFmpeg-user] Frame counting is too slow

2021-03-09 Thread Ulf Zibis
Am 09.03.21 um 16:27 schrieb Peter White: Hi all, as a follow-up to this discussion: https://ffmpeg.org/pipermail/ffmpeg-user/2021-March/052358.html I would like to ask, if frame counting with ffprobe can be made faster. The way it done now is obviously by decoding every single frame and after

[FFmpeg-user] Multiple streams in a Matroska container

2021-03-11 Thread Ulf Zibis
Hi, is it possible to assemble several videos in one Matroska container, just like it is common on DVDs? As result, I want a structure like: + Title 1   + Chapter 1   + Chapter 2 + Title 2   + Chapter 1   + Chapter 2   + Chapter 3 + Title 3 [.] As originals I have .mkv videos, already with

Re: [FFmpeg-user] How to get he total number of frames

2021-03-12 Thread Ulf Zibis
Am 12.03.21 um 17:00 schrieb Peter White: On Fri, Mar 12, 2021 at 03:51:11PM +0100, Nicolas George wrote: Peter White (12021-03-12): but that is because a packet needs to be decoded first to get the frame. Please be complete in your statements: ... with some obscure codecs or if libavcodec h

[FFmpeg-user] Multiple streams in a Matroska container

2021-03-17 Thread Ulf Zibis
Hi, is it possible to assemble several videos in one Matroska container, just like it is common on DVDs? As result, I want a structure like: + Title 1   + Chapter 1   + Chapter 2 + Title 2   + Chapter 1   + Chapter 2   + Chapter 3 + Title 3 [.] As originals I have .mkv videos, already with

[FFmpeg-user] How to deinterlace strange interlacing

2021-03-31 Thread Ulf Zibis
Hi, here is the original: http://www.jugkoeln.de/Videos/Mak/Mak.mpg transcoded to mp4: http://www.jugkoeln.de/Videos/Mak/Mak.mp4 On the clapping hands, you see typical interlacing patterns. deinterlaced with bwdif: http://www.jugkoeln.de/Videos/Mak/Mak_bwdif.mp4 ... with bwdif=1:0: http://www.ju

[FFmpeg-user] Guide to denoise VHS videos

2021-04-11 Thread Ulf Zibis
Hi, does anyone know a good guide how to denoise mpeg2 videos, which come from VHS videos, recorded with DVD-recorder? My goal is to reduce the bit rate as much as possible. From my view, the most disturbing is the temporal noise. Some few videos in "long play" recordings too show heavy blockin

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

2021-04-11 Thread Ulf Zibis
Am 11.04.21 um 20:46 schrieb Carl Zwanzig: I assume you're stuck with the captures you already have, yes? (Most of the issues come from the analog world and ought to be fixed there- a TBC on the playback deck output, capturing YC outputs if available instead of composite, cleaning the playbac

Re: [FFmpeg-user] How to deinterlace strange interlacing

2021-04-15 Thread Ulf Zibis
Hi Christoph, Am 03.04.21 um 00:42 schrieb Christoph Gerstbauer: Hello, forget my last mail. The original video is destroyed in the first place. If you SPLIT the fields from the original MPG you see PER FIELD interlacing artefacts. That is a sign that the original video from tape was not corre

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

2021-04-15 Thread Ulf Zibis
Am 12.04.21 um 08:53 schrieb 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

[FFmpeg-user] How to filter time dependent

2021-04-22 Thread 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? -Ulf ___ ffmpeg-u

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

2021-04-22 Thread Ulf Zibis
Am 22.04.21 um 13:01 schrieb Michael Koch: untested: ffmpeg -i input.mp4 -lavfi split[a][b];[a]filter_A[c];[b]filter_B[d];[c][d]select=bitor(between(t,0,1999),between(t,2200,1)),filter_C out.mp4 Much thanks for this great help. To find the time, from where I will change the filter, I

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

2021-04-22 Thread Ulf Zibis
Am 22.04.21 um 21:59 schrieb Jim DeLaHunt: On 2021-04-22 08:26, Ulf Zibis wrote: …with exact frame count instead unsing -ss, which only counts in seconds? Just to be sure the obvious is stated out loud: the parameter to -ss can be a floating-point number, meaning you can make it as precise

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

2021-04-22 Thread 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 filter C. Can one please give me an example

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

2021-04-23 Thread Ulf Zibis
Thanks ... Am 23.04.21 um 09:04 schrieb Michael Koch: Please have a look at the "streamselect" filter instead of "select". Will do later. However the problem might be easier to solve if your filters A, B and C have timeline support with "enable" option. Use this command to find out if yo

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

2021-04-23 Thread Ulf Zibis
Am 23.04.21 um 13:56 schrieb 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

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

2021-04-23 Thread 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 the upper range to 10:23.60 and there is a frame at 10:2

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

2021-04-23 Thread 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,setpts=PTS-STARTPTS,crop=352:496:0:36[a];[b]tri

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

2021-04-23 Thread Ulf Zibis
Am 23.04.21 um 21:20 schrieb Leo Butler via ffmpeg-user: I would put the select filters before filter_A, etc., rather than after. I would use the concat filter at the end to concatenate the streams. Otherwise, out.mp4 ends with 3 parallel video streams. May be that would work, but I didn't tes

[FFmpeg-user] How to repair iPhone photos

2021-05-15 Thread Ulf Zibis
Hi, I have some photos from a iPhone in HEIC format. Is there a chance, to convert them to a "normal" format? ffplay says: $ ffplay IMG_0416.HEIC ffplay version 4.2.4-1ubuntu0.1 Copyright (c) 2003-2020 the FFmpeg developers   built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)   configuration: --prefix=/

Re: [FFmpeg-user] How to repair iPhone photos

2021-05-15 Thread Ulf Zibis
Am 16.05.21 um 00:13 schrieb Leo Butler via ffmpeg-user: Ulf Zibis writes: Hi, I have some photos from a iPhone in HEIC format. Is there a chance, to convert them to a "normal" format? Try convert image.heic image.jpg convert is a program in the imagemagick sui

Re: [FFmpeg-user] How to repair iPhone photos

2021-05-16 Thread Ulf Zibis
Am 16.05.21 um 00:13 schrieb Leo Butler via ffmpeg-user: Try convert image.heic image.jpg Unfortunately it does not work: $ convert IMG_0416.HEIC IMG_0416.JPG convert-im6.q16: no decode delegate for this image format `HEIC' @ error/constitute.c/ReadImage/560. convert-im6.q16: no images defi

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

2021-05-28 Thread Ulf Zibis
Am 28.05.21 um 11:44 schrieb 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

[FFmpeg-user] How to lossless crop mp4 videos

2021-08-15 Thread Ulf Zibis
Hi, if I understand correct, mp4 videos are encoded in blocks of 16x16 pixels. I I'm wondering if I could crop a video by multiples of 16 pixels without reencoding the remaining blocks. -Ulf ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https:

Re: [FFmpeg-user] Why FFMPEG?

2021-08-15 Thread Ulf Zibis
Am 16.08.21 um 00:26 schrieb Android PowerUser: The 2011 PC probably cost more than I've ever spent on smartphones. You will tell us, that you spent less money on smartphones over a period of 10 years than 1 PC? In my experience, the average time of use of smartphones is only 2 - 4 years. -

Re: [FFmpeg-user] How to lossless crop mp4 videos

2021-08-15 Thread Ulf Zibis
Am 16.08.21 um 00:32 schrieb Android PowerUser: That always depends on the codec and probably also on the bit rate and resolution. MP4 is just a container format. I mean mp4 with default libx264 codec. -Ulf ___ ffmpeg-user mailing list ffmpeg-use

Re: [FFmpeg-user] Why FFMPEG?

2021-08-15 Thread Ulf Zibis
Am 16.08.21 um 00:48 schrieb Android PowerUser: Ich muss zugeben die Hardware Anforderungen sind für Smartphones schnell gestiegen... Ich komm aus einer konservativen Familie. Deshalb habe ich überhaupt erst seit 2015 mobile Geräte. Deswegen ist der Vergleich auch unfair. Ich habe zu wenig beach

Re: [FFmpeg-user] How to lossless crop mp4 videos

2021-08-16 Thread Ulf Zibis
Am 16.08.21 um 09:44 schrieb Nicolas George: Ulf Zibis (12021-08-16): if I understand correct, mp4 videos are encoded in blocks of 16x16 pixels. I I'm wondering if I could crop a video by multiples of 16 pixels without reencoding the remaining blocks. It depends on the codec, not the f

[FFmpeg-user] Framerate automatically increased while cropping

2021-08-20 Thread Ulf Zibis
Hi, why is the framerate automatically changed here from 29.98 fps to 120 fps, and how can I prevent from this ? $ ffmpeg -i Demo\ 31.10.2020\ Köln\ Vorspiel+Zugriff.mp4 -vf crop=640:320:640:176 Demo\ 31.10.2020\ Köln\ Vorspiel+Zugriff\ Ausschnitt.mp4 ffmpeg version 4.4-static https://johnvans

Re: [FFmpeg-user] Framerate automatically increased while cropping

2021-08-24 Thread Ulf Zibis
Am 23.08.21 um 07:15 schrieb Adam Nielsen via ffmpeg-user: why is the framerate automatically changed here from 29.98 fps to 120 fps, and how can I prevent from this ?   Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 2508 kb/s, 29.98 fps, 120 tbr, 90k tbn, 2k tb

Re: [FFmpeg-user] Framerate automatically increased while cropping

2021-08-24 Thread Ulf Zibis
Am 23.08.21 um 07:44 schrieb Gyan Doshi: You can add `-fpsmax 30` with v4.4 or newer. This will limit output rate to 30 if the input is higher else keep the original rate. With that I get a rate of 30 instead of the original 29.98, so each 50th frame gets duplicated, which I value as nonse

Re: [FFmpeg-user] Framerate automatically increased while cropping

2021-08-24 Thread Ulf Zibis
Am 24.08.21 um 13:51 schrieb Ulf Zibis: Am 23.08.21 um 07:15 schrieb Adam Nielsen via ffmpeg-user: why is the framerate automatically changed here from 29.98 fps to 120 fps, and how can I prevent from this ?     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720

Re: [FFmpeg-user] Framerate automatically increased while cropping

2021-08-25 Thread Ulf Zibis
Am 23.08.21 um 07:15 schrieb Adam Nielsen via ffmpeg-user: why is the framerate automatically changed here from 29.98 fps to 120 fps, and how can I prevent from this ?   Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 2508 kb/s, 29.98 fps, 120 tbr, 90k tbn, 2k tb

Re: [FFmpeg-user] Framerate automatically increased while cropping

2021-08-25 Thread Ulf Zibis
Am 24.08.21 um 13:51 schrieb Ulf Zibis I guess you could use the -r option to override this and force a specific framerate if you want something different? Yes, this works fine. But I would appreciate, if I could use something like -r=inputrate or --keep_framerate I've found out,

[FFmpeg-user] Respect to tbr causes inferior quality and increased file size

2021-08-25 Thread Ulf Zibis
Hi, I have learned, that ffmpeg respects a given tbr value as output frame rate. Now I'm questioning the advantage of that behaviour. Can someone tell me? I only see disadvantages: - the video becomes encoded with lower quality, i.g. q=33.0 instead q=29.0 - the video size is 13 % bigger, e.g. 5

[FFmpeg-user] Vertically flipped mp4 video

2022-06-28 Thread Ulf Zibis
Hi, how can I correct a vertically flipped mp4 video without re-encoding? The left side is on the right side and vice versa. Thanks, -Ulf ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscr

Re: [FFmpeg-user] Vertically flipped mp4 video

2022-06-28 Thread Ulf Zibis
Am 28.06.22 um 13:45 schrieb Ulf Zibis: Hi, how can I correct a vertically flipped mp4 video without re-encoding? The left side is on the right side and vice versa. I tried: ffmpeg -i input.mp4  -c copy -metadata:s:v:0 flip=horizontal output.mp4 But this changed nothing :-( $ ffprobe

Re: [FFmpeg-user] Vertically flipped mp4 video

2022-06-28 Thread Ulf Zibis
Am 28.06.22 um 14:59 schrieb Moritz Barsnick: Metadata flags do exist for rotating, but not for flipping. Thus this cannot be done without re-encoding. I'm irritated. Here I can read, that it exists: https://ffmpeg.org/ffmpeg-all.html#toc-h264_005fmetadata Even for rotation, the player needs

Re: [FFmpeg-user] Vertically flipped mp4 video

2022-06-28 Thread Ulf Zibis
Am 28.06.22 um 15:14 schrieb Ulf Zibis: Am 28.06.22 um 14:59 schrieb Moritz Barsnick: Metadata flags do exist for rotating, but not for flipping. Thus this cannot be done without re-encoding. I'm irritated. Here I can read, that it exists: https://ffmpeg.org/ffmpeg-all

Re: [FFmpeg-user] Vertically flipped mp4 video

2022-06-28 Thread Ulf Zibis
Am 28.06.22 um 17:01 schrieb Gyan Doshi: That's a H.264 bitstream filter. It can only be used on H.264 video streams. This is the case here. Basic syntax is     ffmpeg -i input -c copy -bsf:v h264_metadata=display_orientation=insert:flip=horizontal output Much thanks for this syntax. Un

Re: [FFmpeg-user] concat filter

2022-07-10 Thread Ulf Zibis
Am 05.07.22 um 23:55 schrieb Carl Zwanzig: For dealing with minor size changes, an option is a filter chain to crop larger frames to the target size then center/overlay the result on a target-sized black background. As alternative to cropping, you can use the "fillborders" filter. - Ulf __

[FFmpeg-user] How to reduce interlace artifacts while trancoding to mp4

2022-11-11 Thread Ulf Zibis
Hi, I have transcoded a avi video to mp4 for compressing by factor 8. Now I see interlace artifacts. E.g. the eagle in the back window of the bus or the fence in the background. Additionally I would like to reduce the noise for even better compression. Any hint for a good filter? Refer: http:

Re: [FFmpeg-user] How to reduce interlace artifacts while trancoding to mp4

2022-11-12 Thread Ulf Zibis
Am 12.11.22 um 10:57 schrieb Bouke / Videotoolshed: Hi Ulf, This is normal DV interlaced video. Open the .avi with VLC and turn OFF de-interlace, you’ll see how gorgeous the motion was on an old fashioned interlace aware screen. So, you need to de-interlace the filter. While you’re at it, yo

Re: [FFmpeg-user] How to reduce interlace artifacts while trancoding to mp4

2022-11-12 Thread Ulf Zibis
Am 12.11.22 um 14:41 schrieb Carl Eugen Hoyos: https://ffmpeg.org/ffmpeg-filters.html offers a few options: kerndeint is old / outdated, should be fast yadif was for a long time the most useful deinterlacer w3fdif is a BBC-sponsored development bwdif claims to combine yadif and w3fdif into some

Re: [FFmpeg-user] How to reduce interlace artifacts while trancoding to mp4

2022-11-12 Thread Ulf Zibis
Am 12.11.22 um 17:09 schrieb Carl Zwanzig: On 11/12/2022 8:02 AM, Ulf Zibis wrote: Thanks for your detailed comparison. bwdif and estdif make it. Even they double the frame rate, compression factor now is 10 instead 8 and the visual result is brillant. For the list archive, would you

[FFmpeg-user] Help for better video contrast.

2022-12-20 Thread Ulf Zibis
Hi, With this command I tried to enhance a short video: ffmpeg -i NET\ Villa\ Burgen.mp4 -vf atadenoise,histeq=0.1:0.11:strong -c:a copy -movflags +faststart NET\ Villa\ Burgen_3.mp4 (using ffmpeg version 5.1.2-0ubuntu1~22.04.sav1.1) It helps a lot for the first 2 minutes, but from there in the

[FFmpeg-user] Missing emails as cause of domain relocation

2023-09-04 Thread Ulf Zibis
Hi, because of a domain relocation, my email was not reachable from 2023-09-01 13:54 UTC to 2023-09-04 11:38 UTC. Is it possible to resend the missing messages for ffmpeg-user@ffmpeg.org and ffmpeg-de...@ffmpeg.org? -Ulf ___ ffmpeg-user mailing lis

Re: [FFmpeg-user] Missing emails as cause of domain relocation

2023-09-04 Thread Ulf Zibis
Am 04.09.23 um 14:43 schrieb Reindl Harald: Am 04.09.23 um 14:35 schrieb Ulf Zibis: because of a domain relocation, my email was not reachable from 2023-09-01 13:54 UTC to 2023-09-04 11:38 UTC. Is it possible to resend the missing messages for ffmpeg-user@ffmpeg.org and ffmpeg-de

Re: [FFmpeg-user] Missing emails as cause of domain relocation

2023-09-04 Thread Ulf Zibis
Am 04.09.23 um 14:59 schrieb Reindl Harald: Am 04.09.23 um 14:35 schrieb Ulf Zibis: because of a domain relocation, my email was not reachable from 2023-09-01 13:54 UTC to 2023-09-04 11:38 UTC. because it takes time? the interval of retries increases as it makes no sense trying every 5

[FFmpeg-user] Meaning of -color_range 2 ?

2023-10-01 Thread Ulf Zibis
Hi, I guess it stands for "-color_range limited", but even that I don't understand what it means. Where does the calculation "MPEG (219*2^(n-8))" come from? -Ulf ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/

Re: [FFmpeg-user] Meaning of -color_range 2 ?

2023-10-01 Thread Ulf Zibis
Am 01.10.23 um 12:02 schrieb Ulf Zibis: Hi, I guess it stands for "-color_range limited", but even that I don't understand what it means. Where does the calculation "MPEG (219*2^(n-8))" come from? And how can I know, in which version of FFMPEG this p

Re: [FFmpeg-user] Meaning of -color_range 2 ?

2023-10-01 Thread Ulf Zibis
Am 01.10.23 um 14:05 schrieb Paul B Mahol: On 10/1/23, Ulf Zibis wrote: And how can I know, in which version of FFMPEG this patch was released? https://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=7ca71b79f2b3256a0eef1a099b857ac9e4017e36 By searching for that commit log in git log of

[FFmpeg-user] Calculate file size for lossless encoding

2023-10-01 Thread Ulf Zibis
Hi, I used the following command on a 155 minute grabbing: ffmpeg -video_size 1680x888 -framerate 25 -f x11grab -i :0.0+0,81 -c:v libx264rgb -crf 0 -preset ultrafast output.mkv Assuming, the RGB range is 8 + 8 + 8 bit or 3 byte, I calculate: 3 x 25 x 60 x 155 x 1680 x 888 = 1040.6 GByte But

Re: [FFmpeg-user] Calculate file size for lossless encoding

2023-10-01 Thread Ulf Zibis
Am 01.10.23 um 16:37 schrieb Paul B Mahol: On 10/1/23, Ulf Zibis wrote: Hi, I used the following command on a 155 minute grabbing: ffmpeg -video_size 1680x888 -framerate 25 -f x11grab -i :0.0+0,81 -c:v libx264rgb -crf 0 -preset ultrafast output.mkv Assuming, the RGB range is 8 + 8 + 8 bit

Re: [FFmpeg-user] Calculate file size for lossless encoding

2023-10-01 Thread Ulf Zibis
Am 01.10.23 um 18:04 schrieb Carl Zwanzig: On 10/1/2023 8:41 AM, Ulf Zibis wrote: So here it compresses with factor ~11, wow, great performance for ultrafast. Depends a lot on the content, of course. One of the great things, compression-wise, with screen grabs is that there is usually very

[FFmpeg-user] Unexpected additional frames while stream copy

2023-10-01 Thread Ulf Zibis
Hi, I have a video, grabbed from screen with "-c:v libx264rgb -crf 0 -preset ultrafast". When I re-encode a small scene out of it, it counts 576 frames. (Same number of images, when I extract all frames as JPEG.) But when I just do a stream copy, I get 761 frames, even when I use "-fps_mode:v

Re: [FFmpeg-user] Unexpected additional frames while stream copy

2023-10-01 Thread Ulf Zibis
Am 01.10.23 um 23:25 schrieb Ferdi Scholten: On 01-10-2023 19:28, Ulf Zibis wrote: Hi, I have a video, grabbed from screen with "-c:v libx264rgb -crf 0 -preset ultrafast". When I re-encode a small scene out of it, it counts 576 frames. (Same number of images, when I extract

[FFmpeg-user] How to reduce frame drops while screen grabbing

2023-10-03 Thread Ulf Zibis
Hi, I have experienced ~11 % dropped frames while screen grabbing, see below. When I used simplescreenrecorder [1], which also uses FFmpeg libraries under the hood, I had less than 1 % frame drops with the parameters "vcodec=libx264rgb,crf=0,preset=ultrafast" and the same dimensions. [1] https

Re: [FFmpeg-user] Meaning of -color_range 2 ?

2023-10-07 Thread Ulf Zibis
Am 01.10.23 um 12:02 schrieb Ulf Zibis: Hi, I guess it stands for "-color_range limited", but even that I don't understand what it means. Where does the calculation "MPEG (219*2^(n-8))" come from? My question is because of this suggestion: https://trac.ffmpeg

[FFmpeg-user] Difference between i-frames and key frames

2023-10-07 Thread Ulf Zibis
Hi, what is the difference between i-frames and key frames? And how many other frames are between i-frames or key frames in mp4 files, created with ffmpeg and with default settings? -Ulf ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ff

[FFmpeg-user] No audio in 2nd concatenated part

2023-10-12 Thread Ulf Zibis
Hi, I have concatenated 2 mkv videos, both with video and audio stream. In the resulting mkv video in the 2n part, there is no audio anymore. What can I do, to have audio also in the 2nd part. $ ffmpeg -f concat -safe 0 -i <(echo "file '$PWD/König_de.mkv'" && echo "file '$PWD/König_de_Abspann

Re: [FFmpeg-user] No audio in 2nd concatenated part

2023-10-13 Thread Ulf Zibis
Am 13.10.23 um 01:49 schrieb Ulf Zibis: Hi, I have concatenated 2 mkv videos, both with video and audio stream. In the resulting mkv video in the 2n part, there is no audio anymore. I now have found out the reason. The first video had an aac audio stream and the 2nd a libvorbis audio

Re: [FFmpeg-user] video concat without reencoding keeps audio in one order but not the other

2023-10-13 Thread Ulf Zibis
Am 11.10.23 um 10:38 schrieb Adrian Szatmari: So I took a video and cut it two ways, one with reencoding and one without reencoding, call them R and C (cut). Im trying to do concatenation without reencoding, and I'm able to concat the video in all orders , , , , but the sound disappears for an

[FFmpeg-user] -preset veryfast produces smallest file, weird

2023-10-15 Thread Ulf Zibis
Hi, by accident I transcoded a video with -preset veryfast (it took 1 h). So I had to run it again with -preset veryslow (it took 12 h). Now I'm wondering about the file sizes. How can that be? $ ls -l König_it* -rwxrwxrwx 1 ich ich 1058092584 Okt 13 02:16 König_it_veryfast.mkv -rwxrwxrwx 1 ich

Re: [FFmpeg-user] -preset veryfast produces smallest file, weird

2023-10-15 Thread Ulf Zibis
Am 15.10.23 um 15:43 schrieb Reindl Harald: Am 15.10.23 um 15:12 schrieb Ulf Zibis: by accident I transcoded a video with -preset veryfast (it took 1 h). So I had to run it again with -preset veryslow (it took 12 h). Now I'm wondering about the file sizes. How can that be? why not

Re: [FFmpeg-user] -preset veryfast produces smallest file, weird

2023-10-15 Thread Ulf Zibis
Am 15.10.23 um 16:52 schrieb Reindl Harald: Am 15.10.23 um 16:43 schrieb Ulf Zibis: Am 15.10.23 um 15:43 schrieb Reindl Harald: if you prefer fast you don't care about quality in doubt quality needs space and find a compromise between size and space - you can't have both

Re: [FFmpeg-user] -preset veryfast produces smallest file, weird

2023-10-15 Thread Ulf Zibis
Am 15.10.23 um 17:51 schrieb Reindl Harald: Am 15.10.23 um 17:20 schrieb Ulf Zibis: With "veryfast" I stated to "not care about *space*", but with "-crf 23" I always stated "care about same quality". you statet "i don't care about

[FFmpeg-user] How to add additional audio streams to mkv file

2023-10-15 Thread Ulf Zibis
Hi, is there a tutorial on how to add additional audio streams to mkv file? I didn't find any information in ffmpeg documentation and wiki. Thanks, -Ulf ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-u

[FFmpeg-user] How to add title and chapters to mkv file

2023-10-15 Thread Ulf Zibis
Hi, is there a tutorial on how to add title and chapters to mkv file? I didn't find any information in ffmpeg documentation and wiki. Thanks, -Ulf ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user

Re: [FFmpeg-user] -preset veryfast produces smallest file, weird

2023-10-16 Thread Ulf Zibis
Am 16.10.23 um 08:28 schrieb Reindl Harald: so the input was always the same - jesus christ So ok, you didn't see this because of the exhaustive cutting and concatenation, which was identical in all 3 cases.. My guess was, that this maybe irritates the correct processing of the codec. I.e.

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

2023-10-16 Thread Ulf Zibis
Am 12.10.23 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 to

Re: [FFmpeg-user] Change only video

2023-10-16 Thread Ulf Zibis
Am 16.10.23 um 13:50 schrieb Cecil Westerhof via ffmpeg-user: I have started with creating YouTube videos. A lot to learn. I want to use ffmpeg to help me and it does. :-D But there are a lot of things I do not know at the moment. For example: if I have a video where I want to change for a shor

Re: [FFmpeg-user] How to add additional audio streams to mkv file

2023-10-16 Thread Ulf Zibis
Am 16.10.23 um 01:12 schrieb Ulf Zibis: Hi, is there a tutorial on how to add additional audio streams to mkv file? Now I found a solution with "-map". It's more simple as I thought: ffmpeg -i INPUT_de.mkv -i INPUT_en.mkv -map 0 -map 1:a -c copy -metadata:s:a:0 language=de

Re: [FFmpeg-user] How to add title and chapters to mkv file

2023-10-19 Thread Ulf Zibis
Am 18.10.23 um 22:45 schrieb Leo Butler via ffmpeg-user: The answer is not specific to any particular container. The easiest way, in my opinion, is to write an ffmetadata file with the information. The syntax is described here: https://ffmpeg.org/ffmpeg-all.html#Metadata The example at the b

[FFmpeg-user] Codec 0x21000 is not in the full list.

2023-10-20 Thread Ulf Zibis
Hi, above message is 2 times in the output (in yellow). What does that mean? Also there is in yellow: [mp4 @ 0x55a76f8cf3c0] track 1: codec frame size is not set [mp4 @ 0x55a76f8cf3c0] track 2: codec frame size is not set In the following ffprobe output, there is an additional subtitle stream w

[FFmpeg-user] missing meta data in ffprobe output from mp4 format

2023-10-20 Thread Ulf Zibis
Hi, in my last post "Codec 0x21000 is not in the full list." you can see, that also the included metadata is mostly missing in the output of ffprobe. Why? When I use the same command and the same metadata file for mkv output, beside this message all is fine: $ ffmpeg -i König_de.meta -t 3:0

Re: [FFmpeg-user] missing meta data in ffprobe output from mp4 format

2023-10-20 Thread Ulf Zibis
Am 20.10.23 um 20:14 schrieb Paul B Mahol: On Fri, Oct 20, 2023 at 7:19 PM Ulf Zibis wrote: Hi, in my last post "Codec 0x21000 is not in the full list." you can see, that also the included metadata is mostly missing in the output of ffprobe. Why? When I use the same command an

Re: [FFmpeg-user] missing meta data in ffprobe output from mp4 format

2023-10-23 Thread Ulf Zibis
Am 20.10.23 um 23:37 schrieb Greg Oliver: On Fri, Oct 20, 2023 at 3:57 PM Ulf Zibis wrote: On Fri, Oct 20, 2023 at 7:19 PM Ulf Zibis wrote: Hi, in my last post "Codec 0x21000 is not in the full list." you can see, that also the included metadata is mostly missing in the output

[FFmpeg-user] MP4-Video does not play audio on Android 8; audio stream size tagged wrong

2023-10-23 Thread Ulf Zibis
Hi, I have a Matroska video with libx264 video and libvorbis audio. when I copy it to MP4 container, the resulting video does not play audio on Android 8 phone -> "Audio-Codec not supported" Matroska: http://jugkoeln.de/Projects/ffmpeg/K%C3%B6nig_de_3.mkv MP4:   http://jugkoeln.de/Projects/ffmp

Re: [FFmpeg-user] MP4-Video does not play audio on Android 8; audio stream size tagged wrong

2023-10-24 Thread Ulf Zibis
Am 24.10.23 um 08:12 schrieb Ferdi Scholten: Hi, Vorbis audio is officially not supported by the mp4 container specifications. Matroska does not have this problem as it supports almost all known codecs. These are the audio codecs that are in the mp4 specifications: AAC, ALS, SLS, MP3, MP2, MP

Re: [FFmpeg-user] MP4-Video does not play audio on Android 8; audio stream size tagged wrong

2023-10-25 Thread Ulf Zibis
Am 25.10.23 um 06:50 schrieb Classic SSG Enjoyer: Use Opus. Opus delievers better audio quality than AAC/Vorbis On Tue, 24 Oct, 2023, 11:01 pm Ferdi Scholten, wrote: Hi, Vorbis audio is officially not supported by the mp4 container specifications. Matroska does not have this problem as it

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

2023-10-29 Thread Ulf Zibis
Hi, so 18.3 % of the frames were dropped and duplicated at same time. Does that mean, that 8063 frames of the input were dropped and then same (or other) 8064 frames were duplicated to the output? What is the sense of this? Maybe the original didn't have the exact framerate of 25 fps ? Would

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

2023-10-29 Thread Ulf Zibis
Am 29.10.23 um 16:00 schrieb Paul B Mahol: On Sun, Oct 29, 2023 at 3:29 PM Ulf Zibis wrote: Hi, so 18.3 % of the frames were dropped and duplicated at same time. Does that mean, that 8063 frames of the input were dropped and then same (or other) 8064 frames were duplicated to the output

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

2023-10-29 Thread Ulf Zibis
Am 29.10.23 um 17:04 schrieb Paul B Mahol: On Sun, Oct 29, 2023 at 4:52 PM Ulf Zibis wrote: Am 29.10.23 um 16:00 schrieb Paul B Mahol: On Sun, Oct 29, 2023 at 3:29 PM Ulf Zibis wrote: Hi, so 18.3 % of the frames were dropped and duplicated at same time. Does that mean, that 8063 frames

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

2023-10-29 Thread Ulf Zibis
Am 29.10.23 um 18:53 schrieb Paul B Mahol: On Sun, Oct 29, 2023 at 6:08 PM Ulf Zibis wrote: Am 29.10.23 um 17:04 schrieb Paul B Mahol: https://ffmpeg.org/ffmpeg-filters.html#toc-vfrdet At end it will output number of frames detected as having variable delta pts, and ones with constant

[FFmpeg-user] How to restrict ffprobe output to a certain number of frames?

2023-10-29 Thread Ulf Zibis
Hi, when I use ffprobe -show_frames INPUT I get all frames. But I only want some frames e.g. the first 10 or frame 100 to 109. -Ulf ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, vi

Re: [FFmpeg-user] How to restrict ffprobe output to a certain number of frames?

2023-10-29 Thread Ulf Zibis
Am 29.10.23 um 22:06 schrieb Torsten Kaiser: On 29.10.23 20:28, Ulf Zibis wrote: Hi, when I use ffprobe -show_frames INPUT I get all frames. But I only want some frames e.g. the first 10 or frame 100 to 109. ffprobe doesn't seem to provide anything like -ss -t or -frames. So I assu

Re: [FFmpeg-user] How to slow down a video

2020-05-03 Thread Ulf Zibis
Am 27.03.20 um 04:06 schrieb Ted Park: Hi, for video: -vf setpts=0.5*PTS for audio: -af atempo=2 Actually, he wanted to slow down the video so you probably meant the reciprocal of this, 2*PTS and atempo 1/2 Thanks alot, this works fine. Now I want to tweak a little bit more. I want to sl

Re: [FFmpeg-user] How to slow down a video

2020-05-04 Thread Ulf Zibis
Am 27.03.20 um 04:06 schrieb Ted Park: Hi, for video: -vf setpts=0.5*PTS for audio: -af atempo=2 Actually, he wanted to slow down the video so you probably meant the reciprocal of this, 2*PTS and atempo 1/2 Thanks alot, this works fine. Now I want to tweak a little bit more. I want to sl

[FFmpeg-user] Test

2020-05-04 Thread Ulf Zibis
Just test if I get email from the list, as since 21.04.20, 16:54 CEST I didn't receive any emails. -Ulf ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffm

[FFmpeg-user] Test

2020-05-05 Thread Ulf Zibis
Just test if I get email from the list, as since 21.04.20, 16:54 CEST I didn't receive any emails. -Ulf ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ff

Re: [FFmpeg-user] How to slow down a video

2020-05-05 Thread Ulf Zibis
Am 04.05.2020 um 12:56 schrieb Michael Koch: Am 04.05.2020 um 11:00 schrieb Ulf Zibis: >//>/Am 27.03.20 um 04:06 schrieb Ted Park: />>/Hi, />>//>>>/for video: -vf setpts=0.5*PTS />>>/for audio: -af atempo=2 />>//>>/Actually, he wanted

Re: [FFmpeg-user] How to slow down a video

2020-05-05 Thread Ulf Zibis
Am 05.05.20 um 13:25 schrieb Michael Koch: Am 05.05.2020 um 13:21 schrieb Ulf Zibis: Am 04.05.2020 um 12:56 schrieb Michael Koch: Am 04.05.2020 um 11:00 schrieb Ulf Zibis: >//>/Am 27.03.20 um 04:06 schrieb Ted Park: />>/Hi, />>//>>>/for video: -vf setpts=0.5*PTS /

Re: [FFmpeg-user] How to slow down a video

2020-05-05 Thread Ulf Zibis
Am 05.05.20 um 15:07 schrieb Edward Park: Hi, But I'm lost how use it correctly. I want to slow down the video by 1.4 and then increase the audio frequency (pitch) by 1.25. So if you slow the video down by 1.4, You are also slowing down the audio by the same amount right? I think 1/1.4, an

Re: [FFmpeg-user] How to slow down a video

2020-05-05 Thread Ulf Zibis
Am 05.05.20 um 20:14 schrieb Michael Koch: Am 05.05.2020 um 18:27 schrieb Ulf Zibis: Aside I have a question: Where can I find a list of properties, which can be used as parameter in commands. E.g. I can use "PTS" for current picture time stamp and "h" for the hei

[FFmpeg-user] Missing ')' or too many args in 'between(t'

2020-05-06 Thread Ulf Zibis
Hi, I get this result here: $ ffmpeg -ss 03:00 -t 01:30:50 -i in.mp3 -t 00:30:00 -f lavfi -i life=s=320x240:mold=10:r=30:ratio=0.1:death_color=#C83232:life_color=#00ff00 -af volume='not(between(t,46:50,48:50))',volume='not(between(t,1:30:00,1:31:00))',atempo=1/1.1/1.3,aresample=48000/1.1,asetr

  1   2   3   4   >