@xinyiman
to do a paid close-source program...to view the videos in the program.
As already mentioned by Thaddy, You won't find any Player without Copyright-Restrictions.
Afaik (but I'm not a Lawyer), You can deal with some Copyright-Issues, if Your App only contains the Links to the Libraries,
that are required by Your App, like e.g. 'Audacity' (= non-commercial) does.
Then, You only have to explain to Your Customer, that he has to download something by himself to run an App he should pay for.
Now, Your App only has to comply with different Laws in each Country or Region, where You want to sell Your App.
-> gonna be difficult (and expensive).
If You want to try out the Lazarus-VLC-Component, mentioned by 'wp', see the attached
VLC-Tutorial:
'Displaying video files using Free Pascal and Lazarus.pdf'.
If You're Looking for more, see here:
http://wiki.lazarus.freepascal.org/Video_Playback_LibrariesIf You rather tend to follow Thaddy's Advice...
There is a solution: write it all yourself!
...maybe these Threads are interesting for You...
"NON(!)-EXE FFPlay4Laz" by me:
http://forum.lazarus.freepascal.org/index.php/topic,26666.0.html'FFPlay4Laz' is based on FFmpeg's 'ffplay.c', but it's not only a simply ported Copy of it.
It uses the FFmpeg-Libraries as Audio-/Video-Decoder and -Converter, SDL as Audio-/Video-Output, and
Portaudio for enhanced AudioQuality (currently all Win32, only).
The ConsoleVersion works - the last Release can be downloaded here:
http://forum.lazarus-ide.org/index.php/topic,26666.msg286945.html#msg286945In the Meantime, I've added some more PlayerFeatures and wrote a Windows-DLL, that encapsulates all Features of that Console.
Currently, I'm writing a LCL-GUI, that demonstrates those PlayerFeatures and shows how to use the DLL's API.
(Will be released in this Forum in the next Weeks - depends on how much Time I got for Progging.)
If You don't like 'FFPlay4Laz', see here:
"Lazarus Mediaplayer with SDL2 and FFMPEG", a simplified FFmpeg-Player by 'somby':
http://forum.lazarus.freepascal.org/index.php/topic,40446.0.htmlIf You're additionally familiar with C++, see here:
"[Open source] LibFFPlay" by 'mercury' links to a modified 'ffplay.c':
http://forum.lazarus.freepascal.org/index.php/topic,33105.0.htmlIf a Command-Line-Solution is sufficient for You, see here:
http://forum.lazarus-ide.org/index.php/topic,24712.0.html-> 'WinFF' has SourceCode, 'dmMediaConverter' not; both have FFmpeg-Command-Line-Examples.
-> for Copyright-Issues, see Page #2 !
Note: All of the Projects listed above - including 'VLC' - use FFmpeg:
https://en.wikipedia.org/wiki/FFmpeg-> Read "Legal aspects"