Skip to content

Instantly share code, notes, and snippets.

@ykzts
Last active January 2, 2017 18:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ykzts/eeef396e3771a2f4fd336ff84e95aee8 to your computer and use it in GitHub Desktop.
Save ykzts/eeef396e3771a2f4fd336ff84e95aee8 to your computer and use it in GitHub Desktop.
#!/bin/sh
rivarun --b25 --sid 23608 --ch GR/16 - - | \
~chinachu/Chinachu/usr/bin/ffmpeg \
-i pipe:0 \
-map 0:0 \
-map 0:1 \
-c:v h264 \
-c:a aac \
-bsf:v h264_mp4toannexb \
-f segment \
-segment_format mpegts \
-segment_time 2 \
-segment_list /tmp/live/stream/index.m3u8 \
-hls_time 2 \
/tmp/live/stream/%03d.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment