One of the modifications to the contrib third-party library of VLC: Modification of the live library

Source: Internet
Author: User

Thanks to the help of the gg-Ak47 kids shoes in the VLC study group, although he told me that I didn't get it done. The contrib library is provided on the official website.CodeFor the third-party library called, it is very troublesome to debug and modify it. Jeremiah recently debugged vlc rtsp and compiled the live555 library to replace the live library provided by contrib on the official website. The VLC was compiled, implemented modifications to third-party libraries. Share here, provide a way of thinking, other libraries, and so on.

Test environment:
1. cygwin-New (20081208)
2. vlc-0.9.9a
3. contrib-20090118-win32-bin-gcc-4.2.1-sjlj-runtime-3.13-only.tar.bz2 ( Download is provided in my public mailbox. The download method is as follows:
1). login http://mail.qq.com
2). User name: jeremiah_vlc
3). Password: mail me (jeremiah.vlc@gmail.com), I will tell.
4). There is a large attachment connection for all data in "my folder"'s "jeremiah_vlc related resources .)

The version of a third-party library is very important. Jeremiah provides a method to find the version of the required library.
Open extras/contrib/src/Under the VLC source code and there will be a makefile and packages. Mak. These two files are originally for Linux and MACOs to download and compile third-party libraries. Based on these two files, you should know what the third-party Library provides and if it is compiled.

But the live555's library is quite special. Search for them and find that they are always live-latest.tar.gz. This is changed at any time according to different versions. Jeremiah was also tested many times and finally found a suitable version.
: Http://ftp.gamma.ru/FreeBSD/ports/local-distfiles/nork/live.2009.02.23.tar.gz
There are other versions of live in this ftp. Because the old version of live is not officially available for download, the old version of live can only be obtained through other unofficial channels.

1. Decompress live.2009.02.23.tar.gz ~ Lower
2. Copy the patch ~ . Note directory level CP ~ /Vlc-0.9.9a/extras/contrib/src/patches/live-noapps.patch ~ /Vlc-0.9.9a/extras/contrib/src/patches/live-uselocale.patch ~
3. Patch Patch-P0 <live-noapps.patch
Patch-P0 <live-uselocale.patch 4. Go to live and modify config. mingw. CD live
VI config. mingw Modify as follows:

Change c_compiler from $ (CC) to GCC-MnO-cygwin
Change cplusplus_compiler from $ (cxx) to G ++-MnO-cygwin
Change library_link from $ (LD)-O to $ (LD)-lws2_32-o

5. Compile live ./Genmakefiles mingw
Make If no error is reported, the compilation is okay. 6. Copy the database to/usr/Win32 Save the following script as CP. Sh CP basicusageenvironment/libbasicusageenvironment. A/usr/Win32/live.com/basicusageenvironment/
CP basicusageenvironment/libbasicusageenvironment. A/usr/Win32/lib/
CP usageenvironment/libusageenvironment. A/usr/Win32/live.com/usageenvironment/
CP usageenvironment/libusageenvironment. A/usr/Win32/lib
CP groupsock/libgroupsock. A/usr/Win32/live.com/groupsock/
CP groupsock/libgroupsock. A/usr/Win32/lib/
CP livemedia/liblivemedia. A/usr/Win32/live.com/livemedia/
CP livemedia/liblivemedia. A/usr/Win32/lib Run Sh CP. Sh The library has been replaced successfully. After you modify the live source code, you can re-make and re-CP.   7. VLC re-associate the Live Library If you want to make clean and make again, I have no opinion. Here is a simple method. Cd ~ /Vlc-0.9.9a/modules/Demux
Rm liblive555_plugin_la-live555.lo
Make

later in modules/Demux /. liblive555_plugin.dll under libs is the latest compiled, test package good vlc-0.9.9a plugins to get all.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.