惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

罗磊的独立博客
Cisco Talos Blog
Cisco Talos Blog
C
Check Point Blog
博客园_首页
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Martin Fowler
Martin Fowler
Recorded Future
Recorded Future
S
Security @ Cisco Blogs
L
LINUX DO - 最新话题
博客园 - 司徒正美
P
Privacy International News Feed
G
Google Developers Blog
I
Intezer
Hacker News - Newest:
Hacker News - Newest: "LLM"
博客园 - 聂微东
The GitHub Blog
The GitHub Blog
C
Cybersecurity and Infrastructure Security Agency CISA
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Scott Helme
Scott Helme
K
Kaspersky official blog
I
InfoQ
Y
Y Combinator Blog
T
The Blog of Author Tim Ferriss
Webroot Blog
Webroot Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
大猫的无限游戏
大猫的无限游戏
D
Docker
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
W
WeLiveSecurity
Microsoft Azure Blog
Microsoft Azure Blog
Spread Privacy
Spread Privacy
量子位
H
Hacker News: Front Page
Simon Willison's Weblog
Simon Willison's Weblog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
SecWiki News
SecWiki News
S
Security Affairs
Latest news
Latest news
人人都是产品经理
人人都是产品经理
C
CERT Recently Published Vulnerability Notes
S
Security Archives - TechRepublic
V
Visual Studio Blog
T
Troy Hunt's Blog
S
Secure Thoughts
F
Fortinet All Blogs
V
V2EX
The Register - Security
The Register - Security
J
Java Code Geeks
MongoDB | Blog
MongoDB | Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO

博客园 - 飞儿

要让IT收入比重越来越小 准备买房了? 想写一篇小说 如何做好测试建议清单 看新闻的时间用的太多了 robot经验整理及验证点的说明 robot取excel表格参数脚本 猪肉未来还是会涨的 回归IT 2008,又是新的一年 TD各版本的汉化插件下载 QTP基础代码(转) QTP参考代码框架 数据库连接(ROBOT) 大小写转换(ROBOT) 行走在消逝中 写的痛快 常用ROBOT函数详解 沉下来,沉下来,别让自己太浮躁
自动码流转换(ROBOT)
飞儿 · 2007-06-28 · via 博客园 - 飞儿

'$include "sqautil.sbh"
Sub Main
    Dim Result As Integer

    'Initially Recorded: 2007-1-10  15:09:53
    'Script Name: vod_autoadd
  
    dim  i as integer
    '数据池
    dim dp as Variant
    '文件长度
    dim file_name as string
    dim num_file as integer
    dim le_file as string
     '视频
    dim vod as string
    dim vod_if as string
    '音频
    dim auo as string
    dim auo_if as string
    '码率
    dim run as string
    dim run_string as string
    dim run_if as string
   
    dp=SQADatapoolOpen("ttytt1")
    '打开数据池,jsp为数据池的名称,这个数据池是预先按照上述规范做好的
    for i=1 to 10
    Call SQADatapoolFetch(dp)
   '+从数据池中读取记录
    Call SQADatapoolValue(dp,1,file_name)
    '取文件名长度
    num_file=len(file_name)
    '截取文件(去除前五位字符)
    le_file=right(file_name,num_file-5)
    '在截取文件的基础上,取前4位数
    vod_if=left(le_file,4)
    '用截取的字符串比较视频格式字符,并相应赋值
    if vod_if<>"h261"  then
      else
        vod="Text=H.261"
   end if
 
     if vod_if<>"h263"  then
      else
       vod="Text=H.263"
   end if
  
   if vod_if<>"h264"  then
      else
       vod="Text=H.263"
   end if
  
   if vod_if<>"mp2_"  then
      else
       vod="Text=MPEG-2"
   end if
  
  if vod_if<>"mp4_"  then
      else
      vod="Text=MPEG-4"
   end if
  
  
  ''进行码率的取值
  '进行截取尾端的两个字符串
  run_if=mid(file_name,num_file-1,2)
  '进行码率的判断
 
 
  If run_if<>"68"  Then
     '如果不等于68,则判断不是三位数,取最后的四位数为当前码率
       run=mid(file_name,num_file-3,4)
       run_string="Text="+run
 
       '28
       '截取字符串,从尾端的第8位开始截取4位字符串----取音频变量
        auo_if=mid(file_name,num_file-8,4)
     
       
        if auo_if<>"g728" then
       else
         auo="Text=G.728"
        end if
       
        if auo_if<>"7231" then
        else
         auo="Text=G.7231"
        end if
       
        if auo_if<>"_mp3" then
        else
        auo="Text=MP-3"
        end if
 
          if auo_if<>"alaw" then
        else
         auo="Text=G.711 ALAW"
        end if
       
        if auo_if<>"ulaw" then
        else
         auo="Text=G.711 ULAW"
        end if
       
       
        if auo_if<>"g729" then
        else
         auo="Text=G.729"
        end if
       
    
      
  else
   
       run=mid(file_name,num_file-2,3)
       run_string="Text="+run
      '29 
      '截取字符串,从尾端的第7位开始截取消2位字符串
       auo_if=mid(file_name,num_file-7,4)
       'pas=29
       if auo_if<>"g728" then
       else
         auo="Text=G.728"
        end if
       
        if auo_if<>"7231" then
        else
         auo="Text=G.7231"
        end if
       
       
        if auo_if<>"_mp3" then
        else
        auo="Text=MP-3"
        end if
 
          if auo_if<>"alaw" then
        else
         auo="Text=G.711 ALAW"
        end if
       
        if auo_if<>"ulaw" then
        else
         auo="Text=G.711 ULAW"
        end if
       
       
        if auo_if<>"g729" then
        else
         auo="Text=G.729"
        end if
       
 
  end if
 
  '进行音频的取值
 
 
 
   
    Window SetContext, "Caption=视频点播系统 - Microsoft Internet Explorer", ""
    GenericObject Click, "Class=AfxWnd;ClassIndex=2", "Coords=41,210"
    PushButton Click, "Text= 添 加"
    PopupMenuIDSelect 1125
   
    Window SetContext, "Caption=Vcd transform", ""
    PushButton Click, "ObjectIndex=4"
   
    Window SetContext, "Caption=另存为", ""
    EditBox Left_Drag, "Label=文件名(N):", "Coords=6,5,-30,5"
    InputKeys file_name
    PushButton Click, "Text=保存(S)"
   
    Window SetContext, "Caption=Vcd transform", ""
    ComboBox Click, "ObjectIndex=3", "Coords=82,7"
    ComboListBox Click, "ObjectIndex=3", vod
   
    ComboBox Click, "ObjectIndex=4", "Coords=82,11"
   
    ComboListBox Click, "ObjectIndex=4", auo
    ComboBox Click, "ObjectIndex=1", "Coords=61,8"
    ComboListBox VScrollTo, "ObjectIndex=1", "Position=5"
  
    ComboListBox Click, "ObjectIndex=1", run_string
    PushButton Click, "Text=确 定"
   
    Window SetContext, "Caption=视频点播系统 - Microsoft Internet Explorer", ""
    PushButton Click, "Text=开始"
    PushButton Click, "Text=停止"
    PushButton Click, "ObjectIndex=48"
   
   
 
    '延时八分钟
    delayfor 5000
    next i
   
  
   
    End Sub