Here is the Python code:
import subprocess
cmnd = ["ffmpeg", "-i", "/home/xincoz/test/connect.flv", "-acodec", "copy", "-ss", "00:00:00", "-t", "00:00:30", "/home/xincoz/test/output.flv"]
subprocess.call(cmnd)
Here I get the 30sec long video output file output.flv from connect.flv video. But i want to store that 30sec long binary data in a variable instead of copying that into an output file. How can I able to do that?
Please help me. Thanks a lot in advance.