<div dir="ltr"><div>Does open broadcast need raw video as input? Live555 is a streamer only.<br>I decoded my frames using libavcodec(FFMPEG) and then apply them to a texture using opengl or directx on windows,linux,mac,android or iphone. same procedure for all.<br></div>Libavcodec decodes to YUV422 data, That is a luminance value for each pixel and half as many of each chroma values. I used a shader in HSGL to convert the YUV to RGBA in video hardware, but libavcodec has a sws_scale function that can scale and color convert in main memory. <br><br><a href="http://en.wikipedia.org/wiki/YUV">http://en.wikipedia.org/wiki/YUV</a><br><a href="http://en.wikipedia.org/wiki/Libavcodec">http://en.wikipedia.org/wiki/Libavcodec</a><br>useful but dated:<br><a href="http://blog.tomaka17.com/2012/03/libavcodeclibavformat-tutorial/">http://blog.tomaka17.com/2012/03/libavcodeclibavformat-tutorial/</a><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Sep 5, 2014 at 1:38 AM, Joy Carlos Gomes <span dir="ltr"><<a href="mailto:cgomes@iinet.com" target="_blank">cgomes@iinet.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi I am trying to receive an RTSP stream into Open Broadcast Software. I currently use VLC (libVLC), however we have some hardware issues which causes BYE messages to be sent. VLC doesn't handle these gracefully, so I am looking for another RTSP streamer.<div><br></div><div><b>Question:</b></div><div>libVLC is providing pixelData that is set on the texture. I am wondering how do I get the pixelData via openRTSP? I am new to video programming and wondering where to start. </div><div><br></div><div><b>Call to set pixel data on OBS texture:</b></div><div>GetTexture()->SetImage(*pixelData, GS_IMAGEFORMAT_BGRA, _this->GetTexture()->Width() * 4);<br><div><br></div><div>Thanks,</div><div><div>~Carlos~</div>
</div></div></div>
<br>_______________________________________________<br>
live-devel mailing list<br>
<a href="mailto:live-devel@lists.live555.com">live-devel@lists.live555.com</a><br>
<a href="http://lists.live555.com/mailman/listinfo/live-devel" target="_blank">http://lists.live555.com/mailman/listinfo/live-devel</a><br>
<br></blockquote></div><br></div>