Skip to content

Instantly share code, notes, and snippets.

@Moriarty16
Forked from tranthamp/video conversion
Created August 30, 2018 07:34
Show Gist options
  • Save Moriarty16/1b519c2ffe85ac23b5410a2f19e39c9e to your computer and use it in GitHub Desktop.
Save Moriarty16/1b519c2ffe85ac23b5410a2f19e39c9e to your computer and use it in GitHub Desktop.

Revisions

  1. Patrick Trantham revised this gist Oct 25, 2012. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions video conversion
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    // List available formats for ffmpeg
    ffmpeg -pix_fmts

    // Convert a 720x480 nv12 (yuv 420 semi-planar) image to png
    ffmpeg -s 720x480 -pix_fmt nv12 -i captdump-nv12.yuv -f image2 -pix_fmt rgb24 captdump.png

  2. Patrick Trantham revised this gist Aug 9, 2012. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions video conversion
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,9 @@
    // Convert a 720x480 nv12 (yuv 420 semi-planar) image to png
    ffmpeg -s 720x480 -pix_fmt nv12 -i captdump-nv12.yuv -f image2 -pix_fmt rgb24 captdump.png

    // Convert a 640x480 uyvy422 image to png
    ffmpeg -s 640x480 -pix_fmt uyvy422 -i frame-000003.yuv -f image2 -pix_fmt rgb24 captdump.png

    // Display a 640x480 grayscale raw rgb file
    display -size 640x480 -depth 8 captdump-nv12.rgb

  3. Patrick Trantham created this gist Jun 29, 2012.
    8 changes: 8 additions & 0 deletions video conversion
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    // Convert a 720x480 nv12 (yuv 420 semi-planar) image to png
    ffmpeg -s 720x480 -pix_fmt nv12 -i captdump-nv12.yuv -f image2 -pix_fmt rgb24 captdump.png

    // Display a 640x480 grayscale raw rgb file
    display -size 640x480 -depth 8 captdump-nv12.rgb

    // Convert a 640x480 grayscale raw rgb file to png
    convert -size 640x480 -depth 8 captdump-nv12.rgb image.png