PDA

View Full Version : Video streaming using OpenGL



sathishkumar
01-04-2018, 02:53 AM
Hi Everyone,
I am new to OpenGL,i want to stream a Video and audio from PC to TV via HDMI cable,instead of viewing the PC's desktop screen on TV.How can i achieve this by using OpenGL please help me.Thanks in advance.

thor4000
01-07-2018, 06:11 PM
I don't understand. Why would this require making your own OpenGL program? Can't you just plug your PC to a TV?

Dark Photon
01-08-2018, 04:57 AM
As thor4000 point out, this has little or nothing to do with OpenGL. If you want your PC to function as a video player (e.g. DVR), you want to check out video decode and playback APIs available for your platform. Some of these make use of the PC's GPU to accelerate video decode and playback (as many GPUs include fixed-function hardware that can be used to accelerate video encode/decode, saving CPU cycles).

Post what platform (e.g. Linux, Windows, etc.) and what GPU vendor(s) you're targeting (if any), and we can give you a few pointers to other projects/APIs to get you started.

sathishkumar
01-08-2018, 10:57 PM
As thor4000 point out, this has little or nothing to do with OpenGL. If you want your PC to function as a video player (e.g. DVR), you want to check out video decode and playback APIs available for your platform. Some of these make use of the PC's GPU to accelerate video decode and playback (as many GPUs include fixed-function hardware that can be used to accelerate video encode/decode, saving CPU cycles).

Post what platform (e.g. Linux, Windows, etc.) and what GPU vendor(s) you're targeting (if any), and we can give you a few pointers to other projects/APIs to get you started.


Thanks for your reply Dark Photon:),I am using windows 10 platform with AMD RADEON HD5450 graphics card as well as i am trying to implement this project on linux for that i am using raspberry pi 3 model-b.can you please suggest some API or examples for both platform,if any available means let me know.

Dark Photon
01-09-2018, 05:21 AM
I am using:

[1)] windows 10 platform with AMD RADEON HD5450 graphics card as well as...
[2)] linux ... raspberry pi 3 model-b.

Ok, hopefully others will be able to chime in her for you, as most of my experience is with NVidia GPUs on Linux and Windows. However, here are a few search terms with links that might help function as a jumping off point. I've intentionally leaned toward the GPU-hardware-accelerated decode support and also toward AMD GPUs with this list.

Windows


DxVA - DirectX Video Acceleration (https://en.wikipedia.org/wiki/DirectX_Video_Acceleration)

Linux


XvMC - X Video Motion Compensation (https://en.wikipedia.org/wiki/X-Video_Motion_Compensation)
XvBA - X Video Bitstream Acceleration (https://en.wikipedia.org/wiki/X-Video_Bitstream_Acceleration)
NVidia VDPAU - Video Decode and Presentation API for UNIX (https://www.mythtv.org/wiki/VDPAU) (accelerated decode for NVidia and some AMD GPUs) (another link (https://en.wikipedia.org/wiki/VDPAU))

Cross-platform (Windows and Linux):


NVidia Video Codec SDK (https://developer.nvidia.com/nvidia-video-codec-sdk) (accelerated video encode/decode on NVidia GPUs)
AMD UVD - Unified Video Decoder (https://en.wikipedia.org/wiki/Unified_Video_Decoder) (see UVD refs on VDPAU page)
AMD VCN - Video Core Next (https://en.wikipedia.org/wiki/Video_Core_Next)


That said, there's nothing to say you couldn't just use a CPU-based software decoder and a high-end multi-core CPU to do the decoding, reducing your GPU needs to just being able to display decoded video frames. This'll require higher bus bandwidth as well though.