Advertisement
woohoo

ts2avi

Feb 14th, 2012
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.66 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #
  4. # usage:
  5. # ts2avi somefile.ts somefile.avi
  6. # or
  7. # ts2avi somefile.ts somefile.mkv
  8. #
  9.  
  10. INPUT=$1
  11. OUTPUT=$2
  12.  
  13. # need such 'unstripped' libs:
  14. # libavutil-unstripped-49*
  15. # libpostproc-unstripped-51
  16. # libavdevice-unstripped-52
  17. # libswscale-unstripped-0
  18. # libavcodec-unstripped-52*
  19. # libavformat-unstripped-52
  20. # ffmpeg -i "$INPUT" -vcodec libxvid -b 2000k -acodec libmp3lame -ac 2 -ar 44100 -ab 128k "$OUTPUT"
  21.  
  22. ffmpeg -i "$INPUT" -vcodec libxvid -sameq -r 30 -acodec libmp3lame -ac 2 -ar 44100 -ab 128k "$OUTPUT"
  23.  
  24. # or, else just do 'copy' on the quality (with whatever we have on hand):
  25. #ffmpeg -i "$INPUT" -vcodec copy -acodec copy "$OUTPUT"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement