Mako Shan

Mako 是一名密码朋克爱好者
这里是我记录生活和成长的地方

联系我的微信号
👏欢迎一起交流学习

私人电台

常听 Podcast Rss

  1. IPN (Intelligent Podcast Network) 是不鳥萬如一和 Rio 创办的播客网络。目前它旗下有十档节目:《一天世界》(周一播出)、《味之道》(周三播出)、《太医来了》(周二播出)、《内核恐慌》(不定期播出)、《流行通信》(周四播出)、《(Hi)story》(休眠中),《無次元》(不定期播出)、《硬影像》(不定期播出)、《博物志》(周五播出)、《选·美》(周六播出)、以及《壁下观》(周四播出)。IPN 的第一个节目《IT 公论》于二零一六年四月停播。虽然主题各有不同,但它们都具备不接地气、不反智和湿货多这三个特点。

听演唱会

优酷客户端 可以下载转码 视频 -> 音频

播客搜索下载工具

  • 'IMDB' for Podcasts

https://www.podcat.com

批量下载任意播客 RSS

package main
import (
    "fmt"
    "github.com/ungerik/go-rss"
    "io"
    "net/http"
    "os"
    "strings"
    "sync"   
)

var files chan string 
var w sync.WaitGroup

func main() {
    channel, err := rss.Read("http://ipn.li/itgonglun/feed")
    if err != nil {
        fmt.Println(err)
    }
    files = make(chan string, 200)  
    fmt.Println(channel.Title)
    for _, item := range channel.Item {
      title:=item.Title
     url:=string(item.Enclosure[0].URL)
      title = strings.Replace(title, " ", "", -1)
      title = strings.Replace(title, ":", "", -1)
      title = strings.Replace(title, "?", "", -1) 
      fmt.Println(title)
      fmt.Println(url)
      w.Add(1)  
      DownloadFile(url,title)
      w.Wait()  
    }
    
}
func DownloadFile(url, path_name string) {
    res, err := http.Get(url)
    defer res.Body.Close()
    if err != nil {
        return
    }
    f, err := os.Create(path_name+".mp3")
    defer f.Close()
    if err != nil {
        return
    }
    io.Copy(f, res.Body)
    w.Done()
}

CMD 电台

http://cmd.to/fm

格式转换工具

  • 简单的音频格式转换

foobar2000

  • 命令行工具
movie.wmv 转成movie.avi 
root#mencoder movie.wmv -o movie.avi -ovc lavc -oac lavc
 wma 文件转换为mp3文件
root#mplayer input.mp3 -ao pcm
root#lame audiodump.wav -o output.mp3 -b 160
root#ffmpeg -i audiodump.wav -acodec wmav2 -ab 128000 test.wma1
  1. To set the video bitrate of the output file to 64 kbit/s:
ffmpeg -i input.avi -b:v 64k -bufsize 64k output.avi
  1. To force the frame rate of the output file to 24 fps:
ffmpeg -i input.avi -r 24 output.avi 
  1. To force the frame rate of the input file (valid for raw formats only) to 1 fps and the frame rate of the output file to 24 fps:
ffmpeg -r 1 -i input.m2v -r 24 output.avi
13
Android 学习月报 2016-5月
目录