You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Join a Bilibili video .m4s and its audio .m4s into one MP4 #659
Thanks! .m4s support was added in #603 (first asked in #354) and ships in the next release: an .m4s that carries its own header (ftyp + moov) converts straight to MP4.
Two things to check for Bilibili files:
Bilibili usually saves the picture and the sound as two separate .m4s files. Filee can't join those two into one MP4 with sound yet.
.m4s files cached by the Bilibili desktop client start with a few padding bytes, so FFmpeg doesn't recognise them as they are.
Which program saved your files (the Bilibili desktop client, the phone app, or another downloader)? Is there a pair of .m4s files (one large, one small) for each video? No need to upload the file if it's too big; answers to these two questions are enough for now.
感谢您的回复。我一般会用IDM下载BILIBILI的视频,这些视频的确有两个.m4s,一大一小,如图所示。
Thanks for your reply. I usually use IDM to download videos from BILIBILI and these videos do have two .m4s files, one big and one small, as shown in the picture.[cid:ef1da60f-17fa-4e7a-bd53-f966d80b75c8]
Thanks for checking! Bilibili videos saved with IDM come as a pair of .m4s files: the large one is the picture, the small one the sound.
Filee 2.2.0 converts each .m4s on its own: the large one gives an MP4 without sound, the small one MP3, M4A and the other audio formats.
Joining the pair into one MP4 with sound isn't possible yet. I'm keeping this issue open for that: select both files, drop them on the donut, and get one MP4 (without re-encoding, so it's fast and keeps the quality).
Good news: #787 (thanks, @Stamina9) is merged. From the next release, select a Bilibili .m4s pair (the large video and the small audio, in any order) and drop them on Merge videos to get one MP4 with sound, copied without re-encoding. IDM downloads work. Desktop-client caches with padding bytes still don't. Closing as done.
Activity
KnifeLemon commentedon Oct 27, 2026
感谢!
.m4s已经在 #603 中加入(最早的请求是 #354),会随下一个版本发布:自带完整文件头(ftyp + moov)的.m4s可以直接转成 MP4。B站的文件有两点需要确认:
.m4s文件(一个视频、一个音频)。Filee 目前还不能把这两个合成一个带声音的 MP4。.m4s开头多了一段填充字节,FFmpeg 不能直接识别。请告诉我们:文件是用什么下载的(B站电脑客户端、手机 App,还是其他下载工具)?同一个视频是不是有两个
.m4s(一大一小)?文件太大上传不了没关系,先回答这两个问题就可以。Thanks!
.m4ssupport was added in #603 (first asked in #354) and ships in the next release: an.m4sthat carries its own header (ftyp + moov) converts straight to MP4.Two things to check for Bilibili files:
.m4sfiles. Filee can't join those two into one MP4 with sound yet..m4sfiles cached by the Bilibili desktop client start with a few padding bytes, so FFmpeg doesn't recognise them as they are.Which program saved your files (the Bilibili desktop client, the phone app, or another downloader)? Is there a pair of
.m4sfiles (one large, one small) for each video? No need to upload the file if it's too big; answers to these two questions are enough for now.KnifeLemon commentedon Oct 28, 2026
Filee 2.2.0 is out and reads .m4s files: https://github.com/KnifeLemon/Filee/releases/tag/v2.2.0
mogana-E commentedon Oct 28, 2026
mogana-E commentedon Oct 28, 2026
KnifeLemon commentedon Oct 28, 2026
谢谢确认!用 IDM 下载的 B站视频是一对
.m4s:大的是画面,小的是声音。.m4s单独转换:大的转成 MP4 只有画面没有声音,小的可以转成 MP3、M4A 等音频。Thanks for checking! Bilibili videos saved with IDM come as a pair of
.m4sfiles: the large one is the picture, the small one the sound..m4son its own: the large one gives an MP4 without sound, the small one MP3, M4A and the other audio formats.[-][Format]: .m4s[/-][+]Join a Bilibili video .m4s and its audio .m4s into one MP4[/+]fix(media): mux separate M4S audio and video
KnifeLemon commentedon Oct 30, 2026
好消息:#787(感谢 @Stamina9)已经合并,下一个版本就可以把 B站的一对
.m4s合成一个带声音的 MP4:.m4s(大的画面 + 小的声音,顺序不限)。用 IDM 下载的文件可以这样合并。B站电脑客户端的缓存文件开头有填充字节,目前还打不开。
Good news: #787 (thanks, @Stamina9) is merged. From the next release, select a Bilibili
.m4spair (the large video and the small audio, in any order) and drop them on Merge videos to get one MP4 with sound, copied without re-encoding. IDM downloads work. Desktop-client caches with padding bytes still don't. Closing as done.fix(media): mux separate M4S audio and video