我需要将dvb-t馈送到系统中,然后能够在点网核心环境中通过本地网络将频道作为rtsp流推出。
LibVLCSharp似乎很符合要求,但我正忙于确定每个通道的PID值,以便有选择地分配各个通道。
我发现,如果我播放一个媒体元素,我可以从LibVLC日志中获取EPG信息,其中包含PID和频道名称,但这样做感觉有点费力。
我知道在VLC UI中,您可以从播放->程序,所以我觉得我缺少了一些东西。
对我来说,唯一的方法是通过解析日志来获得这些信息,还是我错过了什么?
TS muxer (libdvbpsi) (mux_ts)
--sout-ts-standard={dvb,atsc}
Digital TV Standard
--sout-ts-pid-video=<integer [32 .. 8190]>
Video PID
Assign a fixed PID to the video stream. The PCR PID will
automatically be the video.
--sout-ts-pid-audio=<integer [32 .. 8190]>
Audio PID
Assign a fixed PID to the audio stream.
--sout-ts-pid-spu=<integer [32 .. 8190]>
SPU PID
Assign a fixed PID to the SPU.
--sout-ts-pid-pmt=<integer [32 .. 8190]>
PMT PID
Assign a fixed PID to the PMT
--sout-ts-tsid=<integer> TS ID
Assign a fixed Transport Stream ID.
--sout-ts-netid=<integer> NET ID
Assign a fixed Network ID (for SDT table)
--sout-ts-program-pmt=<string>
PMT Program numbers
Assign a program number to each PMT. This requires "Set PID to ID of
ES" to be enabled.
--sout-ts-es-id-pid, --no-sout-ts-es-id-pid
Set PID to ID of ES
(default disabled)
Sets PID to the ID if the incoming ES. This is for use with
--ts-es-id-pid, and allows having the same PIDs in the input and
output streams.
--sout-ts-muxpmt=<string> Mux PMT (requires --sout-ts-es-id-pid)
Define the pids to add to each pmt. This requires "Set PID to ID of
ES" to be enabled.
--sout-ts-sdtdesc=<string> SDT Descriptors (requires --sout-ts-es-id-pid)
Defines the descriptors of each SDT. This requires "Set PID to ID of
ES" to be enabled.
也许这有帮助,从来没有尝试过你想要实现的目标,所以我不确定。您可以使用libvlcsharp中的任何选项https://code.videolan.org/videolan/LibVLCSharp/-/blob/3.x/docs/libvlc_documentation.md#libvlc-选项