[mythtv-users] Edit decision list file

belcampo belcampo at zonnet.nl
Sat Jul 31 06:05:12 UTC 2010


Tom Sparks wrote:
> Is there a way to save the Edit decision list into a file?
> 
> <http://wiki.xbmc.org/?title=EDL_%28commercial_skipping%29_and_SceneMarker_support>
> 
> 
> tom_a_sparks
> Light travels faster then sound, which is why some people appear bright, until you hear them speak
> 
> 
>       
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Cutlist to chapter-file which, when imported in an mkv gets you what you 
are after, as far as I can see.

mythcommflag --getcutlist -f $nameoffile | python -c "import sys,re; 
cutlist=[re.split('\D+',l)[2:-1] for l in sys.stdin.readlines() if 
l.startswith('Cutlist:')][0]; cl=[(i+1,.04*int(l)) for i,l in 
enumerate(cutlist)]; 
cl=['CHAPTER%02d=%02d:%02d:%06.3f\nCHAPTER%02dNAME=Chapter 
%d'%(ii,int(i/3600),int((i%3600)/60),i%60,ii,ii) for ii,i in cl]; print 
'\n'.join(cl)" > $workdir/chapters$nameoffile


More information about the mythtv-users mailing list