Live data from Hacker News

Drawvg Filter for FFmpeg

ayosec.github.io

21–30 of 31 posts

Re: Drawvg Filter for FFmpeg

#22
post #17
post #8

drawvg is very useful. Before drawvg, I was always fine using the stable FFmpeg releases such as 8.0.1 but when I saw drawvg added to the master branch[1], I didn't want to wait for the next stable release and immediately re-built ffmpeg from master to start using it. My main use case is modifying youtube videos of tech tutorials where the speaker overlays a video of themselves in a corner of the video. drawvg is use…

Couldn't you use a video player like mpv to achieve a similar effect? Not sure if you can cover a specific part of the image but you sure can crop the video however you want and bind the commands/script to a key.

With mpv you could draw over the video with libASS, but it would be more straight forward to use ffmpeg filters from mpv or otherwise.

Re: Drawvg Filter for FFmpeg

#23
post #2

One of the strangest discoveries of my life was that vector graphics is a solved problem, and the solution is turtle graphics that I was taught in primary school.

This doesn't make any sense. Vector graphics aren't specified by rotating and walking a turtle, and that is obviously a tiny tiny trivial part of the vector graphics field. Try rendering a vector font directly on a GPU and see how far RIGHT 45 FORWARD 10 gets you.

Re: Drawvg Filter for FFmpeg

#24
post #15

Earlier quoted context omitted.

SVG path syntax [1] mentioned as being an inspiration in the article is very similar to Turtle graphics (move, lineto, etc.) [1] https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/E...

Very many vector graphics standards use the idea of a current position. A distinguishing feature of turtle graphics is to have a current direction as well. It's a shame SVG doesn't. Many shapes can be specified much more concisely.

plotter languages have the same concept.

Re: Drawvg Filter for FFmpeg

#25
post #8

drawvg is very useful. Before drawvg, I was always fine using the stable FFmpeg releases such as 8.0.1 but when I saw drawvg added to the master branch[1], I didn't want to wait for the next stable release and immediately re-built ffmpeg from master to start using it. My main use case is modifying youtube videos of tech tutorials where the speaker overlays a video of themselves in a corner of the video. drawvg is use…

The quick way I'd solve that is to open any program window (like calculator or whatever), mark it as being on top of other windows, and resize it and place it on top of that area. It seems quick and easy enough for the effort.

Re: Drawvg Filter for FFmpeg

#26

Earlier quoted context omitted.

Very many vector graphics standards use the idea of a current position. A distinguishing feature of turtle graphics is to have a current direction as well. It's a shame SVG doesn't. Many shapes can be specified much more concisely.

plotter languages have the same concept.

Which ones? I've just skimmed through docs for HP-GL, DMPL and Gerber, but I can't see anything.

Re: Drawvg Filter for FFmpeg

#27
post #19
post #17

Earlier quoted context omitted.

Couldn't you use a video player like mpv to achieve a similar effect? Not sure if you can cover a specific part of the image but you sure can crop the video however you want and bind the commands/script to a key.

>mpv to achieve a similar effect? Not sure if you can cover a specific part of the image but you sure can crop the video mpv doesn't run on iPad so it's better for my situation to just burn the blackout into a new video. I actually do a lot more stuff than drawvg (also rescale, pts, framerate,etc) in filter_complex but left the rest of it out for the HN comment so the example is more readable. I suppose it might be p…

> mpv doesn't run on iPad so it's better for my situation to just burn the blackout into a new video.

I would love to stop using the YouTube client on iPadOS. Do you just d/l the video with yt-dlp+ffmpeg and then post process it based on your needs and then watch it from the Files app from iCloud or whatever?

Re: Drawvg Filter for FFmpeg

#29
post #2

One of the strangest discoveries of my life was that vector graphics is a solved problem, and the solution is turtle graphics that I was taught in primary school.

This doesn't make any sense. Vector graphics aren't specified by rotating and walking a turtle, and that is obviously a tiny tiny trivial part of the vector graphics field. Try rendering a vector font directly on a GPU and see how far RIGHT 45 FORWARD 10 gets you.

Pretty far? No idea about the sota in GPU vector rendering, but if you triangulate shapes, RIGHT 45 FORWARD 10 would produce a vertex buffer of points on the CPU, which could be rendered on the GPU.

Re: Drawvg Filter for FFmpeg

#30
post #8

drawvg is very useful. Before drawvg, I was always fine using the stable FFmpeg releases such as 8.0.1 but when I saw drawvg added to the master branch[1], I didn't want to wait for the next stable release and immediately re-built ffmpeg from master to start using it. My main use case is modifying youtube videos of tech tutorials where the speaker overlays a video of themselves in a corner of the video. drawvg is use…

Cline just added a useless Note icon animation wherw it used to say "Thinking..." or whatever to signal contwng incoming. I think its nothing about faces. Our UI/UX designs put action items in lower right. Youtube skip button the most prominent..
Post reply on HN