fmp4

FMP4 moof box sequence number ordering

*爱你&永不变心* 提交于 2020-03-25 18:04:10
问题 I wanted to do a basic fragmented mp4 broadcast program with avformat libs and HTML5 video and MSE. This is a live stream and I use avformat to copy h264 data to mp4 fragments. Here is my basic drawing of clients attaching to the stream: So, with words: C1J: First Client joins: avformat process starts ftyp, moov, moof, mdat boxes will be served to Client1 ftyp and moov atoms are both saved for later reuse C2J: Second Client joins (later in time): avformat process is ongoing (because it is

FMP4 moof box sequence number ordering

丶灬走出姿态 提交于 2020-03-25 18:02:12
问题 I wanted to do a basic fragmented mp4 broadcast program with avformat libs and HTML5 video and MSE. This is a live stream and I use avformat to copy h264 data to mp4 fragments. Here is my basic drawing of clients attaching to the stream: So, with words: C1J: First Client joins: avformat process starts ftyp, moov, moof, mdat boxes will be served to Client1 ftyp and moov atoms are both saved for later reuse C2J: Second Client joins (later in time): avformat process is ongoing (because it is

Different between fragmented mp4 files generated by ffmpeg and by code

▼魔方 西西 提交于 2019-12-04 12:33:19
问题 Currently I have a problem when generating fragmented MP4 file from code using libavformat. My file can be played using VLC, but can't be streamed (via WebSocket) and played (via MediaSource) in (Chrome) browser. (I used this to test streaming fragmented MP4 file to browser via WebSocket). Note: The files below is encoded by Baseline profile, level 4. So you should change the MIME type (in index.html) to const mimeCodec = 'video/mp4; codecs="avc1.42C028"'; to be able to play them. I checked