Skip to content

Instantly share code, notes, and snippets.

@onodai145
Created January 12, 2017 13:26
Show Gist options
  • Save onodai145/830227988eef0db01eeef697dd208add to your computer and use it in GitHub Desktop.
Save onodai145/830227988eef0db01eeef697dd208add to your computer and use it in GitHub Desktop.
ffmpeg -i '${URL}' -map 0:0 -map 0:1 -vcodec libx264 -preset ultrafast -vf yadif=0:-1:1 -acodec aac -flags +loop-global_header -f segment -vbsf h264_mp4toannexb -segment_format mpegts -segment_wrap 12 -hls_list_size 12 -segment_list_flags live -segment_time 5 -segment_list ${FileName}.m3u8 ${FileName}.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment