: This article mainly introduces how to use nginx + nginx-rtmp-module + ffmpeg to build a streaming media server (6). If you are interested in the PHP Tutorial, refer to it. Part 6
This problem has been plagued by the nginx startup problem that has been transplanted to the ARM Development board a few days ago. it does not occur when started on the ARM Development Board.
nginx: [emerg] getgrnam("nogroup")
If you have any questions about using helixserver to set up a Streaming Media Server !!!!! -- Linux Enterprise Application-Linux server application information. For details, refer to the following section. The younger brother is a beginner in LINUX and can be said to be a newcomer. In order to build a Streaming Media
Set up the hls Streaming Media Server on ubuntu16.04 and ubuntu16.04hls
1. Distributor ID: UbuntuDescription: Ubuntu 16.04.3 LTSRelease: 16.04Codename: xenial
2. Linux 4.4.0-89-generic # 112-Ubuntu SMP Mon Jul 31 19:38:41 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Mkdir ~ /Working
Switch ~ /Working directory
Cd ~ /Working
Obtain nginx source code:
Wget http://nginx.org/download/nginx-1.13.4.tar.gz
Extract
Ta
Red5 stand-alone machine is still relatively good, but the official website does not have documents, do not know how the cluster configuration, network search for a half-day, only Red5 0.8 version has a cluster configuration. Later version looked at, there are clusters of plug-ins, but do not know how to install Plug-ins, even if installed plug-ins, how to configure the cluster, or do not know AH. No documents, Pit dad.Crtmpserver Streaming media
The ninth part---Project ffmpeg command parsingYou have seen the ffmpeg on the arm Development Board to give the following information:usage:ffmpeg [Options] [[infile Options]-I infile] ... {[outfile options] outfile} ...Refer to the previous command to perform the same task on the PC Linux operating systemFfmpeg-i rtsp://admin:[email protected]-vcodec copy-acodec copy-s 640x480-f flv rtmp://192.168.1.102:1935/hls/te St2Do a detailed explanation hereInFile Rtsp://admin:[email protected]OutFil
FFmpeg is a powerful media library. It provides ffserver tool that can be used to setup a streaming server.Here is how to compile FFMPEG for Android, using codesourcery's cross compiler. 1. Download and extract FFMPEG source code.2. Use below commands to compile FFMPEG./Configure -- arch = arm -- Cross-Prefix = arm-None-Linux-Gnueabi--- extra-ldflags =-static # -- extra-cflags =-staticMake 3. run file ffserver readelf ffserver-D or arm-None-Lin
Want to build a RTSP streaming media server on their Mac, find out, or think VLC is the simplest and most practical.
Download the installation of VLC, after the installation path:/applications/vlc.app
The utility command starts the server with the following command A 0.0. 0.0 --rtsp-port=55555Above command, will open a Telnet service, port 4212, pass
protected] lighttpd]# cp-p /data/lighttpd/lighttpd-1.4.35/doc/config/conf.d 6. Create Log output Directory[Email protected] lighttpd]# mkdir-p/var/log/lighttpd7. Modify Startup Shutdown Restart configurationCP DOC/INITSCRIPTS/RC.LIGHTTPD.REDHAT/ETC/INIT.D/LIGHTTPD8, then modify the/ETC/INIT.D/LIGHTTPD, putLighttpd= "/USR/SBIN/LIGHTTPD"SwitchLighttpd= "/USR/LOCAL/LIGHTTPD/SBIN/LIGHTTPD"9, go to directory/usr/local/lighttpd/etc, modify the value of lighttpd.conf var.log_root to "/VAR/LOG/LIGHTT
1, download
Open source version of Helix.server (i.e. real server), RM media streaming server, without any restricted versions. Support the RTSP agreement, support the Rm,mp3 and other formats, even if it is commercial, can cope with.
2, installation
Decompression: #tar-ZXVF helix_dna_server_10.1.tar.gz
Get directory helix_dna_server_10.1 under current path
#cd h
=/HOME/WUYINGQIANG/HTTPTEST/MYHTTPDServer_args =/home/wuyingqiang/httptest/dirDisable = noFlags = IPV4}Socket_type: Network socket type, stream, or packet.PROTOCOL:IP protocol, usually TCP or UDPWait: Take value yes/noUser: Run the process IDServer: Full path of executionServer_args: The value passed to the serverDisable: Used to disable the service in the default {}Flags: The Internet protocol used3. Sudo vi/etc/services to which the port number is added, such as: 22224. Restart the XINETD
FLV video is already the majority of video sites preferred video type, domestic and foreign famous video sharing station YouTube, Youku, potatoes, Sina Blog, Qiyi and so on are all Flash Player Flv/mp4 video.
FLV has two modes of publishing
One, ordinary HTTP way: This method usually needs to download to the local to play, there is buffering, but the download will not occupy the server resources.
Second, stream
Build an mp4/flv Streaming Media Server Based on tengine in CentOS6 (
Location ~ \. Mp4 $ {Root/mnt/media/vod;Mp4;Limit_conn addr 20;Limit_rate 200 k;}
Location/hls {# Serve HLS fragmentsAlias/mnt/media/app;}
Access_log logs/nginxflv_access.log access;}}---------------- Nginx configuration file --------------
4. Convert your movies into mp4 and flv formats to test the nginx environment.
4.1) Prepare a movie
Determine the bandwidth usage of each client on the Streaming Media Server
Summary
In some cases, it is useful to know the bandwidth used by a single client connected to the server. Sometimes, due to some features (such as Quick Start and quick cache), the bandwidth used may be larger
Capacity transfer rate. This article describes how to add context values so tha
In the past month, we have been studying the combination of msmediaserver and DRM. The main purpose is to set up a streaming media website. The most important function of a website is video protection.
I started to study what technologies can be used to encrypt and decrypt videos. Three solutions I initially identified:
The first is Microsoft's DRM encryption method, which requires a dedicated Certificate Server
framework, which is extremely simple to use and has a better functionTo intercept the most important code:1): Lflivesession is the core class, can focus on its properties and methods, the use of a simple way.4. Pull The stream, pull the stream I use Ijkmediaframework, it is simple, and the function is perfectTo intercept the most important code:1): Ijkffmovieplayercontroller is the core class, easy to use.5. Procedures1. Push-to-flow:2. Pull the current end:6. ThanksThank Jane Book author full
live stream or file that is playing does not existNetStream.Play.UnpublishNotify (Status)Release stopped, information sent to all SubscribersNetStream.Publish.BadName (Error)The published data stream has been publishedNetStream.Publish.Idle (Status)Publishers Idle too longNetStream.Publish.Start (Status)Release startNetStream.Record.Failed (Error)Error Recording FileNetStream.Record.NoAccess (Error)Not enough file access rightsNetStream.Record.Start (Status)File recording startedNetStream.Recor
When fms2 is used as a Streaming Media Server, You need to convert all the videos uploaded by all users into the FLV format. This format has a small file capacity and is suitable for remote playback. FFMPEG and mencoder are enough to convert most videos into FLV.
Here, I use Perl to call FFMPEG and mecoder commands, Java to operate databases and control threads to call Perl for conversion. I can't tell
HLS video Manifest and video fragmentsApplication Mobile {Allow play all;Live on;HLS on;Hls_nested on;Hls_path/hls/mobile;Hls_fragment 10s;}#allows You-Play your recordings of your live streams using a URL like "rtmp://my-ip:1935/vod/filename.flv"Application VOD {Play/video_recordings;}}}HTTP {Include Mime.types;Default_type Application/octet-stream;server {Listen 80;server_name 192.168.1.104;#creates the http-location for our full-resolution (deskto
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.