如何使用gstreamer在h265中进行流式传输?
我正在尝试使用最新的gstreamer和x265enc。 我看到有人已经在http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/log/ext/x265/gstx265enc.c中发布了一些提交任何人都可以请举一个已知工作的示例管道(gst-launch-1.0管道示例将非常有帮助)
1)gstreamer的x265enc插件的当前状态是什么? 它真的有效吗? 我需要使用哪个gstreamer分支来构建x265enc? 我想要构建与x265enc插件兼容的整个gsteamer源代码。 x265enc的系统要求是什么以及如何构建它? 任何wiki /基本说明都会非常有帮助。
我的目标是在vaughnlive.tv上将我的网络摄像机(h264流)广播为h265流
目前,我正在使用以下管道以h264格式进行广播:
GST_DEBUG = 2 gst-launch-1.0 flvmux name = mux streamable = true! rtmpsink sync = true location =“rtmp:// xxxxxxxxxxxx”rtspsrc location =“rtsp:// xxxxxxx”caps =“application / x-rtp,media =(string)audio,clock-rate =(int)90000,encoding- name =(string)MPA,payload =(int)96“! rtpmpadepay! mpegaudioparse! 队列! 疯了! audioconvert! 队列! voaacenc bitrate = 128000! aacparse! audio / mpeg,mpegversion = 4,stream-format = raw! MUX。 rtspsrc location =“rtsp:// xxxxxxx”caps =“application / x-rtp,media =(string)video,clock-rate =(int)90000,encoding-name =(string)H264”! rtph264depay! video / x-h264,stream-format = avc,alignment = au,byte-stream = false! 队列! 解码器! 队列! 视频速率! “video / x-raw,framerate = 30/1”! 队列! x264enc threads = 4 speed-preset = ultrafast bitrate = 3072! MUX。
2)任何人都可以请建议我应该如何改变这条管道使用x265enc元素以h265格式进行广播?
请帮忙 。 非常感谢
有点迟了,但是,也许有些人在现在寻求有关gstreamer中H.265支持的信息时会发现这个问题。 这与gstreamer 1.6.1是从Ubuntu 15.10的源代码编译而来的,它已经为libx265准备好了包。
1,
编码器有x265enc
当我们有库,将启用libx265-dev
。 编码器在gst-plugins-bad内部,所以在完成autogen.sh之后,您应该看到x265enc已启用。
您可能还需要h265parse,rtph265pay / depay
解码器
我看到两个解码器,不知道哪一个在工作,我猜libde265dec
也有avdec_h265
。
MUX
对于用于x264的多路复用器,我使用mpegtsmux,但这不支持video / x265,需要完成一些工作。 使用filesink等matroskamux应该工作。
[16:39] hi, which container is suitable for x265enc, for x264enc I was using mpegtsmux? [16:54] otopolsky: mpegts would work if you add support for h265 there, not very difficult[16:55] slomo_: so we need to just add the caps compatibility? [16:55] otopolsky: otherwise, matroskamux supports it. mp4mux/qtmux could get support for it relatively easily too [16:55] otopolsky: a bit more than that. look at what tsdemux does for h265 [16:56] otopolsky: and check the gst_mpegts_descriptor_from_registration related code in tsmux [17:00] slomo_: thanks
2,
质疑flvmux也不支持h265只h264 .. matroskamux不能用于流媒体,所以唯一的方法是修补mpegtsmux或flvmux等。
链接地址: http://www.djcxy.com/p/43973.html