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.

51 questions
69
votes
1 answer

What exactly is Fragmented mp4(fMP4)? How is it different from normal mp4?

Media Source Extension (MSE) needs fragmented mp4 for playback in the browser.
Aditya Gupta
  • 703
  • 1
  • 6
  • 9
58
votes
1 answer

Transcoding fMP4 to HLS while writing on iOS using FFmpeg

TL;DR I want to convert fMP4 fragments to TS segments (for HLS) as the fragments are being written using FFmpeg on an iOS device. Why? I'm trying to achieve live uploading on iOS while maintaining a seamless, HD copy locally. What I've…
bclymer
  • 6,260
  • 2
  • 23
  • 34
8
votes
4 answers

Fragmented MP4 - problem playing in browser

I try to create fragmented MP4 from raw H264 video data so I could play it in internet browser's player. My goal is to create live streaming system, where media server would send fragmented MP4 pieces to browser. The server would buffer input data…
PookyFan
  • 610
  • 1
  • 6
  • 20
5
votes
1 answer

Different between fragmented mp4 files generated by ffmpeg and by code

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…
dinhnguyen
  • 51
  • 5
3
votes
1 answer

What HEVC codec tag to use with fMP4, hvc1 or hev1?

How does one choose the correct codec tag to use (hvc1 or hev1) when muxing HEVC video into fragmented MP4 for streaming with MPEG-DASH/HLS? I reckon there's a slight difference in muxing depending on the tag according to ISO/IEC FDIS…
jmsn
  • 787
  • 4
  • 12
2
votes
1 answer

How can I convert an HEVC video with Alpha Channel to HLS with fragmented MP4?

I've tried converting the video with ffmpeg but the x265 library which uses for encoding the file into HEVC does not have support for Alpha Channel. I found some proprietary tools that convert files to HEVC, which support Alpha Channel, but they…
Juan Scolari
  • 751
  • 2
  • 7
  • 19
2
votes
1 answer

Convert fragmented MP4 to MP4

I am trying to scrape video frames from trafficview.org and can't seem to figure out how to decode the data. I wrote a few lines of code based on tutorials on this websocket_client to access a live streaming websocket and receive the messages…
Will.Evo
  • 830
  • 11
  • 26
2
votes
1 answer

How do I generate a file M3U8 compatible with fmp4?

I have a streaming solution that use MPEG-Dash protocol, and I would like to expose the same files on hls for IOS devices. I read that fmp4 is now compatible with hls, so I thought that this could be done When I generate may mpd file with this…
Dop
  • 61
  • 6
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
  • 87
  • 6
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'…
2
votes
1 answer

HTTP Live Streaming: Fragmented MP4 or MPEG-TS?

I have an IP camera which sends out a live stream in RTSP over UDP and I want to display this stream in the browser, and I want it to work on the major browsers and on mobile (both iOs and Android). To achieve this I want to convert the stream to…
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
  • 246
  • 4
  • 11
1
vote
0 answers

Chrome's MediaRecorder generates new SPS and PPS for every key frame

I am trying to transbox the webm output from MediaRecorder with MIME type video/webm;codecs="avc1.42C01E" and other variants of avc1. I want to generate fragmented mp4, with MIME type video/mp4;codecs="avc1.42C01E", containing the same video…
O. Jones
  • 81,279
  • 15
  • 96
  • 133
1
vote
0 answers

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,488
  • 2
  • 21
  • 28
1
2 3 4