see that the video is being downloaded by segment, which verifies that the HTTP Dynamic streaming VOD method is successful.
4.2) Verify Live Success Launch the above installed Flash Media Live Encoder 3.2, choose Preset Custom, video selection H264,29.9fps, resolution 352x288, Code rate optional 3, 350,h264 can be set every 2 seconds a key frame, etc., choose MP3 do audio and so on. in the right stream to Flash Media server FMS URL: RTMP://YOURSERVERIP/LIVEPKGR, fill in the Stream column:
container configuration:Listen 1935;Max_connections 1000;PID Objs/edge.pid;Srs_log_file./objs/edge.log;Vhost __defaultvhost__ {}Configuration of the SRS cluster:Listen 1935;Max_connections 1000;PID Objs/edge.pid;Srs_log_file./objs/edge.log;Vhost __defaultvhost__ {mode remote;Origin 127.0.0.1:19350;}The 127.0.0.1:19350 in origin is changed to the socket that can provide the data source for the SRS server, and the SRS service that provides the data source can be made into a container for others t
Build the Android Application Development Environment and system compilation environment on Ubuntu14.10, and ubuntu14.10androidBuild an android Application Development Environment
Install and configure Java JDK.
Download and install Android NDK.
Android ADT downloads and installs the configuration.
Download the Android SDK.
Android Elicpse installation configuration.
Android Studio installation configuration.
# Download and install Oracle JDK ##
JDK 6:Http://www.oracle.com/technetwork/
to the console. Copy the information and save it as a. SDP text file suffix. It can also be used to receive the RTP stream. After "> test. SDP" is added, you can directly Save the SDP information as text.
2.2. Play the RTP that carries the H.264 bare stream.
[Plain]View plaincopy
Ffplay test. SDP
3. rtmp3.1. send the H.264 bare stream to the rtmp server (flashmedia server, red5, etc)
Run the command to send the "Chunwan. h264" of the H.264 bare stream to the rtmp URL where the host is localho
. SDP" is added, you can directly Save the SDP information as text.
2.2. Play the RTP that carries the H.264 bare stream.
ffplay test.sdp
3. rtmp3.1. send the H.264 bare stream to the rtmp server (flashmedia server, red5, etc)
Run the command to send the "Chunwan. h264" of the H.264 bare stream to the rtmp URL where the host is localhost, the application is oflademo, and the path is livestream.
ffmpeg -re -i chunwan.h264 -vcodec copy -f flv rtmp://l
Check the current Python version.
$ python --versionPython 3.4.2
2. modify the Python version at the system level.
We can use update-alternatives to change the Python version for the entire system. Log on as a root user. first, list all available python alternative versions:
# update-alternatives --list pythonupdate-alternatives: error: no
……Totaldownloadsize:44MIsthisok[y/N]:y3. After the installation is complete, verify that[[emailprotected]~]#java-versionjavaversion"1.6.0_37"OpenJDKRuntimeEnvironment(IcedTea61.13.9)(rhel-1.13.9.4.el5_11-x86_64)OpenJDK64-BitServerVM(build23.25-b01,mixedmode)4. The path to the default installation via Yum is/usr/lib/jvm[[emailprotected]~]#cd/usr/lib/jvm[[emailprotected]jvm]#lltotal24drwxr-xr-x3rootroot4096Jan1220:01java-1.6.0-openjdk-1.6.0.37.x86_64lrwxrwxrwx1rootroot21Jan1220:01jre->/etc/
, UDP may cause packet loss. To avoid this, you can add the-S parameter (for example,-s 320x240) to reduce the resolution.2.4. encoding: H.264, released RTP
The following command is used to obtain the camera data-> encode it as H.264-> encapsulate it as RTP and send it to the multicast address.
ffmpeg -f dshow -i video="Integrated Camera" -vcodec libx264 -preset:v ultrafast -tune:v zerolatency -f rtp rtp://233.233.233.223:6666>test.sdp
Note 1: To increase the encoding speed of libx264, the-pre
process and help, see the official website of adobe.
2.3.2 prepare the camera Device
You can use a USB webcam or a professional video capture card (which must be recognized by the Adobe Flash Media live encoder3.1 program) as a video source.
2.3.3 Use Adobe Flash Media live encoder3.1 to publish a live stream
Open the Adobe Flash medialive encoder3.1 software to ensure that the video and audio collection devices work properly. The working hardware devices seem to be shown in:
[2]
Set the loca
live streams with Adobe Flash Media live Encoder3.1Open the Adobe Flash Media Live Encoder3.1 software to make sure that the video capture device and audio capture device are working properly, and that the normal working hardware device looks like the following:Please correctly set the position of the picture of the red rectangle, where the URL address of the FMS URL should be "Rtmp://{ultrantmediaserver server IP Address}/live", the stream should be "lives
://Open a file:Avformatcontext*pformatctx =Avformat_alloc_context (); Avformat_open_input (pformatctx,"test.h264", null,null);//get camera Input:Avformatcontext*pformatctx =Avformat_alloc_context ();//This step of finding the input device is moreAvinputformat*ifmt=av_find_input_format ("Vfwcap");//Select the first input setting of the Vfwcap type as the input streamAvformat_open_input (pformatctx,0, ifmt,null);How to upload a video stream using rtmp:The instructions for uploading files using rtm
->/etc/alternatives/java*
Alternatives is a multiple version management software under Linux, which can be used to achieve version switching of JDK, which is described later. First come to the alternatives directory to see what's on the ground.
fordreamxin@compiler207:/etc/alternatives$ ls java*
Java java.1.gz javac
. Enter the following command on the terminal:
Sudo update-alternatives -- install/usr/bin/gcc/usr/bin/gcc-4.4 40
Sudo update-alternatives -- install/usr/bin/gcc/usr/bin/gcc-4.1 30
Set the default GCC version. Run the following command:
Sudo update-alternatives -- config gcc
Result:
There are 2 choices for the alternative gcc (providing/usr/bin/gcc ).Se
Ubuntu GNU/Linux 12.04 lts (precise pangolin) released. I wanted to manually install the Sun JDK 6 and 7 on Ubuntu.
Installing Sun JDK 6 on Ubuntu 12.04:
Download the Sun JDK 6 BinFrom here.
Make the BIN file executeable:
chmod +x jdk-6u32-linux-x64.bin
Extract the BIN file:
./jdk-6u32-linux-x64.bin
Move extracted folder to this location:
sudo mv jdk1.6.0_32 /usr/lib/jvm/
Install new Java source in system:
sudo update-alternatives --ins
GCC is the GNU exclusive C/C ++ compiler. Because GCC has compatibility issues, you must use the specified version of GCC to compile and pass the code, therefore, we should switch to the appropriate GCC compiler in a timely manner.
1. Brief description:In general, the Compilation Program uses:/usr/bin/GCC
In fact, this/usr/bin/GCC is just a symbolic link, it points to/etc/alternatives/GCC, and/etc/alternatives
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.