Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save k-zakhariy/8322002c40c1f3b8570c0d2f43a19565 to your computer and use it in GitHub Desktop.

Select an option

Save k-zakhariy/8322002c40c1f3b8570c0d2f43a19565 to your computer and use it in GitHub Desktop.

Revisions

  1. @trisweb trisweb revised this gist Mar 5, 2012. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions ffmpeg-avchd-conversion.md
    Original 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)

    (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)
  2. @invalid-email-address Anonymous revised this gist Mar 5, 2012. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions ffmpeg-avchd-conversion.md
    Original file line number Diff line number Diff line change
    @@ -4,19 +4,19 @@

    ## 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
    `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 00004.MTS -threads 3 -y -vcodec libx264 -sameq -acodec libfaac -ab 192k -ar 44100 -ac 2 -s 1280x720 -vpre normal -b 2M output.mp4
    `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 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
    `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 00004.MTS -threads 3 -y -vcodec libx264 -sameq -acodec libfaac -ab 192k -ar 44100 -ac 2 -s 1920x1080 -vpre normal -b 3M output.mp4
    `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)

  3. @invalid-email-address Anonymous created this gist Mar 5, 2012.
    22 changes: 22 additions & 0 deletions ffmpeg-avchd-conversion.md
    Original 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)