Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Video Stuttering when Recording #57

Closed
BlahBlah5309 opened this issue Apr 13, 2024 · 16 comments
Closed

Error: Video Stuttering when Recording #57

BlahBlah5309 opened this issue Apr 13, 2024 · 16 comments
Assignees

Comments

@BlahBlah5309
Copy link

I know it's not a playback issue because I can watch other .ts videos just fine, on the same and different video players, on the same and different devices. could it be a bandwidth thing? I've tinkered with other chaturbate DVR things and I haven't had this issue.

@YamiOdymel
Copy link
Member

The program downloads video segments and combine into one large .ts file, this might happen if there was network lagging, and some segments were lost.

I used to fixed it by waiting for the next segment to be fetched unless timed out, can't think of how it still happened 🤔

@YamiOdymel YamiOdymel self-assigned this Apr 13, 2024
@BlahBlah5309
Copy link
Author

I see. will this occur if the computer's resources are too occupied while recording? sometimes I do other stuff while the recorder works in the background.

@YamiOdymel
Copy link
Member

No, it's not related to computer resources.

@wandersons13
Copy link

I thought this was something normal, isn't it?

I have 400mbps speed, and all recordings with the program are like this. Recordings that should be 1:30 hours end up being 1:35 hours due to errors, and when watching the video, it freezes a lot, and even the audio glitches, repeating parts like a broken record.

To be honest, I haven't used the program for over a week because many of my recordings are torture to watch. I only visited the page today to see if there was an update for the program.

@YamiOdymel
Copy link
Member

oh no 💀
i don't have the issue with long video, this is a bit hard to reproduce and debug

@SamirPRO1
Copy link

Yeah I have that problem too but it isn´t too noticeable, but for example I tried recording a room at 720 and none of its segments were lost, but at the same time I was recording other room in 480p and some segments were lost, so idk whats happening, also I was whatching the 480p room at 480p in my browser and everything looked smooth

@YamiOdymel
Copy link
Member

image

Chaturbate DVR fetches the segment list every second, I'm guessing that Chaturbate DVR was fetching the segment list at the exact 'half-second' when Chaturbate was updating its list, and the offset led to discrepancies in the final video result.

I will seek for the solution, but I've been really busy lately, you will receive the issued closed email once it got fixed 😭

@fhb302
Copy link

fhb302 commented Apr 17, 2024

I recorded a 4k video, but it also appear this problem, it usually stuck and repeat some clips. I recently switch to another program.
At the same time, I hope it can add the support of .mkv and h265, it can save more space (30G vs 6G)

@YamiOdymel
Copy link
Member

@fhb302 Chaturbate DVR only combines the segments and it doesn't do encode. The program you used supports .mkv and h265?

@wandersons13
Copy link

wandersons13 commented Apr 21, 2024

If you're interested in seeing what it's like, I added a video with no changes to this 7z.
All my videos are like this, some very bad, others not so much, this one in particular is relatively good.
link

I understand that it is difficult to replicate, but it should at least help you understand what is happening.

@YamiOdymel
Copy link
Member

@wandersons13 Thanks for that, I can see frames were dropped/loss with PotPlayer

(also I edited your comment to make sure you won't get banned for that, lmao

@BlahBlah5309
Copy link
Author

I recorded a 4k video, but it also appear this problem, it usually stuck and repeat some clips. I recently switch to another program. At the same time, I hope it can add the support of .mkv and h265, it can save more space (30G vs 6G)

what program is that?

@SamirPRO1
Copy link

I realized this issue can be fixed by pausing the recording and resuming it, perhaps you could implement a code that detects these errors:
[2024-05-05 02:51:06] [WARN] segment #5297 not found in buffer, skipped
and when there are like more than 2 or 3 in a minute it "restarts" the recording, just like you would do manually

@YamiOdymel
Copy link
Member

@SamirPRO1 hmmm- interesting, though "not found in buffer" should only happens when you were in an unstable internet environment. Can I confirm that you are not using any VPN and internet runs smoothly?

Also I'm checking the source code of following tool, it doesn't seems to have any stutter issue, i will see how to intergrate
https://github.com/canhlinh/hlsdl

@YamiOdymel
Copy link
Member

I kinda have a clue about why the stutter is happening...

chaturbate-dvr has multiple fetchers that retrieve video segments in parallel, but they share the same data (variable). This makes it prone to being overridden by another fetcher, resulting in both fetchers fetching the same segment.

Should be fixed in 3 days, finally- I guess. 🥺


Related source code snippet: (BUG: v.URI is shared between fetchers)

for _, v := range chunks {
if w.isSegmentFetched(v.URI) {
continue
}
go func(index int) {
if err := w.requestSegment(v.URI, index); err != nil {
w.log(logTypeError, "segment #%d request error, ignored: %v", index, err)
return
}
}(w.segmentIndex)

@YamiOdymel
Copy link
Member

YamiOdymel commented May 5, 2024

Fixed in v1.0.5, report again if it still occurred alot

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants