Closed wangborong12345 closed 8 months ago
I tried again to record to a local file using ffmpeg.
ffmpeg -f dshow -framerate 2 -i "video=my device" -c:v libx264 -x264-params bframes=0 -profile:v baseline -b:v 100k -s 1280x720 -preset veryfast -tune zerolatency -pix_fmt yuv420p -f flv out.flv
The duration of the video is normal.
TRANS_BY_GPT4
Describe the bug When streaming at a lower frame rate and enabling DVR recording, the recorded video is sped up. Even though the recording lasted for about 30 minutes, the final recorded flv file is only around 40 seconds long. Also, the video content plays at a faster speed.
Version I'm running it using DOCKER, and the version of SRS I'm using is "v5.0.60".
To Reproduce Here's the configuration file:
Here's my Docker command:
ffmpeg streaming command
Expected behavior I think the length of my stream should match the duration of the video file, and it should play at normal speed (without the player speeding it up). Also, regarding the DVR's "dvr_duration" setting, it seems like it's the duration the video file reaches before it stops, not the recording duration, right?
Screenshots Here's a screenshot of when the recording started.
Here's a screenshot of when the recording ended.
![image](https://github.com/ossrs/srs/assets/49790568/660acd23-ee52-41e6-aacb-7331ccbe2d4d)
It started at 9.41 and ended at 10.15, but the recorded video is only 41 seconds long.
Additional context Add any other context about the problem here.
TRANS_BY_GPT4