talha131 / bmtool Goto Github PK
View Code? Open in Web Editor NEWFew utilies for doing specific reptitive tasks
License: MIT License
Few utilies for doing specific reptitive tasks
License: MIT License
Say user calls
bmtool move example.mp4 ~/Foo
It creates a folder ~/Foo/example
and moves example.mp4
in it
Instead of -ab 64k
use -b:a 64k
.
Docs
https://trac.ffmpeg.org/wiki/Encode/MP3
ffmpeg -h
-ab bitrate audio bitrate (please use -b:a)
bmtool videoSnapshot -f -o
00:00:03
for 3rd secondCommand is
ffmpeg -ss 01:23:45 -i input -vframes 1 -q:v 1 output.jpg
or
ffmpeg -ss 01:23:45 -i input -vframes 1 -q:v 1 output.png
Video has artifacts.
See this parameter
[0:v]trim=start=0:end=15,setpts=PTS-STARTPTS[clip1]; [0:v]trim=start=0:end=15,setpts=PTS-STARTPTS[clip2]; [0:v]trim=start=15:end=15,setpts=PTS-STARTPTS[clip3]; [0:v]trim=start=15:end=15,setpts=PTS-STARTPTS[fadeoutsrc]; [0:v]trim=start=0:end=0,setpts=PTS-STARTPTS[fadeinsrc]; [fadeinsrc]format=pix_fmts=yuva420p, fade=t=in:st=0:d=0:alpha=1[fadein]; [fadeoutsrc]format=pix_fmts=yuva420p, fade=t=out:st=0:d=0:alpha=1[fadeout]; [fadein]fifo[fadeinfifo]; [fadeout]fifo[fadeoutfifo]; [fadeoutfifo][fadeinfifo]overlay[crossfade]; [crossfade] split=3 [cf1][cf2][cf3] ; [clip2] split=3 [cl1][cl2][cl3] ; [clip1][cf1][cl1][cf2][cl2][cf3][cl3][clip3]concat=n=8:v=1[output]
Several items like clip2, clip3, fadein, fadeout are not required. They can be enclosed in if conditional.
What we need to do is to split
clip1 required number of times and then concatenate it.
Better way is to create a new method that generates filter_complex. It would be cleaner.
https://github.com/spf13/cobra
verbose
flag on root. Need to know how it can be used in file rename
commandbmtool file rename
command after installationI need two things
-c
times-d
file 'input.mov'
-c
times to itinput_3times.mp4
See code here
If file is audio, then convertFile
method is immediately called. If you have 1000 files, convertFile
will be called 1000 times. It is not necessary, because ffmpeg has support for multiple inputs and multiple outputs.
For example, this command converts two files.
ffmpeg -i "2017-12-15 130550.mp3" -i "2018-01-19 131624.mp3" -map 0:0 -ac 1 -ab 64k -ar 44100 "2017-12-15 130550.wav" -map 1:0 -ac 1 -ab 64k -ar 44100 "2018-01-19 131624.wav"
Or
ffmpeg -i "2017-12-15 130550.mp3" -i "2018-01-19 131624.mp3" -ac 1 -ab 64k -ar 44100 -map 0:0 "2017-12-15 130550.wav" -map 1:0 "2018-01-19 131624.wav"
This converts files simultaneously.
wav format does not have bitrate.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.