Code Monkey home page Code Monkey logo

psffmpeg's Introduction

With.FFMPEG

Handler for ffmpeg

โš  WARNING: About the handling of ffmpeg output.
I`m currently working on handling ffmpeg correctly as the output from the actual application is treated as errors when handled with powershell context.
This will be fixed shortly.. in the meantime I dont have any output from the application, except actual critical warnings

Usage

This module relies on ffmpeg.exe and needs to have the parent folder registered in $env:path to work properly,

You dont have FFMPEG?

FFMEG can be installed using install-ffmpeg -scope {Process|User|Machine}.

Scope

Define what context you install to.

For Windows:

  • Process saves ffmpeg in $env:TEMP\FFmpeg and sets process environment variable
  • User Saves ffmpeg in $env:LOCALAPPDATA\FFmpeg and sets user environment variable
  • Machine saves ffmpeg in $env:ProgramData\FFmpeg and sets machine environment variable

Every install cleans out the directory before continuing. makre sure you don't use ffmpeg if you have it installed and run it again.

You have already downloaded a version of ffmpeg?

set the path to ffmpeg by using set-ffpath -scope {Process|User|Machine}.

Scope

Decieds in what context you set the system variable. defaults to user

Commands

Convert-FFItem

Converts the selected file to the format of your choosing

-OutFormat #Defines format
-OutFolder #Defines Output folder. it will default to whatever folder input is located
-Force #Replace file if exists. If not enabled, the command will write warning if file already exist and return the existing file, for the sake of the pipeline. 
-Arguments #If you have any extra arguments, This is also for futureproofing when writing specific commands for converting and splitting video and audio

Example:

#Find every .wav in c:\path (or subfolders)
$Items = Gci 'c:\Path' -recurse -file -filter "*.wav"

#Converts those items in place.
$items|Convert-FFItem -OutFormat mp3

#Converts those items to c:\otherpath
$items|Convert-FFItem -OutFormat mp3 -OutFolder 'c:\Otherpath'

#Converts those items to c:\otherpath AND replaces any files that have been created with the same name
$items|Convert-FFItem -OutFormat mp3 -OutFolder 'c:\Otherpath' -force

psffmpeg's People

Contributors

withholm avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.