2017-12-08 33 views
1

こんにちは、私はffmpegに新規です。まだライブに書き込まれている.webmファイルのストリーミングに関する助けが必要です。私は.webmファイルをvp9コーデックwhich needs to be live streamed (preferably without transcoding and streamed using DASH`のビデオのみを含んでいます。私は、次のような構成ffmpegとnginxのライブストリーミング.webmファイル

nginx version: nginx/1.12.1 
built by gcc 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3) 
built with OpenSSL 1.0.1f 6 Jan 2014 
TLS SNI support enabled 
configure arguments: --with-cc-opt='-g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fPIC -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now -fPIC' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --modules-path=/usr/lib/nginx/modules --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_v2_module --with-http_dav_module --with-http_slice_module --with-threads --with-http_addition_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_sub_module --with-stream=dynamic --with-stream_ssl_module --with-stream_ssl_preread_module --with-mail=dynamic --with-mail_ssl_module --add-dynamic-module=/home/ubuntu/NGINX/nginx-ts-module-master 

でnginxの(https://github.com/arut/nginx-ts-module#features)からのnginx-TS-モジュールと一緒にコンパイルしたMediaFileが次のプロパティ(MediaInfoを用いて得られる)があります。

General 
Complete name       : video_4_1_Admin_0.webm 
Format         : WebM 
Format version       : Version 2 
File size        : 19.7 MiB 
Duration         : 1ms 
Overall bit rate       : 165 Gbps 
Writing library       : libwebm-0.2.1.0 
Video 
ID          : 1 
Format         : VP9 
Codec ID         : V_VP9 
Width         : 320 pixels 
Height         : 180 pixels 
Display aspect ratio      : 16:9 
Frame rate mode       : Variable 
Language         : English 
Default         : Yes 
Forced         : No 

私はストリーミングしようとしていますが次

ffmpeg -re -i video_4_1_Admin_0.webm -bsf:v vp9_superframe -c copy -f webm_chunk http://127.0.0.1:8000/publish/sintel 

そして、私は次のエラー

を取得していますと、ファイル
Input #0, matroska,webm, from 'video_4_1_Admin_0.webm': 
    Metadata: 
    encoder   : libwebm-0.2.1.0 
    Duration: 00:00:00.00, start: 0.000000, bitrate: 174444152 kb/s 
    Stream #0:0(eng): Video: vp9 (Profile 0), yuv420p(tv), 320x180, SAR 1:1 DAR 16:9, 30 fps, 30 tbr, 1k tbn, 1k tbc (default) 
Output #0, webm_chunk, to 'http://127.0.0.1:8000/publish/sintel': 
Output file #0 does not contain any stream 

が、私はそれは私がメディアをライブストリームすることができます.mpd、必要なチャンクを作成するようffmpegに渡される正確なオプションが何であるかわからない、私は(https://github.com/arut/nginx-ts-module#features)の例で与えられたオプションを交換してみましたvp9相当のようですが、わかりません。誰かがここで私を助けることができますか?ありがとうございます。

+0

Hey @ seekahead正しい形式で質問を投稿してください。 – Dilip

+1

編集のための@Allan – seekahead

答えて

0

WebMはMPEG-TSではありません。

Nginxはあなたのユースケースには適していません。代わりにIcecastを使用できます。

+0

応答Bradに感謝します。ストリーミングをサポートするためにnginx自体に新しいモジュールを追加することはできますが、新しいメディアサーバーを導入することはできません。記事のhttp://wiki.webmproject.org/adaptive-streaming/instructions-to-do-webm-live-streaming-via-dashは、どのようにカメラからのビデオをライブストリーミングするかを示していますが、設定方法はわかりませんファイルからのストリーミングこの記事では、NGINXがそうするDASHをサポートする「Webサーバー」があれば、それが可能であるべきだと思っています。 – seekahead

+0

DASHを使用する場合は、サーバーとは独立しています。 Nginxとは別に、サーバーにファイルを書き込む必要があります。 – Brad

関連する問題