Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #
- # usage:
- # ts2avi somefile.ts somefile.avi
- # or
- # ts2avi somefile.ts somefile.mkv
- #
- INPUT=$1
- OUTPUT=$2
- # need such 'unstripped' libs:
- # libavutil-unstripped-49*
- # libpostproc-unstripped-51
- # libavdevice-unstripped-52
- # libswscale-unstripped-0
- # libavcodec-unstripped-52*
- # libavformat-unstripped-52
- # ffmpeg -i "$INPUT" -vcodec libxvid -b 2000k -acodec libmp3lame -ac 2 -ar 44100 -ab 128k "$OUTPUT"
- ffmpeg -i "$INPUT" -vcodec libxvid -sameq -r 30 -acodec libmp3lame -ac 2 -ar 44100 -ab 128k "$OUTPUT"
- # or, else just do 'copy' on the quality (with whatever we have on hand):
- #ffmpeg -i "$INPUT" -vcodec copy -acodec copy "$OUTPUT"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement