Answer the question
In order to leave comments, you need to log in
Exec (or ffmpeg) ignores the get parameter. How to make him see?
It's not exactly clear who is to blame, but I can't execute the following command from php:
$url = "rtsp://admin:[email protected]:554/cam/realmonitor?&channel=1&subtype=0";
exec("ffmpeg.exe -rtsp_transport tcp -i $url -c copy -map 0 -t 10 out2.mkv 2>&1", $output, $return_var);
p($output);
p($return_var);
[rtsp @ 000002891c688400] method OPTIONS failed: 404 Not Found
rtsp://admin:[email protected]:554/cam/realmonitor?subtype=0: Server returned 404 Not Found
[rtsp @ 0000021f3c098400] method DESCRIBE failed: 404 Not Found
rtsp://admin:[email protected]:554/cam/realmonitor?channel=1: Server returned 404 Not Found
Answer the question
In order to leave comments, you need to log in
From the console, everything works for me, BUT there was also a snag with the link and I had to specify it in double quotes (I didn’t accept single quotes)
exec("ffmpeg.exe -rtsp_transport tcp -i \"$url\" -c copy -map 0 -t 10 out2.mkv 2>&1", $output, $return_var);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question