【发布时间】:2016-07-25 23:39:58
【问题描述】:
在 Windows 上,使用 gst 1.8.2(从 1.6 开始),我使用以下 gst-launch 管道从多个 IP 摄像机流式传输到单个 mp4 文件创建 mp4 文件(我已重新格式化我的 gst-launch 命令,以便在此处看起来更好,但它们是单行):
mp4mux name=m ! filesink location=file.mp4
rtspsrc location="rtsp://x" latency=0 name=Camera1 ! rtph264depay ! h264parse ! tee name=t1
t1. ! queue ! m.video_1
t1. ! queue ! decodebin ! autovideosink name=video1
rtspsrc location="rtsp://y" latency=0 name=Camera2 ! rtph264depay ! h264parse ! tee name=t2
t2. ! queue ! m.video_2
t2. ! queue ! decodebin ! autovideosink name=video2
我可以使用 VLC 媒体播放器播放生成的文件,但我无法使用 gstreamer 播放文件。当我创建像
这样的管道时gst-launch-1.0 uridecodebin name=u uri=file:/file.mp4
u.src_0 ! queue ! autovideosink
u.src_1 ! queue ! autovideosink
它从不播放。在等待视频时,我看到了
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Redistribute latency...
Redistribute latency...
当我后来按 ctrl-c 时,响应是
handling interrupt.
Interrupt: Stopping pipeline ...
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
一位同事在他的 Mac 上尝试相同的命令并得到相同的结果。
我设置环境变量以生成“DOT”管道图文件。它们没有显示正确的视频格式、宽度或高度;我想它永远不会走那么远。我按照 otopolsky 的食谱,单台相机工作,包括命令行示例和我的程序。
有人有什么想法吗?
谢谢。
-赖利。
【问题讨论】:
-
更新到版本 1.8.2 没有任何乐趣。
标签: gstreamer