Board logo

标题: [求助]关于全屏看电影中,字幕功能的P处理做法 [打印本页]

作者: sea1112     时间: 2008-11-5 10:49    标题: [求助]关于全屏看电影中,字幕功能的P处理做法
关于全屏看电影中,字幕功能的P处理做法

我想做字幕功能的提示,请给予帮助,写出实例,谢谢

应用于:计划提示、软件提示、帮助提示等等。
go.bat 内容
@echo off
echo Msgbox("屏幕最前方")>test.vbs
:ag
ping -n 5 127.1>nul
start test.vbs
goto ag



实现vbs在全屏电影中显示在屏幕最前方也行。

Last edited by sea1112 on 2008-11-5 at 12:32 ]

作者: HAT     时间: 2008-11-5 10:50
“字幕功能的提示”长啥模样?能给个例子看看不?

作者: sea1112     时间: 2008-11-5 11:31
就象用专业软件看超高清电影的时后,电影是全图象的,什么水印都没用那种,中文字幕是插进去的,会是图象的最前,字体大小还可以设置的。

一个HDTV电影就有8G-50左右都有

Last edited by sea1112 on 2008-11-5 at 11:39 ]
附件 1: 未命名.jpg (2008-11-5 11:31, 18.93 KiB)



作者: yishanju     时间: 2008-11-5 11:38
完全不明白,你要干嘛

作者: sea1112     时间: 2008-11-5 11:42
晕死,字幕你知是什么不?
我要学习字幕原理,P处理输出字幕。
应用于:计划提示、软件提示、帮助提示等等。
附件 1: look.JPG.jpg (2008-11-5 11:42, 13.96 KiB)



作者: yishanju     时间: 2008-11-5 11:45
经常H片,看多了之后是不需要字幕的^_^

作者: yishanju     时间: 2008-11-5 11:46
MS 要批处理实现你要的这些功能是比较难滴

作者: tireless     时间: 2008-11-5 12:02
我的理解是,用批处理来显示文字,是这个意思吗?

Last edited by tireless on 2008-11-5 at 12:24 ]

作者: radem     时间: 2008-11-5 12:11
首先我想播放器必须支持命令行才行

作者: yishanju     时间: 2008-11-5 12:16
如果楼主用的是暴风影音的话

七、命令行也玩暴风影音

你是否知道在命令行下面也能完成暴风影音的功能,比如打开D:\1.rmvb文件,方法是运行“CMD”命令打开命令行模式,接下来进入到mplayerc.exe所在目录,运行“mplayerc.exe D:\1.rmvb /play”即可。其格式为“mplayerc.exe 文件路径 参数”,下面例举几个最为常用的命令行参数:

/sub "字幕文件" 载入一个附加的字幕
/cd 播放CD或(S)VCD 的全部音轨
/open 打开文件, 但不自动开始播放
/shutdown 成后关闭操作系统
/fullscreen 以全屏模式启动
/regvid 注册视频格式
/regaud 注册音频格式
/unregvid 视频格式
/unregaud 解除注册音频格式
/start ms 开始播放于 "ms" (= 毫秒) 处

作者: sea1112     时间: 2008-11-5 12:21
Originally posted by tireless at 2008-11-5 12:02 PM:
我的理解是,用批处理来显示字母,是这个意思吗?


就是这个意思,我要做提示用的。不是改人家的软件

要求:文字是屏幕的最前方的,这样全屏电影出提示就没问题了。

Last edited by sea1112 on 2008-11-5 at 12:23 ]

作者: yishanju     时间: 2008-11-5 12:23
Kmplayer实用技巧介绍

 技巧一:播放歌曲时同步显示动态歌词

  我们知道,在Windows Media Player或Winamp、Foobar2000中通过某些设置可以在播放歌曲时同步显示动态歌词。那么,在Kmplayer中应该如何来显示动态歌词呢?

  首先,你需要准备好相应歌曲的字幕文件,可以手工制作,或者从http://music.liuxuan.com/下载,下载时需要注册一个账户,另外应该选择SMI格式的字幕文件下载,将下载回来的字幕文件重新命名(与歌曲名称一致)并存储在歌曲文件的同一路径下,这样才能让Kmplayer播放歌曲时自动调用字幕文件。

  不过,默认设置下Kmplayer并不会自动显示动态歌词,我们必须从右键菜单的“字幕”菜单下选择“显示字幕”,然后选择“载入字幕文件”,找到下载回来的SMI文件载入即可。

  技巧二:自制卡拉OK效果

  卡拉OK效果在Kmplayer中很容易实现,你只需要在播放歌曲前选择“音频→特效→去除人声”,然后就只能听到背景声和伴奏声了,如果选择了“去除背景声”则可以实现清唱效果,如果再配合动态歌词显示,那么就更完美了。如果发现设置完成后没有效果,请检查是否同时选中了“音频→忽略所有设置”,如是的话请去除该选项。

  如果你对于某些歌词需要反复练习,可以按下“Shift+F11”组合键调慢播放速度,或者按下最右侧的“A→B”按钮对相应的段落反复练习,待掌握这些歌词的唱法后再关闭循环功能。

  技巧三:播放结束后自动关机

  在下班或睡觉之前,何不让Kmplayer播放自己喜爱的音乐,播放结束后自动关机?我们可以在“开始→运行”对话框键入如下命令:

  kmplayer.exe "file(drive)name" /shutdown

  这里的“file(drive)name”指加载的文件或文件夹,可以使用通配符“*、?”,建议事先通过右键菜单中的“播放列表”创建一个播放列表文件,如图所示,注意检查文件路径是否正确,这里的“/shutdown”参数可以在播放完毕后自动关机,如果只是希望自动关闭程序,可以改用“/close”参数。

作者: sea1112     时间: 2008-11-5 12:24
都说不是改人家的软件了,这是P处理啊

作者: yishanju     时间: 2008-11-5 12:29
关键的是:
你没说明白你要干嘛
你自己说不清楚的东西我们怎么可能理解

作者: tireless     时间: 2008-11-5 12:40
在屏幕上显示文字的命令行工具:

Comandiux
http://comandiux.scot.sk/

irTools: OSD - On Screen Display
http://www.dimin.net/software/utils.html

作者: yishanju     时间: 2008-11-5 12:42
楼上真是强大

作者: sea1112     时间: 2008-11-5 12:52
Originally posted by tireless at 2008-11-5 12:40 PM:
在屏幕上显示文字的命令行工具:

Comandiux
http://comandiux.scot.sk/

irTools: OSD - On Screen Display
http://www.dimin.net/software/utils.html



C:\>cax.exe /?
This program must be run under Win32
不能用啊

作者: tireless     时间: 2008-11-5 13:20    标题: Re 17 楼
晕,Comandiux 的官网出问题了,下载的文件有问题。到这里下载:

http://download.pchome.net/system/sysenhance/download-75182.html

Last edited by tireless on 2008-11-5 at 13:27 ]

作者: yishanju     时间: 2008-11-5 13:24
Comandiux: a command line Angeliux ?treeumph Y2k7.

On command line type command and its parameters eg: /wnc Notepad "Untitled - Notepad"

General purpose:
/??? - ask, next parameter is text followed by another commands, if answer is NO, program ends
/BEEP - PC speaker beep
/BEPL - play windows default beep
/WAPL - play wav file
/MVOLUME:0-65535 - set master volume (mixer 0) {use "/MVOLUME:R-10000" do decrease by 10000}
/MVOLUME1:0-65535 - set master volume on mixer 1
/MVOLUME2:0-65535 - set master volume on mixer 2
/MVOLUME3:0-65535 - set master volume on mixer 3
/MVOLUME4:0-65535 - set master volume on mixer 4
/MIXERS - list Mixer devices, volume and name
/SAVER - Run Screen saver
/ENSAVER - Enable Screen saver
/DISSAVER - Disable Screen saver
/SHOWDESK - Show Desktop
/RESTDESK - Restore desktop windows

/NMLO - Set Num Lock On (only on WinNT / Win2k / XP)
/NOW file text - Write date, time and text to file ("-" - means no text)

/MOFF! - Turn Monitor OFF. Use Carefully!
/MON! - Turn Monitor ON

/HOTKEY AS:122 - Wait for hotkey ALT+SHIFT+F11 and continue with next parameter (Alt, Control, Shift, Win_key):Virtual_key_code
/UNTIL 22:30 - Wait until time specified in 24 hour format, continues by next parameter
/VWAIT:120 text - Show Wait window with text, next command follows
/WAIT:5 - Wait 5 seconds, unvisible
/CYCLE:20 - repeat action from next parameter, timeout Seconds/10
not working with file operations (copy, delete, move, run, execute)
/REPEAT:2 - repeat commands from parameter 2 on command line (/vwait:4 par1 /vwait:6 par4 /repeat:3 - repeat commands from /vwait:6 including)
use Cax.exe /winclose ".Comandiux*" to stop this loop

/MEMFREE:10 - free 10% or RAM
/.MANIFEST - create Comandiux .Manifest file for Windows XP
/REGISTEREXE - register Comandiux program in registry path
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\App Paths\Cax.exe
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Cax.exe


Services / drivers
/SVC~I - install Comandiux service, manual start
/SVC~IA - install Comandiux service, automatic start
/SVC~R - run as service
/SVC~U - uninstall Comandiux service
/SVC~NAME:name - service name to install/uninstall
/SVC~DISP:name - service display name to install/uninstall
/SVC~PARAM - parameters used to start service (all strings after this parameter are parsed as service parameters)
/SVC~I /SVC~NAME:MyService /SVC~DISP:"My first service" /SVC~PARAM /rumw program.exe parameter_one parameter_two
/SVC~U /SVC~NAME:MyService
in registry \\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MyService, you can change other service parameters

/SVCLIST - list all known services and drivers
/SVCSVCLIST - list all services
/SVCDRVLIST - list all drivers
/SVCSTOP name - stop service
/SVCSTART name - start service


Devices
/DEVLIST - list all installed devices on machine
/DEVEJIN - Eject device by InstanceID
/DEVEJDN - Eject by DeviceName
/DEVEJDI - Eject by DeviceID
/DEVEJDP - Eject by DeviceParent
/DEVDSIN - Disable device by InstanceID
/DEVDSDN - Disable by DeviceName
/DEVDSDI - Disable by DeviceID
/DEVDSDP - Disable by DeviceParent
/DEVENIN - Enable device by InstanceID
/DEVENDN - Enable by DeviceName
/DEVENDI - Enable by DeviceID
/DEVENDP - Enable by DeviceParent


Windows / machine controlling:
/DARD - Disconnect this remote session, with ask
/DRD - Disconnect this remote session
/DWH - Hibernate computer
/DAWH - Hibernate with ask
/DWC - Close Windows, Power off
/DAWC - Close windows with ask, Power off
/LOCKW - Lock Workstation
/DWL - Log off
/DAWL - Log off with ask
/DFL - Force Log Off
/DAFL - Force Log Off with ask
/DWR - Reboot computer
/DAWR - Reboot computer with ask
/DFR - Force reboot
/DAFR - Force reboot with ask
/DWS - Suspend computer
/DAWS - Suspend with ask
/DWNP - ShutDown, No Power Off
/DHFS - ShutDown Force If Hung, Power off
/DAHFS - ShutDown Force If Hung with Ask, Power off
/DAFS - Force ShutDown with ask, Power off
/DFS - Force ShutDown, Power off
/DESR - Emergency force reboot, no ask!
/DESS - Emergency force ShutDown, Power off, no ask!
/SHUTDOWNINIT - initiate system shutdown: /shutdowninit machine timeout message forceY/N rebootY/N
/shutdowninit SERVER 230 "SERVER will reboot in 230 seconds" N Y
/SHUTDOWNABORT - abort system shutdown: /shutdownabort machine ("-" means local machine)


Message boxes (result are returned as errorlevel, refer to MSDN MessageBox function):
/MSG - Messagebox "OK"
/MSC - Messagebox "OK Cancel"
/MSR - Messagebox "Abort Retry Ignore"
/MSN - Messagebox "Yes No Cancel"
/MSY - Messagebox "Yes No"
/MSRC - Messagebox "Retry Cancel"
/MSIG - Messagebox "OK", Comandiux continues with next parameter, otherwise ends
/MSIC - Messagebox "OK Cancel", if "OK" Comandiux continues with next parameter, otherwise ends
/MSIY - Messagebox "Yes No", if "YES" Comandiux continues with next parameter, otherwise ends
(IDOK 1, IDCANCEL 2, IDABORT 3, IDRETRY 4, IDIGNORE 5, IDYES 6, IDNO 7, IDCLOSE 8, IDHELP 9, IDTRYAGAIN 10, IDCONTINUE 11)

Message window:
/MSWT - Show text in message window
/MSWC - Close message window
/MSWU - Add text to message window
/TELL 20 text - Shows small window in screen center for seconds/10
/TELT - same as above plus show countdown

On Screen display OSD:
/OSDTEXT 50 text - Shows lime osd text bottom on screen (timeout seconds/10 ), 0 means wait forever, /osdtext 100 "Lime Message"
/OSDRTF 50 Rich - shows Rich formated text, /osdrtf 100 "{\rtf1\ansi\deff0{\fonttbl{\f0\fprq2 Verdana;}}{\colortbl ;\red0\green255\blue0;}{\uc1\pard\qc\cf1\b\f0\fs72 TEXT to SHOW \cf0\b0\par}"
/OSDFILE 50 file - shows text or rtf file content as OSD message, when create RTF, align to center
/OSDTOP 20 - Top position of OSD, 5-32000
/OSDRECYCLE - reuse OSD window, must be specified before any other /OSD... "/OSDRECYCLE /osdtext 10 %!clock!% /repeat:2"
/CLASSCLOSE ~treeumphOSD - remove OSD manually

Aplication / windows:
/CAXLIST - list all running copies of Comandiux with their command lines
/WNC - Close window (class name or "-") {window name or "-"} or use #000234 (#$004ab for hexa) as window hadle number, window name as "-" must be in this case
/WNT - Destroy window (class name or "-") {window name or "-"} or number #...
/WNH - Hide window ...
/WNS - Show window ...
/WND - Disable window ...
/WNE - Enable window ...
/WNM - Minimize window ...
/WNX - Maximize window ...
/WNR - Restore window ...
/WNN - Show window normal ...
/WNZT - Set window topmost (stay on top) ...
/WNZN - Set window not topmost ...
/WNZA - Activate window (bring to front, set focus) ...
/WNZB - Send window to back (bottom) ...
/WINLIST - show applications windows, (Unicode Enabled disabled Visible hidden mInimized Maximized Parent child)
/WINLISTA - show applications windows including windows without caption / text
/WINPRIO1-6 - set process by window priority /winprio3 Calculator (1-6 = idle, below, normal abowe, high, realtime){2,4 only on win2k, XP}
/WINTRANSP - set window transparency (0=transparent, 255 = opaque) /wintransp 180 Calc*
/WINTRCL - set window color transparent (colorvalue, prefix $0 means HEX) /wintransp $0c0c0c0 Calculator
/WINCLOSE - close all windows title matches parameter /winclose "Untitled - Notepad"
/WINDESTROY - destroy all windows title matches parameter /windestroy Untitle*
/CLASSPRIO1-6 - set process by window priority /classprio3 SciCalc (1-6 = idle, below, normal abowe, high, realtime){2,4 only on win2k, XP}
/CLASSTRANSP - set window transparency by class name (0=transparent, 255 = opaque) /classtransp 255 SciCalc
/CLASSTRCL - set window color transparent by class (colorvalue, prefix $0 means HEX) /wintransp $0c0c0c0 SciCalc
/CLASSCLOSE - close all windows class matches parameter /classclose *pad
/CLASSDESTROY - close all windows class matches parameter /classdestroy winh*
/WINMSGSEND - Send message to window and shows result(WindowName, Message, Wparam, Lparam) /WinMsgSend Calculator 16 0 0
/WINMSGPOST - Post message to window (WindowName, Message, Wparam, Lparam) /WinMsgPost Calculator 16 0 0
/CLASSMSGSEND - Send message to window and shows result(WindowClass, Message, Wparam, Lparam) /ClassMsgSend SciCalc 16 0 0
/CLASSMSGPOST - Post message to window (WindowClass, Message, Wparam, Lparam) /ClassMsgPost SciCalc 16 0 0


Program / process:
/RUN - Run apl normal
/RUM - Run apl minimized
/RUH - Run apl hidden
/RUX - Run apl maximized
/RU?W - run as previous, but wait for program ends (/runw, /rumw, ...)
/VERB: - verb for ShellExecute, specify before "/RUN", (cax.exe /verb:print /run "c:\myfile.txt"), default is 'OPEN'
/PRIO:1-6 - adjust process priority for ShellExecute (/prio:3 /run calc.exe)
/ASUSER - run as an user, (specify: user_name domain password program) eg.: (cax.exe /asuser peter - - notepad.exe c:\logfile.txt), Comandiux ends after and returns Errorlevel value
/PRCLIST - show all running processes
/PRCMODLIST - show all running processes and their modules
/PRCSCAN - scan for all processes
/PRCPRIO1-6 - set process priority /prcprio3 calc.exe (1-6 = idle, below, normal abowe, high, realtime){2,4 only on win2k, XP}
/KILLPRC file - kill first process matches parameter /killprc notepad.exe
/KILLALL - kill all processes matches parameter /killall winh*
/KILLLAST - kill last process matches parameter /killlast *pad
/KILLID id - kill by process ID /killid 00f3
/KILLUSER name - kill all processes by user name /killuser Administ*


File, disk:
/PROP - Display properties of object
/DDEL - Delete file or dir (to Recycle Bin)
/DEL - Delete file or dir with ask (to Recycle Bin)
/REM - Remove file or dir with ask
/DREM - Remove file or dir
/CPY - Copy file or directory, (/CPY source target)
/CPA - Copy with ask
/CPD - Copy directly (no ask for overwrite, etc..)
/CPH - Copy hidden
/MVE - Move file or directory
/MVA - Move with ask
/MVD - Move directly (no ask for overwrite, etc..)
/MVH - Move hidden
/RNM - Rename file or directory
/RNA - Rename with ask
/RND - Rename directly (no ask for overwrite, etc..)
/RNH - Rename hidden
/NETA - Add network connection eg.: \\server\disk1 s:
/NETD - Delete network connection s:
/REPLACE - Replace file on next reboot, user must be in an administrator's group (/REPLACE sourcefile new_name)
/HARDLINK - Creates hard link, both files must be on same drive (/HARDLINK new_file_name existing_file)
/DSKEJ:x - Eject drive X:
/DSKFEJ:x - Force Eject drive X:
/DSKCL:y - Close drive Y:
/DSKFCL:y - Force Close drive Y:
/DSKLCK:s - lock removal of drive S:
/DSKUNL:s - unlock removal of drive S:
/WAITDIRC - wait for directory change
/WAITDIRSC - wait for directory and subdirs change
/DRVLIST - List all drives in system, with network user name
/GETNETUSER - get user name for network resource (\\192.168.0.1\ipc$, \\computer\share)
/MD5FILE - calculate MD5 hash and write output to .md5 file (cax.exe /MD5FILE file.iso )
/SHA1FILE - calculate SHA1 hash and write output to .sha1 file (cax.exe /SHA1FILE file.iso )

/FILEOF_NOSECATTR - for copy, move or rename operation add flag: FOF_NOCOPYSECURITYATTRIBS
/FILEOF_NOCONELEM - for copy, move or rename operation add flag: FOF_NO_CONNECTED_ELEMENTS
/FILEOF_NORECURSION - for copy, move or rename operation add flag: FOF_NORECURSION
/FILEOF_FILESONLY - for copy, move or rename operation add flag: FOF_FILESONLY


********************************************************************************
Variables, use on command line, Windows variables works also

%!TICK!% - decimal value from gettickcount
%!HTICK!% - hexadecimal value from gettickcount
%!CLOCK!% - time HH:MM:SS
%!TIME!% - time HH-MM-SS
%!T100!% - time with 1/100 of second
%!HOUR!% - hour
%!MIN!% - minute
%!SEC!% - seconds
%!DATE!% - date YYYY-MM-DD
%!YEAR!% - year
%!MON!% - month
%!DAY!% - day
%!DAYN!% - name of day
%!MONN!% - name of month
%!FMEM!% - free memory in MB
%!UNAME!% - user name
%!CNAME!% - computer name
%!IPADS!% - IP adresses
%!CDRIVE!% - current drive
%!CDIR!% - current drive and directory
%!SDRIVE!% - starting drive of Comandiux
%!SDIR!% - starting drive and directory of Comandiux
%!FILE:fname!% - first line from file "fname" (cax.exe /msg "%!file:D:\temp\My text file.txt!%")

********************************************************************************
/VERBOSEN - don't display any error
/VERBOSE0 - normal level of error reports (default)
/VERBOSE1 - show error reports

"-" means Empty parameter in some case
"\n" new line (CRLF)
"\t" TAB

use > or >> to redirect some outputs to file, >! and >>! writes time stamp to file
cax.exe /devlist ^>c:\cax_device_dump.txt
Escape character "^" must be used in CMD window or batch files, otherwise not.
For append use "^>^>"!


remove Hacker Defender service: "cax.exe /svc~u /svc~name:HackerDefender100"
close all copies of Comandiux: "cax.exe /CLASSCLOSE .!Comandiux~main~window"

HWND_BROADCAST = $FFFF

*******************************************************************************
Key combinations in main window

- show messages
- find in help window (type text to command line)
- find next


Any comment / question? Contact author!
Email: Comandiux@scot.sk
Comandiux home: http://comandiux.scot.sk
For gui version visit Angeliux home: http://angeliux.scot.sk

Some features are not working on 9x architecture.

Warning! We are not guarantee any damage caused this program!

作者: yishanju     时间: 2008-11-5 13:35
改成用MSG 可以不需要VBS了
go.bat 内容
go.bat 内容
@echo off


:ag
ping -n 5 127.1>nul
start msg %username% 我弹
goto ag