Monthly Archive: July, 2014

Nginx 部署Comodo Positive SSL证书

生成2048位key

root@sg:/etc/nginx# openssl genrsa -out ssl2.me.key 2048
Generating RSA private key, 2048 bit long modulus
......+++
..................................................................................................................................+++
e is 65537 (0x10001)

生成SCR文件

root@sg:/etc/nginx# openssl req -new -key ssl2.me.key -out ssl2.me.csr
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:CN  (这里输入两位大写字母的国家代码 CN是中国)
State or Province Name (full name) [Some-State]:BJ (这里省份 可以填写简称,一般填写拼音)
Locality Name (eg, city) []:BJ  (这里是城市可以填写简称,一般填拼音)
Organization Name (eg, company) [Internet Widgits Pty Ltd]:ssl2 (组织或公司名)
Organizational Unit Name (eg, section) []: (不填写直接回车)
Common Name (eg, YOUR name) []:ssl2.me  (输入使用ssl的域名,一般不带www)
Email Address []:admin@ssl2.me (填写邮箱,有时候证书是发送到这个邮箱)
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:  (不填写直接回车)
An optional company name []:  (不填写直接回车)

Read more

FFmpeg 为视频添加水印

说起来这个功能确实是非常适用的,作为一名影视后期从业人员,我们经常需要输出输出输出,但是有些情况下我们只需要将成片输出一次就行,毕竟从软件里面输出是很耗费时间的一件事情,后续的东西我们完全可以在成片的基础上来操作,例如发送给客户的小样~

最近总是需要将视频压缩后发送给客户,况且不是成片所以需要添加水印,如果从新用软件再来输出一次非常耗时间,索性就折腾下FFmpeg这个水印添加功能~

"D:\Program Files\FFmpeg\bin\ffmpeg.exe" -y -i %1 -vcodec libx264 -vprofile high -preset slow -b:v 900k -maxrate 1200k -bufsize 1000k -vf scale=trunc(oh*a/2)*2:480 -threads 0 -acodec libvo_aacenc -b:a 128k %1.mp4

以上代码只是将视频输出为h.264的mp4格式。现在需要在原来的基础上为其添加水印~参考网络我们得到以下四种方式,分别是左上,右上,左下,右下。

  1. 旧版本使用vhook参数来实现添加水印功能,新版本一律使用-vf参数来实现且水印尺寸不能超过视频尺寸
  2. windows下如果使用C:\graphics\watermarklogo.png” 则必须修改为 “/graphics/watermarklogo.png”
  3. 使用该批处理则直接将水印放到需转换文件的目录即可
  4. 不能同时存在两个-vf参数,以上使用-vf scale=trunc(oh*a/2)*2:480来缩放尺寸则需要改为-s 854x480

Read more

DVD菜单制作软件 DVD Architect Studio

DVD Architect Studio是一个应用广泛功能强大的专业DVD制作软件,号称DVD建筑师,程序可以通过导入杜比数字AC-3文件来帮助你制作高品质具备强大音场环绕效果的 DVD影片!

Professional-looking DVDs made easy

Now available on DVD/Blu-ray Disc™: your own captivating home movies, multimedia photo albums, and music compilations-complete with dazzling menus, special features, and custom soundtracks. With DVD Architect™ Studio software, you can swiftly create professional-looking DVDs, even stunning widescreen productions, on your home computer. Simply drag-and-drop to start building your next blockbuster.

DVD Architect Studio 5.0 Features

  1. Import audio, video, and stills from an extensive range of formats
  2. Easy to use menu-based and drag-and-drop interface for DVD design and authoring
  3. DVD movie creation
  4. Create picture slideshows and music compilations
  5. Still and motion menu creation
  6. NTSC and PAL in standard (4:3) and widescreen (16:9) formats
  7. Add, edit, and move chapter points
  8. Adjustable project and file optimization settings
  9. Virtual remote to preview the final project before burning to DVD
  10. View safe grid areas to ensure proper image and button placement
  11. Text editing and shadow effects
  12. Customizable themes
  13. Get started right away and learn as you go with interactive Show Me How tutorials
  14. Supports a wide variety of DVD burners

Read more