Beispiel #1
0
 def ProcessVideoRPC(self, request, context):
     filePath, ext = ffmpeg.processVideo(request.filePath)
     return ct_pb2.File(filePath=filePath, ext=ext)
Beispiel #2
0
 def ConvertVideoToWavRPCWithOffset(self, request, context):
     filePath, ext = ffmpeg.convertVideoToWavWithOffset(
         request.file.filePath, request.offset)
     return ct_pb2.File(filePath=filePath, ext=ext)
Beispiel #3
0
 def DownloadEchoVideoRPC(self, request, context):
     echoprovider = EchoProvider()
     filePath, ext = echoprovider.getMedia(request)
     return ct_pb2.File(filePath=filePath, ext=ext)
Beispiel #4
0
 def DownloadYoutubeVideoRPC(self, request, context):
     youtubeprovider = YoutubeProvider()
     filePath, ext = youtubeprovider.getMedia(request)
     return ct_pb2.File(filePath=filePath, ext=ext)
Beispiel #5
0
 def DownloadKalturaVideoRPC(self, request, context):
     kalturaprovider = KalturaProvider()
     filePath, ext = kalturaprovider.getMedia(request)
     return ct_pb2.File(filePath=filePath, ext=ext)