daily pastebin goal
47%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. get_resolution(){
  4.     VIDEOS=$(ls *.mp4)
  5.     for x in $VIDEOS
  6.     do
  7.         w=`ffprobe -v error -select_streams v:0 -show_entries stream=width -of csv=p=0 ${x}`
  8.         mkdir -p ${w}
  9.         mv ${x} ${w}/
  10.     done
  11. }
  12. get_resolution
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top