Last active
October 12, 2023 13:14
-
-
Save neilpa/2bfa8baa9372b5a3c908 to your computer and use it in GitHub Desktop.
Revisions
-
neilpa revised this gist
Nov 14, 2014 . 2 changed files with 11 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 @@ -0,0 +1,11 @@ # Assuming the raw byte[] buffer from onPreviewFrame was written at $1 INPUT=$1 # Need preview size since we dumped to a raw file w/out header info SIZE=1280x960 # Converting to JPEG ffmpeg -f image2 -vcodec rawvideo -s $SIZE -pix_fmt nv21 -i $INPUT out.jpeg # Converting to PNG ffmpeg -f image2 -vcodec rawvideo -s $SIZE -pix_fmt nv21 -i $INPUT out.png 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,2 +0,0 @@ -
neilpa renamed this gist
Nov 14, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
neilpa renamed this gist
Nov 14, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
neilpa created this gist
Nov 14, 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,2 @@ # Assuming the raw byte[] buffer from onPreviewFrame was writting to input.nv21 ffmpeg -y -f image2 -vcodec rawvideo -s 1280x960 -pix_fmt nv21 -i input.nv21 output.jpeg