Skip to content

Instantly share code, notes, and snippets.

xinshangshangxin /
Created Sep 12, 2017 — forked from tzmartin/
m3u8 stream to mp4 using ffmpeg

1. Copy m3u8 link

Alt text

2. Run command

echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4
xinshangshangxin /
Created Sep 22, 2016 — forked from tiann/
make alfred support pinyin search
#! /usr/bin/python
# -*- coding: utf-8 -*-
# @author weishu @2015/12/7
import subprocess
import os
import re
import json