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
https://www.kan.org/download/4.png
https://www.kan.org/download/5.png
etc.

If I convert them to MP4:

ffmpeg -i %d.png -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2,scale=1920:-1" -c:v libx264 
-y WeightLogLapse.mp4

the resulting video looks as I would expect:

https://www.kan.org/download/WeightLogLapse.mp4

But if I convert to GIF:

ffmpeg -i %d.png -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2,scale=1920:-1" -y 
WeightLogLapse.gif

I get this weird color aliasing:


It's a known problem. A workaround is described in chapter 2.70 in my book:
http://www.astro-electronic.de/FFmpeg_Book.pdf

Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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, then 
combine the input videos, then add sound back to the resulting video.


Can someone help me the first step?

I tried this:

$ ffmpeg -i resized/360_0233.MP4   -i resized/360_0234.MP4   -i 
resized/360_0235.MP4 -vn -map 0:a   tmpsound.mp3




Not tested, but I think it should work with the concat filter:

ffmpeg -i resized/360_0233.MP4 -i resized/360_0234.MP4 -i 
resized/360_0235.MP4 -lavfi [0][1][2]concat=n=3:v=0:a=1 -y tmpsound.mp3


Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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 parameters.

See chapter 3.7 in my book:
http://www.astro-electronic.de/FFmpeg_Book.pdf

Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-devel] [PATCH 0/2] Remove SDL2 output devices

2024-02-07 Thread Michael Koch

It works until move or resize the window.


yes, that's right. I didn't notice because I didn't try to move or resize the 
window.

My point is: Removing SDL would break many examples that can be found in the 
internet.

Michael


___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-devel] [PATCH 0/2] Remove SDL2 output devices

2024-02-06 Thread Michael Koch
I didn't notice any problems with -f sdl2. I just tested again with 
Windows 11 and the latest FFmpeg build from Gyan, just 2 days old.


ffmpeg -re -f lavfi -i testsrc2=s=800x600 -t 10 -f sdl2 -

Works without any problems.

Michael

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-devel] [PATCH 0/2] Remove SDL2 output devices

2024-02-06 Thread Michael Koch
Removing SDL2 sounds like a very bad idea. There are many examples which 
are using these output devices, and all these examples would be broken. 
A quick search in my book

http://www.astro-electronic.de/FFmpeg_Book.pdf
finds about 40 occurences for "-f sdl" or "-f sdl2".

Michael


___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


[dspace-tech] Use Web Importer from Mendeley, Zotero etc. on DSpace 7 pages?

2024-01-28 Thread Michael Koch
Is there a possibility to extend the DSpace frontend to provide the 
metadata needed by web importer browser plugins like the one from the 
literature management system Mendeley or Zotero? Currently, I can import an 
item in Mendeley from a DSpace item page - but the type is "Webpage" and 
only the title is copied - What metadata do I have to include on the item 
details page to tell the importers more about the item?

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/1213e225-d53b-460e-bcd5-40a3fbfadd70n%40googlegroups.com.


Re: [FFmpeg-devel] [PATCH] avutil/eval: Use even better PRNG

2024-01-19 Thread Michael Koch
There is still a small problem with the random generator, but this has 
nothing to do with the recent changes.
If the random() expression is used in the geq filter, then multiple 
pixels get the same sequence of random numbers.

As can be shown with this command, where the frame has only two pixels:

ffmpeg -loglevel repeat -f lavfi -i nullsrc=size=1x2,format=gray -vf 
"geq=lum='print(random(0));print(random(0));print(random(0))'" -frames 1 
-y out.png


I think it's because the filter is executed in multiple threads.
-filter_threads 1 fixes the problem, but it slows down the whole filter 
thread.


Michael


___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


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 achieve this?


yes, it is. There are a few examples in my book:
http://www.astro-electronic.de/FFmpeg_Book.pdf

Michael
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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 "
  [0:v][1:v] overlay=25:25:
  enable='between(t,8,20)'
" \
-pix_fmt yuv420p  \
-c:a copy \
output.mp4

But this starts input2.mp4 from the start of input2.mp4 on the 8
second, for twelve seconds.
Is it possible to let input2.mp4 not start from second 0, but from
second 17?


Try putting -ss 17 between the two inputs.

I was thinking about that. But that means that if I want to use
input2.mp4 several times, I should use input2.mp4 several times with
the correct -ss. Not really a problem, but I had hoped for a more
efficient way.


You can cut off the beginning of the second stream with the "trim" 
filter, but then you must also use the "atrim" filter for audio. "-ss" 
is easier, but can only make a cut at a keyframe, if I remember right.


Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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:
 enable='between(t,8,20)'
   " \
   -pix_fmt yuv420p  \
   -c:a copy \
   output.mp4

But this starts input2.mp4 from the start of input2.mp4 on the 8
second, for twelve seconds.
Is it possible to let input2.mp4 not start from second 0, but from
second 17?


Try putting -ss 17 between the two inputs.


or only before the second input.

Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-devel] [PATCH 2/2] doc/utils/eval: clarify meaning of random* seed value

2024-01-03 Thread Michael Koch
Possible better algorithm for the random generator, which might fix the 
problem:


eval.c  line 235

if (r == 0)
  r = UINT64_MAX/13;
else
  r = r*1664525+1013904223;

Michael
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-devel] [PATCH 2/2] doc/utils/eval: clarify meaning of random* seed value

2024-01-03 Thread Michael Koch
On one hand, it's good that the 10 variables for ld() and st() are 
initialized with zero.
But on the other hand, zero is obviously the worst possible seed value 
for the random generator.


For example, make a 1000x1000 image with red color, and then fill one 
pixel at a random position with yellow color. Surprise surprise, the 
pixel is in the top left corner. That's not what a user expects from a 
random generator. It took me some time to figure out what's the problem, 
and how to set a better seed value.


Michael

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-devel] [PATCH 2/2] doc/utils/eval: clarify meaning of random* seed value

2024-01-03 Thread Michael Koch

> Possible address trac issue:


http://trac.ffmpeg.org/ticket/10763


I don't like the random generator as it is, because the first two random numbers
are very close to zero, as can be shown with this command line:
ffmpeg -loglevel repeat -f lavfi -i nullsrc=size=1x1,format=gray -vf 
"geq=lum='print(random(0));print(random(0));print(random(0));print(random(0))'" 
-frames 1 -y out.png 0.00 0.91 0.285346 0.929202 This behaviour 
can be improved by inizializing the generator with a large number as 
seed value. I'm not sure if it's a good idea to share the same variables 
for ld() and st() (as double) and random() (as unsigned int). Wouldn't 
it be better to use separate variables for random()? Michael


___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


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 of the internal variable", and I don't 
know what "save" means. In a function named random(), I expect the 
parameter to be used as a seed. I guess this is one of the places 
where one has to read the source code.


I also suspect that "read the source" is the answer, but also recall 
from decades past that some systems (e.g. BASIC) needed a "randomize" 
statement in order to get off their usual starting point.


I figured out what's going on. It seems the memory of variable 0 is a 
union of int and double.

When used by the expressions ld() and st(), it's double.
When used by random(), then it's int.
Important thing to remember:
If you want to set the random generator to a seed value much different 
from 0, then you have to use rather big numbers, for example 2^41.


Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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 results on my 
machine. I get an error complaining about the video filter syntax 
instead.


If not on a Windows machine, you may have to encapsulate the filter 
thread in double quotes.

Please try this command:
ffmpeg -filter_threads 1 -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))'" 
-frames 1 -y out.png




Could you perhaps make a simpler command line invocation, which just 
runs random() and does not generate a grey image or write a file?




I don't know how I could simplify it. random() is an expression. To use 
it, I need a filter that accepts an expression. For the filter I need an 
image to work on. Even if it has only one pixel, as in my example.


Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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(random(0));print(random(0));print(random(0));0'
-frames 1 -y out.png

