-
-
Save k-zakhariy/8322002c40c1f3b8570c0d2f43a19565 to your computer and use it in GitHub Desktop.
Revisions
-
trisweb revised this gist
Mar 5, 2012 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -18,5 +18,4 @@ `ffmpeg -i 00001.MTS -threads 3 -y -vcodec libx264 -sameq -acodec libfaac -ab 192k -ar 44100 -ac 2 -s 1920x1080 -vpre normal -b 3M output.mp4` (You could also omit the `-s` switch to keep the size the same as the input and adjust the `-b` param to adjust quality more predictably, or leave it out altogether to make ffmpeg automatically determine a good quality) -
There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -4,19 +4,19 @@ ## Medium quality 720p: `ffmpeg -i 00001.MTS -threads 3 -y -vcodec libx264 -sameq -acodec libfaac -ab 128k -ar 44100 -ac 2 -s 1280x720 -vpre normal -b 1M output.mp4` ## High quality 720p: `ffmpeg -i 00001.MTS -threads 3 -y -vcodec libx264 -sameq -acodec libfaac -ab 192k -ar 44100 -ac 2 -s 1280x720 -vpre normal -b 2M output.mp4` ## Medium quality 1080p: `ffmpeg -i 00001.MTS -threads 3 -y -vcodec libx264 -sameq -acodec libfaac -ab 128k -ar 44100 -ac 2 -s 1920x1080 -vpre normal -b 1.5M output.mp4` ## High quality 1080p: `ffmpeg -i 00001.MTS -threads 3 -y -vcodec libx264 -sameq -acodec libfaac -ab 192k -ar 44100 -ac 2 -s 1920x1080 -vpre normal -b 3M output.mp4` (You could also omit the `-s` switch to keep the size the same as the input) -
There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ # FFMpeg Commands for Transcoding MTS video (from AVCHD-Lite Cameras, like Panasonic DMC-TS1/2) 720p -> H.264 (x264) video + AAC 128kbps audio: ## Medium quality 720p: ffmpeg -i 00004.MTS -threads 3 -y -vcodec libx264 -sameq -acodec libfaac -ab 128k -ar 44100 -ac 2 -s 1280x720 -vpre normal -b 1M output.mp4 ## High quality 720p: ffmpeg -i 00004.MTS -threads 3 -y -vcodec libx264 -sameq -acodec libfaac -ab 192k -ar 44100 -ac 2 -s 1280x720 -vpre normal -b 2M output.mp4 ## Medium quality 1080p: ffmpeg -i 00004.MTS -threads 3 -y -vcodec libx264 -sameq -acodec libfaac -ab 128k -ar 44100 -ac 2 -s 1920x1080 -vpre normal -b 1.5M output.mp4 ## High quality 1080p: ffmpeg -i 00004.MTS -threads 3 -y -vcodec libx264 -sameq -acodec libfaac -ab 192k -ar 44100 -ac 2 -s 1920x1080 -vpre normal -b 3M output.mp4 (You could also omit the `-s` switch to keep the size the same as the input)