Changeset 1889
- Timestamp:
- 16/11/08 19:01:50 (8 weeks ago)
- svm:headrev:
cc3e1ea1-1e01-0410-8d68-8b121e83a9d5:11171- Files:
-
- 1 modified
-
freevo/src/video/plugins/reencode-old.py (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
freevo/src/video/plugins/reencode-old.py
r1111 r1889 37 37 import os 38 38 import config 39 from video.encodingclient import *39 from video.encodingclient import EncodingClientActions 40 40 from gui.AlertBox import AlertBox 41 41 from gui.PopupBox import PopupBox … … 53 53 _debug_('reencode-old.PluginInterface.__init__(self)') 54 54 plugin.ItemPlugin.__init__(self) 55 self.server = EncodingClientActions() 55 56 56 57 … … 100 101 box.show() 101 102 102 (status, resp) = initEncodeJob(self.source, self.filename, self.title)103 (status, resp) = self.server.initEncodeJob(self.source, self.filename, self.title) 103 104 print 'initEncodeJob:status:', status, ' resp:', resp 104 105 … … 112 113 113 114 #ask for possible containers and set the first one (should be avi), we will get a list 114 (status, resp) = getContainerCAP(idnr)115 (status, resp) = self.server.getContainerCAP(idnr) 115 116 print 'getContainerCAP:status:', status, ' resp:', resp 116 117 … … 121 122 container = resp[contnr] 122 123 123 (status, resp) = se tContainer(idnr, container)124 (status, resp) = self.server.setContainer(idnr, container) 124 125 print 'setContainer:status:', status, ' resp:', resp 125 126 … … 129 130 130 131 #ask for possible videocodec and set the first one (should be mpeg4), we will get a list 131 (status, resp) = getVideoCodecCAP(idnr)132 (status, resp) = self.server.getVideoCodecCAP(idnr) 132 133 print 'getVideoCodecCAP:status:', status, ' resp:', resp 133 134 … … 138 139 vcodec = resp[vcodecnr] 139 140 140 (status, resp) = se tVideoCodec(idnr, vcodec, tgtsize, mpass, vbitrate)141 (status, resp) = self.server.setVideoCodec(idnr, vcodec, tgtsize, mpass, vbitrate) 141 142 print 'setVideoCodec:status:', status, ' resp:', resp 142 143 … … 148 149 #Audiocodec call isn't necessary atm, it defaults to 128 kbit mp3, but this might change in the future 149 150 #so we play safe 150 (status, resp) = getAudioCodecCAP(idnr)151 (status, resp) = self.server.getAudioCodecCAP(idnr) 151 152 print 'getAudioCodecCAP:status:', status, ' resp:', resp 152 153 … … 157 158 acodec = resp[audionr] 158 159 159 (status, resp) = se tAudioCodec(idnr, acodec, 128)160 (status, resp) = self.server.setAudioCodec(idnr, acodec, 128) 160 161 print 'setAudioCodec:status:', status, ' resp:', resp 161 162 … … 164 165 return 165 166 166 (status, resp) = getVideoFiltersCAP(idnr)167 (status, resp) = self.server.getVideoFiltersCAP(idnr) 167 168 print 'getVideoFiltersCAP:status:', status, ' resp:', resp 168 169 … … 172 173 173 174 #vfilters=resp[vfilter] 174 #(status, resp) = se tVideoFilters(idnr, vfilters)175 #(status, resp) = self.server.setVideoFilters(idnr, vfilters) 175 176 #print 'setVideoFilter:status:', status, ' resp:', resp 176 177 177 178 #And finally, qeue and start the job 178 (status, resp) = queueIt(idnr, True)179 (status, resp) = self.server.queueIt(idnr, True) 179 180 print 'queueIt:status:', status, ' resp:', resp 180 181
