Posted By

rowntreerob on 11/25/08


Tagged

video


Versions (?)

video play list from list of xml config files


 / Published in: Bash
 

get a list of all the video files played in all the vortexes

  1. leo iJam]$ find . -name videos* | grep -v '[0-9]\{4\}.xml' |grep -v 'videos_dev' |grep -v 'videos_1' |grep -v 'videos1' |xargs grep CDATA | awk ' { if ( substr($2,2,4) == "name" ) { print substr($2,16) } else {print substr($2,20)} } ' | sed 's/\]\].*$//' | awk ' { if (NR % 2 == 1) { print $0"/"h".flv" } else {h=$0} }' | sort -o /tmp/video_play_list
  2.  
  3. [rob@leo iJam]$ less /tmp/video_play_list

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: rowntreerob on November 25, 2008

cd to ./iJam

gets list like :

http://vortexme.com/video/active/MLSTeams/MLSLeague/111208wowrichardsv2.flv http://ij.am/video/active/MLSTeams/Chivas/110508extratimewowmovsisyan.flv http://ij.am/video/active/MLSTeams/Chivas/091307lagcdcmendozagoal350.flv http://ij.am/video/active/MLSTeams/Chivas/091307lagcdcmerlingoal350.flv http://vortexme.com/video/active/MLSTeams/MLSLeague/091307lagcdcrazovgoal350.flv http://vortexme.com/video/active/MLSTeams/MLSLeague/042608smgotww5gallardowinner350.flv http://vortexme.com/video/active/MLSTeams/MLSLeague/042008smgotww4windonovan_350.flv

You need to login to post a comment.