2013/03/20

VLCでhttpsストリーミング再生

ずっと
gnutls error: TLS session: access denied
とか言われてできないとか思っていたのですが、実にあっけなく解決しました。
何かというと、サーバを認証しているCAの証明書をwindowsの証明書管理ストアのルート証明機関に登録するだけ、という・・・。

僕の中でVLCはwindowsに依存する証明書管理なんぞしないだろうという思い込みがあったため、VLCの設定の入力/コーデックのhttp/tls認証局という所にせっせとルート証明書へのパスを書いていたわけですが・・・。
というか、なんで設定の方を読まずにwindows依存になってしまうのかは気になるところ・・・。

まぁ、なんにせよできることはいいことです。
というわけで、サーバからhttpsでストリーミング再生ができるようになりました。

が、
WMPではシーク可能なものの、全てバッファしようとします。
一方、VLCではシークすると再生が止まりますが、指定分しかバッファしないで済みます。
というか、再生が止まるのはエンコード時の設定とかなんですかね?

シークすると
access_http debug: trying to seek to 19147269
gnutls debug: GnuTLS deinitialized
main debug: net: connecting to hoge port 443
main debug: connection succeeded (socket = 1036)
main debug: looking for tls client module: 1 candidate
gnutls debug: GnuTLS v2.12.20 initialized
main debug: using tls client module "gnutls"
main debug: TIMER module_need() : 8.037 ms - Total 8.037 ms / 1 intvls (Avg 8.037 ms)
gnutls debug: TLS/x509 certificate verified
main debug: TLS client session initialized
access_http debug: protocol 'HTTP' answer code 200
access_http debug: Server: Apache/2.2.16 (Debian)
access_http debug: this frame size=281435749
access_http debug: Content-Type: video/mp4
faad warning: Bitstream value not allowed by specification
faad warning: Bitstream value not allowed by specification
faad warning: Bitstream value not allowed by specification
faad warning: Bitstream value not allowed by specification
faad warning: Bitstream value not allowed by specification
faad warning: Bitstream value not allowed by specification
faad warning: Bitstream value not allowed by specification
faad warning: Maximum number of scalefactor bands exceeded
faad warning: Bitstream value not allowed by specification
faad warning: Unexpected channel configuration change
faad warning: Bitstream value not allowed by specification
faad warning: Bitstream value not allowed by specification
faad warning: Gain control not yet implemented
faad warning: Bitstream value not allowed by specification
faad warning: Bitstream value not allowed by specification
faad warning: Bitstream value not allowed by specification
faad warning: Bitstream value not allowed by specification
main debug: Buffering 0%
avcodec warning: cannot decode one frame (5205 bytes)
とかなんとか・・・

まぁ、おいおい調べていきましょうかね。

0 件のコメント:

コメントを投稿