Advertisement
Guest User

Untitled

a guest
Sep 14th, 2017
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. #!/bin/bash
  2. # http://wiki.webmproject.org/adaptive-streaming/instructions-to-do-webm-live-streaming-via-dash
  3. DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  4. 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"
  5. rm -f $DIR/live/*
  6. ffmpeg \
  7. -f mpegts \
  8. -i $1 \
  9. -map 0:0 \
  10. -pix_fmt yuv420p \
  11. -c:v libvpx-vp9 \
  12. -keyint_min 60 -g 60 ${VP9_LIVE_PARAMS} \
  13. -b:v 3000k \
  14. -f webm_chunk \
  15. -header $DIR/live/glass_360.hdr \
  16. -chunk_start_index 1 \
  17. $DIR/live/glass_360_%d.chk \
  18. -map 0:1 \
  19. -c:a libvorbis \
  20. -b:a 128k -ar 44100 \
  21. -f webm_chunk \
  22. -audio_chunk_duration 2000 \
  23. -header $DIR/live/glass_171.hdr \
  24. -chunk_start_index 1 \
  25. $DIR/live/glass_171_%d.chk
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement