How do I go about retiming a run from BiliBili?
7 months ago
Texas, USA

I've realized that, as a moderator for only a couple games, I never found out how to do this considering the small amount of bilibili runs I encounter in the mod queue. Also, I do have access to quite a few retime tools, but most of them utilize debug info from YouTube. Any help would be appreciated!

(oh, and I'm sorry if this is already something that was asked somewhere in these forums. I tried searching for methods, but all I ended up finding was a link to a thread that apparently had a link to another thread about this exact topic, which led me nowhere.)

Diedit oleh penulis 7 months ago
Texas, USA

I use Frame Count https://somewes.com/frame-count/ it lets you import your own files or a video link I don’t know if it supports bilibili but it’s worth a shot I guess

RaggedDan menyukai ini
Somerset, England

@HonuAkamai, that website doesn't support Bilibli - it even says the sites that it supports.

Although it kinda only works with YouTube. This is because it doesn't get enter the FPS of those videos automatially into the FPS input, and always defaults to 60.

I believe that YouTube is the only site that tells you the FPS. Meaning you can only kinda retime YouTube runs accurately.

However, I do like that site better than the other YouTube retimers though, as it seems to be more consistent with there being no missing frames.

@AmazinCris, to retime Bilibili runs, then I would download the Bilibili video, and retime it using the Somewes website. And I would get the FPS of the video from the downloaded video file.

And then there's also the issue of the framerate not being consistent in the video itself. And the issue of which Bilibili video downloader gives you the highest quality video?

Merl_ dan honu_tx menyukai ini
Texas, USA

Not to pester you or anything, but if you could send over a safe video downloader for BiliBili, that would be great. Also, I did not know the Somewes site allowed for video files, so that's cool.

Somerset, England

I've created my own code that downloads the video, which you run on the Bilibili video's page. @AmazinCris

This automatically downloads the highest quality video.

To run:

  1. Press Ctrl + Shift + I
  2. Press "Console"
  3. Type "allow pasting", if nessary, and hit Enter
  4. Paste the code and press "Enter", and it downloads.

You could also use this in a bookmarklet. Just create a new bookmark, type "javascript:" into the URL field, paste the code and press save. This means you can press on that bookmark and it downloads the video when you're on a Bilibili page.

Also, I think you can get access to higher quality videos when you are logged into Bilibili.

(async () => {
	const progressBar = document.createElement("div");
	progressBar.style.width = "0%";
	progressBar.style.height = "5px";
	progressBar.style.backgroundColor = "blue";
	progressBar.style.position = "fixed";
	progressBar.style.top = "0";
	progressBar.style.left = "0";
	progressBar.style.right = "0";
	progressBar.style.zIndex = "9999";
	document.body.appendChild(progressBar);

	const videoUrl = __playinfo__.data.dash.video.sort((a, b) => b.bandwidth - a.bandwidth)[0].baseUrl;

	const res = await fetch(videoUrl);
	const reader = res.body.getReader();
	const contentLength = res.headers.get("Content-Length");

	const chunks = [];
	let receivedLength = 0;

	while (true) {
		const { value, done } = await reader.read();
		if (done) break;

		chunks.push(value);
		receivedLength += value.length;
		const percentComplete = (receivedLength / contentLength) * 100;
		progressBar.style.width = `${percentComplete}%`;
	}

	const url = URL.createObjectURL(new Blob(chunks));
	const a = document.createElement("a");
	a.setAttribute("download", `${document.querySelector(".video-title").innerText}.mp4`);
	a.setAttribute("href", url);
	a.click();
	a.remove();
	URL.revokeObjectURL(url);
	progressBar.remove();
})();
Diedit oleh penulis 7 months ago
RaggedDan dan AmazinCris menyukai ini
Texas, USA

@YUMmy_Bacon5 oh this is cool! are the videos meant to export as a .txt file, though? i tried exporting a video, saw that got a .txt file out of it, and tried to rename it as a .mp4 (this worked but the audio was missing too).

Diedit oleh penulis 7 months ago
RaggedDan dan YUMmy_Bacon5 menyukai ini
Somerset, England

Well, it worked on Firefox when I tested that lol. I've now edited the post, try again.

Finland

you can use hitomi downloader to download from bilibili. it supports virtually everything you need and dont need.

YUMmy_Bacon5 menyukai ini