将YUV420SP转换为YUV420P [英] Converting YUV420SP to YUV420P

查看:305
本文介绍了将YUV420SP转换为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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