当有人说“也可以写入 yuv 帧的设备、fifo 或文件名” fifo在这里是什么意思?
我正在阅读 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
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.这是一个命名管道。
尝试 man mkfifo
It's a named pipe.
Try man mkfifo