将YUV420SP转换为YUV420P [英] Converting YUV420SP to YUV420P
问题描述
如何使用ffmpeg sws_scale或其他有效的方法将YUV420SP转换为YUV420P?
有大量的不同的YUV格式可用,作为起点,请参阅 http://www.fourcc.org/yuv.php
您需要更具体的问题,因为半平面和平面并没有真正说明数据的格式。 >
但作为一般建议,只是原始数据连续放置。您所需要做的就是从插播视频中读取正确的数据量,并使用您最喜爱的语言将其写入流媒体。
How do I to convert YUV420SP to YUV420P using ffmpeg sws_scale or another efficient method?
There are an enormous amount of different YUV-formats available, as a starting point see http://www.fourcc.org/yuv.php
You need to be more specific in you question since "Semi Planar" and "Planar" doesn't really tell how the data is formatted.
But as a general advice, it's just raw-data placed contiguously. All you need to do is to read the correct amount of data from the in-stream and write it to the out-stream using your favorite language.
这篇关于将YUV420SP转换为YUV420P的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!