首页 Soft PlugIn RAN乱 Dev开发 Info资料 English WAP 留言 登陆 注册
-
Posted by Yippee | 评论(0) | 引用(0) | 阅读198次
20080723 c# directshow

20080723 c# directshow
http://www.shengfang.org

TestDes:
http://tieba.baidu.com/f?kz=131493681
源码共享-DES-用DirectShow做的视频编辑软件

DirectShowPlay_Src_CSharp
http://www.codebeta.cn/Default.aspx?g=posts&t=15
C# directshow实现画中画

DirectShowLib
http://directshownet.sourceforge.net/


DirectShowNet
http://www.codeproject.com/KB/directx/directshownet.aspx
DirectShow for DVD and file playback, capture and sample grabber

VMR9_src
Wrapper class for playing video with the VMR9
Class for playing and mixing video files using DirectX9 Video Mixing Renderer.
http://www.codeproject.com/KB/audio-video/vmr9.aspx

DirectShowVMR9
http://www.codeproject.com/KB/directx/DirectShowVMR9.aspx
Using the DirectShow Video Mixing Renderer 9 filter
By Sameer Ahmed

This article describes how to dynamically mix two video files (.mpeg, .mpg, .avi and .dat). Mixing involves alpha-blending and stretching/shrinking and positioning of the two video streams, individually, using DirectShow's VMR9 filter.

未处理的“System.Threading.ThreadStateException”类型的异常出现在 System.Windows.Forms.dll 中。

其他信息: 在可以调用 OLE 之前,必须将当前线程设置为单线程单元(STA)模式。请确保您的 Main 函数带有 STAThreadAttribute 标记。 只有将调试器附加到该进程才会引发此异常。

Thread   app   =   new   Thread(new   ParameterizedThreadStart(ShowWindow));
                        app.ApartmentState   =   ApartmentState.STA;


   1.请确保您的   Main   函数带有   STAThreadAttribute   标记。   
  2.改用DialogResult.ShowDialog(IWin32Window); 
  IWin32Window为主线程的form对象 
 
 System::Threading::Thread::CurrentThread->ApartmentState = System::Threading::ApartmentState::STA;

 http://www.codeproject.com/KB/audio-video/ProcAmp.aspx
 Procamp for directshow.Net
By Jarno Burger

How to use use brightness contrast saturation hue in your directshow.net filtergraph

http://www.codeproject.com/KB/directx/DS_Player.aspx
Playing audio and video using DirectShow
By Kumar.Prabhu

This project demonstrates the basics of DirectShow and related concepts.

http://www.codeproject.com/KB/directx/ManagedRenderLoop.aspx
Simple Managed DirectX Render Loop
By Eric Falsken

A simple framework for implementing the best possible Managed DirectX render loop for games or simulations written in Microsoft .NET.

http://www.codeproject.com/KB/directx/SuperBrickBreaker.aspx
Super Brick Breaker - A Simple DirectDraw Game
By Rob Walter

An article on using DirectX (DirectDraw) to create a simple game

http://blog.donews.com/ufoace/archive/2005/05/12/376974.aspx
基于DirectShow的流媒体解码和回放

http://blog.163.com/mondeo_2008/blog/static/4965796420082195714764/
DirectShow 媒体文件回放总结

http://www.codeproject.com/KB/audio-video/WebcamUsingDirectShowNET.aspx
Webcam using DirectShow.NET
By Jarno Burger

This article describes how to use DirectShow.NET in VB.NET

http://www.directshow.cn/forum/archiver/?tid-1895.html
用C#那个简单吆,没话说了

using DirectShowLib;

    public partial class Form1 : Form
    {
        IGraphBuilder pGraph;
        IMediaControl pControl;
        IMediaEvent pEvent;
        IVideoWindow videoWindow;
        public Form1()
        {
            InitializeComponent();
           
            pGraph = (IGraphBuilder)new FilterGraph();
            pControl = (IMediaControl) pGraph;
            videoWindow = (IVideoWindow)pGraph;
            this.videoWindow.put_Owner(this.Handle);
            this.videoWindow.put_WindowStyle(WindowStyle.Child | WindowStyle.ClipChildren);
            this.videoWindow.SetWindowPosition(0, 0, this.panel1.Width, this.panel1.Height);
            this.videoWindow.put_Visible(OABool.True);
            pGraph.RenderFile("F:\\Share\\Movie\\MTV.WMV", "");
            ///以下是自己写的代码 +++++
        }
        private void btnPlay_Click(object sender, EventArgs e)
        {
            pControl.Run();
        }
        private void btnStop_Click(object sender, EventArgs e)
        {
            pControl.Stop();
        }
    }
简单之处:
1,不需要初始化COM;
2,不需要QueryInterface,直接转换;
3,不需要管理引用计数;
4,不需要释放垃圾;
5,有代码助手。
初学,说错了勿怪。

http://www.codesoso.com/code/DSGraphEdit.aspx
C#实现微软的GraphEdit产品源代码

http://www.cnblogs.com/gussing/archive/2007/09/11/742061.html
c#中用DirectShow实现媒体播放器的核心(0) 完成后的代码

http://www.codeproject.com/KB/directx/audiosav.aspx
Audio File Saving for the DirectX.Capture Class Library
By almere109

Enhancements to the DirectX.Capture class for capturing audio to WMA files.

http://www.codeproject.com/KB/audio-video/avifilewrapper.aspx
A Simple C# Wrapper for the AviFile Library
By Corinna John

Edit AVI files in .NET.

http://www.codeproject.com/KB/security/steganodotnet4.aspx

Steganography IV - Reading and Writing AVI files
By Corinna John

An article about hiding bytes in the bitmap frames of uncompressed AVI files.

视频"画中画"技术

  "画中画"这个概念类似与彩色电视机"画中画",就是在一幅大的图像内显示另外一幅内容不同的小的图像,小图像的尺寸大小一般地说为大图像尺寸的1/4或1/9,显示位置在大图像的右上角。这种技术不仅在电视技术中,在可视电话系统也可以发现这种技术的身影,它们都是依靠硬件来实现的,但是如何在VC开发平台上用编程语言来将该功能添加到自己开发的视频监控软件,为使用者提供更大的信息量呢?也许读者最容易想到的是首先显示大图像,然后再在一个固定位置画第二幅小图像,这种技术技术如果对于静止图像当然没有问题,但是对于视频流,由于每一秒钟需要画25幀,即25幅图像,这样一来计算机需要不停的画不停的擦除,会给用户以闪烁的感觉,如何解决这个问题呢?有的参考书上将大小图像分快显示,这种方法要将待显示的图像数据与显示位置的关系对应起来,容易出错不说,而且麻烦,且速度慢,为此,我对该方法进行了改进,得到了满意的效果。实现的代码如下:

http://www.cnblogs.com/lucky-apple/archive/2008/06/22/1227550.html
关于VMR7、VMR9、Video Renderer

http://www.mcublog.com/blog/blog2007/digistar/archives/2007/26306.html
老外的视频字符叠加程序
下载地址:http://www.nycht.com/pic16bbs/dispbbs.asp?boardid=5&id=153

http://huyong913.bokee.com/viewdiary.16920168.html
视频叠加的学习

http://topic.csdn.net/t/20050427/23/3972029.html
关于directshow和directdraw(痛苦中)


字体:

Permanant URI永久地址 http://www.shengfang.org/blog/p/20080723csharpdirectshow.php
Trackback URI引用地址 http://www.shengfang.org/blog/tb.php?tb_id=1236930967

2009年3月13日15:56星期五  [Info资料] 追踪此文的RSS
提示:
此文还没有评论。

称呼:    登陆   注册
   不注册,但记住我的信息
邮件:
(非必须)
评论: [UBB代码帮助]
粗体 斜体 下划线 链接 水平线 引用



验证码: 请输入你看见的数字
关闭UBB      提交时自动将内容复制到剪贴板

公告
Fire and Motion!

统计信息
[Yippee]||[统计]||日志:1887
在线: 26||用户: 2579 [列表]
今日:645||到访:2931363
Rss:||评论:1609

最新日志

最新评论

友情链接

日历
2008 - 08
     12
3456789
10111213141516
17181920212223
24252627282930
31      

最新引用

搜索

归档

杂项
Get RSS Feed (Version 2.0)
Get Atom Feed (Version 0.3)
编码:  UTF-8