Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma
You can get the list of supported formats with:
ffmpeg -formats
You can get the list of installed codecs with:
adb help // List all comands | |
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader |
Build FFmpeg with Intel's QSV enablement on an Intel-based validation test-bed:
Build platform: Ubuntu 18.04LTS
Ensure the platform is up to date:
sudo apt update && sudo apt -y upgrade && sudo apt -y dist-upgrade
Install baseline dependencies first (inclusive of OpenCL headers+)
Set the SVN_EDITOR var: | |
# export SVN_EDITOR=vim | |
================================== | |
SETTING UP A NEW SVN PROJECT | |
================================== | |
Create a new SVN "repo" (aka folder): | |
(NOTE: https is required for our new SVN, as well as --username) | |
# svn mkdir https://some/url/path/to/newRepo --username first.last |
#!/bin/bash | |
# sector_list sample as below: | |
# 0 | |
# 512 | |
# 4087578 | |
# 4087579 | |
# 6324224 | |
# | |
# You should build a sector_list firstly, and then execute this script to catch the files |
#!/bin/bash | |
# all ip of ssh fail login attempts | |
lastb | awk '{ print $3 }' | more | |
# today, sort, count number | |
lastb -i | grep "$(date '+%a %b %d')" | awk '{ print $3 }' | sort | uniq | |
# yesterday, sort, count number | |
lastb -i | grep "$(date '+%a %b %d' --date="1 day ago")" | awk '{ print $3 }' | sort | uniq |
#!/bin/bash | |
dir="./" | |
dirs=`ls -l $dir | grep '^d' | awk '{print $9}'` | |
# printf "About to process following dirs: \n${dirs}" | |
for d in $dirs; | |
do |
/* | |
* Leecode 56. Merge Intervals | |
* | |
* Example 1: | |
* Input: [[1,3],[2,6],[8,10],[15,18]] | |
* Output: [[1,6],[8,10],[15,18]] | |
* Explanation: Since intervals [1,3] and [2,6] overlaps, merge them into [1,6]. | |
* Example 2: | |
* Input: [[1,4],[4,5]] |