Skip to content

Instantly share code, notes, and snippets.

@codecybe
Last active March 18, 2019 07:17
Show Gist options
  • Save codecybe/a5ffa4bf53ee5b9b3dbe5ba53a39e70c to your computer and use it in GitHub Desktop.
Save codecybe/a5ffa4bf53ee5b9b3dbe5ba53a39e70c to your computer and use it in GitHub Desktop.

Revisions

  1. codecybe revised this gist Mar 18, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions ffmpegComands.txt
    Original file line number Diff line number Diff line change
    @@ -18,6 +18,7 @@ ffmpeg -i input.mp4 -c:v libx264 -preset slow output.mp4
    ffmpeg -i input.mp4 -c:v libx264 -preset ultrafast output.mp4
    ffmpeg -i input.mp4 -c:v libx264 -crf 0 -preset veryslow output.mp4
    ffmpeg -i input.mp4 -c:v libx264 -crf 45 -preset veryslow output.mp4
    ffmpeg -i input.mp4 -c:v libx264 -r 29.97 -crf 23 -preset placebo -acodec mp3 output.mp4
    link -> https://superuser.com/questions/490683/cheat-sheets-and-presets-settings-that-actually-work-with-ffmpeg-1-0

    #ffmpeg remote url copy#
  2. codecybe revised this gist Mar 18, 2019. No changes.
  3. codecybe revised this gist Mar 18, 2019. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions ffmpegComands.txt
    Original file line number Diff line number Diff line change
    @@ -15,7 +15,9 @@ ffmpeg -i data/video.mp4 -vcodec h264 -b:v 1000k -acodec mp2 data/output.mp4
    ffmpeg -i video.mp4 -vcodec h264 -b:v 1000k -acodec mp3 output.mp4
    ffmpeg -i input.mp4 -c:v libx264 -crf 23 output.mp4
    ffmpeg -i input.mp4 -c:v libx264 -preset slow output.mp4
    ffmpeg -i input.mp4 -c:v libx264 -preset ultrafast output.mp4
    ffmpeg -i input.mp4 -c:v libx264 -crf 0 -preset veryslow output.mp4
    ffmpeg -i input.mp4 -c:v libx264 -crf 45 -preset veryslow output.mp4
    link -> https://superuser.com/questions/490683/cheat-sheets-and-presets-settings-that-actually-work-with-ffmpeg-1-0

    #ffmpeg remote url copy#
  4. codecybe revised this gist Mar 18, 2019. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions ffmpegComands.txt
    Original file line number Diff line number Diff line change
    @@ -1,12 +1,12 @@
    #How to install/setup ffmpeg on windows 7#
    link-> https://www.youtube.com/watch?v=YlF8kg5U2kc

    #cmd windows 7 change dir#
    C:\Windows\system32>cd "C:\Program Files\ffmpeg\bin"

    #fix -ffmpeg-windows-7-permission-denied cmd#
    Ctrl+Shift+Enter . Run Command Prompt as Administrator click yes

    #How to install/setup ffmpeg on windows 7#
    link-> https://www.youtube.com/watch?v=YlF8kg5U2kc

    #fix eror height not divisible by 2 for h.264#
    ffmpeg -i test.mp4 -c:v libx264 -crf 23 -vf pad="width=ceil(iw/2)*2:height=ceil(ih/2)*2" outfffffut.mp4

  5. codecybe revised this gist Mar 18, 2019. 1 changed file with 13 additions and 1 deletion.
    14 changes: 13 additions & 1 deletion ffmpegComands.txt
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,22 @@
    #fix eror height not divisible by 2 h.264#
    #cmd windows 7 change dir#
    C:\Windows\system32>cd "C:\Program Files\ffmpeg\bin"

    #fix -ffmpeg-windows-7-permission-denied cmd#
    Ctrl+Shift+Enter . Run Command Prompt as Administrator click yes

    #How to install/setup ffmpeg on windows 7#
    link-> https://www.youtube.com/watch?v=YlF8kg5U2kc

    #fix eror height not divisible by 2 for h.264#
    ffmpeg -i test.mp4 -c:v libx264 -crf 23 -vf pad="width=ceil(iw/2)*2:height=ceil(ih/2)*2" outfffffut.mp4

    #ffmpeg-compress video variant#
    ffmpeg -i data/video.mp4 -vcodec h264 -b:v 1000k -acodec mp2 data/output.mp4
    ffmpeg -i video.mp4 -vcodec h264 -b:v 1000k -acodec mp3 output.mp4
    ffmpeg -i input.mp4 -c:v libx264 -crf 23 output.mp4
    ffmpeg -i input.mp4 -c:v libx264 -preset slow output.mp4
    ffmpeg -i input.mp4 -c:v libx264 -crf 0 -preset veryslow output.mp4
    link -> https://superuser.com/questions/490683/cheat-sheets-and-presets-settings-that-actually-work-with-ffmpeg-1-0

    #ffmpeg remote url copy#
    ffmpeg -i http://techslides.com/demos/sample-videos/small.mp4 -c:v copy ourtgtput.mp4
  6. codecybe revised this gist Mar 18, 2019. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion ffmpegComands.txt
    Original file line number Diff line number Diff line change
    @@ -3,4 +3,8 @@ ffmpeg -i test.mp4 -c:v libx264 -crf 23 -vf pad="width=ceil(iw/2)*2:height=ceil(

    #ffmpeg-compress video variant#
    ffmpeg -i data/video.mp4 -vcodec h264 -b:v 1000k -acodec mp2 data/output.mp4
    ffmpeg -i video.mp4 -vcodec h264 -b:v 1000k -acodec mp3 output.mp4
    ffmpeg -i video.mp4 -vcodec h264 -b:v 1000k -acodec mp3 output.mp4
    ffmpeg -i input.mp4 -c:v libx264 -crf 23 output.mp4
    ffmpeg -i input.mp4 -c:v libx264 -preset slow output.mp4
    link -> https://superuser.com/questions/490683/cheat-sheets-and-presets-settings-that-actually-work-with-ffmpeg-1-0

  7. codecybe revised this gist Mar 18, 2019. 1 changed file with 6 additions and 2 deletions.
    8 changes: 6 additions & 2 deletions ffmpegComands.txt
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,6 @@
    #fix eror height not divisible by 2#
    ffmpeg -i test.mp4 -c:v libx264 -crf 23 -vf pad="width=ceil(iw/2)*2:height=ceil(ih/2)*2" outfffffut.mp4
    #fix eror height not divisible by 2 h.264#
    ffmpeg -i test.mp4 -c:v libx264 -crf 23 -vf pad="width=ceil(iw/2)*2:height=ceil(ih/2)*2" outfffffut.mp4

    #ffmpeg-compress video variant#
    ffmpeg -i data/video.mp4 -vcodec h264 -b:v 1000k -acodec mp2 data/output.mp4
    ffmpeg -i video.mp4 -vcodec h264 -b:v 1000k -acodec mp3 output.mp4
  8. codecybe created this gist Mar 18, 2019.
    2 changes: 2 additions & 0 deletions ffmpegComands.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    #fix eror height not divisible by 2#
    ffmpeg -i test.mp4 -c:v libx264 -crf 23 -vf pad="width=ceil(iw/2)*2:height=ceil(ih/2)*2" outfffffut.mp4