Guest User

Untitled

a guest
Nov 18th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1.  
  2. # function which encodes .mp4 files to .flv
  3. # this handles the fact that the original .mp4 files
  4. # have improper/incompatible audio/video sample rates
  5.  
  6. function encode_mp4_to_flv ()
  7. {
  8. for i in *mp4;
  9. do
  10. echo "time ffmpeg -i $i -codec:v copy -codec:a libmp3lame -b:a 128k -ar 44100 ${i/mp4/flv}";
  11. done
  12. }
  13.  
  14.  
  15. stu@sente:/some/dir$ encode_mp4_to_flv | columnate.awk
  16. time ffmpeg -i 1_Code.mp4 -codec:v copy -codec:a libmp3lame -b:a 128k -ar 44100 1_Code.flv
  17. time ffmpeg -i 2_Business.mp4 -codec:v copy -codec:a libmp3lame -b:a 128k -ar 44100 2_Business.flv
  18. time ffmpeg -i 3_Safety.mp4 -codec:v copy -codec:a libmp3lame -b:a 128k -ar 44100 3_Safety.flv
  19. time ffmpeg -i 4_Energy.mp4 -codec:v copy -codec:a libmp3lame -b:a 128k -ar 44100 4_Energy.flv
  20. time ffmpeg -i 5_Lead.mp4 -codec:v copy -codec:a libmp3lame -b:a 128k -ar 44100 5_Lead.flv
  21. time ffmpeg -i 6_93A.mp4 -codec:v copy -codec:a libmp3lame -b:a 128k -ar 44100 6_93A.flv
Add Comment
Please, Sign In to add comment