搜索 社区服务 统计排行 帮助
  • 1732阅读
  • 20回复

[求助]加入图片当作字幕

楼层直达
级别: 新手上路
注册时间:
2004-05-24
在线时间:
0小时
发帖:
94
SSA的字幕可不可以加入图片当作字幕?SSA不是规定了有图片(Picture)事件吗,那如果可以的话,具体要怎么做?
级别: 新手上路
注册时间:
2004-05-24
在线时间:
0小时
发帖:
94
只看该作者 20楼 发表于: 2004-07-21
老天……看得一阵头昏
开始后悔问了这个让人头大的问题
让各位大人操心了……
级别: 工作组
注册时间:
2003-08-26
在线时间:
13小时
发帖:
6600
只看该作者 19楼 发表于: 2004-07-16
  1. {ssa的UUE专用编码器,请使用virtual pascal 2.1编译。
  2. 这个程序没有对文件长度进行判断……麻烦谁修改一下……
  3. CopyRight (-_-) 2004 MeteorRain, MISL, release under GNU}
  4. program ssa_uue_encode_tool;
  5. uses sysutils;
  6. type
  7. foc = file of char;
  8. var
  9. inf:foc;
  10. ouf:text;
  11. infn,oufn:string;
  12. data0:string[3];
  13. data:array[0..3] of byte absolute data0;
  14. edata0:string[4];
  15. edata:array[0..4] of byte absolute edata0;
  16. szbuffer:string[80];
  17. procedure read2(var f:foc; var ch1:char; var ch2:char; var ch3:char);
  18. begin
  19. if not eof(f) then read(f, ch1) else ch1 := #0;
  20. if not eof(f) then read(f, ch2) else ch2 := #0;
  21. if not eof(f) then read(f, ch3) else ch3 := #0;
  22. end;
  23. begin
  24. write('Infile:');
  25. readln(infn);
  26. if not fileexists(infn) then begin
  27. writeln('File not found');
  28. halt(-1);
  29. end;
  30. {write('Outfile:');
  31. readln(oufn);}
  32. oufn := infn + '.txt';
  33. assign(inf, infn);
  34. assign(ouf, oufn);
  35. reset(inf);
  36. rewrite(ouf);
  37. szbuffer := '';
  38. while not eof(inf) do begin
  39. data0 := #0#0#0;
  40. edata0 := #0#0#0#0;
  41. read2(inf, data0[1], data0[2], data0[3]);
  42. edata[1] := data[1] shr 2 + 33;
  43. edata[2] := data[1] shl 4 and 63 + data[2] shr 4 + 33;
  44. edata[3] := data[2] shl 2 and 63 + data[3] shr 6 + 33;
  45. edata[4] := data[3] and 63 + 33;
  46. szbuffer := szbuffer + edata0;
  47. if szbuffer[0] >= #80 then begin
  48. writeln(ouf, szbuffer);
  49. szbuffer := '';
  50. end;
  51. end;
  52. if szbuffer[0] > #0 then
  53. writeln(ouf, szbuffer);
  54. close(inf);
  55. close(ouf);
  56. writeln('Output OK');
  57. end.

催片请点此处: http://bbs.popgo.org/bbs/read.php?tid=502402&displayMode=1#19103164
级别: 工作组
注册时间:
2003-08-26
在线时间:
13小时
发帖:
6600
只看该作者 18楼 发表于: 2004-07-16
引用
最初由 Siki 发布
刚刚加载了一下...没看到效果 >_<
正常……因为我的程序有一点点问题……放出v2……
但是挂进ssa还是不能显示……我怀疑vobsub自己有问题。谁去研究一下vobsub的source code……

催片请点此处: http://bbs.popgo.org/bbs/read.php?tid=502402&displayMode=1#19103164
级别: 新手上路
注册时间:
2004-01-29
在线时间:
0小时
发帖:
169
只看该作者 17楼 发表于: 2004-07-16
引用
最初由 kiliga 发布
用PR不是也可能实现吗……


现在不是在炫耀谁会的东西多, 是在研究SSA的图片的加载...
在研究...懂么....


PS:刚刚加载了一下...没看到效果 >_<
级别: 侠客
注册时间:
2002-12-02
在线时间:
0小时
发帖:
431
只看该作者 16楼 发表于: 2004-07-16
用PR不是也可能实现吗……
级别: 工作组
注册时间:
2003-08-26
在线时间:
13小时
发帖:
6600
只看该作者 15楼 发表于: 2004-07-15
引用
最初由 wangh 发布
在ass-specs文档中

这个UUE编码到是明白了,不过还是不知道该怎么用和用在哪里啊……
已经有点头绪了。我来试试看……

催片请点此处: http://bbs.popgo.org/bbs/read.php?tid=502402&displayMode=1#19103164
级别: 新手上路
注册时间:
2004-01-29
在线时间:
0小时
发帖:
169
只看该作者 14楼 发表于: 2004-07-15
曾经试图用 SSA的那个制作软件来实现 PICTURE
结果做出来的东西, VOBSUB不能识别 >_<

晕~~~~
级别: 新手上路
注册时间:
2001-11-21
在线时间:
0小时
发帖:
264
只看该作者 13楼 发表于: 2004-07-15
在ass-specs文档中

这个UUE编码到是明白了,不过还是不知道该怎么用和用在哪里啊……

级别: 新手上路
注册时间:
2004-01-29
在线时间:
0小时
发帖:
169
只看该作者 12楼 发表于: 2004-07-15
引用
最初由 kiasushou 发布
vobsub的帮助文件就有


>_< 没看到~~~~~
级别: 版主
注册时间:
2002-04-23
在线时间:
3小时
发帖:
7693
只看该作者 11楼 发表于: 2004-07-15
vobsub的帮助文件就有

身份 :我是坏人:D
目标 :收齐高达系列:p
请多多支持ftp区啊(顺便edonkey, mirc吧)

偶的业余嗜好:


暴走模式->
级别: 新手上路
注册时间:
2004-01-29
在线时间:
0小时
发帖:
169
只看该作者 10楼 发表于: 2004-07-15
引用
最初由 MeteorRain 发布
Appendix B: embedded font/picture encoding

SSA’s font and picture file embeddeding is a form of UUEncoding.

It takes a binary file, three bytes at a time, and converts the 24bits of those bytes into four 6-bit numbers. 33 is added to each of these four numbers, and the corresponding ascii character for each number is written into the script file.

The offset of 33 means that lower-case characters cannot appear in the encoded output, and this is why the “filename” lines are always lower case.

Each line of an encoded file is 80 characters long, except the last one, which may be shorter.

If the length of the file being encoded is not an exact multiple of 3, then for odd-number filelengths, the last byte is multiplied by hexadecimal 100, and the most significant 12 bits are converted to two characters as above. For even-number filelengths, the last two bytes are multiplied by hexadecimal 10000, and the most significant 18 bits are converted to three characters as above.

There is no terminating code for the embedded files. If a new [section] starts in the script, or if another filename line is found, or the end of the script file is reached then the file is considered complete.
应该是要求UUE编码





问一下这个资料是在什么地方找到的, 我想看看全文~~~
级别: 新手上路
注册时间:
2003-11-16
在线时间:
0小时
发帖:
427
只看该作者 9楼 发表于: 2004-07-15
全E文,看不懂。
级别: 新手上路
注册时间:
2002-12-13
在线时间:
0小时
发帖:
291
只看该作者 8楼 发表于: 2004-07-15
其实用AE加入图片是最简单了
并且可以使用KEYING抠像,ADJUSTMENT等辅助图片特效
级别: 工作组
注册时间:
2003-08-26
在线时间:
13小时
发帖:
6600
只看该作者 7楼 发表于: 2004-07-15
Appendix B: embedded font/picture encoding

SSA’s font and picture file embeddeding is a form of UUEncoding.

It takes a binary file, three bytes at a time, and converts the 24bits of those bytes into four 6-bit numbers. 33 is added to each of these four numbers, and the corresponding ascii character for each number is written into the script file.

The offset of 33 means that lower-case characters cannot appear in the encoded output, and this is why the “filename” lines are always lower case.

Each line of an encoded file is 80 characters long, except the last one, which may be shorter.

If the length of the file being encoded is not an exact multiple of 3, then for odd-number filelengths, the last byte is multiplied by hexadecimal 100, and the most significant 12 bits are converted to two characters as above. For even-number filelengths, the last two bytes are multiplied by hexadecimal 10000, and the most significant 18 bits are converted to three characters as above.

There is no terminating code for the embedded files. If a new [section] starts in the script, or if another filename line is found, or the end of the script file is reached then the file is considered complete.
应该是要求UUE编码

催片请点此处: http://bbs.popgo.org/bbs/read.php?tid=502402&displayMode=1#19103164
快速回复

限150 字节
上一个 下一个