gstreamer appsrc works for xvimagesink but no in theoraenc ! oggmux

前端 未结 1 947
梦如初夏
梦如初夏 2021-01-23 14:24

I am trying to stream cast a computer generated video using gstreamer and icecast, but I cannot get gstreamer appsrc to work. My app works as expected if I use xvimagesink as th

相关标签:
1条回答
  • 2021-01-23 14:40

    I think that your problem is most likely to do with timestamping of the buffers. I've done some quick testing, using that code and replacing the shout element with oggdemux, theoradec, ffmpegcolorspace and ximagesink. At first, I got no output, but after I dispensed with the muxing/demuxing altogether, I got a static image, along with some debug messages about timestamps. I got the correct output after setting the is-live and do-timestamp properties to true on appsrc.

    I assume that it should be possible to directly set the timestamps on the buffers that you are pushing out of appsrc, but alas I've not discovered how to do that.

    0 讨论(0)
提交回复
热议问题