当有人说“也可以写入 yuv 帧的设备、fifo 或文件名” fifo在这里是什么意思?

发布于 2024-09-03 20:52:21 字数 231 浏览 2 评论 0原文

我正在阅读 VLC 命令行编程的文档。在那里我看到

 YUV video output
      --yuv-file=<string>        device, fifo or filename
          device, fifo or filename to write yuv frames too.

设备和 fifo 是什么意思?如何指定它们?

I am reading docs for VLC Command line programming. there I saw

 YUV video output
      --yuv-file=<string>        device, fifo or filename
          device, fifo or filename to write yuv frames too.

What does device and fifo mean? how to specify them?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

江南月 2024-09-10 20:52:21

FIFO 管道是由文件系统处理的“先进先出”管道。 也称为命名管道

本质上,文件系统作为其上的一条记录,指向RAM 的一部分,用于在不同进程之间传输数据,就好像它是从中读取和写入的实际磁盘文件一样。当然,普通文件和管道之间存在不同的行为,但这是总体思路。

FIFO,或“先进先出”是一个队列术语,这意味着写入管道的第一个数据是第一个读出的数据。

现在,设备是机器中的一个“设备”,可以指定它来写入数据或从中读取数据。这可以是网络设备或捕获/显示设备(例如 VIVO 视频卡)。在 *nix 系统上,您可以在 /dev 中找到设备,例如 DVD 设备的 /dev/dvd

A FIFO pipe is a "first in first out" pipe handled by the file system. It is also called a named pipe

Essentially, the file system as a record on it that points to a section of RAM that is used to transfer data through between different processes as if it was an actual disk file it was reading and writing from. Of course, there are different behaviours between normal files and pipes, but that's the general idea.

The FIFO, or "first in, first out" is a queue term, which means the first data written to the pipe is the first data read out.

Now, device is a 'device' in your machine that can be specified to write data to or read data from. This can be something like a network device or a capture/display device (such as VIVO video cards). On *nix systems, a device is something you will find in /dev such as /dev/dvd for a DVD device.

甚是思念 2024-09-10 20:52:21

这是一个命名管道。

尝试 man mkfifo

It's a named pipe.

Try man mkfifo

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文