RUVIDEO
Поделитесь видео 🙏

FFMPEG - lavfi examples

FFMPEG
lavfi (Libavfilter input virtual device.)

(The following notes are also in the description)
Here's a link: https://ffmpeg.org/ffmpeg-all.html#lavfi

I decided to try out some of the examples on lavfi in the online ffmpeg documentation given in section 26.12.2

Examples...

In the first example you create a color video stream and play it back with ffplay:

This is the code:
-------------------------------------------------------------------
ffplay -f lavfi -graph "color=c=pink [out0]" dummy
-------------------------------------------------------------------

Then I did the same command but removed the graph and "out0" labels:

-------------------------------------------------------------------
ffplay -f lavfi color=c=pink
-------------------------------------------------------------------

Then I created three different video test filtered sources and played them:

-------------------------------------------------------------------
ffplay -f lavfi -graph "testsrc [out0]; testsrc,hflip [out1];testsrc,negate [out2]" test3
-------------------------------------------------------------------


There was an example to read an audio stream from a file using the amovie source and play it back with ffplay:

-------------------------------------------------------------------
ffplay -f lavfi "amovie=Doom666.mp3"
-------------------------------------------------------------------
(If you look hard you might be able to see the hidden image?)
I chose the Doom soundtrack because I knew that they had somehow put image into the sound, I don't understand it and I don't know how they did it.
There is a better visualisation in this link:

From: https://www.youtube.com/watch?v=yzFit0nldf4So


After doing ffplay examples I also found an ffmpeg example in the following link:

https://www.bogotobogo.com/FFMpeg/ffmpeg_video_test_patterns_src.php

This example will create a 10 second output, 30 fps (300 frames total):
-----------------------------------------------------------------
ffmpeg -f lavfi -i testsrc=duration=10:size=1920x1080:rate=30 testsrc.mp4
-----------------------------------------------------------------
There are some other examples on the links that I've provided, and the ffmpeg manual goes into more detail about what lavfi is.

00:00 intro
00:15 create color video stream
00:33 same command without -graph
01:00 command to play 3 test filtered sources
01:40 command to read and play audio of Doom
02:36 command to make video of testsrc

Thankyou for watching :)

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «FFMPEG - lavfi examples», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.