Created
April 2, 2011 01:37
-
-
Save pix0r/899142 to your computer and use it in GitHub Desktop.
Convert MPEG audio or video into MPEG Transport Stream (simple ffmpeg commandline)
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/sh | |
IN=$1 | |
OUT=$2 | |
if [ "$IN" = "" ]; then | |
echo "Convert MPEG audio or video into MPEG Transport Stream" | |
echo "Usage: $0 <infile> [outfile]" | |
exit | |
fi | |
if [ "$OUT" = "" ]; then | |
OUT="$IN.ts" | |
fi | |
ffmpeg -i $IN -f mpegts -acodec copy -vcodec copy $OUT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment