PDA

View Full Version : how can i play video?



jak-jak
01-23-2017, 07:14 AM
I am very new to opengl but i need to make a player to play some videos.
i don know how to do that. i have seen Nehe lesson 35 about playing avi video but it has low quality and i need much more.
i have seen many post in this forum but none of them solved my issue.
is there any one to help me to do that?

Hellice
01-23-2017, 07:42 AM
IIt's not OpenGL you need. It's OpenCV :)

Dark Photon
01-24-2017, 05:33 AM
IIt's not OpenGL you need. It's OpenCV :)

OpenCV (https://en.wikipedia.org/wiki/OpenCV)? That's for computer vision (https://en.wikipedia.org/wiki/Computer_vision), not video decode and playback.

jak-jak, unless you want to get into the business of writing video format decompression libraries, I'd suggest you find and use an available video decode and playback library, such as ffmpeg (https://ffmpeg.org/) (see its libraries on the linked page).

Of course, there are others. Just search for "video decode and playback library" along with your preferred platform (including on sites such as stackoverflow), and you'll probably get multiple hits.

Hellice
01-24-2017, 05:39 AM
OpenCV (http://opencv.org/)? That's for computer vision (https://en.wikipedia.org/wiki/Computer_vision), not video decode and playback.

jak-jak, unless you want to get into the business of writing video format decompression libraries, I'd suggest you find and use an available video decode and playback library, such as ffmpeg (https://ffmpeg.org/) (see its libraries on the linked page).

Of course, there are others. Just search for "video decode and playback library" along with your preferred platform (including on sites such as stackoverflow), and you'll probably get multiple hits.

Well according to what the orginal poster of the thread need Opencv is the answer.. yes it's for computer vision but it offer from the shelf tools to make video player without diving into video decode and playback which are pain iff you want to program them from scratch using only c++ and opengl as render

tomb18
01-24-2017, 06:10 PM
You could use videolab from Mitov.com It's free for private use and no code at all is needed for a video player. Just drag and drop.

jak-jak
02-18-2017, 10:24 PM
OpenCV (https://en.wikipedia.org/wiki/OpenCV)? That's for computer vision (https://en.wikipedia.org/wiki/Computer_vision), not video decode and playback.

jak-jak, unless you want to get into the business of writing video format decompression libraries, I'd suggest you find and use an available video decode and playback library, such as ffmpeg (https://ffmpeg.org/) (see its libraries on the linked page).

Of course, there are others. Just search for "video decode and playback library" along with your preferred platform (including on sites such as stackoverflow), and you'll probably get multiple hits.


i just wana play a video in a way to use lower cpu usage. i want to show four video from one source to make cpu usage lower than 4 opened VLC

jak-jak
02-18-2017, 10:28 PM
You could use videolab from Mitov.com It's free for private use and no code at all is needed for a video player. Just drag and drop.

i need to play four video from one source. four same video for full HD video wall solution. every players has its own source. i dont want that

Silence
02-19-2017, 03:50 AM
i just wana play a video in a way to use lower cpu usage. i want to show four video from one source to make cpu usage lower than 4 opened VLC

You will probably have less CPU usage, but in another hand, you'll certainly raise your GPU usage...

Here is an (old) link I could have find: http://nehe.gamedev.net/tutorial/playing_avi_files_in_opengl/23001/