[Answered ]-Run linux command from django view script

2👍

You could try with the subprocess library:

from subprocess import call

success = call('avconv -ss 00:01:00 -i '+inputfile+' -vsync 1 -t 0.01'+outputfile, shell=True)

if success != 0:
    //The command has failed

Leave a comment