The output is always the same four numbers:
0.00
0.91
0.285346
0.929202

Why is the first number always zero, even if I write different seed
values (here: 0.123) into variable 0?

From: https://ffmpeg.org/ffmpeg-utils.html

"Return a pseudo random value between 0.0 and 1.0. x is the index of
the internal variable which will be used to save the seed/state."

If you're looking for a value between 1 and N, you can probably just
multiply it by N (i.e. N=1000, 0.285 * 1000 = 285).


In my example I'm using the index x=0 and I did set the seed value to 
0.123.

It's clear that the random function returns values between 0 and 1.
My question is why the seed value is ignored.

Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


[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 four numbers:
0.00
0.91
0.285346
0.929202

Why is the first number always zero, even if I write different seed 
values (here: 0.123) into variable 0?


The console output is below.

Michael



C:\Users\astro\Desktop\LUT1D>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
ffmpeg version 2023-12-23-git-f5f414d9c4-essentials_build-www.gyan.dev 
Copyright (c) 2000-2023 the FFmpeg developers

  built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static 
--pkg-config=pkgconf --disable-w32threads --disable-autodetect 
--enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 
--enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt 
--enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid 
--enable-libaom --enable-libopenjpeg --enable-libvpx 
--enable-mediafoundation --enable-libass --enable-libfreetype 
--enable-libfribidi --enable-libharfbuzz --enable-libvidstab 
--enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm 
--enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc 
--enable-dxva2 --enable-d3d11va --enable-libvpl --enable-libgme 
--enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame 
--enable-libtheora --enable-libvo-amrwbenc --enable-libgsm 
--enable-libopencore-amrnb --enable-libopus --enable-libspeex 
--enable-libvorbis --enable-librubberband

  libavutil  58. 36.100 / 58. 36.100
  libavcodec 60. 36.100 / 60. 36.100
  libavformat    60. 20.100 / 60. 20.100
  libavdevice    60.  4.100 / 60.  4.100
  libavfilter 9. 14.101 /  9. 14.101
  libswscale  7.  6.100 /  7.  6.100
  libswresample   4. 13.100 /  4. 13.100
  libpostproc    57.  4.100 / 57.  4.100
Input #0, lavfi, from 'color=gray:size=1x1,format=gray':
  Duration: N/A, start: 0.00, bitrate: N/A
  Stream #0:0: Video: wrapped_avframe, gray, 1x1 [SAR 1:1 DAR 1:1], 25 
fps, 25 tbr, 25 tbn

Stream mapping:
  Stream #0:0 -> #0:0 (wrapped_avframe (native) -> png (native))
Press [q] to stop, [?] for help
0.00
0.91
0.285346
0.929202
Output #0, image2, to 'out.png':
  Metadata:
    encoder : Lavf60.20.100
  Stream #0:0: Video: png, gray(progressive), 1x1 [SAR 1:1 DAR 1:1], 
q=2-31, 200 kb/s, 25 fps, 25 tbn

  Metadata:
    encoder : Lavc60.36.100 png
[image2 @ 01eec3e15700] The specified filename 'out.png' does not 
contain an image sequence pattern or a pattern is invalid.
[image2 @ 01eec3e15700] Use a pattern such as %03d for an image 
sequence or use the -update option (with -frames:v 1 if needed) to write 
a single image.
[out#0/image2 @ 01eec3e15600] video:0kB audio:0kB subtitle:0kB other 
streams:0kB global headers:0kB muxing overhead: unknown
frame=    1 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A speed= 
1.8x



___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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: 
http://www.astro-electronic.de/FFmpeg_Book.pdf


Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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 "\

[0]split=2[v1][v2];\

[v2]format=rgba,lut3d='red.cube'[v3];\

[v3]fade=in:st=0.25:d=2.93:alpha=1[ov];\

[v1][ov]overlay[bg];\

[bg][1]overlay=enable='eq(n,109)'[out1];\

[out1][1]overlay=enable='eq(n,111)'[out2];\

[out2][1]overlay=enable='eq(n,113)'[out3];\

[out3][1]overlay=enable='eq(n,115)'[outv]"\

  -map "[outv]" -c:v libx264 -t 8 -pix_fmt yuv420p -r 30 output.mp4


yes, if you want to insert only one frame, it's better to use the frame 
number instead of a time interval.


Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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 applied earlier. I make the top video appear as an
overlay with a fade-in effect that lasts x seconds before reaching 100%. To
create a 'flash' effect, I want to overlay instances of my base image
(participant1.jpg) at different very close intervals. The first overlay
displays, but not this one
"[out][1]overlay=enable='between(t,3.25,3.26)'[outv]", and I can't figure
out the reason. Have I made a mistake somewhere? Thank you very much for
your valuable advice :)

ffmpeg -loop 1 -i participant1.jpg -i participant1.jpg -filter_complex "\
[0]split=2[v1][v2];\
[v2]format=rgba,lut3d='red.cube'[v3];\
[v3]fade=in:st=0.25:d=2.93:alpha=1[ov];\
[v1][ov]overlay[bg];\
[bg][1]overlay=enable='between(t,3.20,3.21)'[out];\
[out][1]overlay=enable='between(t,3.25,3.26)'[outv]"\
  -map "[outv]" -c:v libx264 -t 8 -pix_fmt yuv420p output.mp4


The default framerate is 25. Time from one frame to the next is 0.04s.
The 80th frame has timestamp 80*0.04 = 3.20s
The 81th frame has timestamp 81*0.04 = 3.24s
The 82th frame has timestamp 82*0.04 = 3.28s
Which means there is a frame in the [3.20 .. 3.21] interval, but there 
is no frame in the [3.25 .. 3.26] interval.


Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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 applied earlier. I make the top video appear as an
overlay with a fade-in effect that lasts x seconds before reaching 100%. To
create a 'flash' effect, I want to overlay instances of my base image
(participant1.jpg) at different very close intervals. The first overlay
displays, but not this one
"[out][1]overlay=enable='between(t,3.25,3.26)'[outv]", and I can't figure
out the reason.


Perhaps because the interval in the between() function is too short. 
Don't make the interval shorter than 1/framerate.


Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-devel] trac spam

2023-12-03 Thread Michael Koch
Perhaps the regex search is performed on the rendered text as opposed to 
the source text?  Taking the spam comment on #2104 as an example, the 
spammer appears to be using the `[ ]` or 
`[[|]]` markup, therefore `http` does not appear in 
the rendered text.


But on the other hand, the regex filter did match two times in the spam comment 
in ticket 2776.
Why?
This comment was only accepted after the spammer solved the captcha.

Michael


___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-devel] trac spam

2023-12-03 Thread Michael Koch

Are you talking based on the source of the email message?


I don't have the messages as email. I see only the comments in the trac 
timeline:
https://trac.ffmpeg.org/timeline

Michael

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-devel] trac spam

2023-12-03 Thread Michael Koch




I haven't seen the original email so I don't know, but I think it

might be a character code issue.

Example:
Comment 14 in ticket 2104 contains "Great" and "amazing" and "http" in 
the same line.

But the regex filter didn't match.

Michael

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-devel] trac spam

2023-12-03 Thread Michael Koch

Am 03.12.2023 um 09:39 schrieb Michael Koch:

please delete:

comment 14 in ticket 2104
comment 6 in ticket 2776
user "bunnybellid"

I have updated the regex search patterns.


Does anybody know why the last regex seach pattern in the list doesn't work?
I thought it should match if any of the keywords is followed by "http" 
in the same line, with any number of any characters before, between and 
after the keywords.


(?i)^.*(appreciate|amazing|great|regards|thank).*http.*$

Michael

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-devel] trac spam

2023-12-03 Thread Michael Koch

please delete:

comment 14 in ticket 2104
comment 6 in ticket 2776
user "bunnybellid"

I have updated the regex search patterns.

Michael
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


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, the simplest is the best)

After a lot of digging and reading through documentations, exemples and
what I could understand from it, I came up with that batch script (I want
to use a batch script)


It's only an idea, I haven't tested it. Also add "-f concat" before the 
second "-i" ?


Michael
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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 this programmatically via the command line or python, etc.
and have been experimenting with combinations of VLC, nginx rtmp, and
ffmpeg but I'm missing a key concept. Is the correct term for this video
stream injecting?


It's possible to do that with FFmpeg. Have a look at the chapters 2.63, 
2.146 and 2.147 in my book:

http://www.astro-electronic.de/FFmpeg_Book.pdf

Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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 other options which do not actually 
have anything to do with colourspace.
There's a filter called setparams which has options including 
“color_primaries,” “color_trc” (meaning “colour transform” this time) and 
“colorspace.” This filter is known to be buggy.
Several other filters (including scale and zscale) have options to set input 
and output colour spaces, which might complicate things further.
Interactions between all of this are not documented anywhere.
Has it occurred to anyone that this is getting a bit out of hand, and 
regardless the knowledge level of the user, it creates a situation where things 
are likely to be the wrong colour?


That's a good summary of the current state. I did also try to understand 
this stuff some time ago, without success.


Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-devel] trac spam

2023-11-06 Thread Michael Koch
Please delete also user "bunnylid". He did not yet write anything, but 
he did register with the same IP adress as the other spammer, only a few 
minutes earlier.


Michael
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-devel] trac spam

2023-11-06 Thread Michael Koch

Please delete:
Comment 14 in ticket 2104
Comment 2 in ticket 5154
User "ballid"

The duplicated search patterns in regex filter did work as expected (-20 
points), but the spammer got +20 points from captcha.


I've updated the search patterns.

Michael
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


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 mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-devel] trac spam

2023-10-27 Thread Michael Koch
Is it possible to make the "Bad Content" page invisible? It would be 
better if the spammer can't see the filtering rules.


Michael

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-devel] trac spam

2023-10-26 Thread Michael Koch

please delete:
comment 12 in ticket 1920
user ""willow"

I have updated the regex filter so that it should match all combinations 
of two keywords, in both orders.


Michael

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-devel] trac spam

2023-10-20 Thread Michael Koch

strings that are certain spam, you can just add that twice for double the 
points lost


done.



should i add /pipermail/ffmpeg-trac to robots.txt ?

is there anyone who googles in these ffmpeg trac archives ?

I don't.

Michael


___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


[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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-devel] trac spam

2023-10-19 Thread Michael Koch

IIRC each regex give -10 so multiple matches give more.



Let's assume we have a long keyword like "concretevictoria". Nobody uses 
this keyword in a normal text. A false positive is almost impossible.


I could search for "concretevictoria", "concretevictori." and 
"concretevictor.." and get -30 points.
Or possibly it would also work if I search for "concretevictoria" three 
times?

The idea is to give long keywords a higher weight.

I'm not sure if this idea is acceptable, that's why I'd like to ask for 
your opinions before I do it.


Michael
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-devel] trac spam

2023-10-19 Thread Michael Koch

IIRC each regex give -10 so multiple matches give more.


So far, the search strings contain only combinations of keywords, for example 
"concretevictoria".
False positives are almost impossible.

I could add shorter keywords, for example "concrete" and "victoria".
Then we would get multiple matches, but also a few false positives.
Especially for people from Canada. Keywords would be:
"ottawa", "halifax", "victoria", "moncton", "nanaimo", "vancouver",
"concrete", "excavating", "fabricators", "lawncare", "landscapedesign", 
"retainingwalls"
Shall I do that?

I agree with you that the problem is not trivial.


I think the captcha works as intended. It adds cost to the spammer

I doubt its economic for spammers to solve a captcha for having some spam
up for a few hours.

It's not only for a few hours. We have the spammer's links in our archives 
forever.
http://ffmpeg.org/pipermail/ffmpeg-trac/2023-October/067523.html
Search engines can find the links, and that's what the spammer probably wants.

Michael


___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-devel] trac spam

2023-10-19 Thread Michael Koch




You would have to read the trac source probably and maybe do local tests

tracing through the code what happens
but a non spammer posting spam
setting up trac locally is easy, it comes with its own deamon you dont
even need a webserver

That sounds too complicated for me.

What about my other question? Can it be changed that the spammer gets +20 
points from successful captcha?
The regex filter is useless if a pattern match gives only -10 points, but 20 
seconds later the spammer gets +20 points from captcha.

Michael


___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-devel] trac spam

2023-10-19 Thread Michael Koch




Iam not aware of any delay, did you see a delay ?


I did change the search string (2nd from end of list) and 19 minutes later I 
made a test posting in ticket 2776.
I have no idea why the pattern wasn't found.

Michael


___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-devel] trac spam

2023-10-19 Thread Michael Koch
When I edit the BadContent list, do the new search strings immediately 
become effective, or must I wait some time?


Michael
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-devel] trac spam

2023-10-19 Thread Michael Koch
I've just tested the regex filter with a posting in ticket 2776. This 
test was not successful.
I thought that the second entry from the end of the list should have 
matched:


(?i)regards.{0,5}http

In words: Switch to case insensitive, search for "regards" followed by 0 
to 5 of any characters, followed by "http".


What's wrong with the search string?

Michael

P.S. please delete comment 7 in ticket 2776


___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-devel] trac spam

2023-10-19 Thread Michael Koch

Please have a look at the Spam Filtering / Monitoring page.
One of the spammer's postings was rejected, because it contained a 
blacklisted pattern in Regex filter and got -10 points.
But 20 seconds later the same posting was accepted, because the spammer 
was successfully verified by Captcha and got +20 points.
Does that make sense? Can we change that a successful capcha gives +20 
points?


Michael
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-devel] trac spam

2023-10-18 Thread Michael Koch

please delete:
comment 14 in ticket 2104
comment 6 in ticket 2776
user "bristleback"

Thanks,
Michael
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


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 video A, but
keep the sound of video A.
And at 3:41 I want to do the same thing with video C.
How would I do that?


There is an example in chapter 2.64 in my book:
http://www.astro-electronic.de/FFmpeg_Book.pdf

Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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 to
get my contribution into that page?


Afer you have registered, you can edit the wiki page. At the bottom of 
the page is a "Edit this page" button.


Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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 "%SOURCE_NO_SUBS%" -i "%SUBTITLES_1%.srt" [-i
"%SUBTITLES_2%.srt"..] -map 0 -map 1:s [-map 2:s..] -c:v copy -c:a
copy -c:s mov_text "%TARGET%.mp4"


I tested your example with two subtitle files, but it did only work 
after I replaced

 -map 0
by
 -map 0:v -map 0:a


Regarding Method 3, jacknorthrup.com no longer exists. It was parked
at GoDaddy in 2021. I couldn't find anything informative at
archive.org.

I removed the link. It doesn't contain anything informative.

Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-devel] TRAC Spam

2023-09-22 Thread Michael Koch
I just updated the dead link, also added the link to Wikipedia, added 
some keywords for our favourite spammer, and added short descriptions 
what (?i) and .? means.


Michael
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-devel] TRAC Spam

2023-09-22 Thread Michael Koch
Is it ok if I remove the dead link to Python syntax, and replace it by 
this link to Wikipedia?

https://en.wikipedia.org/wiki/Regular_expression

Michael
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-devel] TRAC Spam

2023-09-22 Thread Michael Koch

(?i)customer.?support
(?i)customer.?care
(?i)customer.?service

What's the meaning of (?i) and .?
I can't find that in Python syntax description.

Michael



___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-devel] TRAC Spam

2023-09-22 Thread Michael Koch
I'm not sure if I understood that right. If I add a keyword to the list 
on this page

https://trac.ffmpeg.org/wiki/BadContent
then any posting which contains this keyword will get a negative score?
And if the score exceeds a threshold, then the posting will be rejected?
Is this only for changes in the wiki, or also for comments in tickets?

