View Single Post
Old 03-04-2015, 01:29 PM  
Barry-xlovecam
It's 42
 
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
Code:
#!/bin/bash

#Start in the parent directory with the files

ls -RdX $PWD/* >out
grep -i "\.flv" out >out2
sed -i 's/\.flv//g' out2
for word in $(cat out2)
do 
 
ffmpeg -i $word.flv -c:v libx264 -b:v 1000k $word.mp4

done
fixed it file naming issue :P
Barry-xlovecam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote