TCAX 字幕特效制作工具官方论坛 | ASS | TCAS | Python | Aegisub | Lua

 找回密码
 新人加入
查看: 3382|回复: 5
打印 上一主题 下一主题

[已解决] 预览avs出错! [复制链接]

正式会员

爱理人士

Rank: 4

跳转到指定楼层
楼主
发表于 2011-10-15 18:00:06 |只看该作者 |倒序浏览
tcax.jpg



LoadPlugin("G:\tcax\tcasFilter.dll")  # 路径请自行设置
LoadPlugin("G:\tcax\VSFilter.dll")  # 路径请自行设置

v = DirectShowSource("op.mp4", convertfps=true)
v1 = v.ChangeFPS(23.976)
v2 = BlankClip(length=10, width=1280, height=720, fps=23.976, pixel_type="YV12", color=$000000, audio_rate=48000, channels=2)
v3 = v2 + v1
v4 = v3.tcasSub("working_II_op.tcas").TextSub("working_II_op.ass").tcasSub("working_II_op_cn.tcas").TextSub("working_II_op_cn.ass")

return v4

Administrator

TCAX Dev.

Rank: 7Rank: 7Rank: 7

沙发
发表于 2011-10-15 18:32:57 |只看该作者
出错提示信息说是音频频道数不匹配, 你看下op.mp4的媒体信息吧.

I:\RIXE\examples\FXs\Working\OP\op.mp4
   General
      Complete name : I:\RIXE\examples\FXs\Working\OP\op.mp4
      Format : MPEG-4
      Format profile : Base Media
      Codec ID : isom
      File size : 21.9 MiB
      Duration : 1mn 30s
      Overall bit rate : 2 037 Kbps
      Encoded date : UTC 2011-10-06 06:04:44
      Tagged date : UTC 2011-10-06 06:04:44
   Video #1
      ID : 1
      Format : AVC
      Format/Info : Advanced Video Codec
      Format profile : High@L3.1
      Format settings, CABAC : Yes
      Format settings, ReFrames : 4 frames
      Codec ID : avc1
      Codec ID/Info : Advanced Video Coding
      Duration : 1mn 30s
      Bit rate mode : Variable
      Bit rate : 1 870 Kbps
      Maximum bit rate : 4 262 Kbps
      Width : 1 280 pixels
      Height : 720 pixels
      Display aspect ratio : 16:9
      Frame rate mode : Constant
      Frame rate : 23.976 fps
      Resolution : 8 bits
      Colorimetry : 4:2:0
      Scan type : Progressive
      Bits/(Pixel*Frame) : 0.085
      Stream size : 20.1 MiB (92%)
      Writing library : x264 core 116 r2074 2641b9e
      Encoding settings : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x113 / me=tesa / subme=10 / psy=1 / psy_rd=0.00:0.00 / mixed_ref=1 / me_range=64 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=0 / threads=6 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=8 / b_pyramid=1 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=250 / rc=crf / mbtree=1 / crf=20.0 / qcomp=0.50 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=2:1.00
      Encoded date : UTC 2011-10-06 05:52:27
      Tagged date : UTC 2011-10-06 06:04:44
   Audio #2
      ID : 2
      Format : AAC
      Format/Info : Advanced Audio Codec
      Format version : Version 4
      Format profile : LC
      Format settings, SBR : No
      Codec ID : 40
      Duration : 1mn 30s
      Bit rate mode : Variable
      Bit rate : 164 Kbps
      Maximum bit rate : 179 Kbps
      Channel(s) : 2 channels
      Channel positions : L R
      Sampling rate : 48.0 KHz
      Resolution : 16 bits
      Stream size : 1.76 MiB (8%)
      Encoded date : UTC 2011-10-06 06:04:44
      Tagged date : UTC 2011-10-06 06:04:44

我这边预览正常的, 莫非是Avisynth版本问题? (我用的是2.5.8)


正式会员

爱理人士

Rank: 4

板凳
发表于 2011-10-15 19:31:40 |只看该作者
我的貌似是2.5的

正式会员

爱理人士

Rank: 4

地板
发表于 2011-10-15 19:34:27 |只看该作者
貌似出错的是v3 = v2 + v1这行?


未命名12.jpg

Administrator

TCAX Dev.

Rank: 7Rank: 7Rank: 7

5#
发表于 2011-10-15 20:11:15 |只看该作者
5231251 发表于 2011-10-15 19:34
貌似出错的是v3 = v2 + v1这行?

恩, 如果两个clip的格式有不一致的地方就无法相加...

如果是版本不对的话, http://www.tcax.org/forum.php?mo ... id=11&fromuid=2

Rank: 5Rank: 5

6#
发表于 2011-11-17 16:10:24 |只看该作者
我的是Video don't match.....怎么回事啊。。。
您需要登录后才可以回帖 登录 | 新人加入

GitHub|TCAX 主页

GMT+8, 2024-4-25 19:59

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部
RealH