By the way, in the above page the link to "Python syntax" is dead.

Michael



___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


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 later stage and I
get the below error,

C:\ffmpeg-6.0\bin>ffmpeg -i rtsp://192.168.9.78:5004 test.jpg


If you want to extract more than one picture, then the output filename 
should contain a number that's automatically increased.

For example:

ffmpeg -i rtsp://192.168.9.78:5004 -t 5 -y test%4d.jpg

%4d is a 4-digit number that's automatically increased.
If you are starting FFmpeg from a Windows batch file, then % must be replaced 
by %%
-t 5 does limit the duration to 5 seconds.
-y does automatically overwrite the output files, if they exist already.

Michael


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-devel] TRAC Spam

2023-09-21 Thread Michael Koch

The last username was "sharselune".
Can't we also delete the spam from the archive?
http://ffmpeg.org/pipermail/ffmpeg-trac/2023-September/067004.html
http://ffmpeg.org/pipermail/ffmpeg-trac/2023-September/067006.html
http://ffmpeg.org/pipermail/ffmpeg-trac/2023-September/067058.html
http://ffmpeg.org/pipermail/ffmpeg-trac/2023-September/067060.html
http://ffmpeg.org/pipermail/ffmpeg-trac/2023-September/067061.html
http://ffmpeg.org/pipermail/ffmpeg-trac/2023-September/067062.html
http://ffmpeg.org/pipermail/ffmpeg-trac/2023-September/067074.html
http://ffmpeg.org/pipermail/ffmpeg-trac/2023-September/067200.html
http://ffmpeg.org/pipermail/ffmpeg-trac/2023-September/067201.html
http://ffmpeg.org/pipermail/ffmpeg-trac/2023-September/067202.html
http://ffmpeg.org/pipermail/ffmpeg-trac/2023-September/067210.html

Possible filtering rules:
-- Message is from a new user
-- and contains a link to a *.com domain
-- and message is not longer than 3 lines


___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-devel] TRAC Spam

2023-09-20 Thread Michael Koch

Ticket / Comment
1920 / 12




___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


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 number that's automatically 
increased.


See for example chapter 2.7 in my book:
http://www.astro-electronic.de/FFmpeg_Book.pdf

Or this page in the wiki:
https://trac.ffmpeg.org/wiki/Create%20a%20thumbnail%20image%20every%20X%20seconds%20of%20the%20video 



Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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,
C:\ffmpeg-6.0\bin>ffmpeg -i udp_data rtsp://192.168.9.78:5004


What is "udp_data" in your command line?

Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-devel] TRAC Spam

2023-09-18 Thread Michael Koch

Ticket / Comment
2104 / 14
2776 / 6
3720 / 9



___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-devel] Trac spam

2023-09-11 Thread Michael Koch

I guess deleting users requires full admin rights, so i guess, just make a list

of users which are in need of a deletion and post that and i or less likely
some other admin will disable/delete them.

Please delete user "selune" in ticket 2104



You and everyone else in the spam fighter group

can still do all other steps whenever you like.

I'm not sure if it makes any sense to use the "Delete selected as Spam" button,
if it only deletes the entry in the monitoring page (I have already done that).

Michael


___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-devel] Trac spam

2023-09-11 Thread Michael Koch
I see the "Delete selected as Spam" button, but no "Remove registered 
user" button.


Michael

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-devel] Trac spam

2023-09-10 Thread Michael Koch

new spammer in ticket 2104
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-devel] Trac spam

2023-09-06 Thread Michael Koch

new spammer in ticket 2776
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


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

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-devel] Trac spam

2023-09-03 Thread Michael Koch
please remove the spammers from tickets 1920, 2104, 2776, 3720, 4748 and 
5154.


___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


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. 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 output for a video where it doesn't work. I saw 
these three messages:
[mov,mp4,m4a,3gp,3g2,mj2 @ 01e8bef96180] st: 0 edit list: 1 
Missing key frame while searching for timestamp: 1000
[mov,mp4,m4a,3gp,3g2,mj2 @ 01e8bef96180] st: 0 edit list 1 
Cannot find an index entry before timestamp: 1000.

[h264 @ 01e8c4a4fc00] co located POCs unavailable

I have two questions:
1. How must the command line be modified to make it work with all 
videos?

2. Any idea how to show the n_th frame of a video?


Just found the solution myself:

ffplay -vf select='eq(n,0)' -x 500 -an %1


This will decode and evaluate all frames.

Go with

  ffplay -vf trim=end_frame=1,tpad=stop=-1:stop_mode=clone -x 500 -an %1



Thank you!

Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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 -loop 0 -t 0 -x 500 -an %1

Below is the console output for a video where it doesn't work. I saw 
these three messages:
[mov,mp4,m4a,3gp,3g2,mj2 @ 01e8bef96180] st: 0 edit list: 1 
Missing key frame while searching for timestamp: 1000
[mov,mp4,m4a,3gp,3g2,mj2 @ 01e8bef96180] st: 0 edit list 1 Cannot 
find an index entry before timestamp: 1000.

[h264 @ 01e8c4a4fc00] co located POCs unavailable

I have two questions:
1. How must the command line be modified to make it work with all videos?
2. Any idea how to show the n_th frame of a video?


Just found the solution myself:

ffplay -vf select='eq(n,0)' -x 500 -an %1

Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


[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 output for a video where it doesn't work. I saw 
these three messages:
[mov,mp4,m4a,3gp,3g2,mj2 @ 01e8bef96180] st: 0 edit list: 1 Missing 
key frame while searching for timestamp: 1000
[mov,mp4,m4a,3gp,3g2,mj2 @ 01e8bef96180] st: 0 edit list 1 Cannot 
find an index entry before timestamp: 1000.

[h264 @ 01e8c4a4fc00] co located POCs unavailable

I have two questions:
1. How must the command line be modified to make it work with all videos?
2. Any idea how to show the n_th frame of a video?

Thanks,
Michael



C:\Users\astro\Desktop>c:\ffmpeg\ffplay -loop 0 -t 0 -x 500 -an 
C:\Users\astro\Desktop\Schnee.MOV
ffplay version 2023-08-10-git-d9d5695390-essentials_build-www.gyan.dev 
Copyright (c) 2003-2023 the FFmpeg developers

  built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static 
--disable-w32threads --disable-autodetect --enable-fontconfig 
--enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp 
--enable-bzlib --enable-lzma --enable-zlib --enable-libsrt 
--enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid 
--enable-libaom --enable-libopenjpeg --enable-libvpx 
--enable-mediafoundation --enable-libass --enable-libfreetype 
--enable-libfribidi --enable-libharfbuzz --enable-libvidstab 
--enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm 
--enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc 
--enable-d3d11va --enable-dxva2 --enable-libvpl --enable-libgme 
--enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame 
--enable-libtheora --enable-libvo-amrwbenc --enable-libgsm 
--enable-libopencore-amrnb --enable-libopus --enable-libspeex 
--enable-libvorbis --enable-librubberband

  libavutil  58. 16.101 / 58. 16.101
  libavcodec 60. 23.100 / 60. 23.100
  libavformat    60. 10.100 / 60. 10.100
  libavdevice    60.  2.101 / 60.  2.101
  libavfilter 9. 10.100 /  9. 10.100
  libswscale  7.  3.100 /  7.  3.100
  libswresample   4. 11.100 /  4. 11.100
  libpostproc    57.  2.100 / 57.  2.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 01e8bef96180] st: 0 edit list: 1 Missing 
key frame while searching for timestamp: 1000
[mov,mp4,m4a,3gp,3g2,mj2 @ 01e8bef96180] st: 0 edit list 1 Cannot 
find an index entry before timestamp: 1000.

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\astro\Desktop\Schnee.MOV':
  Metadata:
    major_brand : qt
    minor_version   : 537986816
    compatible_brands: qt  pana
    creation_time   : 2021-01-27T12:28:58.00Z
    com.panasonic.Semi-Pro.metadata.xml: encoding="UTF-8" standalone="no" ?>
    : xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; 
