Skip to content

Instantly share code, notes, and snippets.

@gohilbhagirath90
Last active May 27, 2017 09:49
Show Gist options
  • Save gohilbhagirath90/93e363d234b1c57f1460 to your computer and use it in GitHub Desktop.
Save gohilbhagirath90/93e363d234b1c57f1460 to your computer and use it in GitHub Desktop.
ffmpeg decode command
==> ffmpeg decode video
ffmpeg -i Untitled_Project-Apple_ProRes_422.mov -f rawvideo -pix_fmt yuv420p Untitled_Project-Apple_ProRes_422.yuv
==> ffmpeg slicing video
ffmpeg -i Untitled_Project-Apple_ProRes_422.mov -pix_fmt yuv420p -ss 00:00:00 -t 00:00:15 part1_420p.mov
==> adding into container format
ffmpeg -i test.h264 -vcodec copy out.mp4
==> extracting h264 from mov using ffmpeg
ffmpeg -i Untitled_Project-Apple_ProRes_422.mov -vcodec h264 -bsf:v h264_mp4toannexb -an -pix_fmt yuv420p 3yuv420p.h264
==> YUV to JPEG
ffmpeg -s 640x480 -pix_fmt yuv420p -i test-yuv420p.yuv test-640x480.jpg
ffmpeg -s 640x480 -pix_fmt uyvy422 -i test-yuv422uyvy.yuv test-640x480.jpg
==> JPEG -> YUV
ffmpeg -i test-640x480.jpg -s 640x480 -pix_fmt yuv420p test-yuv420p.yuv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment