my $duration = 5; my $CommandURL = "http://192.168.178.66/bha-api/video.cgi?sessionid=pYSFU7KtdTu45emxoP05UeIj3rlpVkbqkBVaB5pqSwyUhxXtJmV1HNWx2BOpx"; my $VideoFilePath = "/home/pi/Documents/Video/201910101435-Video.mjpeg"; ### Create command for shell my $ShellCommand = "timeout " . $duration . " ffmpeg -hide_banner -loglevel panic -re -i '" . $CommandURL . "' -filter:v setpts=4.0*PTS -y " . $VideoFilePath . " &"; eval { system($ShellCommand) or die "Could not execute" . $ShellCommand . " ". $@; }; #### Ab hier jede menge weiterer Code