如何将视频转换为XML [英] How to Convert Video into XML

查看:963
本文介绍了如何将视频转换为XML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在开发Windows应用程序,它将通过xml将音频,视频和文本发布到服务器.之后,可以通过任何其他位置/系统通过移动应用程序或桌面应用程序中的任何一个来访问(由用户)此数据.我希望发布我的视频以通过XML在DB中投放.谁能帮我吗?

提前谢谢.

问候,

Faisal Hayat

Hi All,

I am developing windows application which is going to post audio, video and text to a server via xml. later this data (by user) can be accessed via any of mobile application or desktop application from anyother location/system. I am looking to post my videos to serve in DB via XML. Can anyone help me out??

Thanks in advance.

Regards,

Faisal Hayat

推荐答案

我的第一个提示是:不要这样做.即使您将帧本身编码为简单的流,XML还是一种糟糕的视频格式(这将消除人类可读的方面,这是首先使用XML的唯一原因).将文件以某种压缩的二进制格式托管在服务器上,然后从客户端应用程序中获取文件;它将更快,更便宜并且更好地工作.

如果XML是某种管理要求,那么我建议遵循
My first tip here is: don''t do it. XML would be a terrible format for video, even if you encoded the frames themselves as a simple stream (which would take away the human readable aspect which is about the only reason to use XML in the first place). Host the files on the server in some compressed binary format and grab that from the client applications; it will be faster, cheaper and work better.

If XML is some sort of management requirement then I recommend something along the lines of
<video length="03:20">
A4E3210B23.... (base 64 long binary stream)
</video>


仍然比未使用base64''d的版本大很多(即更糟).


That will still be significantly bigger (i.e. worse) than the un-base64''d version.


这篇关于如何将视频转换为XML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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