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
85
votes
2 answers

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
  • 896
  • 1
  • 7
  • 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,679
  • 2
  • 27
  • 36
12
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
  • 785
  • 1
  • 8
  • 23
8
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
  • 990
  • 7
  • 14
6
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…
5
votes
1 answer

Java mp4parser to create a single .m4s fragment— invalid moov box

This use case is a service that manually encodes a series of uncompressed .wav media segments into .m4s fragments for broadcast via MPEG-DASH, using ffmpeg to compress the .wav to .aac and sannies/mp4parser to assemble the aac audio into an .m4s…
Charney Kaye
  • 3,667
  • 6
  • 41
  • 54
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
  • 61
  • 2
  • 5
4
votes
0 answers

How to play and seek fragmented MP4 audio using MSE SourceBuffer?

Note: If you end up here, you might want to take a look at shaka-player and the accompanying shaka-streamer. Use it. Don't implement this yourself unless you really have to. I am trying for quite some time now to be able to play an audio track on…
Stefan Falk
  • 23,898
  • 50
  • 191
  • 378
2
votes
1 answer

Is it possible to reorder and recombine fragments in fmp4?

I have fragmented mp4 which I want to send users through HLS. It's ok if I just send it as is. But I need opportunity to reorder fragments in this video. For example initial video, which looks like this: original video format I want reorganize…
Nick
  • 23
  • 3
2
votes
1 answer

Detection I Frame in h264 stream (fragmented mp4)

I need to check the first frame in H264 stream is I-Frame. On the input I have fragmented mp4 file. I tried to find type of frame in the moof->traf->trun "Sample depends on" flag. But seems, not every container has this flag filled in. So I want to…
2
votes
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
  • 103,626
  • 17
  • 118
  • 172
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…
juancito
  • 866
  • 2
  • 9
  • 22
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
  • 1,112
  • 13
  • 31
2
votes
1 answer

Chromecast HLS: Unable to derive timescale

I'm trying to get fmp4 HLS playing back on a new Chromecast (3rd gen I believe, not Ultra). I've tried encoding the content with ffmpeg using both x264 and h264 libraries. The main profile initially gives me a codec not supported error, remove the…
Scott
  • 33
  • 3
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
  • 7
1
2 3 4 5