我正在尝试使用GStreamer执行RTSP到HLS转换,为此我创建了一个与视频通道一起正常工作的管道,但音频似乎丢失了。有没有办法将音频通道包含在HLS播放列表中?
gst-launch-1.0 rtspsrc location=rtsp://192.168.112.86:8554/test ! rtph264depay ! h264parse ! mpegtsmux ! hlssink max-files=5 playlist-location=/hlssink/playlist.m3u8 location=/hlssink/segment%05d.ts target-duration=10
答案 0 :(得分:1)
您必须在rtsp源和复用器之间建立另一个连接。例如,对于AAC音频:
<?php
//Allow **all** characters except parenthesis
$regex = '/\([^\(\)]+\)/';
//The matching items will be replaced by this
$replacement = 'INPUT TAG HERE';
//Input string
$sentence = 'My Name is (Name). I live in (Turkey).';
echo preg_replace($regex, $replacement, $sentence);