exeldro / obs-replay-source

Replay source for OBS studio
GNU General Public License v2.0
138 stars 20 forks source link

Pause, trim, and then save replay - flv file not what I expected #28

Open marlins-calendar opened 3 years ago

marlins-calendar commented 3 years ago

2021-02-24 18-03-41.txt I've pointed my camera at an online stopwatch, and I have a replay-source on the capture device in OBS studio.

I let the stopwatch run and then pressed F1 to load the replay. The projector window correctly shows the stop watch running from 00:06 to 00:26 seconds (the replay length is 20000ms = 20secs).

I let the replay source loop round and pause it when it gets to 00:10 seconds. I then front trim it, and then save the replay file. (The file is saved as an flv). I'm expecting/hoping the replay file will show the trimmed video - starting at 00:10 and going up to 00:26.

The video file displays a single frame showing a time of 00:15 for approx 11seconds.

What I'm trying to do is to cue up the replay to the 'point of interest' , trim off the stuff before the 'point of interest', and then save the file. On replay, it needs to start from the 'point of interest' (in this example the point of interest is when the stopwatch shows 00:10).

Have attached the OBS log which I hope may be of use.

Any help would be great. Thanks Martin

marlins-calendar commented 3 years ago

I'm running 1.6.7 -there's a newer version 1.6.8 which says there's a fix for saving with trim front. Fingers crossed!

marlins-calendar commented 3 years ago

OK I'm on 1.6.8 now. I run the stopwatch and press F1 to load the replay. Press F10 to save the replay, and the file plays the 20 seconds, starting at 6 seconds. Everything is fine. I then front trim and end trim the replay and press F10 to save again. The video now starts at 10 and finishes at 15 as expected. However, the audio has not been 'front trimmed' - the audio still starts at 6 seconds and doesn't tie up with the video.

This is the trimmed video showing the problem https://user-images.githubusercontent.com/61866216/109305732-102ec600-7836-11eb-8d5c-4e918cd0b978.mp4

and this is the saved replay before I did the trims:

https://user-images.githubusercontent.com/61866216/109305814-2e94c180-7836-11eb-99b8-1deb328e3663.mp4

Video files have been converted to mp4 using handbrake.

Hope this makes sense. Thanks for reading.