Socket
Socket
Sign inDemoInstall

ffmpeg-progressbar-cli

Package Overview
Dependencies
22
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.1 to 1.1.2

lib/formatter.js

7

lib/main.js

@@ -9,3 +9,3 @@ #!/usr/bin/env node

*/
const BAR_FILENAME_LENGTH = process.env.BAR_FILENAME_LENGTH || 10
const BAR_FILENAME_LENGTH = process.env.BAR_FILENAME_LENGTH || 20

@@ -46,3 +46,3 @@ /**

const parseFFmpegLog = require('./parse-ffmpeg-log')
const utilities = require('./utilities')
const formatter = require('./formatter')

@@ -106,3 +106,3 @@

bar.start(totalTimeMs, {
filename: utilities.pathToFilenameEllipsis(filePath, BAR_FILENAME_LENGTH)
filename: formatter.filepathToFilename(filePath, BAR_FILENAME_LENGTH)
})

@@ -149,3 +149,2 @@ didStart = true

// Restore cursor
process.stdout.write(os.EOL)
process.stdout.write('\x1B[?25h')

@@ -152,0 +151,0 @@

@@ -30,3 +30,3 @@ 'use strict'

*/
const utilities = require('./utilities')
const formatter = require('./formatter')

@@ -120,3 +120,3 @@

const updatePayload = {
percentagePad: utilities.fractionToPercentagePad(progressBar.value / progressBar.total),
percentagePad: formatter.fractionToPercentage(progressBar.value / progressBar.total),
etaTimecode: convertSecondsToTimecode(progressBar.eta.eta)

@@ -123,0 +123,0 @@ }

{
"name": "ffmpeg-progressbar-cli",
"version": "1.1.1",
"version": "1.1.2",
"description": "A colored progress bar for FFmpeg. Simply use `ffmpeg-bar` instead of `ffmpeg`.",

@@ -20,3 +20,3 @@ "license": "MIT",

"engines": {
"node": ">=10.0.0"
"node": ">=8.11.3"
},

@@ -31,5 +31,9 @@ "os": [

"progress bar",
"colored",
"media",
"commandline",
"terminal"
"terminal",
"cli",
"video",
"conversion"
],

@@ -36,0 +40,0 @@ "preferGlobal": true,

@@ -38,14 +38,14 @@ # ffmpeg-progressbar-cli [![npm](https://img.shields.io/npm/v/ffmpeg-progressbar-cli.svg?style=flat-square)](https://npmjs.com/package/ffmpeg-progressbar-cli)

#### Examples
###### Examples
```bash
$ ffmpeg-bar -i input.mp4 output.avi
$> ffmpeg-bar -i input.mp4 output.avi
```
```bash
$ ffmpeg-bar -i input.avi -b:v 64k -bufsize 64k output.avi
$> ffmpeg-bar -i input.avi -b:v 64k -bufsize 64k output.avi
```
```bash
$ ffmpeg-bar -i in.mkv -map_metadata:s:a 0:g out.mkv
$> ffmpeg-bar -i in.mkv -map_metadata:s:a 0:g out.mkv
```

@@ -56,27 +56,28 @@

For configuration purposes, this exposes several environmental variables:
For configuration purposes, `ffmpeg-progressbar-cli` exposes these environmental variables:
##### `BAR_FILENAME_LENGTH`
The maximum number of characters of the filename label displayed next to the progress bar beam *(default: 20)*
`(default: 10)` The maximum number of characters of the filename label displayed next to the progress bar beam.
###### Example
```bash
$> BAR_FILENAME_LENGTH=7 ffmpeg-bar -i in.mp4 output.mp4
```
##### `BAR_BEAM_RATIO `
`default: 0.9` The share of (available) horizontal display real estate the progress bar beam should occupy.
The share of (available) horizontal display real estate the progress bar beam should occupy *(default: 0.9)*
#### Examples
###### Example
```bash
$ BAR_FILENAME_LENGTH=30 ffmpeg-bar -i in.mp4 out.mp4
$> BAR_BAR_SIZE_RATIO=0.5 ffmpeg-bar -i in.mp4 output.mp4
```
```bash
$ BAR_BAR_SIZE_RATIO=0.5 ffmpeg-bar -i in.mp4 out.mp4
```
## <a name="requirements"/></a> Requirements
A working installation of [FFmpeg](https://ffmpeg.org/).
- [Node.js](https://nodejs.org/), v8.11 or later
- [FFmpeg](https://ffmpeg.org/), installed correctly

@@ -83,0 +84,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc