Skip to content

Instantly share code, notes, and snippets.

@xinshangshangxin
xinshangshangxin / m3u8-to-mp4.md
Created September 12, 2017 04:05 — forked from tzmartin/m3u8-to-mp4.md
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
xinshangshangxin / alfred-pinyin.py
Created September 22, 2016 12:04 — forked from tiann/alfred-pinyin.py
make alfred support pinyin search
#! /usr/bin/python
# -*- coding: utf-8 -*-
# @author weishu @2015/12/7
import subprocess
import os
import re
import json