How to save ts stream in m3u8 to mp4 file in Chromium code

58 views
Skip to first unread message

Daolin Liu

unread,
Aug 7, 2023, 2:00:52 PM8/7/23
to Chromium-dev
Hi, 

I have a media test website. The <video> tag is blob (MSE) and also include m3u8 with some .ts. I can use Chromium to play it without any problem. 

My requirement is saving this video to a mp4 file during the playing. Currently, I can modify media::ChunkDemuxer and SourceBuffer, especially the "Append" method to save one audio file + othe video file, because there are two SourceBuffer. But I don't know what's the next step. How to combine these two files to a final mp4 file with ffmpeg api?

I'm not sure if my above way is correct, or any other clue is appreciated.


Thanks,
Dorian

guest271314

unread,
Aug 12, 2023, 9:50:03 AM8/12/23
to Chromium-dev, Daolin Liu

guest271314

unread,
Aug 12, 2023, 9:57:41 AM8/12/23
to Chromium-dev, guest271314, Daolin Liu
Reply all
Reply to author
Forward
0 new messages