Last active
August 29, 2015 14:06
-
-
Save andrewschaaf/cedcab72bdefef2126d5 to your computer and use it in GitHub Desktop.
Revisions
-
andrewschaaf revised this gist
Oct 5, 2014 . 1 changed file with 1 addition and 1 deletion.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 @@ -1,7 +1,7 @@ ### concatenated PPMs → MP4 ``` ...ppms... | ffmpeg \ -f image2pipe \ -c ppm \ -r 60 \ # 60 fps -
andrewschaaf revised this gist
Oct 5, 2014 . 1 changed file with 6 additions and 6 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 @@ -1,15 +1,15 @@ ### concatenated PPMs → MP4 ``` ffmpeg \ -f image2pipe \ -c ppm \ -r 60 \ # 60 fps -i - \ -b:v 10M \ # 10 Mbit/s -s 1440x900 \ # resize to 1440x900 -pix_fmt yuv420p \ # 4:2:0 chroma subsampling. QuickTime requires this, VLC does not. -movflags +faststart \ # Arrange metadata to help decoders understand the file ASAP foo.mp4 ``` -
andrewschaaf revised this gist
Oct 5, 2014 . 1 changed file with 15 additions 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 @@ -1,8 +1,21 @@ ### concatenated PPMs -> MP4 (60fps, 10Mbit/s, resized to 1440x900) ``` ffmpeg \ -f image2pipe \ -c ppm \ -r 60 \ -i - \ -b:v 10M \ -s 1440x900 \ -pix_fmt yuv420p \ -movflags +faststart \ foo.mp4 ``` ### whatever → concatenated PPMs ffmpeg ... -f image2pipe -c ppm - | ...PPMs... ### PPM files → whatever ffmpeg -start_number 1 -i foo%02d.ppm ... -
andrewschaaf revised this gist
Sep 17, 2014 . 1 changed file with 1 addition and 1 deletion.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 @@ -5,5 +5,5 @@ ...PPMs... | ffmpeg -i image2pipe -c ppm ... ### PPM files → whatever ffmpeg -start_number 1 -i foo%02d.ppm ... # foo{01,02,03}.ppm -
andrewschaaf revised this gist
Sep 17, 2014 . 1 changed file with 7 additions and 4 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 @@ -1,6 +1,9 @@ ### whatever → concatenated PPMs ffmpeg ... -f image2pipe -c ppm - | ...PPMs... ### concatenated PPMs → whatever ...PPMs... | ffmpeg -i image2pipe -c ppm ... ### PPM files → whatever ffmpeg -start_number 1 -i img%02d.ppm ... # foo{01,02,03}.ppm -
andrewschaaf created this gist
Sep 17, 2014 .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,6 @@ ### PPMs → whatever ...PPMs... | ffmpeg -i image2pipe -c ppm ... ### whatever → PPMs ffmpeg ... -f image2pipe -c ppm - | ...PPMs...