Advertisement
Guest User

Untitled

a guest
May 22nd, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.53 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if [ $# -lt 2 ] ; then
  4.     echo "Missing search path and/or output file"
  5.     echo
  6.     echo "You need to supply both a search_path and an output_name"
  7.     echo "(in that exact order) to get a file output_name.mov"
  8.     echo "containing a/v from all mts files found in search_path"
  9.     exit 1
  10. fi
  11.  
  12. nice -n 19 ffmpeg \
  13.     -safe 0 \
  14.     -f concat \
  15.     -i <(find $(readlink -f $1) -type f -iname \*.MTS -exec echo file {} \; | sort) \
  16.     -s 1920x1080 -r 25 \
  17.     -vcodec dnxhd \
  18.     -vf yadif \
  19.     -acodec pcm_s16le \
  20.     -b:v 185M \
  21.     -threads 0 \
  22.     $2.mov
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement