Skip to content

Latest commit

 

History

History
85 lines (56 loc) · 2.09 KB

README-en_US.md

File metadata and controls

85 lines (56 loc) · 2.09 KB

fe-cli

简体中文 | English(./README-en_US.md)

fe-cli

install

$ npm i @fe-go/fe-cli -g

view video immediately

Based on HTTP Live Streaming, split the video into mutiple parts through ffmpeg, in order to the purpose of opening the video in seconds.

Prerequisites ffmpeg needs to be installed on this machine and recommend to install by homebrew

  • install homebrew: $ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  • install ffmpeg: $ brew install ffmpeg

fe hls <file.mp4> <outdir>

  • file.mp4 mp4file read to cut
  • outdir output directory

exmaple:

fe hls test.mp4 ./

show diff betweeen different files

$ fe diff <file1> <file2>

If computer is installed vscode and command code has been added into environment variable, option--code can be used to show diff in vscode.

fe diff file1 file2 --code

example:

// example1.js
function example(firstName, lastName) {
  console.log(firstName + " " + lastName)
}

// example2.js
function example(firstName, lastName) {
  console.log('He/She is: ')
  console.log(firstName + "/" + lastName)
}

$ fe diff example1.js example2.js

结果

  function example(firstName, lastName) {
-   console.log(firstName + " " + lastName)
+   console.log('He/She is: ')
  console.log(firstName + "/" + lastName)
  }

get local public IP address

fe IP

transfer URL to qrcode

fe qr <URL> -S/--small

  • <URL> converted URL
  • -S/--small optional to get small size qrcode

example:

fe qr www.github.com get default size

fe qr www.github.com -small / fe qr www.github.com -S get small size qrcode