如何解密视频文件并将其流式传输到媒体播放器(axWindowsMediaPlayer)而不保存到磁盘 [英] How to decrypt a video file and stream it to media player (axWindowsMediaPlayer) without saving to disk

查看:104
本文介绍了如何解密视频文件并将其流式传输到媒体播放器(axWindowsMediaPlayer)而不保存到磁盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在C#中实现一个Windows窗体应用程序以及大多数在线可用的东西...但有人可以告诉如何实现下面提到的 进程 - 2用于视频文件解密并直接流式传输到媒体播放器 而不将文件保存到磁盘。



PROCESS



PROCESS - 1 视频加密流程

I am trying to implement a windows form application in C# and most of stuff available online... but can someone tell how to implement below mentioned process - 2 for video file Decryption and stream directly to media player without saving file to disk.

PROCESS

PROCESS - 1 Video Encryption Process

Video File >> Read file >> encryption >> save to a file





PROCESS - 2 视频解密和流媒体处理



PROCESS - 2 Video Decryption and Streaming Process

Encrypted File >> Read from file >> decryption >> stream to media player (axWindowsMediaPlayer)





使用的总流程

阅读文件

- 文件流

- in字节数组

- 框架式

- 缓冲区

加密/解密

- 多种方式这个以及更多......

保存到文件

- 正常算法

视频流

- 不知道:(



我在网上阅读了很多东西但这个我没有找到。其次有人建议不要浪费时间在DRM上,因为它不安全......另一个论坛的人建议交换ini tial位,以便在播放时获取垃圾值而不直接播放并以编程方式实现重新交换。



Total Process Used
Reading file
- file-stream
- in byte array
- frame-wise
- Buffer
Encryption / Decryption
- many ways or this and many more...
Save to file
- normal algorithm
Video Streaming
- don't know :(

I read many stuff online but this i don't found. Secondly somebody suggest not to waste time on DRM as its not safe... someone on another forum suggest to swap initial bits so that while playing it get garbage value and not play directly and implement re-swapping programmaticly.

推荐答案

您链接的所有内容都与加密/解密文件有关,必须写入其他文件,MediaPlayer不会播放您在内存中选择的缓冲区中的内容。



不使用未加密的文件或自定义媒体来执行此操作服务器,你要编写一个编解码器来进行加密/解密。它必须是MediaPlayer构建以播放内容的图形的一部分。



这是你真的不应该使用C#的东西。您将使用C来执行此操作,您可以找到有关所涉及内容的一些文档

其中 [ ^ ]。
Everything you linked to concerns itself with encrypting/decrypting files, which must be written to other files and MediaPlayer won't play content from a buffer of your choosing in memory.

To do this without using an unencrypted file or custom media server, you'd be writing a codec to do the encryption/decryption. It would have to be part of the graph that MediaPlayer builds to play the content.

This is something that you really shouldn't use C# for. You'd be using C to do this and you can find some documentation on what's involved
here[^].


这篇关于如何解密视频文件并将其流式传输到媒体播放器(axWindowsMediaPlayer)而不保存到磁盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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