I have written a small function like this:
def test():
command = "ffmpeg -f mpegts -i udp://224.6.207.111:1234?multicast=1 -acodec copy -vcodec copy -sameq ff-output.ts"
os.system(command)
self.myTimer = Timer(10, "myTimer")
self.myTimer.start()
os.system(signal.SIGINT)
self.myTimer.stop()
When i run test()
in python in my terminal, ffmpeg always continues without closing.
Does someone know how to stop it?
Thank you for all comment ;D I have find that we can use -t option for ffmpeg :)