Skip to content

Instantly share code, notes, and snippets.

@simonxiao86
Forked from maximebories/convert.md
Created November 27, 2023 04:24
Show Gist options
  • Save simonxiao86/5e545b4cdfad8ab2fd3bc94fbf0eccf5 to your computer and use it in GitHub Desktop.
Save simonxiao86/5e545b4cdfad8ab2fd3bc94fbf0eccf5 to your computer and use it in GitHub Desktop.

Revisions

  1. @maximebories maximebories revised this gist Mar 30, 2023. 1 changed file with 4 additions and 18 deletions.
    22 changes: 4 additions & 18 deletions convert.md
    Original file line number Diff line number Diff line change
    @@ -1,19 +1,5 @@
    <!--
    Copyright (C) 2023 Maxime Bories
    This file is part of maximebories.github.io.
    maximebories.github.io is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.
    maximebories.github.io is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.
    You should have received a copy of the GNU General Public License
    along with maximebories.github.io. If not, see <http://www.gnu.org/licenses/>.
    -->
    ```
    ffmpeg -i input.webm -c:v libx264 -preset slow -crf 22 -c:a aac -b:a 128k output.mp4
    ```

    This ffmpeg command converts a .webm video file to a standard .mp4 file using the libx264 codec for video, aac codec for audio, and a CRF value of 22. The preset is set to 'slow' for higher quality encoding, and the audio bitrate is set to 128 kbps.
  2. @maximebories maximebories revised this gist Mar 30, 2023. 1 changed file with 19 additions and 1 deletion.
    20 changes: 19 additions & 1 deletion convert.md
    Original file line number Diff line number Diff line change
    @@ -1 +1,19 @@
    ‎‎​
    <!--
    Copyright (C) 2023 Maxime Bories
    This file is part of maximebories.github.io.
    maximebories.github.io is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.
    maximebories.github.io is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.
    You should have received a copy of the GNU General Public License
    along with maximebories.github.io. If not, see <http://www.gnu.org/licenses/>.
    -->

  3. @maximebories maximebories revised this gist Mar 30, 2023. 1 changed file with 1 addition and 19 deletions.
    20 changes: 1 addition & 19 deletions convert.md
    Original file line number Diff line number Diff line change
    @@ -1,19 +1 @@
    <!--
    Copyright (C) 2023 Maxime Bories
    This file is part of maximebories.github.io.
    maximebories.github.io is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.
    maximebories.github.io is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.
    You should have received a copy of the GNU General Public License
    along with maximebories.github.io. If not, see <http://www.gnu.org/licenses/>.
    -->

    ‎‎​
  4. @maximebories maximebories revised this gist Mar 30, 2023. 1 changed file with 19 additions and 1 deletion.
    20 changes: 19 additions & 1 deletion convert.md
    Original file line number Diff line number Diff line change
    @@ -1 +1,19 @@
    ‎‎​
    <!--
    Copyright (C) 2023 Maxime Bories
    This file is part of maximebories.github.io.
    maximebories.github.io is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.
    maximebories.github.io is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.
    You should have received a copy of the GNU General Public License
    along with maximebories.github.io. If not, see <http://www.gnu.org/licenses/>.
    -->

  5. @maximebories maximebories created this gist Mar 30, 2023.
    1 change: 1 addition & 0 deletions convert.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    ‎‎​