xmlns="urn:schemas-Professional-Plug-in:Semi-Pro:ClipMetadata:v1.0">

    :   
    : 
060A2B340101010501010D211300BF61E24950BF563460541060C1650131

    : 4056
    : 1/24
    : 
    :   
    : H264_420_LongGOP
    : 1080
    : 1920
    : 8
    : 24p
    : VRFRState="constant">24/180

    : NonDrop
    : 17:30:54:21
    :   
    :   
    : 2
    : 48000
    : 16
    :   
    : 
    : 
    :   0
    :   
    : 
2021-01-27T12:28:58+02:00
    : 
2021-01-27T12:28:58+02:00

    :   
    :   
    : Panasonic
    : DC-GH5S
    :   
    :   
    : 2021-01-27T12:28:58+02:00
    :   
    : 
    :   
    :   
    : xmlns="urn:schemas-Professional-Plug-in:P2:CameraMetadata:v1.2">

    :   
    : 
    : STANDARD
    : 
    : 
    : BT.709
    : 
    :   
    : 
    :   
    : 
    :
  Duration: 00:02:49.00, start: 0.00, bitrate: 26146 kb/s
  Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), 
yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 24596 
kb/s, 24 fps, 24 tbr, 

[dspace-tech] Re: Permalink url incorrect

2023-08-08 Thread Michael Koch
The information is stored in the meta attributes of the items (when these 
are created) - you have to change it there.

Poulter, Dale schrieb am Dienstag, 8. August 2023 um 02:39:10 UTC+2:

> Good afternoon,
>
>  
>
> We are working to upgrade to 7.5.  The BE is working well using apache 
> mod_proxy and is accessible from https://mybe.server.edu.  The FE is 
> accessible through https://myfe.server.edu but the url for the items show 
> http://localhost:4000/  .  I have attempted several settings for 
> mod_proxy including 
>
>  
>
> ProxyPass / http://localhost:4000/
>
> ProxyPassReverse / http://localhost:4000/
>
>  
>
> From the documentation.Any suggestions?  Thanks.
>
>  
>
>  
>
> -Dale
>
>  
>
> [image: Vanderbilt] 
>
>  
>
> *Dale Poulter*
> Director, Library Technology and Digital Services
> Vanderbilt Libraries | Vanderbilt University
> 615-343-5388 <(615)%20343-5388> | dale.p...@vanderbilt.edu | 
> https://www.library.vanderbilt.edu
>
> Pronouns: he/him/his
>
>  
>
> *My working day may not be your working day. Please do not feel obliged to 
> reply to this email outside of your normal working hours.*
>
>  
>
>  
>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/e852edb8-6d87-4c94-9416-319350128593n%40googlegroups.com.


[dspace-tech] Re: Problem with path displayed in URI

2023-08-08 Thread Michael Koch
The information is stored in the meta attributes of the items (when these 
are created) - you have to change it there.

Michel Montenegro schrieb am Dienstag, 8. August 2023 um 15:58:33 UTC+2:

> Where do I change the URI of posts and pages in DSpace?
> It is showing "localhost" or the previous ip that we used when we 
> registered the posts, where can I change this URI to show the current 
> address?
>
> -- 
> Atenciosamente, 
> *Michel Pinheiro Montenegro*
> - *Bacharel* em Sistema de Informação
> - [Lato Sensu] *Especialista* em Engenharia de Sistemas
> - [Stricto Sensu] *Mestre* em Ciência da Computação
> - [Stricto Sensu] *Doutorando* em Ciência da Computação
>
> E-mail/Gtalk: michel.m...@gmail.com
>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/d0024933-7cf0-4934-a802-e0494da43565n%40googlegroups.com.


Re: [Extern] [dspace-tech] how to disable browse.comcol.by.srsc in 7.6?

2023-07-07 Thread Michael Koch
Removing from the submission form does not work for the display of items on 
community and collection pages - My current solution: 
Define browse.comcol.by.srsc as empty string in the language files ...

Michael Plate schrieb am Freitag, 7. Juli 2023 um 13:28:31 UTC+2:

> Hi,
>
> Am 07.07.23 um 11:33 schrieb Michael Koch:
> > In the 7.6 user interface there is an additional tab in browsing 
> > communities and collections, using the srsc taxonomy?
>
> got the same problem, this is not bug but a "feature".
> Would prefer this to be configurable at the usual place…
>
> > 
> > Is there a way to switch this off?
>
> https://wiki.lyrasis.org/display/DSDOC7x/Configuration+Reference#ConfigurationReference-HierarchicalBrowseIndexes
>
> remove it from the submission forms :(
>
> Michael
>
>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/082e718d-ddd7-49aa-93fd-f847b9eb0e3fn%40googlegroups.com.


[dspace-tech] how to disable browse.comcol.by.srsc in 7.6?

2023-07-07 Thread Michael Koch
In the 7.6 user interface there is an additional tab in browsing 
communities and collections, using the srsc taxonomy?

Is there a way to switch this off? 

I checked all server side configuration (webui.*) but did not find a clue.
https://wiki.lyrasis.org/display/DSDOC7x/Browse
https://wiki.lyrasis.org/display/DSDOC7x/Configuration+Reference#ConfigurationReference-HierarchicalBrowseIndexes

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/2cac9e88-c8c0-4b02-8ac4-913924426092n%40googlegroups.com.


Re: [FFmpeg-devel] trac spam

2023-05-15 Thread Michael Koch

please have a look at ticket 2104


___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-devel] [PATCH] avfilter: add zoneplate video source filter

2023-05-10 Thread Michael Koch
Well, I can't see how it looks now, but the sequence white - gray - 
white (which is impossible in a sine wave) should no longer be there, 
because cos(x) = cos(-x).

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-devel] [PATCH] avfilter: add zoneplate video source filter

2023-05-10 Thread Michael Koch
ffmpeg -f lavfi -i zoneplate=kx2=320:ky2=240,format=gray -frames 1 -y 
out.png


When you draw a line through the center, you have
black - gray - white - gray - white - gray -black
which means the sine wave changes its sign in the center.
That's why zoneplates are normally calculated with cos() function.
See also: https://en.wikipedia.org/wiki/Zone_plate#Continuous_zone_plates

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-devel] [PATCH] avfilter: add zoneplate video source filter

2023-05-10 Thread Michael Koch
Isn't it better to use cos() instead of sin()? With sin() there is a 
discontinuity in the center.

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".


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 size is not 50% of the original one. I assume there are
some headers or metadata added during the process but I would like to know
how to estimate the final video size.


You can control the size of the output file by either using the -q:v 
option or by specifying the video bitrate with the -b:v option.


By the way, I don't understand the purpose of the -r option in your 
command line. Shoudn't that give an error message if it's not folllowed 
by a value?


Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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, of
course, but I _did_ try to find the answer to my questions there.)

I know that I can create a bitmap with the waveform of a selected part
of a media file and send it to stdout like this:

ffmpeg -ss 00:10 -to 00:11 -i file.mp4 -filter_complex showwavespic=s=600x40 
-frames:v 1 -f image2 -

Now the question is, how do I change the colors (background and
foreground)?  I already know about `:colors=white' for the foreground,
but how about the background?

It seems this filter has no option for changing the black background.
If you need white background, you could simply invert the output video
with "negate" filter.
For other colors you could use a workaround with "colorkey" and
"overlay" filters.

Thanks.  I used `showwavespic=s=600x40:colors=white,negate` which
helped, though now I can't really change the _white_ background to
e.g. light grey;-).  I think I'll not try to use `overlay` -- the docs
imply that it is a bit too complex for a beginner like me


see the example in chapter 2.89 in
http://www.astro-electronic.de/FFmpeg_Book.pdf

Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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 bitmap with the waveform of a selected part
of a media file and send it to stdout like this:

ffmpeg -ss 00:10 -to 00:11 -i file.mp4 -filter_complex showwavespic=s=600x40 
-frames:v 1 -f image2 -

Now the question is, how do I change the colors (background and
foreground)?  I already know about `:colors=white' for the foreground,
but how about the background?


