Share my knowledge, feel my life. Eric Shan' Blog myBloggie 2.1.6 © 2005   
Mar 2025 April 2025 May 2025
S M T W T F S
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30    
Categories
About[5]
Blackberry[1]
dotNet and C Charp[1]
IPhone[10]
Life[4]
Unix&Linux[19]
WEB programming[16]
Windows API[5]
Windows Mobile[1]
Windows Multimedia[4]
Recent
CentOS mount CDrom and USB
CentOS GHOST(幽灵)漏洞修复方法
centos 改变语言并立即生效
centos vpn 接通后无法连接internet
让vlc播放中文字幕不出乱码
centos 取消屏保
php中ob_flush和flush的用法
CentOS检查,添加,删除自启动服务
CentOS中开机自动启动某个服务
Top命令中的翻页
Archives
February 2010[4]
September 2009[1]
August 2009[1]
January 2009[7]
October 2008[10]
June 2008[2]
December 2007[14]
November 2007[5]
May 2007[9]
April 2007[3]
March 2007[10]
User List
Eric Shan[66]
Search
Syndication
31 Dec 2014   02:03:42 pm
让vlc播放中文字幕不出乱码
1。字幕文件在notepad中打开存成utf-8格式
2。VLC中, Subtitles/OSD设置里的Default encoding启用Universal (UTF-
3。VLC中,Subtitle effects里,Font选 "Arial Unicode MS"

友情链接:http://wxwz.welovechina.cn
Category : Windows Multimedia | Posted By : Eric Shan | Comments[0] | Trackbacks [0]
13 Feb 2010   05:49:03 pm
Play 'Lady GaGa - Isle of MTV 2009 (HD).ts'
To play 'Lady GaGa - Isle of MTV 2009 (HD).ts' using Windows Media Player, need to install two direct show filters.

1. Haali Media Splitter, http://haali.su/mkv/MatroskaSplitter.exe
2. Elecard AVC PlugIn for WMP, http://www.elecard.com/ftp/pub/mpeg/decoder/EMPEG-2_PlugIn_WMP.zip
3. Disable FFDSHOW's H.246 decode option.
Category : Windows Multimedia | Posted By : Eric Shan | Comments[0] | Trackbacks [0]
04 May 2008   01:20:25 pm
VC6 Include path and lib path adjust for compile and linking
I met some error like "incorrect <rpcndr.h> version. Use the header that matches with the MIDL compiler", to resolve it, change the include path like below, then download the latest rpcndr.h from http://www.cs.bgu.ac.il/~pcprogs/install/Microsoft_SDK/Include/

WMFSDK
DSHOW
DSHOW/Baseclasses

Link path should be:

WMFSDKLIB
DSHOWLIB
Category : Windows Multimedia | Posted By : Eric Shan | Comments[0] | Trackbacks [0]
11 Apr 2007   06:04:31 am
How to tell a DVD video media - 怎样区分光碟是否是DVD
In my program, I need to tell if a disk is a video DVD or just a file DVD.

From DeviceIoControl plus IOCTL_STORAGE_GET_MEDIA_TYPES_EX we can tell the driver is a CD-ROM or DVD-ROM. Surely CD-ROM can not read DVD disk. So CD-ROM driver is filtered.

But DVD-ROM can also read CD media. Use GetVolumeInformation we can tell if a media is a CDFS disk. So CD in a DVD-ROM is filtered.

Now I found both DVD video and DVD file are UDF. I remember when Autoplay of Windows could precisely tell between DVD and file DVD. So I google autoplay, and get this http://msdn.microsoft.com/msdnmag/issues/01/11/autoplay/ . It mentioned: The primary difference in the handling of CDs and DVD movies is the way Autoplay identifies the media type. Autoplay checks for the presence of the video_ts.ifo file inside the video_ts folder located in the media's root folder. So that my way.

我需要分辨出DVD影视盘.用DeviceIoControl和 IOCTL_STORAGE_GET_MEDIA_TYPES_EX 可以过滤掉CD-ROM驱动器,但是DVD驱动器也可以读CD,所以用GetVolumeInformation可以知道碟是否CDFS,从而过滤掉CD碟片.这样我发现DVD影视盘和DVD文件盘都可以是UDF.我琢磨了一下,想到系统的自动播放是怎么写的,google了一下得出:http://msdn.microsoft.com/msdnmag/issues/01/11/autoplay/ 这里提到Autoplay先分辨Media Type,然后查在根目录下是否有video_ts目录,video_ts目录下是否有video_ts.ifo.看来就是这样了.
Category : Windows Multimedia | Posted By : Eric Shan | Comments[0] | Trackbacks [0]
 
1
Template theme : aura
Powered by myBloggie Copyright © 2004 2006
-- myWebland --

Sponsed by TNTSoft Store