Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # http://wiki.webmproject.org/adaptive-streaming/instructions-to-do-webm-live-streaming-via-dash
- DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
- VP9_LIVE_PARAMS="-speed 6 -tile-columns 4 -frame-parallel 1 -threads 8 -static-thresh 0 -max-intra-rate 300 -deadline realtime -lag-in-frames 0 -error-resilient 1"
- rm -f $DIR/live/*
- ffmpeg \
- -f mpegts \
- -i $1 \
- -map 0:0 \
- -pix_fmt yuv420p \
- -c:v libvpx-vp9 \
- -keyint_min 60 -g 60 ${VP9_LIVE_PARAMS} \
- -b:v 3000k \
- -f webm_chunk \
- -header $DIR/live/glass_360.hdr \
- -chunk_start_index 1 \
- $DIR/live/glass_360_%d.chk \
- -map 0:1 \
- -c:a libvorbis \
- -b:a 128k -ar 44100 \
- -f webm_chunk \
- -audio_chunk_duration 2000 \
- -header $DIR/live/glass_171.hdr \
- -chunk_start_index 1 \
- $DIR/live/glass_171_%d.chk
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement