Thus the expected bitrate is capped by: (frame_width/16) * (frame_height/16) * fps * bits_per_mbįfmpeg -s 3840x1744 -y -pix_fmt yuv420p -i a.yuv -bits_per_mb 300 -r 24 -vcodec prores_ks -profile:v 0 a_prores_proxy_300.mov The bitrate is controlled by bits_per_mb parameter which specifies how many bits to supply for coding one MB. If we wish select ProRes 422, LT profile we should use '-profile:v 1' (because ProRes 422, LT profile has the number 1)įor BitRate control you need use Kostia's realization of ProRes (specified by '-vcodec prores_ks'). If we want to generate ProRes Proxy profile with a predefined frame rate, say 24fps then use '-r 24':įfmpeg -s 3840x1744 -y -pix_fmt yuv420p -i a.yuv -r 24 -vcodec prores -profile:v 0 proxy.mov Note: because ffmpeg does not support 4:2:0 the input yuv420p is converted by default to 4:2:2, 10bps (yuv422p10le) The following ffmpeg example reveals how to encode an input 4:2:0 yuv-file (yuv420p) to ProRes mov-file (4:2:2):įfmpeg -s 3840x1744 -y -pix_fmt yuv420p -i a.yuv -vcodec prores a_prores.mov As far as i know VLC, PotPlayer and QuickTime players support ProRes format. ProRes 422, HQĪll ProRes files names must end with 'mov' extension. There are several realizations of ProRes in ffmpeg: Anatoliy's variant ( '-vcodec prores' ), Kostia's variant ('-vcodec prores_ks').Ġ. It's easy also to extract the ProRes codec as a standalone program. prores Apple ProRes (iCodec Pro) (encoders: prores prores_aw prores_ks) The ProRes codec (both encoder and decoder) is supported by ffmpeg (by default).ĭEVIL. ProRes is tailored to support 4:2:2 and 4:4:4 video with 8,10 and 12 bits per sample. X264 -o out.h264 -input-res 1280x720 -preset slow autl.Apple ProRes is a particular standard (different from H.264/AVC) developed by Apple to replace M-JPEG. The encoded H.264 videos that I generated are around 40 MB in size. Then I re-encoded it using the x264 library with a variety of configs. I decoded the video into raw YUV (using ffmpeg and JM separately, ensuring that I get an identical file). I am unable to re-encode an H.264 video that I downloaded from Youtube back to its original size.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |