@lesjoursfr/media-converter

2.0.5 • Public • Published

npm version QC Checks

media-converter

An audio/video converter using fluent-ffmpeg.

Audio

The audio converter output 2 files :

  • An m4a file with ACC @ 256kbps
  • A weba file with Opus @ 256kbps

Usage

ljconverter audio sound.wav

To change the audio bitrate you can pass the target bitrate in kbps to the audiobitrate parameter.

ljconverter audio sound.wav --audiobitrate 128

Video

The video converter output 2 files :

  • An mp4 file with ACC @ 256kbps & H.264 @ 4000kbps
  • A webm file with Opus @ 256kbps & VP9 @ 4000kbps

Usage

ljconverter video video.mts

To change the audio and video bitrates you can pass the targets bitrates in kbps to audiobitrate & videobitrate parameters.

ljconverter video video.mts --audiobitrate 128 --videobitrate 2000

You can also resize the video with the resize parameter (see the fluent-ffmpeg frame size options for all available formats)

ljconverter video video.mts --resize 720x?

You can also change the framerate of the video with the framerate parameter

ljconverter video video.mts --framerate 30

Package Sidebar

Install

npm i @lesjoursfr/media-converter

Weekly Downloads

13

Version

2.0.5

License

MIT

Unpacked Size

31.1 kB

Total Files

26

Last publish

Collaborators

  • e-adrien