2014.09.17 11:28

mp4 type 추가

조회 수 9384 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부

nginx_rtmp_1512_113.rar


RTMP모듈을 컴파일한 최신버전이다. 여기에 conf/myme.types 를 보면 mp4에 대한 부분이 없다.

일단 위rar에 들어있는 것을 첨부.

mime.types


내용을 보면 아래와 같다.



types {

    text/html                             html htm shtml;

    text/css                              css;

    text/xml                              xml;

    image/gif                             gif;

    image/jpeg                            jpeg jpg;

    application/x-javascript              js;

    application/atom+xml                  atom;

    application/rss+xml                   rss;


    text/mathml                           mml;

    text/plain                            txt;

    text/vnd.sun.j2me.app-descriptor      jad;

    text/vnd.wap.wml                      wml;

    text/x-component                      htc;


    image/png                             png;

    image/tiff                            tif tiff;

    image/vnd.wap.wbmp                    wbmp;

    image/x-icon                          ico;

    image/x-jng                           jng;

    image/x-ms-bmp                        bmp;

    image/svg+xml                         svg svgz;

    image/webp                            webp;


    application/java-archive              jar war ear;

    application/mac-binhex40              hqx;

    application/msword                    doc;

    application/pdf                       pdf;

    application/postscript                ps eps ai;

    application/rtf                       rtf;

    application/vnd.ms-excel              xls;

    application/vnd.ms-powerpoint         ppt;

    application/vnd.wap.wmlc              wmlc;

    application/vnd.google-earth.kml+xml  kml;

    application/vnd.google-earth.kmz      kmz;

    application/x-7z-compressed           7z;

    application/x-cocoa                   cco;

    application/x-java-archive-diff       jardiff;

    application/x-java-jnlp-file          jnlp;

    application/x-makeself                run;

    application/x-perl                    pl pm;

    application/x-pilot                   prc pdb;

    application/x-rar-compressed          rar;

    application/x-redhat-package-manager  rpm;

    application/x-sea                     sea;

    application/x-shockwave-flash         swf;

    application/x-stuffit                 sit;

    application/x-tcl                     tcl tk;

    application/x-x509-ca-cert            der pem crt;

    application/x-xpinstall               xpi;

    application/xhtml+xml                 xhtml;

    application/zip                       zip;


    application/octet-stream              bin exe dll;

    application/octet-stream              deb;

    application/octet-stream              dmg;

    application/octet-stream              eot;

    application/octet-stream              iso img;

    application/octet-stream              msi msp msm;


    audio/midi                            mid midi kar;

    audio/mpeg                            mp3;

    audio/ogg                             ogg;

    audio/x-m4a                           m4a;

    audio/x-realaudio                     ra;


    video/3gpp                            3gpp 3gp;

    video/mp4                             mp4;

    video/mpeg                            mpeg mpg;

    video/quicktime                       mov;

    video/webm                            webm;

    video/x-flv                           flv;

    video/x-m4v                           m4v;

    video/x-mng                           mng;

    video/x-ms-asf                        asx asf;

    video/x-ms-wmv                        wmv;

    video/x-msvideo                       avi;

}


위 빨간부분이 토토루님의 버전 NGXMP에는 없다. 왜 없는지,,,

하여튼 외국님께서 RTMP버전으로 배포하는 것에는 들어있으니 아예 파일을 위것으로 사용해도 된다.

이렇게 하면 mp4파일을 바로 다운도 되고 재생도 된다. conf에 어떻게 주느냐에 따라..
conf에 옵션을 주게 되면 
예를 들어 http://도메인/mp4파일명 이렇게 웹에서 접근하면 
바로 브라우저에서 video플레이어로 재생이 된다. 따라서  스트리밍 player에서도 원할히 플레이가 된다.


List of Articles
번호 제목 글쓴이 날짜 조회 수
16 토토루 nginx 1.15 dev file 행복아이 2019.05.21 598
15 윈도우에서 Nginx 운영시에 멈추는 증상은 Fast cgi refresh로 해결하자. file 행복아이 2015.10.01 980
14 XE 닉네임변경 mysql 행복아이 2015.10.29 6864
13 WTServer Nginx PHP MariaDB 행복아이 2016.08.22 547
12 RTMP 라이브 행복아이 2014.10.07 3153
11 RTMP HLS 트랜스코딩으로 실시간 스트리밍 모바일 file 행복아이 2014.10.16 5780
10 ngxmp 18.0 file 행복아이 2015.03.24 2171
9 NGXMP 17 RTMP file 행복아이 2014.09.17 1843
8 NGXMP 17 file 행복아이 2014.09.17 854
7 nginx 지속적 중단 문제 hang 행복아이 2015.03.24 1237
6 Nginx 서버 관련 정보 행복아이 2014.09.05 557
5 nginx RTMP GitHub 행복아이 2016.08.23 2070
4 nginx ngxmp 설정 행복아이 2017.10.10 700
» mp4 type 추가 file 행복아이 2014.09.17 9384
2 mariaDB DB기본 명령 기록해둠. mysql 행복아이 2015.03.13 871
1 hls m3u8스트리밍을 위한 mime types 추가 행복아이 2014.10.16 678
Board Pagination Prev 1 Next
/ 1