第29回Raspberry Piもくもく回
- ステレオの音声を送信できるようにする
- HLS or MpegDASH
- FFmpegをつかう
- もしくはGStreamer
- MpegDASHをつかう
- もしくはHLS
- USB接続のwebカメラをつかう
- もしくはUSB接続のオーディオインタフェース
今回はMpegDASHとFFmpegの組み合わせとUSB接続のwebカメラ(ステレオマイク付き)
動画の場合のみ音声映像とも不定期に途切れていた
html内のjsのパラメーターを調整することで途切れないようになった
'lowLatencyEnabled': false,
'liveDelay': 5,
音声のみの場合は上の調整はしなくても途切れず再生できる
# 今後の作業
配信用のRaspberry PiのSDカードのイメージを決め打ちで作ってしまうかアプリケーションとして動かす形にするかを決める
前者はFFmpeg+tmpfs+nginx
後者はFFmpeg+tmpfs+python
後者の方法だと権限周りの扱いをどうするか迷う