Simple command to create a raw video of H264, H265, and YUV using FFmpeg

--

H264 H265 YUV

YUV format is a decoded raw file. It is the format which is already decoded and ready to render in the rendering applications. We must note that the size of the file will be HUGE since there is no single compression of the files applied. Make sure you have sufficient storage space before trying to apply this command in your system.

Here is the command to create a YUV from an MP4 file

ffmpeg -i big_buck_bunny_480p_stereo.mp4 -c:v rawvideo -pix_fmt yuv420p out.yuv

H264 or .264 file is a file that has the pure compressed file of H264 video frames. Since it doesn't associate with any audio file, it will be smaller than the actual container file which has the audio, video and metadata.

Here is the FFmpeg command to create an H264 file

ffmpeg -i big_buck_bunny_480p_stereo.avi -vcodec h264 -pix_fmt yuv420p big_buck_bunny_480p_stereo.264

Same fashion for the H265/HEVC codec type files. Here is the FFmpeg command

ffmpeg -i big_buck_bunny_480p_stereo.avi -c:v libx265 -vtag hvc1 big_buck_bunny_480p_stereo.265

OR

ffmpeg -i big_buck_bunny_480p_stereo.avi -vcodec hevc -pix_fmt yuv420p big_buck_bunny_480p_stereo.265

Web links to download sample media contents

  1. https://kodi.wiki/view/Samples
  2. https://www.libde265.org/downloads-videos/
  3. http://download.blender.org/peach/bigbuckbunny_movies/

--

--