Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Calculate width and height of Flv and Swf using C#

I can't work out how to calculate the width and height dimensions of a .flv video or .swf file using C# .NET.

like image 745
Greg Avatar asked Nov 14 '22 07:11

Greg


1 Answers

Maybe this article can help you. It show how to read flv files and it's meta information in c#.

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. Anyway, the article has some code sample showing you how to read width and height of files.

like image 86
Andrea Parodi Avatar answered Dec 14 '22 09:12

Andrea Parodi