Guest User

Untitled

a guest
Sep 11th, 2017
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 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. ffmpeg \
  6. -i $1 \
  7. -map 0:0 \
  8. -pix_fmt yuv420p \
  9. -c:a libvorbis \
  10. -c:v libvpx-vp9 \
  11. -s 1280x720 -keyint_min 60 -g 60 ${VP9_LIVE_PARAMS} \
  12. -b:v 3000k \
  13. -f webm_chunk \
  14. -header $DIR"/live/glass_360.hdr" \
  15. -chunk_start_index 1 \
  16. $DIR"/live/glass_360_"%d".chk" \
  17. -map 1:0 \
  18. -c:a libvorbis \
  19. -c:v libvpx \
  20. -deadline realtime \
  21. -b:a 128k -ar 44100 \
  22. -f webm_chunk \
  23. -audio_chunk_duration 2000 \
  24. -header $DIR"/live/glass_171.hdr" \
  25. -chunk_start_index 1 \
  26. $DIR"/live/glass_171_"%d".chk"
Advertisement
Add Comment
Please, Sign In to add comment