It seems this filter has no option for changing the black background.
If you need white background, you could simply invert the output video 
with "negate" filter.
For other colors you could use a workaround with "colorkey" and 
"overlay" filters.


Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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 input, 
where 5 is the time where the first frame is used.


Extracting the last frame from a video is a little bit more complicated, 
see chapter 2.9 in http://www.astro-electronic.de/FFmpeg_Book.pdf


Michael


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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
"[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=main_w-overlay_w-5:5[vid];[vid][v2]overlay=10:main_h-overlay_h-10"*
test.png*


add -frames 1 just before the output file, this does limit the output to 
one frame.


Michael


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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=main_w-overlay_w-5:5[vid];[vid][v2]overlay=10:main_h-overlay_h-10" 


uploads/image%0d.mp4

If I remove %0d from the output I get an error.


please post the full console output.


P.S. I mean with %0d removed.

Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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
*1/5':h='ow/mdar'[v1];[2][0]scale2ref=w='iw*9/10':h='ow/mdar'[v2];[0][v1]overlay=main_w-overlay_w-5:5[vid];[vid][v2]overlay=10:main_h-overlay_h-10"
uploads/image%0d.mp4

If I remove %0d from the output I get an error.


please post the full console output.

Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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 file at 1920x1080, DnxHD 
115.


Unfortunately every time I try, the resulting file comes out as 
1920x1088
which breaks our pipeline. Ive tried using scale and have tried the 
source
file being different formats (image sequences or .movs etc) and 
nothing has
helped so far, which is why the below  code doesnt have any scale 
modifiers

in it.

the code i have been using is below:

ffmpeg - start_number 1000 -i *-inputfile%4d.tiff* -c:v dnxhd -r 24
-b:v115M -pix_fmt yuv422p *outputfile.mxf*

Any help at all would be much appreciated!


Seems to be a bug. The issue is reproducible with these command lines 
(started from a Windows batch file):


ffmpeg -f lavfi -i testsrc2=s=1920x1080 -frames 10 -y image%%3d.tiff
ffmpeg -i image%%3d.tiff -c:v dnxhd -r 24 -b:v 115M -pix_fmt yuv422p 
-y out.mxf


FFprobe reports 1920x1080, but ExitTool reports 1920x1088.


well, to be more exact ExifTool reports different values:
- Image Width   1920
- Image Height  1088
- Sampled Width  1920
- Sampled Height  1080
- Display Width  1920
- Display Height  1080
- Image Size  1920x1088



Davinci Resolve reports 1920x1080 and seems to have no problem with this 
*.mxf file.


Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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 every time I try, the resulting file comes out as 
1920x1088
which breaks our pipeline. Ive tried using scale and have tried the 
source
file being different formats (image sequences or .movs etc) and 
nothing has
helped so far, which is why the below  code doesnt have any scale 
modifiers

in it.

the code i have been using is below:

ffmpeg - start_number 1000 -i *-inputfile%4d.tiff* -c:v dnxhd -r 24
-b:v115M -pix_fmt yuv422p *outputfile.mxf*

Any help at all would be much appreciated!


Seems to be a bug. The issue is reproducible with these command lines 
(started from a Windows batch file):


ffmpeg -f lavfi -i testsrc2=s=1920x1080 -frames 10 -y image%%3d.tiff
ffmpeg -i image%%3d.tiff -c:v dnxhd -r 24 -b:v 115M -pix_fmt yuv422p 
-y out.mxf


FFprobe reports 1920x1080, but ExitTool reports 1920x1088.


well, to be more exact ExifTool reports different values:
- Image Width   1920
- Image Height  1088
- Sampled Width  1920
- Sampled Height  1080
- Display Width  1920
- Display Height  1080
- Image Size  1920x1088

Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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 as 1920x1088
which breaks our pipeline. Ive tried using scale and have tried the source
file being different formats (image sequences or .movs etc) and nothing has
helped so far, which is why the below  code doesnt have any scale modifiers
in it.

the code i have been using is below:

ffmpeg - start_number 1000 -i *-inputfile%4d.tiff* -c:v dnxhd -r 24
-b:v115M -pix_fmt yuv422p *outputfile.mxf*

Any help at all would be much appreciated!


Seems to be a bug. The issue is reproducible with these command lines 
(started from a Windows batch file):


ffmpeg -f lavfi -i testsrc2=s=1920x1080 -frames 10 -y image%%3d.tiff
ffmpeg -i image%%3d.tiff -c:v dnxhd -r 24 -b:v 115M -pix_fmt yuv422p -y 
out.mxf


FFprobe reports 1920x1080, but ExitTool reports 1920x1088.

Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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, 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 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 failed: 
no encode device (1): (no details)


Works here. Could be a driver issue - try reverting.


It did not work woth the older driver either. That's why I 
updated the driver today.


1) Try older builds, say, a month or two older.


Do you mean older builds of FFmpeg, or older Nvidia driver?


Older ffmpeg builds.


I will do that later.


From System Information, what is the OS version?


Windows 10 Home
Version 22H2
OS build 19045.2604



From dxdiag, what is the DirectX version?



DirectX 12


Ok, don't see any obvious issues.

One last try: run the cmd with -cq removed.


same problem.


I opened ticket 10205.

Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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 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, 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 failed: 
no encode device (1): (no details)


Works here. Could be a driver issue - try reverting.


It did not work woth the older driver either. That's why I 
updated the driver today.


1) Try older builds, say, a month or two older.


Do you mean older builds of FFmpeg, or older Nvidia driver?


Older ffmpeg builds.


I will do that later.


From System Information, what is the OS version?


Windows 10 Home
Version 22H2
OS build 19045.2604



From dxdiag, what is the DirectX version?



DirectX 12


Ok, don't see any obvious issues.

One last try: run the cmd with -cq removed.


same problem.

Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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 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

What does this error message mean?
[h264_nvenc @ 01f5f7bbf980] OpenEncodeSessionEx failed: no 
encode device (1): (no details)


Works here. Could be a driver issue - try reverting.


It did not work woth the older driver either. That's why I 
updated the driver today.


1) Try older builds, say, a month or two older.


Do you mean older builds of FFmpeg, or older Nvidia driver?


Older ffmpeg builds.


I will do that later.


From System Information, what is the OS version?


Windows 10 Home
Version 22H2
OS build 19045.2604



From dxdiag, what is the DirectX version?



DirectX 12


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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 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 failed: no 
encode device (1): (no details)


Works here. Could be a driver issue - try reverting.


It did not work woth the older driver either. That's why I updated 
the driver today.


1) Try older builds, say, a month or two older.


Do you mean older builds of FFmpeg, or older Nvidia driver?


Older ffmpeg builds.


FFmpeg build from December 15th has the same problem, but one more error 
message at the end:


C:\Users\astro\Desktop\test_333>ffmpeg -f lavfi -i ddagrab -c:v 
h264_nvenc -v 40 -cq 18 -t 10 -y out.mp4
ffmpeg version 2022-12-15-git-9adf02247c-full_build-www.gyan.dev 
Copyright (c) 2000-2022 the FFmpeg developers

  built with gcc 12.1.0 (Rev2, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static 
--disable-w32threads --disable-autodetect --enable-fontconfig 
--enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp 
--enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib 
--enable-librist --enable-libsrt --enable-libssh --enable-libzmq 
--enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 
--enable-libaribb24 --enable-libdav1d --enable-libdavs2 
--enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 
--enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg 
--enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r 
--enable-libfreetype --enable-libfribidi --enable-liblensfun 
--enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf 
--enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec 
--enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl 
--enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl 
--enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt 
--enable-libopencore-amrwb --enable-libmp3lame --enable-libshine 
--enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc 
--enable-libilbc --enable-libgsm --enable-libopencore-amrnb 
--enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa 
--enable-libbs2b --enable-libflite --enable-libmysofa 
--enable-librubberband --enable-libsoxr --enable-chromaprint

  libavutil  57. 43.100 / 57. 43.100
  libavcodec 59. 55.100 / 59. 55.100
  libavformat    59. 34.102 / 59. 34.102
  libavdevice    59.  8.101 / 59.  8.101
  libavfilter 8. 52.100 /  8. 52.100
  libswscale  6.  8.112 /  6.  8.112
  libswresample   4.  9.100 /  4.  9.100
  libpostproc    56.  7.100 / 56.  7.100
[Parsed_ddagrab_0 @ 01849a735440] Created internal hw_device_ctx
[Parsed_ddagrab_0 @ 01849a735440] Opened dxgi output 0 with 
dimensions 1920x1080

[Parsed_ddagrab_0 @ 01849a735440] Updated pointer shape texture
[Parsed_ddagrab_0 @ 01849a735440] Probed 8 bit RGB frame format
Input #0, lavfi, from 'ddagrab':
  Duration: N/A, start: 0.01, bitrate: N/A
  Stream #0:0: Video: wrapped_avframe, 1 reference frame, d3d11, 
1920x1080 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 1000k tbn

Stream mapping:
  Stream #0:0 -> #0:0 (wrapped_avframe (native) -> h264 (h264_nvenc))
Press [q] to stop, [?] for help
[graph 0 input from stream 0:0 @ 01849a7a4840] w:1920 h:1080 
pixfmt:d3d11 tb:1/100 fr:30/1 sar:1/1
[h264_nvenc @ 01849a73f880] Using input frames context (format 
d3d11) with h264_nvenc encoder.

[h264_nvenc @ 01849a73f880] Loaded Nvenc version 12.0
[h264_nvenc @ 01849a73f880] Nvenc initialized successfully
[h264_nvenc @ 01849a73f880] OpenEncodeSessionEx failed: no encode 
device (1): (no details)

[h264_nvenc @ 01849a73f880] Nvenc unloaded
Error initializing output stream 0:0 -- Error while opening encoder for 
output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, 
width or height
[AVIOContext @ 01849a79afc0] Statistics: 0 bytes written, 0 seeks, 0 
writeouts

Terminating demuxer thread 0
Conversion failed!

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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 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 failed: no 
encode device (1): (no details)


Works here. Could be a driver issue - try reverting.


It did not work woth the older driver either. That's why I updated 
the driver today.


1) Try older builds, say, a month or two older.


Do you mean older builds of FFmpeg, or older Nvidia driver?


Older ffmpeg builds.


I will do that later.




Also rerun ddagrab cmd with -v 40 and paste full log.


C:\Users\astro\Desktop\test_333>ffmpeg -f lavfi -i ddagrab -c:v 
h264_nvenc -v 40 -cq 18 -t 10 -y out.mp4
ffmpeg version 2023-02-19-git-2aec86695a-full_build-www.gyan.dev 
Copyright (c) 2000-2023 the FFmpeg developers

  built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static 
--disable-w32threads --disable-autodetect --enable-fontconfig 
--enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp 
--enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib 
--enable-librist --enable-libsrt --enable-libssh --enable-libzmq 
--enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 
--enable-libaribb24 --enable-libdav1d --enable-libdavs2 
--enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 
--enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg 
--enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r 
--enable-libfreetype --enable-libfribidi --enable-liblensfun 
--enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf 
--enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec 
--enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl 
--enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl 
--enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt 
--enable-libopencore-amrwb --enable-libmp3lame --enable-libshine 
--enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc 
--enable-libilbc --enable-libgsm --enable-libopencore-amrnb 
--enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa 
--enable-libbs2b --enable-libflite --enable-libmysofa 
--enable-librubberband --enable-libsoxr --enable-chromaprint

  libavutil  58.  3.100 / 58.  3.100
  libavcodec 60.  4.100 / 60.  4.100
  libavformat    60.  4.100 / 60.  4.100
  libavdevice    60.  2.100 / 60.  2.100
  libavfilter 9.  4.100 /  9.  4.100
  libswscale  7.  2.100 /  7.  2.100
  libswresample   4. 11.100 /  4. 11.100
  libpostproc    57.  2.100 / 57.  2.100
[Parsed_ddagrab_0 @ 01ff3f058c00] Created internal hw_device_ctx
[Parsed_ddagrab_0 @ 01ff3f058c00] Opened dxgi output 0 with 
dimensions 1920x1080

[Parsed_ddagrab_0 @ 01ff3f058c00] Updated pointer shape texture
[Parsed_ddagrab_0 @ 01ff3f058c00] Probed 8 bit RGB frame format
Input #0, lavfi, from 'ddagrab':
  Duration: N/A, start: 0.27, bitrate: N/A
  Stream #0:0: Video: wrapped_avframe, 1 reference frame, d3d11, 
1920x1080 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 1000k tbn

Stream mapping:
  Stream #0:0 -> #0:0 (wrapped_avframe (native) -> h264 (h264_nvenc))
Press [q] to stop, [?] for help
[graph 0 input from stream 0:0 @ 01ff3f0c4a00] w:1920 h:1080 
pixfmt:d3d11 tb:1/100 fr:30/1 sar:1/1
[h264_nvenc @ 01ff3f05fb40] Using input frames context (format 
d3d11) with h264_nvenc encoder.

[h264_nvenc @ 01ff3f05fb40] Loaded Nvenc version 12.0
[h264_nvenc @ 01ff3f05fb40] Nvenc initialized successfully
[h264_nvenc @ 01ff3f05fb40] OpenEncodeSessionEx failed: no encode 
device (1): (no details)



___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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, 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 failed: no 
encode device (1): (no details)


Works here. Could be a driver issue - try reverting.


It did not work woth the older driver either. That's why I updated 
the driver today.


1) Try older builds, say, a month or two older.


Do you mean older builds of FFmpeg, or older Nvidia driver?


2) Paste full log of working gdigrab command.


C:\Users\astro\Desktop\test_333>ffmpeg -f gdigrab -i desktop -c:v 
h264_nvenc -t 10 -y out.mp4
ffmpeg version 2023-02-19-git-2aec86695a-full_build-www.gyan.dev 
Copyright (c) 2000-2023 the FFmpeg developers

  built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static 
--disable-w32threads --disable-autodetect --enable-fontconfig 
--enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp 
--enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib 
--enable-librist --enable-libsrt --enable-libssh --enable-libzmq 
--enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 
--enable-libaribb24 --enable-libdav1d --enable-libdavs2 
--enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 
--enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg 
--enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r 
--enable-libfreetype --enable-libfribidi --enable-liblensfun 
--enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf 
--enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec 
--enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl 
--enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl 
--enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt 
--enable-libopencore-amrwb --enable-libmp3lame --enable-libshine 
--enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc 
--enable-libilbc --enable-libgsm --enable-libopencore-amrnb 
--enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa 
--enable-libbs2b --enable-libflite --enable-libmysofa 
--enable-librubberband --enable-libsoxr --enable-chromaprint

  libavutil  58.  3.100 / 58.  3.100
  libavcodec 60.  4.100 / 60.  4.100
  libavformat    60.  4.100 / 60.  4.100
  libavdevice    60.  2.100 / 60.  2.100
  libavfilter 9.  4.100 /  9.  4.100
  libswscale  7.  2.100 /  7.  2.100
  libswresample   4. 11.100 /  4. 11.100
  libpostproc    57.  2.100 / 57.  2.100
[gdigrab @ 017397686300] Capturing whole desktop as 1920x1080x32 at 
(0,0)
[gdigrab @ 017397686300] Stream #0: not enough frames to estimate 
rate; consider increasing probesize

Input #0, gdigrab, from 'desktop':
  Duration: N/A, start: 1676900136.382457, bitrate: 1988680 kb/s
  Stream #0:0: Video: bmp, bgra, 1920x1080, 1988680 kb/s, 29.97 fps, 
1000k tbr, 1000k tbn

Stream mapping:
  Stream #0:0 -> #0:0 (bmp (native) -> h264 (h264_nvenc))
Press [q] to stop, [?] for help
Output #0, mp4, to 'out.mp4':
  Metadata:
    encoder : Lavf60.4.100
  Stream #0:0: Video: h264 (Main) (avc1 / 0x31637661), 
bgra(progressive), 1920x1080, q=2-31, 2000 kb/s, 29.97 fps, 30k tbn

    Metadata:
  encoder : Lavc60.4.100 h264_nvenc
    Side data:
  cpb: bitrate max/min/avg: 0/0/200 buffer size: 400 
vbv_delay: N/A
frame=    0 fps=0.0 q=0.0 size=   0kB time=-577014:32:22.77 
bitrate=  -0.0kbits/s dup=1 drop=0 sframe=   48 fps= 25 q=36.0 size= 
256kB time=00:00:01.50 bitrate=1397.0kbits/s dup=44 drop=1 speeframe=   
63 fps= 26 q=35.0 size= 256kB time=00:00:02.00 bitrate=1047.7kbits/s 
dup=44 drop=4 speeframe=   79 fps= 27 q=32.0 size= 256kB 
time=00:00:02.53 bitrate= 827.1kbits/s dup=44 drop=4 speeframe=   94 
fps= 27 q=27.0 size= 256kB time=00:00:03.03 bitrate= 690.8kbits/s 
dup=44 drop=4 speeframe=  110 fps= 27 q=25.0 size= 512kB 
time=00:00:03.57 bitrate=1174.9kbits/s dup=44 drop=4 speeframe=  125 
fps= 28 q=20.0 size= 512kB time=00:00:04.07 bitrate=1030.5kbits/s 
dup=44 drop=4 speeframe=  141 fps= 28 q=19.0 size= 512kB 
time=00:00:04.60 bitrate= 911.0kbits/s dup=44 drop=4 speeframe=  156 
fps= 28 q=20.0 size= 512kB time=00:00:05.10 bitrate= 821.7kbits/s 
dup=44 drop=4 speeframe=  172 fps= 28 q=26.0 size= 768kB 
time=00:00:05.63 bitrate=1115.8kbits/s dup=44 drop=4 speeframe=  186 
fps= 28 q=19.0 size= 768kB time=00:00:06.10 bitrate=1030.4kbits/s 
dup=44 drop=4 speeframe=  202 fps= 28 q=14.0 size= 768kB 
time=00:00:06.63 bitrate= 947.6kbits/s dup=

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

What does this error message mean?
[h264_nvenc @ 01f5f7bbf980] OpenEncodeSessionEx failed: no encode 
device (1): (no details)


Works here. Could be a driver issue - try reverting.


It did not work woth the older driver either. That's why I updated the 
driver today.


Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


[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 failed: no encode 
device (1): (no details)


The console output is below.

My notebook has Nvidia Geforce RTX 2060 with the latest studio driver, 
updated today.

This command works without problems:
ffmpeg -f gdigrab -i desktop -c:v h264_nvenc -t 10 -y out.mp4

Michael



C:\Users\astro\Desktop\test_333>ffmpeg -f lavfi -i ddagrab -c:v 
h264_nvenc -cq 18 -t 10 -y out.mp4
ffmpeg version 2023-02-19-git-2aec86695a-full_build-www.gyan.dev 
Copyright (c) 2000-2023 the FFmpeg developers

  built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static 
--disable-w32threads --disable-autodetect --enable-fontconfig 
--enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp 
--enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib 
--enable-librist --enable-libsrt --enable-libssh --enable-libzmq 
--enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 
--enable-libaribb24 --enable-libdav1d --enable-libdavs2 
--enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 
--enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg 
--enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r 
--enable-libfreetype --enable-libfribidi --enable-liblensfun 
--enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf 
--enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec 
--enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl 
--enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl 
--enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt 
--enable-libopencore-amrwb --enable-libmp3lame --enable-libshine 
--enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc 
--enable-libilbc --enable-libgsm --enable-libopencore-amrnb 
--enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa 
--enable-libbs2b --enable-libflite --enable-libmysofa 
--enable-librubberband --enable-libsoxr --enable-chromaprint

  libavutil  58.  3.100 / 58.  3.100
  libavcodec 60.  4.100 / 60.  4.100
  libavformat    60.  4.100 / 60.  4.100
  libavdevice    60.  2.100 / 60.  2.100
  libavfilter 9.  4.100 /  9.  4.100
  libswscale  7.  2.100 /  7.  2.100
  libswresample   4. 11.100 /  4. 11.100
  libpostproc    57.  2.100 / 57.  2.100
Input #0, lavfi, from 'ddagrab':
  Duration: N/A, start: 0.72, bitrate: N/A
  Stream #0:0: Video: wrapped_avframe, d3d11, 1920x1080 [SAR 1:1 DAR 
16:9], 30 fps, 30 tbr, 1000k tbn

Stream mapping:
  Stream #0:0 -> #0:0 (wrapped_avframe (native) -> h264 (h264_nvenc))
Press [q] to stop, [?] for help
[h264_nvenc @ 01f5f7bbf980] OpenEncodeSessionEx failed: no encode 
device (1): (no details)


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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 
the volume as a function over time?


Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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 precision works with geq filter.
Is there any faster solution?

Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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 minute of the audio it works fine but if I try to replace parts above
1 minute it doesn't work. I guess it's because it tries to pick parts of
the audio above 1 minute, but it doesn't exist, because the audio is only 1
minute long. How can I replace any part of the audio with another audio
that starts playing from the beginning?


you could use the "adelay" filter to delay the second input for a 
suitable time.


Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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,
volume=0:enable='between(t,0,10)+between(t,15,20)'[beep];
[main][beep]amix=inputs=2:duration=first"

It successfully replaced parts between 10 - 15 seconds and 20 - 30 seconds
but the beep keeps playing till the end of the audio.



I think you also must make the beep silent after t=30:

volume=0:enable='between(t,0,10)+between(t,15,20)+gt(t,30)'

Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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 untouched. That's not the same,
because
the darkest pixels in the image aren't black.

The workaround is to insert a black pixel before normalizing:
-vf drawbox=w=1:h=1:color=black,normalize

This command produces more convincing output:

-vf colorlevels=rimin=0:gimin=0:bimin=0:rimax=-1:gimax=-1:bimax=-1

this will pick max pixels values from input and stretch it do default
output max.

This command gives almost the same result as my workaround.
The meaning of -1 for options is missing in the documentation.
It has the same problem as my workaround: The output is only 8-bit.


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?

Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


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 workaround is to insert a black pixel before normalizing:
-vf drawbox=w=1:h=1:color=black,normalize

This command produces more convincing output:

-vf colorlevels=rimin=0:gimin=0:bimin=0:rimax=-1:gimax=-1:bimax=-1

this will pick max pixels values from input and stretch it do default
output max.


This command gives almost the same result as my workaround.
The meaning of -1 for options is missing in the documentation.
It has the same problem as my workaround: The output is only 8-bit.

It would be nice to have all these image processing filters with float 
precision:
-- Hot pixel removal (save hot pixels in a mask, and replace those 
pixels by average of neighbor pixels)

-- Dark image subtraction
-- Flatfield correction (division)
-- Contrast enhancement (similar as colorlevels)
-- Gamma correction (might already exist in eq filter with float 
precision, I'm not sure)


For colorlevels it would be nice to have options "imin" and "imax" which 
set all three RGB channels simultaneously to the same value. Makes the 
command line much shorter.


Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


  1   2   3   4   5   6   7   8   9   10   >