Closed
Description
The video recorded using DVR is saved with the file name extension as mp4. To play this mp4 file, place it in the nginx directory and open the file in a browser for on-demand playback. It can be opened in Google Chrome and Android phones, but cannot be played in Firefox and Safari browsers. To enable playback in Safari, you can repackage the video using the command "ffmpeg -i abc.mp4 -codec copy test.mp4".
How can the recorded video be played in Safari without re-packaging?
Below is the DVR configuration:
dvr{
enabled on;
dvr_apply all;
dvr_plan session;
dvr_path /usr/local/nginx/html/dvr/[2006]/[01]/[stream].mp4;
dvr_duration 30;
dvr_wait_keyframe on;
time_jitter full;
}
TRANS_BY_GPT3