Gstreamer tcpserversink v0.10 vs 1.0 and HTML5 video tag

后端 未结 2 1422
生来不讨喜
生来不讨喜 2020-12-28 23:42

I am embedding a HTML5 video tag in my site, the source being a gstreamer stream.

I have a pipeline working on gst 0.10:

gst-launch-0.10 -v videotest         


        
2条回答
  •  佛祖请我去吃肉
    2020-12-29 00:22

    Runs on VLC 2.0.8 Twoflower & Chrome Version 37.0.2062.120 Ubuntu 12.04 (281580) (64-bit):

    gst-launch-1.0 videotestsrc is-live=true ! \
     clockoverlay shaded-background=true font-desc="Sans 38"  ! x264enc ! mpegtsmux ! \
     queue ! tcpserversink host=127.0.0.1 port=8082
    

    Firefox wants the Mime type to be correct. Gstreamer sends this as Mime = 'Plain' when it should be 'video/mp4'. Haven't succeeded in overriding the types.

    I used a empty HTML5 with tags to test various stuff:

    
    

    webm/ogg/mp4 work on chrome as it just does not care about Mime types.

提交回复
热议问题