Live555 compilation and running server

Source: Internet
Author: User

On the official website

Bytes

1. Compile the video file live555 under arm_linux_g ++ [config. armlinux]


Cross_compile = arm-None-Linux-gnueabi-// compiler name
Compile_opts = $ (primary des)-I.-O2-dsocklen_t = socklen_t-dno_sstream = 1-d_largefile_source = 1-d_file_offset_bits = 64
C = C
C_compiler = $ (cross_compile) GCC
C_flags = $ (compile_opts)
CPP = CPP
Cplusplus_compiler = $ (cross_compile) GCC
Cplusplus_flags = $ (compile_opts)-wall-dbsd = 1
OBJ = o
Link = $ (cross_compile) g ++-O // It was originally GCC and fixed to G ++ to solve the above problem.
Link_opts =
Lele_link_opts = $ (link_opts)
Library_link = $ (cross_compile) Ar cr
Library_link_opts = $ (link_opts)
Lib_suffix =
Libs_for_console_application =
Libs_for_gui_application =
EXE =

// ================================================ ======================================
#./Genmakefiles armlinux
Then make or gmake

// ================================================ ======================================

If collect2: LD returned 1 exit status appears
Make [1]: *** [testmp3streamer] Error 1
Make [1]: Leaving directory '/home/live/testprogs'
Make: *** [testprogs/testmp3streamer] Error 2 and other errors make clean and then re-make. At this time, under mediaserver
The live555mediaserver service is displayed. At this time, the./live555mediaserver can establish the RTSP service.

Ii. Compile the video file live555 under Linux [config. Linux]

Compile_opts = $ (primary des)-I.-O2-dsocklen_t = socklen_t-d_largefile_source = 1-d_file_offset_bits = 64
C = C
C_compiler = cc
C_flags = $ (compile_opts)
CPP = CPP
Cplusplus_compiler = g ++ // compiler name, C ++ is g ++
Cplusplus_flags = $ (compile_opts)-wall-wno-deprecated-dbsd = 1
OBJ = o
Link = g ++-o
Link_opts =-L.
Lele_link_opts = $ (link_opts)
Library_link = ar cr
Library_link_opts =
Lib_suffix =
Libs_for_console_application =
Libs_for_gui_application =
EXE =

// ================================================ ======================================
#./Genmakefiles Linux
Then make or gmake

// ================================================ ======================================
If collect2: LD returned 1 exit status appears
Make [1]: *** [testmp3streamer] Error 1
Make [1]: Leaving directory '/home/live/testprogs'
Make: *** [testprogs/testmp3streamer] Error 2 and other errors make clean and then re-make. At this time, under mediaserver
The live555mediaserver service is displayed. At this time, the./live555mediaserver can establish the RTSP service.
At this time, we will see the following information:
----------------------------------------------------------------
Version 0.73 (live555 streaming media library version 2011.10.18 ).
Play streams from this server using the URL
RTSP: // 10.4.1.76: 8554/<FILENAME>
Where <FILENAME> is a file present in the current directory.
Each file's type is inferred from its name suffix:
". 264" => A H.264 video elementary stream File
". AAC" => An AAC audio (ADTs format) File
& Quot;. AC3 & quot; = & quot; An AC-3 audio file
". Amr" => an AMR audio file
". DV" => a dv Video file
". M4e" => A MPEG-4 video elementary stream File
". MKV" => A matroska audio + video + (optional) Subtitles File
". MP3" => A MPEG-1 or 2 audio file
". Mpg" => A MPEG-1 or 2 Program Stream (audio + video) File
". Ts" => a mpeg transport stream File
(A ". TSX" index file-if present-provides server 'Trick play' Support)
". Wav" => a wav audio file
See http://www.live555.com/mediaServer/ for additional documentation.
(We use port 8000 for optional RTSP-over-HTTP tunneling, or for HTTP live streaming (for indexed Transport Stream files only ).)

----------------------------------------------------------------
In this case, open rtsp: // 10.4.1.76: 8000/test.264 of VLC to play the corresponding video file.
---------------------------------------------------------------------

Iii. Compile the video file live555 under the window [win32config]

# Comment out the following line to produce makefiles that generate debuggable code:
Nodebug = 1

# The following definition ensures that we are properly matching
# The Winsock2 library file with the correct header files.
# (Will link with "ws2_32.lib" and include "winsock2.h" & "ws2tcpip. H ")
Targetos = winnt

# If for some reason you wish to use winsock1 instead, uncomment
# Following two definitions.
# (Will link with "wsock32.lib" and include "Winsock. H ")
# Targetos = Win95
# Appver = 4.0

! Include <ntwin32.mak>

Ui_opts = $ (guilflags) $ (guilibsdll)
# Use the following to get a console (e.g., for debugging ):
Console_ui_opts = $ (conlflags) $ (conlibsdll)
CPU = i386

Tools32 = c: \ Program Files \ Microsoft Visual Studio \ vc98 // modify the corresponding C ++ Location Information
Compile_opts = $ (supported des) $ (cdebug) $ (cflags) $ (cvarsdll)-I.-I "$ (tools32) \ include"
C = C
C_compiler = "$ (tools32) \ bin \ Cl"
C_flags = $ (compile_opts)
CPP = CPP
Cplusplus_compiler = $ (c_compiler)
Cplusplus_flags = $ (compile_opts)
OBJ = OBJ
Link = $ (Link)-out:
Library_link = Lib-out:
Link_opts_0 = $ (linkdebug) msvcirt. Lib
Library_link_opts =
Link_opts = $ (link_opts_0) $ (ui_opts)
Console_link_opts = $ (link_opts_0) $ (console_ui_opts)
Service_link_opts = kernel32.lib advapi32.lib shell32.lib-subsystem: console, $ (appver)
Lib_suffix = lib
Libs_for_console_application =
Libs_for_gui_application =
Multimedia_libs = winmm. Lib
EXE =. exe
Platform = Windows

Rc32 = "$ (tools32) \ bin \ RC"
. Rc. Res:
$ (Rc32) $ <
// ================================================ ====================
Genwindowsmakefiles // run this command at the command prompt. A. Mak file is generated under each corresponding directory.
In to use these makefiles from within Visual Studio, use the "open workspace" menu command, then (in the file selection DIALOG)
For "files of type", choose "makefiles (. Mak)". Visual Studio shoshould then prompt you, asking if you want to use this makefile
To set up a new project. Say "OK ".
 
In this case, each worker in the waiting period must be compiled independently. The mediaserverat will form the live555mediaserver.exe file and double-click the file to run the service.
// ================================================ ====================

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.