Terminal 快捷键

2021年9月19日 · 96 字 · 1 分钟

Tab 联想 ; ctrl+z 切后台,相当于& ctrl+c 停止 ; ctrl+u 删除至行首 ctrl+d 登出/退出 ; ctrl+k 删除至行尾 ctrl+l 清屏 ; ctrl+w 删除一个单词 ctrl+a 光标移至行首 ; ctrl+y 粘贴删除的内容 ctrl+e 光标

FFmpeg 播放 mp3 和 LRC 时音乐歌词不同步?

2021年9月19日 · 709 字 · 2 分钟

NO. 歌曲 歌词 1 🎵 see you again 📝 2 🎵 那些年 📝 上面两首歌和其对应的歌词,在用 ffmpeg/ffplay 播放的时候,发现第一首两者同步,第二首音乐和歌词不同步。播放命令如下 ffplay -vf subtitles=filename=xxxx.lrc

Bash 脚本学习

2021年9月2日 · 1282 字 · 3 分钟

工作和生活中用的电脑都是 ubuntu(18.04) 系统,时不时需要编写一些 Bash 脚本,目的当然是为了减少重复作业。为了避免每次都 临时低效 地检索,索性自己整理一下。互联网中资料是海量的,但是垃圾信息也越来越多了,感觉现在上网找答案都好难,到处都是广告,无脑转载,标题党……

Linux 常用命令

2021年5月25日 · 1995 字 · 4 分钟

Linux 命令行下有很多常用工具,每个工具又有各种使用方法。这里记录一些常用工具的常用使用方法。对于较为复杂的工具,比如 ffmpeg 则记录在单独的日志里。

FFmpeg Makefile to CMakeLists.txt

2021年5月23日 · 1034 字 · 3 分钟

想了解学习下 FFmpeg 的源码,并希望可以自己编译调试。

官网介绍的开发环境中 IDE 是 Eclipse, 本人不熟悉。自己常用的是 CLion/CMake。但是 FFmpeg 是基于 Makefile 文件构建的, CLion 好像不支持,(已经支持了,我也是写这篇日志的时候才知道,详见官网说明,感觉还没开始就已经结束了,汗~)。

FFmpeg 常用命令

2020年1月5日 · 513 字 · 2 分钟

ffplay 播放 mp4/mp3 和 歌词

## for mp4 file
ffplay -f lavfi "color,subtitles=xxxx.lrc[out0]; amovie=xxxx.mp4[out1]"

## for mp3 file
ffplay -vf subtitles=filename=xxxx.lrc xxxx.mp3

C Snippet

2019年5月10日 · 106 字 · 1 分钟

C 代码片段罗列,方便查找

CORE DUMP 配置

2019年4月30日 · 426 字 · 1 分钟

A core dump is basically a snapshot of the memory when the program crashed.

Ubuntu 配置

2017年4月19日 · 179 字 · 1 分钟

安装 Ubuntu 后清理一些不用的软件

sudo apt-get update
sudo apt-get upgrade
sudo apt-get remove libreoffice-common
sudo apt-get remove unity-webapps-common
sudo apt-get remove thunderbird totem rhythmbox empathy brasero simple-scan gnome-mahjongg aisleriot
sudo apt-get remove gnome-mines cheese transmission-common gnome-orca webbrowser-app gnome-sudoku  landscape-client-ui-install  
sudo apt-get remove onboard deja-dup