exelix11 / SysDVR

Stream switch games to your PC via USB or network
GNU General Public License v2.0
1.46k stars 89 forks source link

[Bug] Videos recorded after the first one have the incorrect length #307

Open Torracat1185 opened 1 week ago

Torracat1185 commented 1 week ago

Describe the bug After stopping a recording using the SysDVR client, the next videos that are recorded will have an incorrect length value.

To Reproduce

  1. Connect the SysDVR client to your console via network or USB.
  2. Start and then stop a recording of any length.
  3. Start and then stop a second recording.

Expected behavior Videos saved after the first recording will have the correct length value.

Setup information

Additional context It appears to be a problem with the "edit list" of the video, the length can be corrected using FFmpeg with e.g. ffmpeg -ignore_editlist 1 -i SysDVR_2024_09_17_03_55_29.mp4 -codec copy test.mp4.

exelix11 commented 6 days ago

Can't seem to reproduce, how do you check if the length is wrong ? I tried recording two clips in a row and both play in mpv with no warnings.

exelix11 commented 6 days ago

Nevermind, after a few attempts i can confirm the issue. I'll look into a solution.

exelix11 commented 6 days ago

f96da19baf685a00333c697041a2c5d3e5ebb841 should fix the issue. You can get a test build from actions or wait whenever i make a new release but for that there are still a few things i want to look into first.