Advertisement
Guest User

FFMPEG functions

a guest
Oct 19th, 2023
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.34 KB | Source Code | 0 0
  1. ffco() { ffmpeg -f concat -safe 0 -i "$1" -c copy "$2"; }
  2. ffco-instant() { ffmpeg -f concat -safe 0 -i $(ls -t -1 ~/Documents/massdmp/ffmpeg-* |head -n 1) -c copy "$1"; }
  3.  
  4. fflist() {
  5.     if [ "$1" == "" ]; then sed -i -r "s/(.*)/file '\\1'/g" $(ls -t -1 ~/Documents/massdmp/ffmpeg-* |head -n 1);
  6.     else sed -i -r "s/(.*)/file '\1'/g" "$1";
  7.     fi
  8. }
  9.  
  10.  
Tags: ffmpeg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement