via: Computer-Science-Glossary
| 英文 | 译法 1 | 译法 2 | 译法 3 |
|---|---|---|---|
| a block of pointers | 一块指针 | 一组指针 | |
| abbreviation | 缩略语 |
via: Computer-Science-Glossary
| 英文 | 译法 1 | 译法 2 | 译法 3 |
|---|---|---|---|
| a block of pointers | 一块指针 | 一组指针 | |
| abbreviation | 缩略语 |
Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma
You can get the list of supported formats with:
ffmpeg -formats
Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz:
ffmpeg -i "Apache Sqoop Tutorial Part 1.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts
ffmpeg -i "Apache Sqoop Tutorial Part 2.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate2.ts
ffmpeg -i "Apache Sqoop Tutorial Part 3.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate3.ts
ffmpeg -i "Apache Sqoop Tutorial Part 4.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate4.ts
ffmpeg -i "concat:intermediate1.ts|intermediate2.ts|intermediate3.ts|intermediate4.ts" -c copy -bsf:a aac_adtstoasc "Apache Sqoop Tutorial.mp4"Examples here use the default settings, see the VidStab readme on GitHub for more advanced instructions.
Here's an example video I made
brew install ffmpeg --with-libvidstab
| import java.io.IOException; | |
| import okhttp3.HttpUrl; | |
| import okhttp3.Interceptor; | |
| import okhttp3.OkHttpClient; | |
| import okhttp3.Request; | |
| /** An interceptor that allows runtime changes to the URL hostname. */ | |
| public final class HostSelectionInterceptor implements Interceptor { | |
| private volatile String host; |
| ADB=${ANDROID_HOME}/platform-tools/adb | |
| HPROF_CONV=${ANDROID_HOME}/platform-tools/hprof-conv | |
| # customized functions | |
| # dump droid heap | |
| function droid_hd() { | |
| PACKAGE_NAME=$1 | |
| TIME=$(date +"%Y%m%d_%H%M%S") | |
| FILE_NAME="${PACKAGE_NAME}-${TIME}-heap.hprof" |
| // android:label="${appName}" is written in AndroidManifest.xml | |
| android { | |
| defaultConfig { | |
| manifestPlaceholders = [appName: '@string/app_name'] | |
| } | |
| // Filter variants for performance | |
| variantFilter { filter -> | |
| def variantName = filter.getFlavors().first().name + '-' + filter.buildType.name | |
| if (['dev-release', 'product-debug', 'product-qa'].contains(variantName)) { | |
| filter.setIgnore(true) |
| # Built application files | |
| /*/build/ | |
| # Crashlytics configuations | |
| com_crashlytics_export_strings.xml | |
| # Local configuration file (sdk path, etc) | |
| local.properties | |
| # Gradle generated files |
| buildscript { | |
| repositories { | |
| mavenCentral() | |
| } | |
| dependencies { | |
| classpath 'com.android.tools.build:gradle:0.4' | |
| } | |
| } | |
| apply plugin: 'android' |