将YUV420SP转换为YUV420P

编程入门 行业动态 更新时间:2024-10-21 17:32:36
本文介绍了将YUV420SP转换为YUV420P的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

如何使用ffmpeg sws_scale或其他有效的方法将YUV420SP转换为YUV420P?

解决方案

有大量的不同的YUV格式可用,作为起点,请参阅 www.fourcc/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 www.fourcc/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

本文发布于:2023-11-30 20:42:39,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1651416.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:转换为   YUV420SP   YUV420P

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!