Vodcasting for Cocoon

I have released the latest version, v1.1.3. I have released a sample script for DLNA and Vodcast, dms2vodcast.pl, with CyberLinkForPerl v1.1.3. It can convert from MPEG2 movies of DLNA media servers to MPEG4 and the RSS file for Vodcast, to specify only your favorite movies.

$ 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

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 smile

cocoon2ipod-01.jpg

$dms2vodcast.pl -b http://xxx.xxx.xxx.xxx/ -B /var/www/html/ -d "CyberGarage Vodcast" 
 -g ja -t CyberGarage -s "&#12527;&#12540;&#12523;&#12489;&#12499;&#12472;&#12493;&#12473;&#12469;&#12486;&#12521;&#12452;&#12488;" 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 : &#12527;&#12540;&#12523;&#12489;&#12499;&#12472;&#12493;&#12473;&#12469;&#12486;&#12521;&#12452;&#12488;
[0] : CoCoon Channel Server CSV-EX9/11
[V9009] &#12527;&#12540;&#12523;&#12489;&#12499;&#12472;&#12493;&#12473;&#12469;&#12486;&#12521;&#12452;&#12488; (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] &#12527;&#12540;&#12523;&#12489;&#12499;&#12472;&#12493;&#12473;&#12469;&#12486;&#12521;&#12452;&#12488;&#22303;&#26332;&#29256; (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] &#12527;&#12540;&#12523;&#12489;&#12499;&#12472;&#12493;&#12473;&#12469;&#12486;&#12521;&#12452;&#12488; (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] &#12527;&#12540;&#12523;&#12489;&#12499;&#12472;&#12493;&#12473;&#12469;&#12486;&#12521;&#12452;&#12488; (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
Topic attachments
I Attachment Action Size Date Who Comment
JPEGjpg cocoon2ipod-01.jpg manage 102.1 K 2010-02-02 - 21:28 SatoshiKonno  
Topic revision: r2 - 2010-02-02 - 21:40:32 - SatoshiKonno
 

Copyright © 2012 by Satoshi Konno Powerd by TWiki logoTWiki.