频道的 DVB 录制
我正在尝试使用 DVB-T 调谐器录制 DVB 频道。 我已经对这个主题做了很多研究,但我没有得到真正的“信息”该做什么。
基本上我已经能够使用默认的 GraphEdit 创建自己的图表,发出调谐请求并观看频道。使用 DirectShowLib 将图形转换为 C# 代码或 C++ 对我来说并不是一个大问题。
但我不知道,录制电影的正确方法是什么。 (无需将其解码为 mpeg / avi 等。)
I'm trying to record a DVB-Channel with a DVB-T Tuner.
I already did much research on this topic but I don't get really "information" what to do.
Basically I'm already able to create a own Graph with the default GraphEdit
, make a tune request and watch a channel. Converting the Graph to C# Code with the DirectShowLib
or to C++ isn't a big problem for me.
But what I don't know, what is the right approach to record the movie. (Without decode it to mpeg / avi and so on.)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
图中最重要的部分是一些与调优相关的滤波器,它们连接到解复用器(demux),解复用器将输出视频和音频流。
获取 mpeg 流的最简单方法是在解复用器之前放置一个过滤器。例如样本采集器。在那里您将收到广播时的完整传输流。但通常包含以相同频率复用的多个节目。如果您只需要一个节目,则需要将其他节目从流中过滤掉。
如果您只需要一个程序,那么直接将来自解复用器的音频和视频流连接到复用器并将其输出写入文件可能会更容易。您需要确保解复用器和复用器之间没有解码器或任何其他过滤器。问题是您需要找到一个 directshow 多路复用器,因为 Windows 不包含标准多路复用器。我不知道有什么免费的多路复用器。
您还可以做的是将音频和视频直接写入文件。 (同样没有解码,或其他任何东西)。然后使用 ffmpeg 将音频和视频加入到单个文件中。
您可能还需要延迟音频或视频流以使它们同步。
另外,当然您还可以使用 ffmpeg 将多节目传输流转换为单个节目节目流。
The most important parts of the graph are some tuning related filters, they connect to the demultiplexer (demux), and the demux will output a video and audio stream.
The easiest way to get the mpeg stream is putting a filter before the demux. For example a samplegrabber. There you will receive the complete transport stream as it is broadcasted. But that normally contains multiple programs which are multiplexed on the same frequency. If you only need one program, you need to filter the other programs out of the stream.
If you only need a single program, it is probably easier to directly connect the audio and video stream coming out of the demultiplexer, to a multiplexer, and write it's output to a file. You need to make sure there is no decoder or any other filter between the demux and the mux. The problem is that you need to find a directshow multiplexer, as windows does not contain a standard multiplexer. I don't know any free multiplexer.
What you also can do is write the audio and video directly to a file. (again without decoding, or anything else). Then use for example ffmpeg to join the audio and video to a single file.
You probably also need to delay the audio or video stream to get them in sync.
One addition, of course you can also use ffmpeg to convert the multi program transport stream to a single program stream.