Wednesday, January 18, 2006


CyberLink for Perl : I have released the latest version, v1.1.3. I add a option to the sample script for DLNA and Vodcast, dms2vodcast.pl that can convert from MPEG2 movies of DLNA media servers to MPEG4 and the RSS file for Vodcast, to specify only your favorite movies. The changes are bellow.
* Changed postcontrol() in Net::UPnP::Service to create 
the absolute control url normally using the url base and the relative control url.
* Added '--search-title' option to selet the taget contents by
the regular expression.
Using the sample script, I can convert only my favorite broadcast movies such as business news automatically every night, check out the MPEG4 movies from my Cocoon to my IPod using the RSS file and iTunes such as the following cron :-)
$ dms2vodcast.pl --help
Usage : dms2vodcast.pl [options...] <output RSS file name>
Options :
-b/--base-url <url> Set the base url in the item link property of the output RSS file
-B/--base-directory <url> Set the base directory to output the RSS file and the MPEG4 files
-d/--rss-description <description> Set the description tag in the output RSS file
-g/--rss-language <language> Set the language tag in the output RSS file
-h/--help This is help text.
-l/--rss-link <link> Set the link tag in the output RSS file
-r/--requested-count <url> Set the max request count to the media server contents
-t/--rss-title <file> Set the title tag in the output RSS file
-f/--mp4-format <ipod | psp> Set the MPEG4 format
-s/--search-title <regular expression> Set the regular expression of the content titles by UTF-8

$dms2vodcast.pl -b http://xxx.xxx.xxx.xxx/ -B /var/www/html/ -d "CyberGarage Vodcast"
-g ja -t CyberGarage -s "ワールドビジネスサテライト" cgvodcast.xml
DLNA Media Sever 2 Vodcast (v1.0.3), Copyright (c) 2005 Satoshi Konno
Output RSS file name = cgvodcast.xml
title : CyberGarage
description : CyberGarage Vodcast
language : ja
base url : http://xxx.xxx.xxx.xxx/
base directory : /var/www/html/
requested_count : 0
mp4_format : ipod
search regexp : ワールドビジネスサテライト
[0] : CoCoon Channel Server CSV-EX9/11
[V9009] ワールドビジネスサテライト (GG) (http://xxx.xxx.xxx.xxx:51002/video?O=V9009&P=2&C=1&B=5&I=9009)
curl "http://xxx.xxx.xxx.xxx:51002/video?O=V8984&P=2&C=1&B=5&I=9009"
-o "CoCoonChannelServerCSV-EX9-11_uuid-ee041d0a-39aa-11d8-8000-080046d17d94_V9009.mpeg"
ffmpeg -y -i "CoCoonChannelServerCSV-EX9-11_uuid-ee041d0a-39aa-11d8-8000-080046d17d94_V9009.mpeg"
-bitexact -fixaspect -s 320x240 -r 29.97 -b 850 -acodec aac -ac 2 -ar 44100 -ab 64 -f mp4
"/var/www/html/CoCoonChannelServerCSV-EX9-11_uuid-ee041d0a-39aa-11d8-8000-080046d17d94_V9009_ipod.m4v"
[V8984] ワールドビジネスサテライト土曜版 (GG) (http://xxx.xxx.xxx.xxx:51002/video?O=V8984&P=2&C=1&B=5&I=8984)
curl "http://xxx.xxx.xxx.xxx:51002/video?O=V8984&P=2&C=1&B=5&I=8984"
-o "CoCoonChannelServerCSV-EX9-11_uuid-ee041d0a-39aa-11d8-8000-080046d17d94_V8984.mpeg"
ffmpeg -y -i "CoCoonChannelServerCSV-EX9-11_uuid-ee041d0a-39aa-11d8-8000-080046d17d94_V8984.mpeg"
-bitexact -fixaspect -s 320x240 -r 29.97 -b 850 -acodec aac -ac 2 -ar 44100 -ab 64 -f mp4
"/var/www/html/CoCoonChannelServerCSV-EX9-11_uuid-ee041d0a-39aa-11d8-8000-080046d17d94_V8984_ipod.m4v"
[V8968] ワールドビジネスサテライト (GG) (http://xxx.xxx.xxx.xxx:51002/video?O=V8968&P=2&C=1&B=5&I=8968)
curl "http://xxx.xxx.xxx.xxx:51002/video?O=V8968&P=2&C=1&B=5&I=8968"
-o "CoCoonChannelServerCSV-EX9-11_uuid-ee041d0a-39aa-11d8-8000-080046d17d94_V8968.mpeg"
ffmpeg -y -i "CoCoonChannelServerCSV-EX9-11_uuid-ee041d0a-39aa-11d8-8000-080046d17d94_V8968.mpeg"
-bitexact -fixaspect -s 320x240 -r 29.97 -b 850 -acodec aac -ac 2 -ar 44100 -ab 64 -f mp4
"/var/www/html/CoCoonChannelServerCSV-EX9-11_uuid-ee041d0a-39aa-11d8-8000-080046d17d94_V8968_ipod.m4v"
[V8950] ワールドビジネスサテライト (GG) (http://xxx.xxx.xxx.xxx:51002/video?O=V8950&P=2&C=1&B=5&I=8950)
curl "http://xxx.xxx.xxx.xxx:51002/video?O=V8950&P=2&C=1&B=5&I=8950"
-o "CoCoonChannelServerCSV-EX9-11_uuid-ee041d0a-39aa-11d8-8000-080046d17d94_V8950.mpeg"
ffmpeg -y -i "CoCoonChannelServerCSV-EX9-11_uuid-ee041d0a-39aa-11d8-8000-080046d17d94_V8950.mpeg"
-bitexact -fixaspect -s 320x240 -r 29.97 -b 850 -acodec aac -ac 2 -ar 44100 -ab 64 -f mp4
"/var/www/html/CoCoonChannelServerCSV-EX9-11_uuid-ee041d0a-39aa-11d8-8000-080046d17d94_V8950_ipod.m4v"
Outputed 4 RSS items to /var/www/html/cgvodcast.xml

Comments: Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?