class VideoSubmission(models.Model):
videoupload = models.FileField (upload_to='videoupload')
relatedsubmission = models.ForeignKey(Submission, null=True)
comment = models.CharField( maxlength=250, blank=True )
flvfilename = models.CharField( maxlength=250, blank=True, null=True )
def v_addvideo(request, submissionid):
manipulator=VideoSubmission.AddManipulator()
form=FormWrapper(manipulator,{},{})
params = {'userAccount':request.user,'form':form,}
c = Context( request, params)
t = loader.get_template('video/addvideo.html')
sub = Submission.objects.get(pk=submissionid)
params['submission'] = sub
return HttpResponse( t.render( c ) )
ffmpeg -i [sourcefile.avi] -acodec mp3 -ar 22050 -ab 32 -f flv -s 320×240 [destfile.flv]