Created
August 28, 2012 12:42
-
-
Save btotr/3497713 to your computer and use it in GitHub Desktop.
ffmpeg ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BITRATE=3500k | |
ffmpeg -i $1 \ | |
-vcodec mpeg2video -r 25 -s 1280x720 -g 15 \ | |
-vb ${BITRATE} -minrate ${BITRATE} -maxrate ${BITRATE} -bufsize ${BITRATE}/2 \ | |
-acodec ac3 -ab 256k -ar 48000 -ac 2 \ | |
-packetsize 188 -f mpegts -y \ | |
$1.ts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment