Where Bilibili saves downloaded videos
Bilibili’s own download button (缓存, “cache”) keeps videos for offline viewing inside the app. The files are real, but they are split and named for the app, so they don’t show up in your gallery or play in other players. Folder names can change between app versions, so treat these as a guide.
- Android app:
Android/data/tv.danmaku.bili/download/. Each video has a numbered folder, each part has ac_…folder inside it, and the quality folder in there holdsvideo.m4sandaudio.m4s. Android 11 and later hide theAndroid/datafolder from most file managers, so the easiest way in is to connect the phone to a computer with a USB cable. - Windows and Mac desktop client: the download folder you picked in its settings. Each video gets a folder with two
.m4sfiles with long number names. - iPhone and iPad: iOS keeps app downloads sealed inside the app, so there are no files to copy out. Use the iPhone download guide to save an MP4 from the link instead.
What the converter does
Bilibili cache files are fragmented MP4 tracks, the same format its website streams. The converter:
- removes the padding bytes the PC client puts before the file header, which is why players call these files damaged;
- reads each file to tell the picture track from the sound track, so the order you pick them in doesn’t matter;
- writes both tracks into one MP4 container, copying the data as it is. Nothing is re-encoded, so quality is unchanged and even long videos take seconds.
We tested it on Bilibili tracks with the PC client’s nine-byte padding added. ffprobe couldn’t open the originals; the joined file played the full 2 minutes 34 seconds with H.264 video and AAC sound.
Skip the cache entirely
If you just want an MP4 of a public video, paste its link into the Bilibili video downloader. It saves one file with the sound already in it, in the best quality Bilibili gives out without signing in (see our 1080p download test). Use this converter for videos you already cached in the app, or for files you can no longer find online.