Questions tagged [fmp4]

Fragmented MP4 ... MP4 (.mov, .mp4) files organized to allow live streaming.

Ordinary, unfragmented, MP4 has separate "boxes" for media metadata and data. It's often necessary to random-access such files, often to near the end, to play them correctly. That doesn't work for live streaming: the end is unknown because it's still in the future.

Most players can play both ordinary and fragmented mp4.

More description here.

72 questions
2
votes
1 answer

Where is the detailed description of the esds box of the mp4 file

In which document does the esds box of mp4 file have a detailed description? Why is it not found in the ISO/ IEC 14496-12 document
YuanDa.Yu
  • 127
  • 7
2
votes
1 answer

How does the fmp4 file populate the esds box according to the ADTS of the AAC frame?

My source AAC frame contains the ADTS header. I need to initialize the esds box in the fmp4 file according to the ADTS, cut out the ADTS header and fill in the rest data, but I have tried many times without success (the player can't parse out the…
YuanDa.Yu
  • 127
  • 7
2
votes
1 answer

A question about the first mdat box of the fmp4 file

The header of the first mdat box of the fmp4 file has a section of file description information data, is this section of information necessary? If not, will it affect the decoding of the fmp4 file?
YuanDa.Yu
  • 127
  • 7
2
votes
1 answer

about fmp4 encoding , how to fill the mdat box wit H264 frame?

I used C language to encode H264 frames (just have I/P frame) into fmp4 files. When I fill the mdat box, I don't know how to fill the frame data. Is (I/P)frame data filled directly? Do the first 4 bytes need to be filled with frame length? I tried…
YuanDa.Yu
  • 127
  • 7
2
votes
1 answer

How h264 NAL units to be corectly sampled inside fragmented MP4

Having a stream of NAL units of types [5 [1]+]+, how to correctly reference them in samples field of trun box of frgmented mp4 so they would decode and present correctly, without stuttering? The main issue here is that not every time single NAL unit…
Alexander Tumin
  • 1,561
  • 4
  • 22
  • 33
2
votes
1 answer

How to make video to start(decode) at specific time?(base media decode time)

I would like to make a video(fragmented mp4) to start at specific time. For example, if the fragmented video segment is for 4sec timestamp, I would like the video(fmp4) to start at 4sec and no video before that time. I think 'base media decode time'…
Jaehong Kim
  • 121
  • 8
2
votes
2 answers

Generate fmp4 chunks for HLS with ffmpeg

I am trying to generate fragmented MP4 as the chunks for HLS as introduced by apple last year. See link -> https://bitmovin.com/hls-news-wwdc-2016/ Does ffmpeg supports this? Thanks!
genxstylez
  • 276
  • 1
  • 4
  • 11
2
votes
3 answers

HLS MP4 Independent Segments

Long story short: Why HLS can't just play normal MP4 files together one after one? Why need to segment media file into .ts segments? Details: We've segmented MP4 file into mini MP4 segments (not TS), each one about 30 seconds for testing. It never…
Mido
  • 29
  • 1
  • 4
1
vote
0 answers

How do I use MP4Box to edit the boxes?

I am trying to use MP4Box to edit the #EXT-X-MAP:URI="fragment_init.mp4" file used in HLS fMP4. My current approach is to dump the mp4 file to an xml file, edit the xml and then package back into an mp4 file. Firstly, the source gstgenerated.mp4…
Keith
  • 71
  • 4
1
vote
0 answers

What is difference between Fmp4 and segmented mp4 . Can both be used as container for DASH/HLS playback?

I wanted to know the difference between fmp4 (fragmented MP4) and the segmented Mp4 . Also how they are used in DASH/HLS playback.
harish
  • 61
  • 1
  • 3
1
vote
0 answers

Audio-only HLS skipping with individually-made fmp4 segments

Here's my HLS playlist: chunky.m3u8 I'm able to stream that link using VLC. However I hear a tiny audio error like "skipping" in between each of the 10-second segments. Here's my initialization segment: chunky-128k-IS.mp4 And here are the…
Charney Kaye
  • 3,667
  • 6
  • 41
  • 54
1
vote
2 answers

How many video and audio samples should be included in each mdat?

I am creating a FMP4 with 2 tracks (one for video and one for audio). I trying to find out how many video samples should I include in the mdat and how many audio as well. So my FMP4 has the following structure: ftyp moov moof (track1 - video) mdat…
rsc
  • 10,348
  • 5
  • 39
  • 36
1
vote
1 answer

GCP Transcoder API mov/mp4 to hls/fmp4 no audio output (on IOS)

I use the GCP Transcoder API with the following configuration: NodeJS 12 Firebase Storage Firestore DB GCP CDN job start on upload (firebase function) const config = { "elementaryStreams": [ { "videoStream": { …
1
vote
0 answers

Audio loudness metadata

Apple's HLS stream validator gives me this warning: Audio loudness information SHOULD be provided I want to write a test that checks loudness information is present. I cannot find what metadata keys are used to provide this information so that I…
user319862
  • 1,797
  • 2
  • 24
  • 32
1
vote
0 answers

Using MP4box.js and onSegment callback is not called no websocket

So I'm trying to use MP4Box.js. On its readme page it states: it has a demo: "A player that performs on-the-fly fragmentation". However the onSegment callbacks which should feed MSE are not called at all: const getVideo = async () => { const…