简体   繁体   English

使用C#计算Flv和Swf的宽度和高度

[英]Calculate width and height of Flv and Swf using C#

我无法弄清楚如何使用C#.NET计算.flv视频或.swf文件的宽度和高度尺寸。

Maybe this article can help you. 也许这篇文章可以帮到你。 It show how to read flv files and it's meta information in c#. 它展示了如何在c#中读取flv文件及其元信息。

Basically, you have to open a binary file stream and read the first part of the file. 基本上,您必须打开二进制文件流并读取文件的第一部分。

You have than to interpret bytes you read according to Adobe flv format specification . 您必须解释根据Adobe flv格式规范读取的字节数。 Anyway, the article has some code sample showing you how to read width and height of files. 无论如何,这篇文章有一些代码示例,向您展示如何读取文件的宽度和高度。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM